Skip to main content
Known Participant
April 29, 2021
Question

how to extract the integration result response

  • April 29, 2021
  • 5 replies
  • 4 views

Hi there, I have an integration, the returned result is as above.

How do I extract the information for "MATERIALDOCUMENT"? in the "data" tag of integration in my process model, I add a custom output  as "AC!Result.body.BAPI_GOODSMVT_CREATE.Response.MATERIALDOCUMENT", save to a process variable. but nothing is saved in this process variable. anyone can help on this?

Thanks.

 

5 replies

New Participant
April 30, 2021

result.body gives you the body as dictionary. 

You can do an index or just direct mapping.

In this example it will give you the dictionary: BAPI_GOODSMVT_CREATE_Response.
From there you can index or map to lower values.

stefanhelzle0001
Brainy
April 30, 2021

I think the issue here is that there is a dot in one of the field names.

AC!Result.body.BAPI_GOODSMVT_CREATE.Response.MATERIALDOCUMENT

Try this

AC!Result.body.'BAPI_GOODSMVT_CREATE.Response'.MATERIALDOCUMENT

linp0001Author
Known Participant
April 30, 2021

it's working, thank you very much.