cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help

Former Member
0 Kudos

Hi all,

Please help me in resolving following mapping problem:

I need to post a file to BOMMAT03 IDOC. File structure is parent material # with corresponding child material #s. Again parent with children. Can you help me achieving this in mapping.

Thanks all in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I hope , similar kind of parent , child relation i handled..

Solution is mailtain UDF(User defined function).. get the all values into Queue and take two loops and check ..

run first loop

for(int i=0;i<length<child;i++){

if child<i>.eqals(Some value ) then mantain the second loop to get the parent node value and assigned..

}

I hope you got it clear..

If i have the structure then the above will be bit of clear...

Regards

Chilla..

<i>Points rewarded if it is usefull..</i>

former_member214364
Active Contributor
0 Kudos

Hi,

To create multiple IDOCs based on Parent material # and Child pair do the following(no need to use BPM for this)

1.change Imported IDOC(from r/3 system) occurrences to 0...Unbounded or 1...Unbounded and import modified XSD as external definition

2.use modified IDOC in message mapping

map parent material# node to /BOMMAT03/IDOC node

(This mapping creates number of IDOCs basesed on Parent material#s)

3.normal mapping for rest of the IDOC segments

if you need furthur details please let me know.

cheers,

Jag

former_member214364
Active Contributor
0 Kudos

Hi,

you want to create single IDOC for one file data or multiple IDOCs based on number of parent and child blocks in flat file?

Cheers,

Jag

Former Member
0 Kudos

Thank you all for prompt replies...

One IDOC per parent and related childs block.

Regards,

Rama

Former Member
0 Kudos

Hi ram,

If IDOC can not handle mapping material then you can split it using BPM. There is also workaround where you can use it without BPM also.

If It can handle multiple record then map the segment with each material. For that you have to duplicate the the segment on reciever side.

hpe this will help

Tanx & Regards

Vinod