cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple IDOCs based on multiple fields in File to IDOC mapping

Former Member
0 Kudos

Hello Experts,

     I have a requirement to create multiple IDOCs based on multiple fields.

     Earlier my requirement is to create IDOCs based on ShipID (i.e., for every ShipID new IDOC...I achieved this).

     But now the requirement was to create IDOC based on two more fields like

Source:

    

     ShipID1

     FieldA with value1 

     FieldB with value1

Target :

     1 IDOC to create

and If

Source:

     ShipID1

     FiledA with Value2

     FiledB with Value2

     ShipID1

     FiledA with Value1

     FiledB with Value2

Target:

     2 IDOCs based on FiledA

Like wise IDOC should create for every change in FiledA and FieldB.

If FiledA and FiledB has no changes then create IDOC based on ShipID

please help me in achieving this as this is an urgent requirement.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Hi Prasad -

Just concat all the three fields - shipID1, FieldA and FieldB and

remove contexts

split by value (value changed)

collapse contexts

This way whenever there is a change in any of the above fields you'll have separate IDOC..

Former Member
0 Kudos

HI Hareesh,

Thanks for your reply,

sorry for the late reply, I am unable to gets SCN mails from yesterday onwards.

As it is an urgent requirement I have done this in similar manner as you said.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

U have one another option of using duplicateSubtree. So u can duplicate idoc node and try to create idoc for each condition.

Thanks

Amit Srivastava