Conditional Mandaotry field in Material Master (Suggestion Needed)

Hi ,
I am having a requirement where  i need to make a particular field to be mandatory for a certain condition in Material Master.
Say for a Product Hierarchy i want to make Volume Rebate Group mandatory ( Sales Org 2 View).
Please suggest the possible solutions for the same.
No userexit is possible , Screen exit is also out of picture as i will not get the value of second variable -
Thanks
Rajiv

Hi Rajiv,
there is a user-exit that can be used .. MGA00001.
We use it to make some plausibility checks before saving a material and also some additional authorization checks.
<pre>FUNCTION EXIT_SAPLMGMU_001.
""Lokale Schnittstelle:
*"  IMPORTING
*"     VALUE(WMARA) LIKE  MARA STRUCTURE  MARA
*"     VALUE(WMARC) LIKE  MARC STRUCTURE  MARC
*"     VALUE(WMARD) LIKE  MARD STRUCTURE  MARD
*"     VALUE(WMBEW) LIKE  MBEW STRUCTURE  MBEW
*"     VALUE(WMLGN) LIKE  MLGN STRUCTURE  MLGN
*"     VALUE(WMLGT) LIKE  MLGT STRUCTURE  MLGT
*"     VALUE(WMVKE) LIKE  MVKE STRUCTURE  MVKE
*"     VALUE(WSTAT) LIKE  MGSTAT STRUCTURE  MGSTAT
*"     VALUE(WMFHM) LIKE  MFHM STRUCTURE  MFHM
*"     VALUE(WMPOP) LIKE  MPOP STRUCTURE  MPOP
*"  TABLES
*"      STEXT STRUCTURE  SHORT_DESC
*"      SSTEUERTAB STRUCTURE  MG03STEUER
*"      SSTEUMMTAB STRUCTURE  MG03STEUMM
*"      WMEINH STRUCTURE  SMEINH
*"      SMEAN_ME_TAB STRUCTURE  MEAN
*"  CHANGING
*"     VALUE(CMARA) LIKE  MARU STRUCTURE  MARU
*"  EXCEPTIONS
*"      APPLICATION_ERROR
  INCLUDE ZXMG0U02.
ENDFUNCTION.</pre>
Just prompt an error message in case the required field is not filled.
  MESSAGE ennn(xx) RAISING application_error.
I am sure it will help to solve your problem.
Best regards
Ferdi

