cancel
Showing results for 
Search instead for 
Did you mean: 

POST ODATA Return Table using SEGW

arnold_botha
Explorer
0 Kudos

I have a requirement to use a POST request with a body but then return a table.

Example in the body I need to send just the key fields in JSON format

{

KEY1:"1234",

KEY2:"4567"

}

But then on the return I need to return structure with nested table for example KEY1 and KEY2 is the structure but with nested table BAPIRET2.

KEY1

KEY2

----BAPIRET2

----BAPIRET2

----BAPIRET2

----etc.

Accepted Solutions (1)

Accepted Solutions (1)

former_member467951
Participant
0 Kudos

Multiple steps:

1)For the Return fields, you need to create a separate Entity, say "Results".

2)Make an association with the entity what you want to post to "Results" entity.

3) Implement the entity create logic in the "CREATE_DEEP_ENTITY" method of your DPC_EXT class.

4) Create an internal table with what results you want to return

5) Create a dynamic reference to this table and pass to Export parm "ER_DEEP_ENTITY"

Answers (0)