‎2006 Jan 03 8:23 AM
Hi,
I have a scenario where Delivery would be created as soon as GR is complete. I need to save the GR number into a custom table as soon as it is created.
But, suppose if the output type triggering is failing, or as soon as it is triggered the control goes to delivery. So, any suggestions as to how to implement/.
I am using BDC call transaction
‎2006 Jan 03 2:19 PM
Hi,
U can make use of the Function Exit EXIT_SAPLMBMB_001 which will be fired just before saving GR. Here u can write code to save GR num into custom table. The Tables XMKPF and XMSEG contains GR data in the exit.
Ex:
In the exit u will have a include, just double click and implement the code:
IF SY-TCODE = 'MB01'.
PERFORM ZZ_UPDATE_GR_INFO.
ENDIF.
The perform contains the Z table data population and updation.
‎2006 Jan 03 2:24 PM
Hi Ananda,
I think you cannot have a BDC in a Program attached to an Output type. What you can do is save the GR number in a Z table and in another program you can read the Z Table and Do a BDc in the second program.
Regards,
Ravi