on 10-15-2012 2:25 PM
Hello
I am working on converting XML file to CSV file. I do not have a KEY FIELD NAME that is common at both Header and Detail level. I do not see any messages in SXMB_MONI.
Adapter Log:
| Channel CC_MODELN_REBATE_REQUEST_SENDER: Converted complete file content to XML format. | |||
2012-10-15 08:24:03 | Warning | Channel CC_MODELN_REBATE_REQUEST_SENDER: Empty document found - proceed without sending message. |
Please let me know if anybody had this issue before.
Incoming XL File:
</PAYMENT>
</PAYMENT>
</PAYMENTPACKAGE>
</Entries>
Thanks
Naga
Hi Naga,
Are you trying to go from XML to CSV as in a File to File scenario?
I see above you have adapters which look like File Senders. This makes sense if you don't see anything in SXMB_MONI because according to the error message the adapter is not reading your source XML correctly. File Content Conversion is expecting a flat file on input.
If you agree that is the case then you really need an XML File sender which doesn't need FCC, and then for output a File Receiver channel which does use FCC.
Maybe import or create a PI data type which matches your input XML schema and then you should get something in SXMB_MONI. Then you can work on your CSV output.
Sorry if I misunderstood your problem!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I am seeing message in SXMB_MONI. There is an issue with the Inbound message, it is supposed to have the following two lines as the first two lines. Because these lines are missing I do not see anything in the payload under Request Message Mapping.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_REBATE_REQUEST_IN xmlns:ns0="urn:cslbehring:modeln:rebate:request">
Hi Naga,
It sounds like your data type is not matching your input file's XML. Glancing at your sample XML file above it may not be well-formed XML (e.g. no XML declaration as first line).
There are methods to handle that by adjusting your PI data type, handling namespace and top level XML matching through module, XSLT mapping, or probably other approaches too.
Here is an end-to-end example for working with XML and the file adapter.
Here is an example of how to use XSLT mapping to get XML data into the right form before your normal mapping.
http://scn.sap.com/message/6897166#6897166
Once your input looks fine in moni, you can find many good examples of CSV output with the File Receiver adapter. Please remember to reward points for helpful answers, and good luck!
-Aaron
Aaron
FILE to FILE scenario is designed according to the link you mentioned. When I add the two lines
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_REBATE_REQUEST_IN xmlns:ns0="urn:cslbehring:modeln:rebate:request">
at the beginning of the message, it works fine. So I think it is not the issue with the data type.
In the second like i understand that XSLT mapping has to be executed to add the namespace line before executing Graphical mapping. Please let me know how to do this.
Thanks
Naga
Hi,
Can you please provide the FCC parameters what you configured. It will be useful to understand the issue.
Thanks,
Satish Kumar P.
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.