Application Development 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: 

Output Type

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

former_member181962
Active Contributor
0 Kudos

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