cancel
Showing results for 
Search instead for 
Did you mean: 

How do I handle create entity method on Odata in the following scenario

former_member545674
Discoverer
0 Kudos

I have a standard bapi BAPI_GOODSMVT_CREATE which has 4 structure types in import and 3 structure types in export along with a structure type in the Tables. When I execute the BAPI I get the result in the Tables. How do I proceed with the Odata.

Accepted Solutions (0)

Answers (1)

Answers (1)

Joseph_BERTHE
Active Contributor

Hello,

You should think of Create Deep entity. It will be not possible to map directly your BAPI to your entitySet.

In your OData model you have to create an entity set for each input table, then create a master entity set which will connect all your entity by association.

To finish, your create query will be handle by the master entity set by the methode create deep entity. In that method, you will be able to code the BAPI.

Regards,

Joseph

former_member185414
Active Contributor
0 Kudos

Concisely explained by Joseph..@Parnaksh - After trying above suggestion please point specific issues if you face any.