Skip to Content
avatar image
Former Member

Remove root JSON Tag in Receiver Rest Adapter in SAP PO 7.5

Hi Experts,

I have a requirement where I need to remove root tag from JSON in receiver REST Adapter. After using Strip Outer Element my JSON looks like:

{ "ET_TAB": [ { "DM_AREA": "E69204", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "MG ROAD", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " }, { "DM_AREA": "9ZP042", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "KANCHILI", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " }, { "DM_AREA": "6UA070", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "BAGDOGRA", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " } ] }

But target system is accepting it like:

[ { "DM_AREA": "E69204", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "MG ROAD", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " }, { "DM_AREA": "9ZP042", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "KANCHILI", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " }, { "DM_AREA": "6UA070", "EFF_FRMDT": "2017-02-22", "DM_AREA_DESC": "BAGDOGRA", "EFF_TODT": "9999-12-31", "CREATEDBY": "23320", "CTIMESTAMP": "20170222091740 ", "MODIFYBY": "23320", "MTIMESTAMP": "20170222091740 " } ]

How can we achieve this.

Thanks,

Akhil

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 08, 2017 at 01:22 PM

    Hi Everyone,

    I have achieved this functionality using module parameter "setIgnoredElements".

    Refer Note :2465948.

    Thanks,

    Akhil

    Add comment
    10|10000 characters needed characters exceeded