SAP Z function module - ABAP adjustments performed in SAP not shown in Invoke SAP BAPI

Hi experts,

We want to use FM: FKK_BANK_STATEMENT_F4.
Since it is not defined as Remote-Enabled Module, we created in SAP a Z copy of it called:
ZFI_FKK_BANK_STATEMENT_F4.
Now we can see it in UIPATH.

Additionally, since when the original FM is executed in SAP, the result produces the output on a NEW window, our ABAP developer made an adjustment in the new Z FM, so the result will appear in a table (in the “tables” section) instead of in a new window:
This how it looks like in SAP after the adjustment:

image

Thee question is: at the moment in the activity invoke SAP BAPI, we don’t have the adjustment performed in SAP.
Are there steps which we need to do in order to see the new table added to the Z FM?
A table which we would like to have as a DataTable in the activity Invoice SAP BAPI.
Or this kind of transfer of code adjustments done in SAP FMs cannot be transferred to Uipath?

@StefanSchnell, I read a very useful document which you wrote related to RFC, SAP FMs and BAPI’s etc. Maybe you will be able to assist.

Thanks a lot,
Adi.

1 Like

@Adi_Orlan

Hello Adi,
welcome in the UiPath Community.

The BAPI Activity works with all RFMs. :wink:
All you have to do is to type your full function module name ZFI_FKK_BANK_STATEMENT_F4 in the Invoke BAPI Activity and press enter. Here an example with the RFM RFC_READ_TABLE, this is not a BAPI:

After that I see in the parameter dialog the not optional import parameter and all tables.

image

To your questions:

  • Are there steps which we need to do in order to see the new table added to the Z FM?
    In my opinion not. After the activation of the RFM in SAP the new table is visible. All you have to do is to restart UiPath, I assume the cache of the dotNET Connector keeps the old interface, and to research the RFM in the BAPI Activity. After that the new tables are visible. I just tried this and it worked.

  • Or this kind of transfer of code adjustments done in SAP FMs cannot be transferred to UiPath?
    With its BAPI activity, UiPath is an SAP client and requests meta data from the SAP backend, which includes an interface description of the RFM. This is how these interface adjustments are transferred to UiPath.

Hope I could helped you.
Best regards
Stefan

2 Likes

Worked of course :slight_smile:
We restarted UiPath and deleted the Invoke SAP BAPI which we’ve already created for that FM BEFORE the new table was added to the FM in SAP. Then created it again and when we brought the FM this time the new table appeared.
Thanks a lot,
Adi.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.