on 06-28-2007 9:39 AM
hi,
My task is to convert a input flat file into xml format which is to be posted to an IDOC.Can anyone give me a detailed explain of the various steps involved.As im a fresher to this.Please give the steps in detail.
Thanks in advance,
Srinadh
Hi Bhargav
to convert flat file to XML u should perform content conversion in the sender file adaptor .For content conversion go thru the blog
"Content Conversion in Input File" by Shabarish
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
Have a look at this document.
It speaks in detail about Java Mapping,XSLT and ABAP mappings.
Regards
Santhosh
*If found useful reward points*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi bhargav...
When you use file content conversion at the sender side, your flat file will get converted to an xml file when it reaches XI. At XI level, you need to create a data type, message type of the desired xml file structure you are expecting to achieve after you convert your flat file to xml.
Now here on you can use graphical mapping to map the input fields to the idoc nodes...
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi;
Check this out
Any flat file to any IDoc
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
Mudit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Mehra,
As iam totally new to java mapping need a few clarifications on the following steps.
1.First i need to create a scenario where the using file content convesion i need to transfrom the input flat file to Xml without using any java mapping.
2.Secondly, i need to used this XML generated from the previous scenario and use it as input to the second scenario where the output is IDOC and the conversion is done using java mapping.
Please correct me if m wrong
Thanks and Regards,
Bhargav Srinadh.G
Hi;
This seems to be a file to IDoc scenario.
Yes first you will use file content conversion to convert your flat file to XML (This is feature of file adapter)
Next you will map this xml structure to your IDoc structure.
This can be done using graphical mapping as well.
If you want to use java mapping for that create a mapping programme and import it to your namespace.
Mudit
Award points if it helps
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.