on 08-11-2007 6:09 PM
Hi All,
My scenario is file to IDoc.
The structure is
Header
--- Body
--- Body
Header
--- Body
--- Body
Meaning Body occurs unbounded times within Header. Moreover in the file the Header also occurs more than once.
I have given <b>Header,,Body</b> in Recordset of FCC. But when i receive the outbound payload the data comes as
Header
Body
Body
Header
Body
Body
Now how i shall i give the define the Recrodset in Content Conversion in order to get
Header
--- Body
--- Body
Header
--- Body
--- Body
Regards,
Ramesh P
Message was edited by:
Ramesh Parashivamurthy
Hi,
Recordset structure should look like that:
Header,1,Body,*
/wg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The actual problem in generating the IDoc.
File contains :
Header1
Data1
Data2
Data3
Header2
Data1
Data2
Header3
Data1
Data2
But when the IDoc generated it was
Segment1 - for header1
datasegment - for Data1 >>>>>> Data2, Data3 are missing
Segment1 - for header2
datasegment - for Data2 >>>>>> Data2
Segment1 - for header3
datasegment - for Data3 >>>>>> Data2
I have mapped Segment to 1...Unbounded of header segment
I have mapped Segment to 1as constant
if i map body 1...unbounded to datasegment i receive an error ....
Regards
Ramesh P
Hi Ramesh,
I can't think of a way to create the structure you want because if you want Body to be at a lower level than Header you should have Header at Recordset level, but I don't think you would be able to pull the other Header information in since the Recordset Structure would only have many body fields.
An example for your sample file is:
You would get
<Header>
<Body>
<F1>001010012050000000706</F1>
<F2>0181820099000</F2>
<F3>0000099000</F3>
</Body>
</Header>
But would not get information from the Header row. ie.:
0010100120070802200708021001001 9001 001146
What I would advise (if all rows in the file have the same structure) is that you pull all the rows of your file into XI using the same structure (eg. Recordset Structure = row, *) and then use a User Defined Function to get the format/information you require.
Ramesh,
Try Recordset name = Header
Recordset structure = Body,*
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
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.