cancel
Showing results for 
Search instead for 
Did you mean: 

Send multiple IDOC inside a BPM

AntonioSanz
Active Participant
0 Kudos

Hi experts,

     I've got this issue and I have no idea how to design it.

     I've got a BPM. It recives an IDOC (in abstract interface). Based on a value of the IDOC I have to apply a mapping (mapping1) or another mapping(mapping 2). My second mapping is a bit special, because it generates n IDOCs based on the original. I have defined a message mapping

1 to n . I have tested it and works fine.

     So my idea is to add the transformation step from IDOC to IDOC (multiline). Then a Block with ForEach, but I need to inform the CurrentLine element. I have tried to add it, but I cant find a CurrentLine element. Where I can add it?

     Anyone has another different approach to my problem?

Accepted Solutions (1)

Accepted Solutions (1)

former_member201264
Active Contributor
0 Kudos

Hi Sanz,

You can do this for yur CurrentLine in BPM as below see in this:
Here you can get good idea how to use with CurrentLine.

http://www.riyaz.net/sap/xipi-1n-multi-mapping-using-bpm/186/

Regards,

Sreeni.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Antonio,

For this first declare the 'CurrentLine' as a Container variable. Select the catagory as Abstract type, Type as IDOC Abstract message type & select the scope as the name of you inner block which has mode 'ForEach'. Don't check the multiline check box.

Once you declared the CurrentLine with local socpe of type inner block, then you would be able to see the currentline element in the transformation step.

Hope this would help you.

Regards,

Ashish