How to Read the value of Return Data Type BapiRet2 from Invoke SAP BAPI

Hi Team,

I have make the use of Invoke SAP BAPI activity in UiPath, it is running as expected but I want to write the values present in BAPIRET2 parameter its type argument is of type “object” and it is declared as “system.collections.generic list of uipath.sap.bapi.connectionservice.sapconnectionservice.sapreturntypes.bapi.return2”
kindly help for same

Regards

Hi,

I have the same question.

Please let me know if someone have the answar.

Regards
Henrik

Hi,

I am having the same problem.
@3heha, @prasadgawade, have you solved the problem?

Regards,
Alejandro

Hi,

as I read in the documentation the tables coming from SAP should have “DataTable” type. Unfortunately this is not happening with the Structure BAPIRET2 because of field Row, and the type is System.Collections.Generic.List[UiPath.SAP.BAPI.ConnectionService.SapConnectionService.SapReturnTypes.BapiRet2].

The problem seems to be with the Data Type “INT4”, that is not allowed for “DataTable”.

I have solved the problem using a RFC Function Module Wrapper. Creating my own structure in SAP without that field and move the correspoding fields in the new structure.

Regards,
Alejandro

I am seeing the same issue but I want to avoid creating a wrapper. anyone has an alternate solution

Hi. I was able to successfully read the list of BapiRet2 objects. Do you have the imports done, to have the BAPIRet2 object recognized ? I have in this video a full check-list of prerequisites - please let me know if it works, if not, let me know if I can help further.