How to Pass structure parameter to SAP RFC


T

TC Blue Boy

I am writing an Access application to grab data out of SAP using an RFC. The
RFC has ABAP TABLE structures in the parameters:
=========================================
FUNCTION zrfc_read_table.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(QUERY_TABLE) LIKE DD02L-TABNAME
*" VALUE(DELIMITER) LIKE SONV-FLAG DEFAULT SPACE
*" VALUE(NO_DATA) LIKE SONV-FLAG DEFAULT SPACE
*" VALUE(ROWSKIPS) LIKE SOID-ACCNT DEFAULT 0
*" VALUE(ROWCOUNT) LIKE SOID-ACCNT DEFAULT 0
*" VALUE(DISTINCT) LIKE SONV-FLAG DEFAULT SPACE
*" VALUE(FIX) LIKE SONV-FLAG DEFAULT 'X'
*" TABLES
*" OPTIONS STRUCTURE RFC_DB_OPT
*" FIELDS STRUCTURE RFC_DB_FLD
*" DATA STRUCTURE ZTAB4000
*" EXCEPTIONS
*" TABLE_NOT_AVAILABLE
*" TABLE_WITHOUT_DATA
*" OPTION_NOT_VALID
*" FIELD_NOT_VALID
*" NOT_AUTHORIZED
*" DATA_BUFFER_EXCEEDED
*"----------------------------------------------------------------------
=========================================
The IMPORTING parameters are just plan STRINGS and I have no problem passing
that. The problem I am having is with the TABLES "OPTIONS" and "FIELDS" which
controls what I get back in "DATA".

Can anyone give me some direction as to how to create the OPTIONS and FIELDS
structures and pass them to SAP. Also, is there a DLL somewhere that will
help with all the parameters, etc.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top