cancel
Showing results for 
Search instead for 
Did you mean: 

to remove nr1 in the payload

Former Member
0 Kudos

My scenario is that to call the webservice directly from the R/3 and post the data to the third party system (no XI is involved)

From the R/3 program the target payload is as below.

- <nr1:pProduct>

- <nr1:ProductDataArray>

- <nr1:ProductData>

<nr1:Signature>TEST</nr1:Signature>

<nr1:UpcEanCode>96018120007</nr1:UpcEanCode>

<nr1:DimCode>0119</nr1:DimCode>

<nr1:PimCode>PB608405</nr1:PimCode>

<nr1:SizeShade />

<nr1:CoordGroup01 />

<nr1:LaunchDate>0001-01-01</nr1:LaunchDate>

<nr1:Saleable>Y</nr1:Saleable>

<nr1:ProductTypeID>YFG</nr1:ProductTypeID>

<nr1:ProductTypeDesc>FINISHED GOODS</nr1:ProductTypeDesc>

<nr1:RoyaltyType />

<nr1:ItemStatus>A</nr1:ItemStatus>

<nr1:DiscDate>0001-01-01</nr1:DiscDate>

<nr1:Description />

<nr1:PrimaryCasePack>3</nr1:PrimaryCasePack>

<nr1:PrimaryVendorID>L001</nr1:PrimaryVendorID>

<nr1:ProductID>000000000000115600</nr1:ProductID>

<nr1:HierarchyCode>0119</nr1:HierarchyCode>

<nr1:VendorCost>1.9399999999999999E0</nr1:VendorCost>

<nr1:OrigRetail>1.2E1</nr1:OrigRetail>

<nr1:HazMat>E</nr1:HazMat>

</nr1:ProductData>

here my problem is that the "nr1" in the element must be removed from the payload

before we make the call to the webservice

How can we do this? we must do it by transformations?

Pls help me how can i do this....

Regards

Srinivas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Solved the issue

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Java mapping is also possible. You have to import it as a jar file and call that jar file in interface mapping.

Hope this helps,

Former Member
0 Kudos

I am not aware of an ABAP Class that can remove NS when you pass the XML Object. (You can explore this option).

But alternatively, you can create a ABAP DOM Object for the XML & then remove the namespace by using the methods remove_attribute_node_ns/ remove_attribute_ns

http://help.sap.com/saphelp_nwpi71/helpdata/en/bb/576670dca511d4990b00508b6b8b11/frameset.htm

Regards,

Siva Maranani

Former Member
0 Kudos

Hi,

you can also use a XSLT in you mapping to remove it.

Kai