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 determination through BAPI_PO_CHANGE

Former Member
0 Kudos

Hello,

I'm using BAPI_PO_CHANGE to update the pricing of the purchase order with CALCTYP = 'B' (Carry out new pricing). The requirement is to update the pricing in the PO and trigger the output type (message type) from the PO but if there is no change in pricing output should not be triggered.

Currently, even if there is no change in pricing output is triggered through the BAPI, even if the change log is not updated in the PO. Kindly let me know how to control output determination of pricing is not changed in Purchase order through BAPI_PO_CHANGE.

Thanks.

Best Regards,

Veera

1 REPLY 1

Former Member
0 Kudos

Hello,

In this case, what you can do is, develop an Output requirement Routine in VOFM transaction code where you can check & compare the values. If there is a change, then set the SY-SUBRC to 0 which will trigger the Output type and if there is no change, then set the SY-SUBRC to 4 which will stop the Output type being triggered. This VOFM output requirement routine has to be assigned to the output type in the configuration.

Regards,

Venkata Phani Prasad K