cancel
Showing results for 
Search instead for 
Did you mean: 

Create and update operations for nested objects.

avishek_gorai2
Participant
0 Kudos

Dear Experts,

Plesae share your ideas and best practices for mapping the create and update operation for nested objects in Gateway, especially when using Service Builder tool (SEGW) approach. I could not find a clear direction on how to map the Create and update operation for nested objects.

As you must be aware SAP RFCs or APIs will not accept part of the data to create an Object (sometimes this is true for Updates also) in such cases how do we map the primary entity and related entities together (header and line items for example). I went through the guide suggesting using the create_deep_entity method, but this used a code based approach where as SEGW uses autogenerated classes.

In another discussion Jibin recomended using batch request, but am not clear on the approach. Hence starting this thread to get sugessions to guides, inputs or constructive discussion on this topic.

Waiting for your inputs and advise...

Thanks,

Avishek.

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

Hi Avishek,

Even with segw, you need to go with a code based approach for creating parent and children. (That is implement the create deep entity method in the *EXT class).

As Jibin pointed out, there is no deep update available.

Thanks

Krishna

Answers (2)

Answers (2)

avishek_gorai2
Participant
0 Kudos

Thanks Jibin and Krishna for your inputs, we just implemented the create deep entity method manually and it worked fine. However not sure if the absense of update deep entity will cause any problems in the context of SAP RFC/BAPIs.

Anyways Create deep entity in the DPC EXT class for creating complex objects is working fine and solved a lot of our problems. Batch as I understood is another useful operation with multiple use cases for both read and write operations in bulk (and for me explore another day).

Thanks a lot for your help,

Avishek.

jibin_joy
Contributor
0 Kudos

Hi Avishek,

  Sorry for late post ref this post

http://scn.sap.com/thread/3169354

Regards,

Jibin Joy