Application Development and Automation 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: 
Read only

How to close an open PO

Former Member
0 Likes
4,851

Hi,

I have a requistion and based on this requistion i have created a PO.

But for some reason i couldn't receive goods receipts so i couldn't issue the goods.

so the PO is still open. Now i want to close this PO.

Please let me know the transaction and procedure to close the open PO.

Deepthi

7 REPLIES 7
Read only

former_member181966
Active Contributor
0 Likes
1,678

Hi

FMs

CO_SF_CLOSE_ORDER_TECHNICAL

CO_ZF_ORDER_CLOSE

and links

http://help.sap.com/saphelp_erp2005/helpdata/en/31/fcbd3711d411d3b6b60000e8359890/content.htm

Hope this’ll give you idea!!

<b>P.S award the points.</b>

Good luck

Thanks

Saquib Khan

"Some are wise and some are otherwise"

Read only

Former Member
0 Likes
1,678

Hi,

look at the Function module <b>W_FRM_PO_CLOSE</b>,

look at the Fucntion group <b>WFR12</b>(Close and Adjust Purchase Orders) you may get a FM to Close the PO.

Thanks

Sudheer

Read only

ferry_lianto
Active Contributor
0 Likes
1,678

Hi Deepthi,

You can use this FM <b>BAPI_PO_CHANGE</b> to close PO.

Please pass 'X' to NO_MORE_GR field of the item to mark the delivery complete indicator.

For sample code, please check this link.

http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
1,678

Hi ,

I want to close it manually I.E GOING TO SOME STANDARD T CODE. I want to just do it for verification of my code . i would like to close manually the open PO.

Deepthi

Read only

0 Likes
1,678

FYI




Closing a Production Order

Use

The Closed (CLSD) status has been introduced in the production order. It has the following characteristics:

No more costs can be posted to the order, that is, confirmations and goods movements are no longer permitted for the order.

The order can no longer be changed. Exceptions to this are revoking the CLSD status and setting the deletion flag.

All actions relating to the status technically completed (TECO) are executed.

In a collective order, the CLSD status is also set for subordinate orders.

If the system comes across an order in the collective order that cannot be closed, the orders that come between this order and the leading order are also not closed. Other subtrees are closed if they only contain orders that can be closed.

Prerequisites

Prerequisites for setting the CLSD status are:

The order must have the status Released (REL) or Technically completed (TECO)

The order balance must be 0

There can be no open purchase requisitions, purchase orders or commitments

There can be no future change records from confirmation processes

Activities

The Closed (CLSD) status is only set automatically for subordinate orders in a collective order. To set the status, you have the following options:

In the production order, choose Functions ® Restrict processing ® Close

Function in mass processing

Pl..award the points

Thanks

Saquib

Read only

ferry_lianto
Active Contributor
1,678

Hi Deepthi,

You can go to transaction <b>ME22N</b> and enter PO number (Shift+F5) and hit enter.

Then you select the item (item level) and go to delivery tab. In this tab, please check delivery completed box and hit save button.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,678

Check these links.

Basically, you either mark the PO line items for deletion or set the delivery complete indicator to 'X'. You can use BAPI_PO_CHANGE to do this.