Skip to Content
author's profile photo Former Member
Former Member

Output determination through BAPI_PO_CHANGE

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 13, 2011 at 11:46 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.