cancel
Showing results for 
Search instead for 
Did you mean: 

sending an idoc to 1 the of the 2 idocs in the receiver side based on field

Former Member
0 Kudos

Hi,

Am having 1 idoc in sender side SHPMNT05 and 2 idocs in receiver side DELVRY05 and VEHCLE01.

My requirement is to send data to DELVRY05 only when one field in SHPMNT05 is having space in it

and to VEHCLE01 only if having Vehicle no in that particular field.

And to populate DELVRY05,

Need to call a FM with Delivery no and del item details.

Function module has to determine based on the FS scenarios, whether to change the delivery, split the delivery (Create new delivery) based on the reason code.

Take the return values from RFC function module and populate DELVRY05 idoc.

Using conditional operator on that particular field we can map it to root nodes of the idocs and do mapping, i think.

But How can i call a func module for populatng del05.

Help me firends.

Thanks,

Ravi.

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

You may perform RFC lookup in your mapping to call the function module. Make sure that your function module is remote enabled.

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1...

Regards,

Prateek