‎2008 Feb 04 5:05 PM
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
‎2008 Feb 06 4:42 PM
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.
‎2008 Feb 06 4:42 PM
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.
‎2008 Feb 06 5:17 PM