on 11-27-2006 11:42 PM
Hi,
I have an integration scenario that an XML string is stored in one field of an XML structure, e.g.
<root>
<Date>2006-01-01</Date>
<XMLString>.....XML message.....</XMLString>
</root>
How can I put the content of the <XMLString> tab into payload?
Regards,
Larry
Hi Larry,
Is it possible to just use the complete XML and ignoring the non-relevent XML elements, e.g. <Date>? Maybe you can send an example.
I am not sure what you mean.
Regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
The scenario is SAP SRM making an RFC call to XI; one of the import parameters in RFC is a XML string. XI needs to extract this XML string and map to RFC export parameters of RFC and send back the response to SAP SRM.
SAP SRC<-RFC->XI
The original scenario is using SAPBC but now we need to replace BC by XI.
Regards,
Larry
Hi Bill,
Below is the sample RFC-XML request message. In which the tag <IV_XML_DOCUMENT> is the RFC export parameter and contains a XML document. The question is how I can map the data in this XML string into other XML document (import parameter of the RFC response)? I found I cannot map the content of this XML string because it is not defined in any data type, message type or RFC metadata.
Best regards,
Larry
<?xml version="1.0" encoding="UTF-8"?>
<rfc:MAP_XML_TO_ITABS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<IV_XML_DOCUMENT><?xml version="1.0"?> <BusinessDocument><Catalog><CatalogID></CatalogID><Product ProductType="Good"><CatalogKey>85200</CatalogKey><ParentCategoryID>85200</ParentCategoryID><Description Language="EN">W0018028:Zip 250MB Disk</Description><ShoppingBasketItem RefVendorDescription="0" RefManufacturerDescription="1"><Quantity UoM="PCE">4</Quantity><NetPrice><Price Currency="HKD">124.9</Price><PriceUnit>1</PriceUnit></NetPrice><LeadTime>1</LeadTime><ItemText Language="EN">Computer Supplies</ItemText></ShoppingBasketItem><VendorDescription ID="0"><PartnerProductID Code="Other">0018028</PartnerProductID><PartnerID></PartnerID><BuyerContract><ContractID></ContractID><ContractItemID></ContractItemID></BuyerContract></VendorDescription></Product><Product ProductType="Good"><CatalogKey>85200</CatalogKey><ParentCategoryID>85200</ParentCategoryID><Description Language="EN">W0018034:Zip 100MB Disk</Description><ShoppingBasketItem RefVendorDescription="0" RefManufacturerDescription="1"><Quantity UoM="PCE">5</Quantity><NetPrice><Price Currency="HKD">83.6</Price><PriceUnit>1</PriceUnit></NetPrice><LeadTime>1</LeadTime><ItemText Language="EN">Computer Supplies</ItemText></ShoppingBasketItem><VendorDescription ID="0"><PartnerProductID Code="Other">0018034</PartnerProductID><PartnerID></PartnerID><BuyerContract><ContractID></ContractID><ContractItemID></ContractItemID></BuyerContract></VendorDescription></Product></Catalog></BusinessDocument></IV_XML_DOCUMENT>
<XML_TYPE>ESAPO</XML_TYPE>
<LONGTEXT>
</LONGTEXT>
<NEW_BASKET>
</NEW_BASKET>
<XML_TABLE>
<item>
</item>
</XML_TABLE>
</rfc:MAP_XML_TO_ITABS>
Hi Larry,
There are 2 ways you can do this.
1. adapter user-module.
http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/frameset.htm
or
2. java mapping.
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
Both of these programs can extract the content of <IV_XML_DOCUMENT>. In addition, convert "<" to "<" and "?>" to ">". The resulting XML document will contain what you wanted.
Regards,
Bill
u got to parse the XML to get the that XML String.. u can parse the XML and get the particular element and element value..
u can use either Java code or XSLT for that..
thanks-GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.