on 03-23-2011 1:04 PM
Hi Experts,
I'm working with a JDBC Receiver and the Receiver database is expecting the ControlRecord fields as usual in each column but the rest of the message in a CLOB. Which means that they want the whole XML file, with the tags and everything in the last field which is the CLOB. How can I do this? I'm managing to put in the controlrecords correctly but don't know how to put the whole XML file into the last field (If it's even possible?).
Any suggestions?
>>I'm managing to put in the controlrecords correctly but don't know how to put the whole XML file into the last field (If it's even possible?).
Yes, it is possible. Use simple java mapping to collect your input payload and map it to a target last field element.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would use java mapping ... and since you dont have java experience. Take help from javaguy to do this..
sample java mapping link
https://wiki.sdn.sap.com/wiki/display/XI/SampleJAVAMappingcodeusingPI7.1+API
HI,
I want to "serialize" the whole XML content as one unique string stored in a CLOB db field. And I want the stored string to be surounded by the complete XML tags.
Target structure:
Param1 <value1>
Param2 <value2>
CLOB <?xml version="1.0" encoding="UTF-8" ?> <XXX> <IDOC BEGIN="1"> <EDI_DC40 SEGMENT="1"> <TABNAM>EDI_DC40</TABNAM> <MANDT>100</MANDT> <DOCNUM>0000000010297271</DOCNUM></IDOC>
</XXX>
check my blog: [SAP XI/PI: Storing BINARIES (Images, PDFs etc.) in the Database (BLOBs) Using JDBC Adapter|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/18494] [original link is broken] [original link is broken] [original link is broken];
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.