sap-tutorials / abap-core-development

Tutorials to support various abap products and functions.
Creative Commons Attribution 4.0 International
18 stars 18 forks source link

Remote Function Module (RFC) - Get Data from an On-Premise System Using a Custom Entity #1746

Closed gregorwolf closed 9 months ago

gregorwolf commented 9 months ago

Tutorials: https://developers.sap.com/tutorials/abap-environment-rfc-custom-entity.html

Hi @julieplummer20,

to get this tutorial working against the current ABAP Platform Trial I had to do the following adjustments:

Define a Type for bapi_epm_max_rows

    TYPES:
      BEGIN OF bapi_epm_max_rows,
        bapimaxrow TYPE bapimaxrow,
      END OF bapi_epm_max_rows.

and use it in:

          DATA ls_maxrows TYPE bapi_epm_max_rows.

which I then fill as

          ls_maxrows-bapimaxrow = lv_skip + lv_top.

The fields ProductId and CurrencyCode of the DDL Structure had to be renamed to Product_Id and Currency_Code.

Best Regards Gregor

julieplummer20 commented 9 months ago

Hi Gregor, Thanks a lot; this is really helpful. I will update the tutorial accordingly. Best wishes, Julie.

julieplummer20 commented 9 months ago

Done - changes should be visible in next 24 hours