Making Fields mandatory in SM30

Does anybody know how can we make fields in SM30 as mandatory. If we have 4 fields in some Z-table, i want to make 2 of the fields mandatory...Pls help me out.

Two methods for this
1. Put code in table maintenance
You have to put some code in while generating table maintenance screen from table maintenace generator which will validate the field when user try to enter data using SM30..
Goto table maintenace generator follow menu path
Enviroment->Modification->Event
Add a event there (01     Before saving the data in the database) and code to validate data... this code will be called before saving data in database via transaction SM30.
2 .Modify screen
Follow menu path Enviroment->Modification->Maintenance Screen
And make the field require field

Similar Messages

  • Making field mandatory in ME21N

    Hi All,
    I need to make the Purch.Requisition field mandatory in the Purch.Order in ME21N.
    it should be mandatory only for one specific company code and DOCtype.
    ( like, mandatory only for CompCode 3000 and doctype NB ).
    the field name is MEPO1211-BANFN.
    Should i be using some screen exit or BADI for this purcpose.
    Thanks.

    Making PR mandatory based on Doc Type can be achieved via SPRO. The path is
    SPRO>Materials Management>Purchasing>Purchase Order>Define Screen Layout at Document Level. Create a new field selection based on your exisiting field selection or modify your exisiting one. It depends on your requirement. Click on Reference data, item You would find PR and some radio buttons. Click the one for Reqd Entry. Save.
    Once this is saved, go to SPRO>Materials Management>Purchasing>Purchase Order> Define Document Type. Enter the updated field selection from above in the document type row for which this change needs to be activated.
    Hope this helps!
    Thanks!

  • Making fields mandatory

    Hi Gurus,
                  I want to make fields mandatory such as doc. header text , reference in F-02 for all doc. types . So that I can get reports using these fields. Can anybody tell me how can I do (making these fields mandatory) by using SPRO.
    Thanks

    Hi,
    if the fields are available in the field status group assigned to account master data you can make it mandatory by setting it as a "required entry". Caution: every acc. number using this field status group has this field as a mandatroy entry, maybe you have to define add. fiels status groups for only a few accounts where this required entry is necessary.
    In Customizing it can be found by searching for "field status variants" which contains all the "filed status groups". The variants are assigned to each company code.
    BR Christian
    Edited by: Christian Ortner on Jan 22, 2010 1:37 PM

  • Making fields mandatory in tab pages in OM

    Hello,
    Can anyone tell me how to make an individual field within an OM infotype mandatory e.g. the employee group and the employee subgroup on IT1013 on the Working Schedule tab within PPOME?
    I don't seem to be able to track down the module pool.
    Thanks
    Sandra.

    Hi,
    I think, you can use the screen control to make a field mandatory.
    This is found in Tcode PM01-> GOTO-> Screen Control.
    You will have to maintain the infotype feature to call the alternate screen with your screen modifications.
    Details in SAP Help under Developing an Infotype in Personnel Administration -> Infotype Screen -> Control
    Hope this info helps you...
    Best Regards,
    Venkat.

  • Making Fields mandatory in Production Order

    Hi,
    In transaction code CO01 i want to make the PLANNING PLANT field mandatory, Kindly guide me how to do this??
    Naren

    Hi Narendra,
    Goto SHD0.
    ennter t-code co01 there. goto tab page screen varients and anter varient name Zco01. Write program and screen name there.( you can get this names from F1 help on the field in the co01. in the field press F1 and goto technical information. Pick the program and screen from there.)
    Then create a varient with this information, you will goto co01 tcode, enter there and you will get a pop up asking for different values. You can make the filed you require as mandatory.
    come back if more help is required.
    Sumeet

  • Making Field Mandatory

    I want to make Certain Fields mandatory in VA01 Header Data Screen. Please help.
    Thanks in anticipation
    Vishad

    Hi Vishad,
    You can use transaction and screen variants (SHD0) to make mandatory field(s) in VA01.
    Please check this link for more information.
    http://help.sap.com/saphelp_nw04/helpdata/en/7d/f639fb015111d396480000e82de14a/content.htm
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Hi making fields mandatory?

    Hello Friends,
                        I want to make the fields mandatory i have used the dictionary table name and field name as my input output field name of my screen input/out fields. The code that i am writing is like....Where ZSINGLE is my table name Tdate is date and Patno -  Picture number and Vdate is also one date. Can anyone correct themistake in my code.
    IF ZSINGLE-TDATE = SPACE.
      else.
      IF ZSINGLE-PATNO = SPACE.
      else.
      IF ZSINGLE-VDATE = SPACE.
            MESSAGE I002.
        CALL SCREEN 500.
      ELSE.
        CALL SCREEN 100.
      ENDIF.
    ENDIF.
    ENDIF.
    I am able to make only one field mandatory even though if  i am not giving the other 2 fields it is passing to the next screen wht it should not happen.
    Thks

    Hi,
         As far as I understood from Your question , You Have to do the following :
    Check out the code as follows .... copy-paste and run..then.
    parameter : vbeln type vbeln OBLIGATORY.
    data : it type standard table of vbak,
           wa type vbak.
    select * from vbak into table it where vbeln = vbeln.
    loop at it into wa.
    write : wa-vbeln.
    endloop.
    .....see that you can not skip the intial screen without giving input.  This is because of keyword 'OBLIGATORY'.
    Try this keyword while declaring the data in your code.
    If you are doing a module-pool program and have designed the screen.
    double-click on the parameter on the screen........
    a screen-properties window (painter attribute window )will come..................    
    go down in the 'attributes frame' ....click on the tabstrip with heading 'program........
    check it as input field........
    use the drop-down beside input..........
    select 'required'.....
    Reward points if helpful............
    Edited by: Akashdeep Basu on May 8, 2008 6:51 AM

  • MSA: Making field mandatory

    Dear Colleagues,
    In MSA --> BP detail tile, by default, only mandatory field is Name. How can we make some other fields mandatory so that user do not forget to enter this to have successful replication back to OLTP?
    Mainly here I am trying for field "Transportation Zone".
    PLease respond.
    Regards
    Yatin

    You can do this in two ways.
    1. Find corresponding business object property in BO (might be BOCAPGEN for business partner), change its attribute from normal to mandatory.
    2. On UI, change mode of respective control from Normal to Mandatory.
    Personally, I prefer the first option.
    Hope this helps.
    Regards,
    Kaushal

  • Personalization vs. Customization in Sales Online making field mandatory

    I am having some difficulty distinguishing between Personalization vs. Customization in the Oracle CRM Sales/Marketing Online. Specifically, I have asked to make the Job Title field on the Contact screen to be mandatory when filling out contact details. Vanilla, out of the box it is optional.
    Do we need a customization to make this happen which will cause issues for future upgrades or will a personalization do?

    Are you referring to Oracle Sales ie;ASN or Oracle Sales Online?
    If it is Oracle Sales screen then personalisation should work.

  • Making field mandatory dynamically

    HI,
    Can anybody  send sample code for following logic?
    i am having three fields as select options.
    consider
    BSART
    BUKRS
    EBELN
    In selection screen if BUKRS is initial, I want to change EBELN as mandatory.
    else if BUKRS is not initial, EBELN is not mandatory.
    usefulll answers will be rewarded.
    Thanks & Regards,
    Naveen

    Hi,
    try this
    if bukrs is intial.
    if EBELN is initial.
    message e000 with ' enter ebeln value'
    endif.
    endif.
    regards,
    venkatesh

  • How to make a field mandatory in SAP Business one ?

    How to make a text field mandatory in SAP Business one?

    hi nishant,
    check this link
    Making fields mandatory
    To Set Mandatory Fields in Documents
    Jeyakanthan

  • Making task list field mandatory in creation of maintenance plan?

    Dear All,
    I need your help in configuration of Making task list field mandatory in creation of maintenance plan. I checked with sceen variant config but that also not giving me any option to make the field mandatory.
    Is there any note or user exit for it?
    Regards,
    Kaushal Rai

    Dear,
    Pls check the exit IPRM0004:Maintenance plan / item: Customer check for time "SAVE".
    Regards
    Sunil

  • Making Storage Location field mandatory in Work Order

    Hi
    As per our proces, if PR is created from work order and if there is no storage location in work order then PO will have warehouse address as a shipping address. So it is expected that PR must have storage location details when it is created from work order to avoid incorrect shipping address in PO.
    So, I want to make storage location field mandatory in components tab of work order.
    Also I want to avoid the users to deliberately removing the storage location and making it blank.
    Regards
    Prakash

    Hi,
      You will have to use one of the below mentioned user exits  to accomplsih this requirement.
    CNEX0026 Maintenance order: General check for material
    CNEX0027 Maintenance order: Determination of plant or storage location for component
    Thanks
    Narasimhan

  • Making PAN Number Field MANDATORY while creating a Vendor

    Dear Experts,
    I want to create a Vendor Master with PAN Number Field Mandatory.
    Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
    Regards - Manjunath

    Hi Trivedi,
    I tried the user exit. But it is pulling the values.
    Please find the coding here
    IF j_1imocust-j_1ipanno = ' '.
      MESSAGE e007(zmsg).
    ENDIF.
    We are not abe get the PAN vanue in  j_1ipanno  field.
    Looking for your help .
    Pleas guide.

  • Making PAN Number Field MANDATORY in Vendor Master while CREATING VENDOR

    Dear Experts,
    I want to create a Vendor Master with PAN Number Field Mandatory.
    Is there any input for making PAN Number Field Mandatory at the time of creating a vendor.
    Regards - Manjunath

    Please post in the right forum >

Maybe you are looking for