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

reg : output triggering

Former Member
0 Likes
1,009

Hi All,

I am using WS_DELIVERY_UPDATE for Goods Issue of a delivery and the PGI is successful.

Transaction 'VL02N' is triggering some custom output types defined in 'NACE' transaction at the time of PGI.

Whereas my program calling 'WS_DELIVERY_UPDATE' for PGI

could not trigger those output types while PGIing.

I want to know if there is any parameter that need to be explicitly passed to function module to trigger output types as done by 'VL02N'. if not , is there any alternative for this?

Requesting reply. This is urgent.

Thanks in advance for your help.

Regards

Jawahar

3 REPLIES 3
Read only

Former Member
0 Likes
642

For PGI, it is better to do a simple BDC. All you have to do is write BDC for the initial screen of VL02N and the okcode for PGI. PGI is a very complicated process internally and so there is no single function module available for it. If you see the code when PGI happens, you might find a call to WS_DELIVERY_UPDATE and lot of processing prior to calling it and lot of processing after calling it.

So simply change it to a BDC even though BDC is not the best way to do transaction updates, but in this case, it is the best solution.

Read only

Former Member
0 Likes
642

I agree with Srinivas. And more over there is a note on WS_DELIVERY_UPDATE that is subject to changes and SAP does not recommend it usage at this point of time.

However, writing VL02n might be little tricky as its a enjoy transaction. So, try writing the same on VL02.

Regards,

Ravi

Read only

Former Member
0 Likes
642

Try the bapi: BAPI_OUTB_DELIVERY_CHANGE

Regards,

Ravi