cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver File content conversion

Former Member
0 Kudos

Dear Experts,

I developed a IDoc to FCC scenario, and our requirement is to produce a file with below

Header data.........

Master data.........

Item data............

Master data.........

Item data............

But after developing the mapping the output I am getting is

Header data.........

Master data.........

Master data.........

Item data............

Item data............

The problem here is that Master and Item data should come alternatively- as they are derived per line item.

Please guide to solve the above issue.

Many thanks,

MK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi MK,

Master Data and Item Data are clubbed together at the receiver side when they occur more than once.

In order to achieve what you want using message mapping just create a dummy node which occers 0.. unbounded and let master data and item data be the child node of this dummy node.

You can neglect this dummy node in Receiver file content conversion, the output will be as per your requirement.

Regards,

Gautam Purohit

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

Thanks Gautham,

I followed your approach, but still the mapping output is NOT correct

Output with two line items:
Header
Data
      Master
      Master
      Item
      Item

I have mapped the item node E1EDL24 to Data, Master and Item(with occurence 0..unbounded).

And if I make Master and Item ocuurence to 0..1 - the output is like below

Header
Data
      Master
        Item

output should look as below, right?

Header
Data
      Master
        Item

Data
      Master
        Item

Please suggest further to resolve the issue.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Te below mentioned sequence can be achieved by re-arranging target structure. Let us know the target structure, so we may suggest the solution on this.

preferrably structure sequence should be ,

Header -- 0..1

Master -- 0...n

-


> Detail/item -


0..n

Make detail/item as substructure of master...:-))

Thanks

Swarup

Former Member
0 Kudos

Thanks Swarup,

The receiver structure required is below(fixed length format)

eg:
H123456789
M123456789
D123456789
M987654321
D987654321

If we create Item data node as substructure of Master node, then what we need mention in the Recordset structure

Currently I mentioned as below

Header,Master,Item

Please suggest further to resolve the issue.

Former Member
0 Kudos

.

Former Member
0 Kudos

Dear experts,

I am closing this thread due to same reply posted multiple times.

Please reply to my next thread.

Thanks,

MK