cancel
Showing results for 
Search instead for 
Did you mean: 

How can we restrict PO doc type

Former Member
0 Kudos

Hi All,

My client requirement is when ever they are creating PO with ref to contract the PO Doc type must be ZW or ZB and it should not allow NB doc type to the user to create the PO.how can we restrict this PO doc type.

Please let me know if any standard settings available for this requirement.

Thanks

kiran

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

I actually think your requirement can be met with customizing.

You actually have several field selection keys, e.g. for the transaction, for the document type, for item, for the activity... They all interact.

The principles are explained in the docu.

execute OLME and go to the purchase order > Field selection

Here click the documentation icon next to the execution icon.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This cant be happens by any type of configuration.

You have to do a user exit for this.

If it po will be created through a particular user then you can use ROLL.

Former Member
0 Kudos

Dear Kiran,

You can use authorization object for document type M_BEST_BSA. Get the help of the Basis to configure this.

Refer below as well.

http://scn.sap.com/thread/3381119

Regards,

Jeewana

Former Member
0 Kudos

Hi jeewana,

Thanks for your reply.

All users creating  NB Purchase orders also for some other cases.  but i want to restrict this NB doc type for contracts only how it is possible??

Thanks

kiran

Former Member
0 Kudos

I'm really sorry I didn't notice 'contract' part in your early post. There is no standard link in PO type and contract type in SAP as I'm aware.  This has to be handled in some other way. I found belowe threads which are slightly similar. May be you can have some idea. 

http://scn.sap.com/thread/2077624

PO should not go for approval if it is from a contracthttp://www.sapfans.com/forums/viewtopic.php?f=3&t=297345

former_member183155
Active Contributor
0 Kudos

hi all ,

You can restrict your po doc type with configuration ....

**** if you do not want to use some types like a belowed , you can delete it....

     M.Ozgur Unal

Former Member
0 Kudos

Hi,

Please let me know is there any restrictions possible for contracts and PO. not for PR and PO.

saurav_sarkar3
Active Contributor
0 Kudos

Hey Kiran,

I don't think this is possible through configuration. You may need to code a line in an user-exit to restrict creation to contract-po document type pairs.

Another alternative may be to suppress the agreement number and agreement item fields in the document types which should NOT use the contracts. Will need to test this to ensure it works with automatic source assignment scenarios also.

If you consider how the contract behaves when creating a PO, it almost acts more as a master data than as a reference document.

Thanks,

Saurav

raviraj_sharma
Active Contributor
0 Kudos

In the PO screen /field selection for  NB Document type,  you could  Disable/grey out the Outline agreement  field in the Reference data ,item   block?  May be that could work.

Former Member
0 Kudos

This won't work for the requirement. This setting will make the field as a display only. Requirement is to restrict NB document type when creating POs with reference to contracts.  By this setting contract no will be still visible as a display only field.