‎2009 Jan 08 5:49 PM
Hi experts -
I am looking for a function module/BAPI that will close purchase orders.
Many thanks!!!
Mark
‎2009 Jan 08 5:54 PM
You can use this FM BAPI_PO_CHANGE to close PO.
Please pass 'X' to NO_MORE_GR field of the item to mark the delivery complete indicator.
~ From Forum
‎2009 Jan 08 5:58 PM
Hello Mark,
Check these FM's:
/SAPPO/MAPI_PO_ORDER_CLOSE,
W_FRM_PO_CLOSE
and
/SAPPO/BAPI_ORDER_CLOSE
Hope this helps.
Thanks,
Greetson
Edited by: Greetson Shunmugasundaram on Jan 8, 2009 7:01 PM
‎2009 Jan 08 6:33 PM
Hi
Try using these function modules
1.CO_SF_CLOSE_ORDER_TECHNICAL
2.CO_ZF_ORDER_CLOSE
3. W_FRM_PO_CLOSE,
4.Fucntion group WFR12(Close and Adjust Purchase Orders) you may get a FM to Close the PO.
5.BAPI_PO_CHANGE pass 'X' to NO_MORE_GR field of the item to mark the delivery complete indicator.
Or u can also use transaction ME22N and enter PO number (Shift+F5) and hit enter.
Hope the info was helpful..
Regards
Vasavi Kotha
‎2009 Jan 09 9:46 PM
Hi all - Thanks for the informative responses. I am not quite coding this yet, but will be soon and I will let you know what works best.
Thanks!
Mark
‎2009 Jan 10 4:43 AM
hi ,
you can go for the below process .
Close Open Postprocessing Orders
Functionality :
You can use the BAPIs /SAPPO/BAPI_ORDER_OPEN, /SAPPO/BAPI_ORDER_SET, /SAPPO/BAPI_ORDER_SAVE and /SAPPO/BAPI_ORDER_CLOSE to change postprocessing orders.
You must use the following call up sequence:
/SAPPO/BAPI_ORDER_OPEN
DO
/SAPPO/BAPI_ORDER_SET
/SAPPO/BAPI_ORDER_SAVE
BAPI_TRANSACTION_COMMIT
ENDDO
/SAPPO/BAPI_ORDER_CLOSE
After you call up /SAPPO/BAPI_PO_ORDER_OPEN, you can read the global memory of the function group using the BAPIs /SAPPO/BAPI_ORDER_GET_DETAIL and /SAPPO/BAPI_ORDER_GET_DETAILS.
The BAPI /SAPPO/BAPI_PO_ORDER_OPEN locks the postprocessing orders to be opened for postprocessing, reads them from the database, and writes them to the global memory.
The BAPI /SAPPO/BAPI_PO_ORDER_SET updates the global memory. You must specify the postprocessing orders to be changed and the new values for the changeable fields in the parameter ALLOWEDUPDATEFIELDS. Note that you must also enter the old contents for fields that cannot be changed. For more information, see the documentation for the parameter.
The BAPI /SAPPO/BAPI_PO_ORDER_SAVE persists the global memory.
The BAPI /SAPPO/BAPI_PO_ORDER_CLOSE deletes the global memory and removes the locks.
Best of luck
It will work definately .
Regards ,
Nilesh Jain
‎2009 Jan 28 9:16 PM