Similar Messages

  • Conditional Mandatory Field in Material Master (Sugg. Needed

    Hi ,
    I am having a requirement where i need to make a particular field to be mandatory for a certain condition in Material Master.
    Say for a Product Hierarchy i want to make Volume Rebate Group mandatory ( Sales Org 2 View).
    Please suggest the possible solutions for the same.
    Thanks,
    Rachita.

    Hi,
    It is possible to get access to all other fields from within a field exit by using the below code. This is a field exit on GMG_HEADER_FIELDS-grant_type within program SAPLBDT_GMGR but by using the code below you can get data stored in any field within the program. i.e. GMG_HEADER_FIELDS-GRANT_NBR
    Field-symbols: <status>.
    assign ('(SAPLBDT_GMGR)GMG_HEADER_FIELDS-GRANT_NBR') to <status>.
    if SY-SUBRC = 0.
      message e003(zr) with <status> .
    ******other code*****************
    endif.
    Reward points if found helpful....
    Cheers,
    Rakesh.

  • Purpose of Cash Discount field in Material Master

    what is the purpose of Cash Discount field in Material Master. what does it control. do it link to SKTO anywhere?
    please explain

    Hi,
    Cash discount is applicable for this material or not..
    This is for Sales only..
    Pricing Procedure (RVAA01) and if you activate SKTV and SKTO Condition types
    Cash Discount can calculate before tax or after tax
    Condition Type- SKTV(Statistical Condition Type)---If you check requirement is "14" which says Discount before Tax( This will calculate from the Filed Material master "Cash Discount Indicator" ie "SKTOF"
    Condition Type-SKTO-(Statistical Condition Type)--
    >Requirement "9" Discount After tax - here also it will consider filed "SKTOF" ie "Cash discount indicator in material master.
    SAM

  • New standard field in Material master

    Hi
    I have to introduce "RETDELC" field in Material Master.
    The said field is already available in MARA table.
    The field is available only in ECC 6.0 version.
    I have introduced the field in Field selection group and make it optional at client level, material type level and Transaction code level (MM01,MM02, MM03).
    But stil, i could not get the same field in Material Master- Basic Material data-2 view.
    Any help please!
    Regards
    Prasad

    this fields domain is DFPS_RETDELC .
    DFPS stands for Defense Forces & Public Security.
    In order to use this industry solution, you need to activate additional business functions
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/d8/686660a46d486e95f0a3588111376d/frameset.htm

  • Maximum number of fields in material master

    Hi,
    Could you please help to understand how many fields can be added in material master Tab.
    Example - If we create new material master tab as additional data and would like to add some fileds in that tab, is there a limit we can't add more than certain number of fields.
    Please advise how many cloumns can be added as well in one tab.
    Example
    Material master additional data Tab (New)
    feild 1 description field 4 description field 7 ......
    field 2 description field 5 description field 8 ......
    field3 description field6 description field 9 ........
    I think the fields should be assigned to feild selection group which is reserved as for Z fields
    Please confirm if my understanding correct for Z fileds
    211-240 Reserved for customers
    As I think only 20 field can be assigned to field selection group but My question is can we assign more than one filed selection group to one material master tab. I mean to increase the number of field to be added in new additional data tab can we add 111-120 Reserved for customers and 211-240 Reserved for customers to one material master additional data tab.
    Thanks

    Hi,
    For add fields to material master, check Note 44410 - Integrating cust.-specific fields in matl master (and related notes).
    Other note useful to understand the range of customer names in SAP: SAP Note 16466 - Customer name range for SAP objects.
    I hope this helps you. If you need something else, let me know.
    Regards,
    Eduardo

  • Custom fields on Material Master - ECC6.0

    Hello
    We have added custom fields on material master basic data screen following these steps :
    1) Copied Func. grp MGD1 to Z Fgrp via Spro -> Logistics General ..
    2) Created a subscreen in Z fungrp by copying screen from original program.
    3) Deleted the unwanted fields and added new fields to the layout and Fields in PAI.
    4) Attached the subscreen in screen sequuence via SPRO
    We are now able to see the new fields on the baisc data screen and also able to input data in these fields , but on SAVE the data is not getting saved to database table MARA.
    We have also referred to OSS note 44410 but with no help.
    Are we missing something , is there anything additional that needs to be done in ECC6.0 ?
    Thanks

    Hi Kalidas,
    In your customized subscreen, did you update the PAI to include your custom field?
    process before output.
    *                      Verarbeitung vor der Ausgabe
      module init_sub.
      module get_daten_sub.
      module feldauswahl.
      module sonderfaus.
      module sonfausw_in_fgruppen.
      module feldhistorie.                         "Aenderungsdienst
      module bildstatus.
      module zusref_vorschlagen_b.
      module refdaten_vorschlagen.
      module zusref_vorschlagen_a.
      module set_daten_sub.
    process after input.
      module get_daten_sub.
    * Put your custom fields here to copy to structure for saving
      field: mara-zzcustom.
      module set_daten_sub.

  • Maintenance of Z field in material master

    Hi All,
    Could any body pls let me know where can I maintain the selection option for Customized field in material Master.( Means F4 options for any z filed)
    Any help will be highly appreciated.
    Regards,
    Meenakshi

    take help of abap guy.
    regards

  • Control Code field in Material master- Foreign Trade imports tab

    Hello Experts,
    I am trying to understand the purpose of Control Code(MARC-STEUC) field in Material master- Foreign Trade imports tab. I am also interested in knowing where does this field appear in our PO.
    Please help..
    Manish

    Normally control code specifies the norm to follow by the supply plant for a sale of exposrts. each contry will have a set of rules to get follow as a stuatory . this code specifies the rules or certificates.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/93/7443a5546011d1a7020000e829fd11/frameset.htm
    may be comes in a sale order.
    Regards

  • 'Storage bin field in material master

    Can we increase character length of 'Storage Bin' field in material master so that bin details can be accomodated ?

    No you cant!
    Takehelp of some other field.(text field)
    Edited by: uttkarsh agrawal on Jan 30, 2009 3:11 PM

  • Add z field in material master at plant level

    I wanna to assign a new field in material master at plant level..
    What settings should be done to do this?
    Positive response will be highly appreciated.
    Regards

    hi,
    You can define the field directly via assigning the field to field selection group...This could also be done at industry sector, plant level as well....
    Check the path :
    SPRO >> Logistics general >> MM >> Field selection >> Assign fields to field selection group...
    SPRO >> Logistics general >> MM >> Field selection >> Assign field at plant
    SPRO >> Logistics general >> MM >> Field selection >> Assign fields at industry sector level...
    For this assign the field to the respective table and then provide it at OMSR...
    Assign field selection group to it...
    Then in OMS9 give the priority for hide/display/req/optional to field...
    If you want this to be added in the new screen, then you have to make the settings under "configure the material master"...
    Hope it helps..
    Regards
    Priyanka.P

  • Transportation group field in Material master..Sales/Plant data tab.

    Hello Gurus,
    The transportation group field in material master is Material specific or a plant specific?? caz whenever i am changing this transportation group field in one plant it is also updating with the same value in all the plant for the common material even though the Company code and Country are different forall the plants.
    Hope to hear from you soon as its a very high priority production issue..
    regards
    Rikinl

    The transportation group field in material master is Material specific or a plant specific??
    Its material specific.  Even if you have multiple sales areas or plants and if you change the transportation group, the change will be applicable for those areas also.
    thanks
    G. Lakshmipathi

  • Specific Field in Material Master

    Hi All,
    just some user can't see specific Field in Material Master with using MM03, but others people can. Where should  I change settings? Is it something to do with authorization?
    thank&regards

    >
    Jiami wrote:
    > Hi Biju, Pete
    >
    >
    > thanks for Support.
    >
    >
    > Material is created as ( Industry Sector: mechanical engineering
    >                                     Material Type: Trading goods)
    > Field name: Basic material (in Tab Basis Data 2).

    >
    > user can see Field now,
    > but just When we using MM03 in normal level, the Field will be displayed.
    > But after we given a plant, in Plan lever then we can not see this Field anymore in Tab basis Data 2.
    >
    >
    > thanks
    >
    > Jia
    execute OMSR,
    position on field MARA-WRKST
    click the button field selection  right of selection group
    you will now see which fields are assigned to the group
    and below you see in in which field reference the group is set to hidden.
    field reference is a multi usage, it can be for material type, for transaction, for industry .
    so you have to check at least the settings for your material, for the transaction where you get this effect and for the industry you material is created with.
    further there is a customizing transaction OMSA, which is plant specific field selection, and I guess that causes your effect.
    open it and see which selection group is assigned to it.
    then go back to OMSR and see what status is assigned to this field reference.

  • Hide field in material master

    Hi Friends,
    I want to hide a field in material master can some please give the step by step method of how to do the same.
    Regards,
    Wasim.

    Hi,
    Follow the steps to hide a field in material master:
    1.Just click the TAB ,(Which you want to HIDE )and get the field name (Press F1 & then in next screen click technical information)
    2. Use T.Code: OMSR and enter that field name and get FIELD SELECTION GROUP
    3. Use T.Code: OMS2 and click your material type(you used to create that material) and in next screen check Field reference ( you have assigned for the material type){{ ( example-->For ROH material type the "Field reference" is ROH)
    4. Now use T.code:OMS9, Double Click your "Field Reference" and select  FIELD SELECTION GROUP  & select round box of  HIDE  and save.
    Regards,
    Biju K

  • Initialize some fields in material master with default values

    Hi,
    I would like to initialize some fields in material master MM01 with default values.
    for exemple in the view MRP1 there is a field MRP type I would like to initialize PD in the field as default value.
    but when I go to the technical information there is no parameter id that I can use in SU3.
    Do you know how I can the initialize the field those don't have parameter ID?
    thank
    Dede

    Dear Glenn,
    This is possible in SAP for this use T code MMD1 and create MRP profile and assign this MRP profile while creating material using MM01 in the organisation level put this created MRP profile. The values you maintained in this profile get copied to the material by default.
    To maintain MRP profile go to MMD1->give your profile name...........> click on  selection screen push button--->give here profile description--->select what MRP  field which u want to make fixed one/default. if make fixed later you can not change--
    >click on data screen 1 push button and maintain your value and save
    sree

  • "Conditions" button at the material master - Change the related condition

    There is "Conditions" button at the material master ("Sales: sales org. 1" tab). We can make condition record of PR00 by this button but at our system the condition for the material price is different (it isZPR0 at our system). How can I change the related condition type as ZPR0 for this button?
    Thanks in advance for the answers....

    Check program LMGMMF0Q and FUNCTION SD_COND_GET_DEFAULT_CONDITION for details.
    It looks it is hard coded, but they also mention that Via a user exit (business transaction event), the
    default KSCHL and KOTABNR can be set.
    Regards,

Maybe you are looking for