Getting around RFC_READ_TABLE limitations
This tip provides code to help developers get around RFC_READ_TABLE limitations.
RFC_READ_TABLE is an RFC that allows users to read a table remotely. This is important particularly to Java developers...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
using JCO to communicate with an ABAP back-end. Unfortunately, RFC_READ_TABLE has size limitations; it also incorrectly reads binary data. The code below gets around those limitations. Note: no authorization checking takes place; that will need to be embedded in your version of the code. Also, you will need to define a table type with FIELDNAME as a line type. function zrvc_read_table. *"---------------------------------------------------------------------- *"*"Local interface: *" IMPORTING *" VALUE(IV_TABNAME) TYPE TABNAME *" VALUE(IT_FIELDNAMES) TYPE ZRVC_TT_FIELDNAMES *" VALUE(IT_SELECT_OPTIONS) TYPE STRINGTAB *" EXPORTING *" VALUE(EV_RC) TYPE INT4 *" VALUE(EV_MSG) TYPE STRING *" VALUE(ET_STRINGTAB) TYPE STRINGTAB *"---------------------------------------------------------------------- */References data: lr_error type ref to cx_root, lr_dataref type ref to data. */Variables data: lv_string type string, lv_temp type string, ls_dfies type dfies, lt_dfies type ddfields, lt_alldfies type ddfields. field-symbols:
Dig Deeper on SAP development and programming languages
-
Why electric vehicles are the next big step for developers working in sustainability
-
Driving EV adoption: Why range anxiety is a waste of time
-
Ordnance Survey research reveals sustainability projects as hot for software developers
-
The electric vehicle revolution will need better software to keep it running