cancel
Showing results for 
Search instead for 
Did you mean: 

each item on a new line

Former Member
0 Kudos

hello,

IDOC - File

when IDOC has multiple item lines, It has to generate multiple item lines on the file

I could achieve the same by mapping the segments of the IDOC to nodes of target structure.

now, everything is working for but the items are not appearing in a new line

i mean the item line is appended to the Header line but I need each item line to be on a seperate and NEW line.

help!!!

nikhil.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Nikhil,

Yes.I believe it will work....

Regards,

Manju.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi nikhil,

Make your Orderitm node as in same hierarchie of Header.No problem it will works but when u trying to change the hierarchie of the strucutre the existing mapping will lost.U need to do the mapping again.

Try this and let me know ur proceedings

Cheers

Veera

>>>Reward points,if it is needful.

Former Member
0 Kudos

Thanks veera and manju

hope it works coz I need to remap around 80 fields

I wil let u know once I am done with it.

Former Member
0 Kudos

Hi Nikhil,

<b>the item line is appended to the Header line</b>

Your content conversion parameters are fine.U r saying that mapping is working fine.Can you give the strucutrue of your file and test data how u r file needs to be look like. It would helps to solve the problem.

Cheers

Veera

Former Member
0 Kudos

Hello Veera,

Source:

+ZIDOC

++IDOC

+++E1KPDCC

++++field1

++++field2

++++field3

======

Receiver:

+FILE

++INV

+++Header

++++header_field1

++++header_field2

++++header_field3

++++Orderitm

+++++itm_field1

+++++itm_field2

+++++itm_field3

The "Orderitm " on the receiver is mapped to E1KPDCC of the source IDOC for multiple repetetions of the item records

Nikhil.

Former Member
0 Kudos

Nikhil,

Here is the problem.

+FILE

++INV

+++Header

++++header_field1

++++header_field2

++++header_field3

++++Orderitm

+++++itm_field1

+++++itm_field2

+++++itm_field3

You are having a nested structure.

Would it not be better to have a structure like below:

+FILE

++INV

+++Header

++++header_field1

++++header_field2

++++header_field3

+++Orderitm

++++itm_field1

++++itm_field2

++++itm_field3

Just try modifying the structure.

Let me know.

Regards,

Manju

Former Member
0 Kudos

Manju, are u sure its gonna work out?

coz when I test the MM from test tab, I could see multiple line items displayed in seperate lines.

thanks,

nikhil.

Former Member
0 Kudos

Manju,

I changed them as you instructed and its solved now

thanks

Former Member
0 Kudos

Nikhil,

Sorry.I put it wrong.I actually meant item.endSepartor = 'nl'.

But since you have this parameter,just have one more check.

Check your ContConve in change mode.The cursor should be just after endSeparator.There should be no spaces left after Separator.

Also check the font and spelling.

Regards,

Manju.

Message was edited by:

Manjusha Nair

Message was edited by:

Manjusha Nair

Former Member
0 Kudos

Nikhil,

In the content conversion at the receiver end just add the parameter item.filedSeparator = 'nl'.(If you have not put)

Let know if it works.

Regards,

Manju.

Former Member
0 Kudos

Hello Manju,

actually each item field in the item record is seperated by '|'. Thus, I placed | as field seperator and nl as end seperator

when I placed nl as field seperator its not generating the entire item fields list

Nikhil

Former Member
0 Kudos

Hi Nikhil,

It is actually

fieldSeparator |

endSeparator 'nl'

I mean did u spell the separator properly?

Or can you copy and paste the FCC you used in ur receiver adapter.

Regards,

Sumit

Former Member
0 Kudos

hi,

I have been trying placing endSeparator as 'nl' and fieldSeparator as '|' right from the begining (no spelling mistake, just crosschecked again)

dont know y its not working out.

@ manju, where do I find concave option in change mode?

nikhil.

Former Member
0 Kudos

following are the FCC param:

RecordsetStructure : HEADER,Orderitm

HEADER.fieldSeparator : |

HEADER.endSeparator : 'nl'

Orderitm.fieldSeparator: |

Orderitm.endSeparator : 'nl'

Former Member
0 Kudos

Nikhil,

You got me wrong.That was ContentConversion not concave.

I have faced problems when after typing the parameter entered space.

I mean I hope you are getting what I want to say.

Regards,

Manju.

Former Member
0 Kudos

Hi manju,

yeah i understood what you told

Please check the FCC from my prev post and let me know can I do anything else to get the desired output?

n no spaces were entered after parameters

nikhil,

Former Member
0 Kudos

Nikhil,

Can you also paste the xml structure.

Regards,

Manju.