Converting the data back to table using SAP FM RFC_READ_TABLE

SAP HANASAPSAP Basis

This is very simple and you can write a code as below. This code works when you only have characters fields in table:

DATA: lt_options TYPE TABLE OF rfc_db_opt,
        lt_fields  TYPE TABLE OF rfc_db_fld,
        lt_entries TYPE TABLE OF dpr_pha_type.
CALL FUNCTION 'RFC_READ_TABLE'
  DESTINATION 'Y58CLNT800'
  EXPORTING
    query_table = 'DPR_PHA_TYPE'
  TABLES
    options     = lt_options
    fields      = lt_fields
    data        = lt_entries.


raja
Published on 06-Dec-2017 17:07:53
Advertisements