Skip to Content
avatar image
Former Member

Create Deep Entity Results not consistent

I have some strange behaviour with the deep insert. I have implemented it 2 times.

- a parent with one child (e.g. SalesOrderHeader with SalesOrderItems).

- a parent with two children (e.g. SalesOrderHeader with SalesOrderItems and Partners)

The used user defined entities, but the above examples are just to make it clear.

When I POST the first one, I get both the SalesOrderHeader with the SalesOrderItems returned.

When I POST the second one, I get only the SalesOrderHeader returned. I am sure that I pass the data to the output parameter "ER_DEEP_ENTITY"

If I pass for the second one only the SalesOrderItems, I get all data returned.

I need the output, because it contains the keyfields of the data created.

Am I doing something wrong? Is this a problem of SAP?

Regards, Paul Lauwers.

Application Engineer at IFF.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 22, 2015 at 07:51 AM

    Paul,

    Most probably the problem is with the type declaration of source structure of ER_DEEP_ENTITY. It has to be with navigation property names.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 22, 2015 at 07:43 AM

    Could you, please, post the structure, that you has defined for passing to ER_DEEP_ENTITY.
    I suppose that cardinality from SalesOrderHeader to both, SalesOrderItems and Partners, is set to something like 1:M or 1: N.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Excuse me, Paul, but "Both the request and the response contain the proper data" and "When I add the partners they are gone again" somehow do not correspond one to another. With such a little amount of details it is not so easy to help you.

      If you add Partners into the POST and do not see them in the request within CREATE_DEEP_ENTITY method, something could be wrong with the POST. Please, share both POST request examples.

  • avatar image
    Former Member
    Oct 22, 2015 at 07:51 AM

    Hello Paul,

    Firstly its not the problem with SAP Gateway. We should get all the details as output as part of Create Deep Entity response..

    Can you share the GW Model of your service ? Associations and Navigation ?

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2015 at 06:08 AM

    I now tested with another deep insert ('FmCase'). This has up to 6 Navigation Properties as a child. Most of the time only one is filled. For instance when I pass 'OtherLocations' in the payload only, I see the 'OtherLocations' also in the results. When I pass 'WorkListItems' only, I see the 'WorkListItems' in the results. When I pass both 'OtherLocations'  and 'WorkListItems', I only get the header part 'FmCase'.


    Slide2.JPG (59.5 kB)
    Slide1.JPG (74.1 kB)
    Add comment
    10|10000 characters needed characters exceeded