Skip to Content

PO does not require mandatory field

Dear colleagues,

Even I marked purchase requisition as a mandatory field in Define Screen Layout at Document Level for PO, and assignee this field selection to PO type, system do not requires purchase requisition as mandatory field during creation of PO. In this field selection Outline agreement is also mandatory and with it everything is ok (system ask for entering of outline agreement during creation of PO). Do you know what can be the issue?

Thanks,

Harry

Add a comment
10|10000 characters needed characters exceeded

Related questions

13 Answers

  • Best Answer
    Posted on May 27, 2013 at 10:07 AM

    Hi,

    You want to restrict PR number only for particular PO document type,then you need to use the BADI: ME_PROCESS_PO_CUST

    Refer a similar requirement where BADI used for a T.code

    http://scn.sap.com/community/erp/manufacturing-pp/blog/2012/03/22/program-to-display-exits-and-badi

    Regards,

    Biju K

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 08:40 AM

    Hi Harry,

    this functionalty is possoble through "Function Authorization".

    follow path : MM->Purchasing->Authorization Management->Define Function Authorizations for Buyers

    Create with your own new entry and tick on "Ref. purchase requisition" - Indicates whether a PO item may be created with reference to a PR.

    Maintain this Function Authorization at user level with user parameter EFB - enter your F.A.

    Hope this is clear.

    Regds,

    Nilesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Harry Haller

      Hello Harry,

      If this is required for a perticular document type and some other parameters take the help of ABAP member to identify the User /Screen exit to make PR field mandatory.

      Hope this will work in your case .If so please confirm.

      Regards

      KK

  • Posted on May 27, 2013 at 06:36 AM

    Hi,

    For this you can try the following:

    Pls try this ME_PROCESS_PO_CUST

    put logic like:

    it_ekpo = im_header->get_items( ).

    wa_ekko = im_header->get_data( ).

    if wa_ekko-aedat gt v_date.

    loop at it_ekpo into wa_ekpo.

    clear tmp.

    ls_mepoitem = wa_ekpo-item->get_data( )..

    if ls_mepoitem-werks = '1000'.

    • check PR document

    if ls_mepoitem-banfn is initial and ls_mepoitem-retpo is initial and ls_mepoitem-umson is initial.

    concatenate 'No reference to PR document number in item' ls_mepoitem-ebelp into tmp separated by space.

    • message W001(ZM) with tmp.

    mmpur_message_forced 'E' 'XX '01' tmp '' '' ''.

    CH_FAILED = 'X'.

    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

    EXPORTING

    TITLE = 'ERROR!!! '

    textline1 = tmp

    TEXTLINE2 = 'TERMINATE! '

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2013 at 10:14 AM

    Hi Harry,

    You can set such kind of conditions in BADI: ME_PROCESS_PO_CUST

    Regards,
    Anoop Singh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 30, 2013 at 05:41 AM

    Dear Harry,

    You cannot make it mandatory from screen layout customizing but it could only be done if you use

    function authorization, parameter EFB

    This can be done via function authorization customizing, transaction SPRO

    path: Material Management- Purchasing- Authorization Management

    - Define Function Authorizations for Buyers

    In here choose: Function Authorizations: Purchase Order

    tick ref. to PReq X and leave others indicator blank.

    Then in transaction SU3, maintain the parameter tab:

    Parameter ID = EFB

    Parameter value = The valur you maintain in function authorizations customizing.

    Regards,

    ian Wong Loke Foong

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 06:52 AM

    Hi Harry ,

    For the PO , we can go to the define teh screenlayout at document leavel and maintain as mandatory /Required Option .

    If it is satisfied then during PO creation system will show as PR is mandatory/Required.

    If not then discuss with the ababper and make changes .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 06:55 AM

    You can make PR mandatory thru OMET txn and parameter EFB. refer the help texts in configuration for exact procedure

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Ajit,

      Parameter EFB will influence on all document types. But I need Purchase requisition as mandatory field just in one particular PO document type. As I wrote before I tried to make it with Layout at Document Level but it doesn’t work in case of Purchase requisition (in case when RFQ is mandatory it works properly).

      Regards,

      Harry

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2013 at 11:07 AM

    HI

    You can use include ZXM06U42 to restrict PR number only for particular PO document type

    Regards,

    Srini

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 12:52 PM

    Hi,

    I am not sure what is your business requirement or process for making PR as mandaotry .

    It is standard functionality that PO can be created with out a PR as mandatory .How ever if a PR is there PO can always be created with referencing to PR .

    Use the functionality of converting PRs into EITHER Assign and Process or automatic .

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 27, 2013 at 01:05 PM

    Create a new field selection group, with PR as mandatory. Assign to your specific doc. type

    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.