Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Receiver Function Modul

Former Member
0 Likes
576

Hi,

My Requirement:

I create a material document for a PO using transaction MIGO and the requirement is to create an Inbound Delivery automatically(VL31N). So an output type is associated to MIGO and whenever a new material document is created the output type gets triggered and i would like to create an inbound delivery now.

Catch: - i cannot use Call transaction as all this happens in Update task and i cannot use FM GN_DELIVERY_CREATE as the putaway filed (picked quanitiy) is not getting populated.

So i thought of calling an event and calling transaction VL31N in the event receiver FM. I have copied the object BUS2015 into ZBUS2015 and created a event. I have linked the event in transaction SWE2 and in the receiver FM i have created a Z FM. I am triggering this event in the routine associated with output type using SAP_WAPI_CREATE_EVENT.

In this z FM i am calling transactions VL31N.

When i try to simulate the event with transaction SWEC i am able to create the inbound delivery document and even i can see the event triggered in event trace SWEL.

However the same is not working when working thru MIGO.

Could anybody help me and let me know where the things are going wrong.

Sorry for such a big description. Hope i have not confused u guys.

Cheers!!

Anand

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
512

first of all search the workflow forum, because this could have answered your question.

You have to activate the event trace (SWEL) to see if the event is triggered and also with what ey etc.

Also you can include an endless loop in the receiver function module and debug the process with sm50 to check if the FM has all the info it needs to function.

regards, Rob.

2 REPLIES 2
Read only

Former Member
0 Likes
513

first of all search the workflow forum, because this could have answered your question.

You have to activate the event trace (SWEL) to see if the event is triggered and also with what ey etc.

Also you can include an endless loop in the receiver function module and debug the process with sm50 to check if the FM has all the info it needs to function.

regards, Rob.

Read only

0 Likes
512

Thanks Rob.