Material No. mandatory in PO

Hi,
I want to make Material No. mandatory in PO creation for certain document types but for certain company codes only.   If I made the field mandatory in the field selection group, it is becoming mandatory for all.  But I want this for certain company codes only. How can I achieve that?
regards,
Mallik

Hi Mallik,
For your requirement, it will be advisable to use an user exit on the PO creation. As soon as the PO is saved the exit will check for the Company code and Document type; based on that combination it will check for the value in Material Number field.
The combination of Company code and Document type will decide whether the material number field should be blank or mandatory input is required.
You may also go for a field exit on Company code field of ME21N.
Regards,
Vishal

Similar Messages

  • Material Number mandatory for PR exceptP for Service Purchase Requisition

    Hi All,
         Our client's new requirement is we need to give material number mandatory for Purchase Requisition. But it should not affect for Service Purchase Requisition (as we don't have material number with material type DIEN. Till now, we were using Acc Assignment Category K and Item Category D with only Short Text description). We have separate document type for Service Purchase Requisition(ZSRV).
        In order to make Material number mandatory, in PR, we need to give in "Define Screen Layout  at Document Level for PR",right? Is there any way to give, "Material Number Mandatory at Document Type Level"?
    Please suggest.
    Regards,
    rosh

    hi sridhar,
      Thank you for your answer. So as you said, there is no possibility to make material number as mandatory at DOCUMENT TYPE level through Customzining, right?
    Regards,
    Rosh

  • Material No. Mandatory with account assignment category K

    Dear,
    Can i make Material No. Mandatory with account assignment category K
    Please advise
    Rami

    Hi,
    It is not possible to make material number mandatory for Account Assignment Category.
    But you can make Account Assignment mandatory for a material if material is non-valuated (Mat Type - UNBW) or Non-stock (Mat Type - NLAG)

  • Material Field Mandatory

    Hi All SAP People,
    How to make material field mandatory in VA01 initial screen SAP. Please give me the steps or transaction code.
    Thanks 
    Anil Hooda

    Either you can use incompletion log for the same
    or Use Tcode [SHD0|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a070bfbb-d34a-2d10-b092-ecbe0b0d4a4c]
    Key-in Value as VA01 in the Field: Transaction Code
    and Select appropriate variant.
    And Click: Change.
    Thanks & Regards
    JP

  • Make field in Material master mandatory based on the material group

    Hello all,
    I need to make the field "post to inspection flag" mandatory based on the material group while creating the Material master.
    I found options for making the field mandatory based on Material type,Industry sector and plant NOT based on the material group.
    Could anyone please provide suggestions on setting up the field as mandatory based on material group while creating material master
    Thanks,
    Sre

    Hi Sre,
    You can make Material Group field as Mandatory while Creating Material Master.
    SPRO>Log General>Material Master>Field Selection>Maintain Field Selection for Data Screens
    Select Screen # 48
    In the Field selection (Field Ref.) of (MARA - MAKTL) screen , Change the settings from Optional to Required Entry for T Codes MM01, MM02 or you can select the Material Type ;
    Please note this  by choosing this selection the fields of Profit Center and  Division will also become Mandatory.
    Hope this helps,
    Best regards
    Amit Bakshi

  • Tax classification field of the material master - Mandatory

    At the "Sales: sales org. 1" view of the material, there exist the tax classification field of the material master. How can I make this field mandatory?

    Hi
    Go to T-code OMSR
    Select Field name MARA - TAKLV and click on the arroow sysmbol on the right against that line.
    For Field Ref MM01 - select the radio button "Reqrd Entry".
    Hope this answers your question
    Regards
    Madhu

  • Material number mandatory (field selection) based on acc. ***. category

    Hy Folks,
    i am looking for a solution to define the Material Number as a mandatory field if the Account Assignment Category "Q" is used in a Purchase Order Item. Field Selection of Account ASsignment category Q is not sufficient as the material number is not included.
    Any ideas for a solution in SAP standard customizing? (sure, user exit will be possible...)
    THX!
    Gregor

    Hi dear,
    With settings in SPRO this is not possible you have to go for exits or BADI take help of ur ABAP er.

  • Determine material master mandatory fields

    Hello,
    I've developed an workflow based program to create material master.
    I want to set all fields in my proram as required
    which are defined mandatory in Customizing of material master.
    Can anybody give me a hint how to determine the mandatory fields for
    material master creation.
    What i tried up to now:
    I have tried MATERIAL_UPDATE_ALL ( used in MATERIAL_MAINTAIN_DARK )
    and then analysed the retrun table. This is working fine when calling from SE37 but
    fails when integrated in my own program.
    The Problem is:
    In SE37 following statement is true altough the fieldsymbol is empty (it's assigned and
    really empty, so it should not work).
    IF NOT <f3> IS INITIAL.
    In my program it fails, which is IMHO correct.
    Perheps someone can tell me why?
    If you have any other suggestions how to solve my problems let me know.
    Thanks for your time and efforts.
    Andy Iskalla

    Hi,
    In MAterial MAster, you can make any field mandatory or optional . It all depends on the business process.\
    Read the document from belwo link.
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/LOMDMM/LOMDMM.pdf
    Any queries, le tme know.
    Regards,
    Smitha

  • Making old material number mandatory for mm02

    hi,
       how to make  old material number(mara-bismt) mandatory for mm02 transaction.
    regards

    Hi,
    You can do the validation using enhancement "MGA00001", component "EXIT_SAPLMGMU_001".
    Regards
    Vinod

  • Material Selection mandatory From BOM

    Dear All,
    While creating reservation for component through maintenance order can we make
    material selection compulsary from BOM attached to the object?
    User cannot create reservation if the material is not availabe in BOM.
    Please suggest
    Regards
    Honyal

    Thank you

  • Driver / Material Picker mandatory in Delivery

    I have created two business partners Driver & Material Picker (partner type PE) and I have assigned to Delivery Header. My intention is to throw an error when the Partners are not filled. Even though in the incompleteness, it shows that the Business Partners are not filled, the system allows me to save the delivery. I have assigned the status group G2 (all checked in Dly/Billing etc), but I am unable to get the error message. Can somebody help me in stopping the delivery not to be created without the business partners?

    Hi
    As you have assigned Business partners Driver & Material Picker (partner type PE) , so check in the status group wheather it has been checked as error at delivery level or not. Also check wheatehr that status group has been assigned to the delivery document type or not.
    Regards
    Srinath

  • Material Mandatory not showing at sales order level error

    Hi Every one,
    According to my client Requirement  at the time of  sale order creation material is mandatory , but i tried through Incompletion log
    its showing material mandatory but the problem is after entered the material in one line item when i try to save the sales order
    system is asking enter the material  again ie one more line item
    so i have avoid the that error and how to map into SAP system suppose to ask onetime material is mandatory
    Can any one guide me how to solve the issue

    Hi Prasanna,
    As Amit Suggested, in user exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ, you need to add a small 2 liner code telling the system that if VBAP-MATRN is blank then give an error message.
    I had the same requirement and I have used it and it works perfectly fine for me. Let me know if you have any further questions.
    Regards,
    Rohan Gudavalli

  • Making acc assignment group mandatory in material master sales view

    hi,
        could someone help me how to make acc assignment group (sales org:2)in material master mandatory.just acc assignment group not other fields which comes along with it . thanks
    kulandaivel

    Hi,
    For making any field in material master optional/mandatory/hide , follow the steps:
    1.Just click the tab ,(Which is u want to be mandatory)and get the field name
    2.Go to T.Code: OMSR and enter that field name and get Selection Group
    3.1. Use t.Code: OMS2 and click your material type and in next screen check Field reference ( you have assigned for material type){{ ( example :;For ROH material type the Field reference is ROH)
    3.2. use T.code:OMS9,, Double Click your Field Reference and select field selection Group & select round box of mandatory  and save
    Regards,
    Biju K

  • Make material as a mandatory field for a particular document type in PR

    Hi,
        Currently we are in SAP 4.6c version. There is a business requirement for making material as a mandatory field for a particular document type of purchase requisition as they don't want the user to raise non material purchase requisition using that document type. The field for material is currently not available in the configuration for Define Screen Layout at Document Level for purchase requisition.
    So could you kindly let me know the possible options to prevent user from raising a non material purchase requisition using that document type. If not could you kindly suggest me the user exits available at the time of saving purchase requisition which i could use so that we can write a code to check if the material number is entered or not. If not entered prevent the user from saving the purchase requisitions.
    Also it would be helpful if you could let me know how the fields for enjoy transaction (like material,document type) can be made available for selection in the configuration for Defile Screen Layout at Document Level for purchase requisition.
    All you help in the solving the above problem is highly appreciated.
    Thanks & Regards
    Ram

    Hi,
    Check below method works out for you, if you do not want to proceed with any ABAP development.
    Have a custom field selection key with Material Description field as "Mandatory" and "Display" in Basic Data, Item selection group.
    Assign this to your PR document type which need material as mandatory. With this you are making user to enter material indirectly as mandatory & user will not have an option of entering text which avoids indirect / service procurement.
    "Material Group" option won't help as User can have default settings with some value and it updates even in display mode of field.
    Regards,
    Ram
    Edited by: Ramprashanna S on Jan 11, 2012 11:51 PM

  • Exit/badi for Material group validation on service POs

    Hi Gurus,
    The requirement is to put validation on 'MATERIAL GROUP' at item level as well as service sub line item level.I have used EXIT_SAPMM06E_017 for line level validation.
    For service sub line level 'MATERIAL GROUP' i tried using EXIT_SAPLMLSP_030 but validation is not working properly as
    EXIT_SAPLMLSP_030 is triggered before EXIT_SAPMM06E_017.
    Kindly suggest any alternatives.
    Thanks in advance
    Deepika

    Hi,
    I had finally used BADI ME_PROCESS_PO_CUST method CHECK and PROCESS_ITEM for enjoy transactions i.e ME21N ME22N ME23N and written code in EXIT EXIT_SAPLMLSP_030 for service item validations.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
        DATA: wa_zmm_mat_grp TYPE zmm_mat_grp.
        EXPORT header_data-aedat FROM header_data-aedat TO MEMORY ID 'ZDAT24933'.
        EXPORT header_data-bsart FROM header_data-bsart TO MEMORY ID 'ZBRT24933'.
        IF header_data-aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( header_data-bsart = 'SRV' OR header_data-bsart = 'SRVF' OR header_data-bsart = 'SRVI') AND ( header_data-bsart NE ' ')  AND
             ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl AND
                                                                         bsart = header_data-bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF header_data-bsart IS NOT INITIAL.
            IF ( header_data-bsart NE 'SRV') AND ( header_data-bsart NE 'SRVF') AND ( header_data-bsart NE 'SRVI') AND
               ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
              SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl.
              IF sy-subrc EQ 0.
                MESSAGE e006(ze1).
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    For service subline item following code:
    DATA: wa_zmm_mat_grp TYPE zmm_mat_grp,
          v_bsart TYPE ekko-bsart,
          v_packno TYPE esll-packno,
          v_ebeln TYPE ekpo-ebeln,
          v_aedat TYPE ekko-aedat.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT header_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT header_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IMPORT re_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT re_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ELSEIF sy-tcode = 'ME21' OR sy-tcode = 'ME22' OR sy-tcode = 'ME23'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT i_ekko-bsart TO v_bsart FROM MEMORY ID 'ZPOT24933'.
        IMPORT i_ekko-aedat TO v_aedat FROM MEMORY ID 'ZDTA24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    hope this will help u.

Maybe you are looking for

  • How the Sun Java Forums Work (Briefly)

    I am wondering if anyone could give me a brief overview of how the Java sun forums work -- esp. when someone creates a new thread. How exactly does the JSP know to link to that thread? Is it generating a unique ID from the database or using it's own

  • Inventory Types in SAP

    Hi All, We have a large store spare parts in ERSA (SAP). On segregation, it has come to know, many parts are not machinery related but these are parts of vehicle maintenance which are not actully spare parts of machines used in process. We want to se

  • JSF EJB project in JDeveloper

    Hi All, I am creating a JSF EJB based web application in Jdeveloper11g. I have a Session EJB, which is exposes a remote interface as below: package ejbmodel; import domain.TableBean; import java.util.List; import javax.ejb.Remote; @Remote public inte

  • How to clean macbook pro aluminum

    how to clean macbook pro aluminum i need help because i have finger print on my aluminum hard shell

  • Extractrion of account and contacts based on marketing attributes

    Hi experts, I need to extract account and contact based on marketing attributes from sap crm to a .csv file. i m writing a programme for it. i have requirment where i need to exract all accounts in different file based on markting attributes and same