2015 Nov 10 6:01 AM
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.
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.
2015 Nov 10 9: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
2015 Nov 10 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
2015 Nov 20 12:59 PM
Hi Roy,
Thanks for reply,
How to capture the things in badi method so that it triggers only when my output is processed?
It should update PO only when i process the particular output type and output is succesfully processed.