Skip to Content
0

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

Jul 28, 2017 at 08:47 AM

249

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

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

Hi Everyone,

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

Refer Note :2465948.

Thanks,

Akhil

Share
10 |10000 characters needed characters left characters exceeded