Skip to Content
avatar image
Former Member

SAP ODATA GATEWAY SERVICE

Hi experts

I want to create odata service to read individual and corporate account, for this I have created one remote enabled FM but where i used import parameter an Partner number and in export i hav created custom structure with multiple fields and again structure. But in service builder it showing error 'deep structure is not allowd' how can i resolve this error.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 12, 2014 at 09:15 AM

    Hello Faseeh,

    Your FM has 2 different output structures is it ? or 2 different output tables ?

    You can implement following ways :

    1. If your FM has only 2 different output structures then you can make use of ComplexTypes.

    2. If your FM has 2 different output tables then use Expand_Entity/Expand_Entity_Set accordingly as per your needs ( Association & Navigation i.e., $expand )

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 12, 2014 at 06:46 AM

    Hi,

    This is correct as the structure must be flat instead of nested.

    Guidelines for output parameters

    • The output parameter must be a table.The fields in the table must be flattened and mapped to the root DATA object.
    • The output table must contain the input fields.
    • Only one table can be mapped as an output table.
    • Nested tables are not allowed.

    Reference - https://help.sap.com/saphelp_gateway20sp06/helpdata/en/98/0d7b12e6db4d1581fd5fdfb05f129e/content.htm

    But there are ways you can achieve the functionality by association, navigation etc.

    Regards,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded