cancel
Showing results for 
Search instead for 
Did you mean: 

Blocking the filling of a cost center in the creation of a Purchase Order

Former Member
0 Kudos

Hi All,

I've some cost center which are obsolete and mustn't be used in the creation of a Purchase Requisition (or Purchase Order).

Could anyone suggest me how to do it?

Thanks a lot

G.

Edited by: Jeyakanthan A on Jun 2, 2011 1:28 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member187989
Active Contributor
0 Kudos

You can do validation on GR posting to block cost centre.

Refer note 842318.

Former Member
0 Kudos

Hi Jeyakanthan,

I need a solution wich block the insertion of a certain cost center creating a purchase order. Not in creating the good receipt.

What about it?

Thanks

G.

Former Member
0 Kudos

Hi,

The transaction me21n uses the authorization object A_S_KOSTL for cost

center. However, the authorization object A_S_KOSTL is not related to

the cost center that is displayed in the account assignment view of th

purchase order item, but its scope is to limit the access to fixed

assets belonging to the specified cost center (see the note 856248).

There is no standard authorization object that you can use from

transaction me21n to validate the cost center that you see in the

account assignment view at item level. The same can be said about the

purchase requisition creation (me51n).

So, I have three options for you to consider.

First Option:

There is an existing possibility to perform user defined checks during

all kinds of postings which finally lead costs in CO. With transaction

OKC7 you may define a validation which is also processed during

purchasing. You can explore the possibility of achieving the

functionality you need by making customizing changes using transaction

OKC7.

Second Option:

You could use userexit enhancement MEREQ001. For further information

please see note 310154.

Third Option:

Also, you may consider instead of an authorization check for cost

centers you can activate an authorization check for G/L accounts.

Therefore the following settings are required:

I. Customizing -> Materials Management -> Purchasing -> Purchase

Order -> Set Up Authorization Check for G/L Accounts:

activate the G/L account authorization check for the required

company code

II. Transaction FS02 -> View: Control data: enter the authorization

group

BR

Nadia Orlandi

Former Member
0 Kudos

Hi Nadia,

Hi,

a PO doesn't create a co document, so a validation rule is not useful.

G.Rossi

former_member182609
Active Contributor
0 Kudos

Try with user exit to conntrole to creating PO.Maintain all obsolete costcentres in on Z table while creating PO system should check this custom table.If the entered cost centre is available in Custom table then system should stop you to create the PO.

You can get user exit list in smod transaction package ME.Check with ABAP person he can put some logic.

Answers (1)

Answers (1)

lloydjs2000
Discoverer

There is another way you can block creation of purchase order or purchase requisition for cost center:

Step 1...

T-code OBA5 change message control, application area KI

Add entry with MsgNo = 170, Online = E, Batchl = E

Step 2...

Go to t-code KS02, change master data -> Control tab

Lock "Actual primary costs"

Now SAP will display error instead of warning when trying to create a purchase order or purchase requisition with this cost center.

-Lloyd

"Time is your most valuable asset; spend it wisely"