on 07-24-2007 6:10 PM
Hello All,
I need to create the follwoing structure using ABAP mapping
<IDocFlatFile>
<FlatFile>
<FlatFileString/>
</FlatFile>
</IDocFlatFile>
With the follwoing code
data irc type i.
data: odocument type ref to if_ixml_document.
odocument = ixmlfactory->create_document( ).
data: IDocFlatFile type ref to if_ixml_element.
IDocFlatFile = odocument->create_simple_element(
name = 'IDocFlatFile'
parent = odocument ).
data: fileString type ref to if_ixml_element.
fileString = odocument->create_simple_element(
name = 'FlatFileString'
value = t_result
parent = IDocFlatFile ).
I am able to generate the
<IDocFlatFile>
<FlatFileString/>
</IDocFlatFile>
But I want to add one more level (<FlatFile>
) in the structure. Can any one help me in doing the same.
Nanda,
I think you are tyring to convert IDOC into IDOC Flat file. If yes then please check this document:
Also you can send the IDoc to a flat file, creating a type file port. If you send the IDoc in this way, you have the complete idoc in the flat file. If you want like this please see this thread (Kanth solution):
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.