Skip to Content
author's profile photo Former Member
Former Member

Validate Materials according type of Purchase Requisition

Good morning.

At present the system we have several types of Purchase Requsitions (document created by the ME51N) that users can use (PR for Material, PR for contracts, PR for services, etc)

When creating the PR, the user chooses the PR type and write materials codes. The system is not Restrict the user to do things like, for a PR with type pshicical Materials, request a service material, which is obviously wrong and generate rework.

What we require is to know how to parameterize the system to validate that type of PR, only to order the materials associated with each type and do not let things like the example above.

We have the material well classified by Material Group and Purchase Group. I just need to know how to assign materials to each type of PR.

Research on this topic, I found the SPRO something I think I could serve.

SPRO -> Materials Management -> Purchasing -> PR -> Documents types

See here for example for PR ZS01 - PR Materials (used to order everything that is NOT services, ie physical materials), if I go to see the types of position allowed me see the following:

Code:

Tp.Pos | Text Pos Type

-


Normal

C Appropriation

L Outsourcing

I Wanted to third

Transfer V

F Service

I also see that all other types of PR of which there are established, have enabled the same kind of position.

Anyone know if this is why users can request a service for a material type PR Materials. o A physical material in a service PR?

Could Restrict through this that for example if the user creates a type PR SERVICE, only to enter service type material (a material through the group I guess)?

At last if i cant by parameterization, which I think is to create a Ztable with the association "MATERIAL - TYPE Purchase Requisition" and a field-exit to the fields where the materials are entered in PR to validate that the user typed material associated with this type of PR chosen and if that does not leave PR record. What I like about this solution is that the material planner will add a function over having to keep this updated Z table.

I would appreciate opinions.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Apr 05, 2011 at 08:47 PM

    there is no validation in SAP for the combination of PR type and item line contents.

    This is someething you defined and customized yourself, if you want validate this, then you have to use a user exit (field exits are still available, but not anymore "state of the art" for several releases).

    SAP defined the PR document type to give a lead what the purpose of this PR is, e.g. if a new order is to be created or if a new contract is needed. and the user usually can combine any sort of items in one PR. The item category defines already what you duplicated with the document type.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 05, 2011 at 09:18 PM

    Hi,

    By using following BADI you can put a check while saving PR

    You can put a check with reference to item category and document type , and material group of the entered material and PR document type , if required you can maintain Z table with allowed relationship or you can update the same in BADI

    (BAdI) ME_REQ_POSTED, you can trigger a variety of follow-on processing operations for purchase requisitions at the time of posting

    Thanks

    Diwakar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 19, 2011 at 06:21 PM

    thx to all for help me. i solved the problem with BAdi.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.