Skip to Content

Ouput program issue updating PO using BAPI_PO_CHANGE

I have developed an output program , Inside the program im using BAPI_PO_CHANGE to update Your reference(IHREZ) field. Issue is the output will be processed only when PO is in change mode. So BAPI is not working as the some PO is being changed. How to handle this.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 10, 2015 at 10:17 AM

    May I know what is reason you are trying to update the same PO in the output program? No wonder you are having trouble.

    You should use BADI ME_PROCESS_PO_CUST METHOD PROCESS_HEADER to change the IHREZ value and let the Output Program to issue output nothing else.

    R

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2015 at 09:58 AM

    Good day DJ,

    May I suggest you lock the PO to your session, if the PO is locked you wait until is unlocked to proceed further.

    FM - ENQUEUE_EMEKKOE

    if you managed to lock it to you session, call BAPI_PO_CHANGE then unlock it when you done.

    FM - DEQUEUE_EMEKKOE

    Thanks.

    Regards,

    Tumelo Modise

    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.