cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build Process Automation - How to work with BAPI Return parameter?

toninhoal
Explorer

Hello, after many attempts and researches, I am reaching out to this group. I am struggling to work with the BAPI Return parameter. I want to handle the messages returned. For example I want to get the account document created and use in a subsequent transaction. I know it returns in a JSON format, anyone can help me with that? How can I get a specific parameter content here and move to a variable?

Thank you!

View Entire Topic
sarathc
Explorer
0 Kudos

Hello Archana and Antonio,

Can you please help me with the steps?

As mentioned, I created a variable but I'm not able to assign this to collect the value of the return.

I'm want to capture selected fields from the BAPIResponse and pass it to a Form for approval.

Steps I performed:

1) BAPI Action group set the BAPI Output parameter

2) Added the Action group in the Automation

3) Output parameters are mapped by default to "BAPIResponse"

4) Created an Output Parameter for the Automation

5) Added Activity "Set Variable Value" - In this I'm not able to map the Bapi response to the Automation Output variable created

Also,

By directly setting BAPIResponse in Set Variable, I'm not able to map the variable in the subsequent form. The values are disabled.

Can you please correct me where I have gone wrong?

Kind regards,

Sarath