cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI import param as a table - example for cloud studio

janv7306
Active Participant
0 Likes
990

Dear experts!

Firstly please, can anyone share an example of BAPI call using a table as an importing parameter?

Secondly, can you please share a custom script of BAPI call with a table (as above)? Both examples should be for cloud studio.

Thank you very much.

Kind regards, JV

Accepted Solutions (0)

Answers (3)

Answers (3)

janv7306
Active Participant
0 Likes

I found a solution. Just cycling among items collection and adding one by one to the List type variable using Add Item (List) activity.

Cheers, JV

janv7306
Active Participant
0 Likes

Hello Jana,

Thank you very much for your kind answer and an example. I believe I have a very similar settings. Import_param structure is simplified for this example only:

It is filled in from an internal variable of type array. The variable name of this step is BAPIInput.

The params are passed to BAPI within BAPI SDK ver 1.26.74 as Import params successfully

While in BAPI SDK 1.30.69 it fails, and I cannot get an explanation from SAP IRPA DevOps team. I believe this is an inconsistency between core SAP and SAP IRPA BAPI SDK functionality.

Any hint about it?

Thank you very much.

Jan

Jana_dK
SAP Mentor
SAP Mentor
0 Likes

Hi Jan,

Hereby an example we're using 🙂

importDataMapped is a specific type, which corresponds to the importing fields of the BAPI. In this case we have the Item & itemx table mapped with the data needed.

The custom script is mainly mapping all the data to the needed fields and adding them to the table.

sap is the "main" variable which contains every import field / table / structure. The output of the script is the type we created for this.

Kind Regards

Jana