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.

Similar Messages

  • 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

  • MM Manage mandatory field in material master data

    Hi,
    i need to manage some fields in MM01 and MM02 in order to have these fields mandatory if other fields have particular value. For example, if material type is ZFER and Prod.hierarc (in Basic Data 1) is AL001, only in this case i want that field Comm./imp. code ,in view Foreign Trade import, is mandatory.
    I'm looking for an user-exit. I find EXIT_SAPLMGMU_001 but with this solution i have a problem. The mandatory of field is active only during saving, on the contrary i would like that this mandatory will be similar to the standard.
    Thanks for help,
    Michele Garofalo

    Hi,
    I would like to make a field mandatory in Master Data.....how can i make a field mandatory field?
    please provide me solution for this one
    Cheers...

  • System demands Weight unit as a mandatory field in material master

    Hello friends,
    When I create a material with only basic data view, the system doesnot require the weight unit field(in basicdata1 view) as a mandatory field, but when I try to create a material with salesorg1 view , it makes the weight unit filed as a mandatory field and also populates the weight unit field with the value as "KG" by default. Could any one please help me to find out where I can see the configuration and the default values.
    Thanks,
    Ramineni.

    Hi Ramineni,
    Plaese go through the menupath to conttol the field selection in the Material Master just like the fields controlled in customer master. Here you can select the required fields as mandatory, suppress or Required. I believe you need to take consideration of Material Type while doing this.
    Spro->Logistics General->Material Master->Field Selection.
    Consider the transactions : OMSR & OMS9.
    Please let me know your thoughts.
    Thanks and Regards,
    Satheesh Durgi

  • 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

  • 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

  • Maintain Profit Center as mandotary field in Material Master

    Dear Experts,
    We would like to make Profit Center under Sales: General/Plant view as mandotary field during Material Master creation. Kindly assist me the path that where we can maintain this. Thank you.
    rgds,
    nantha

    Hi,
    Go to OMS9, Under Field Selection (Field Selection Group 1) screen tab, double click the material type for which you want Profit center as mandatory field.
    Scroll down to Selection Group "48", Select the radio button "Required Entry".
    Go to MM01, check under Sales: General/Plant, you will be able to see Profit Center as Mandatory field.
    Hope this will help you out.
    Regards,
    Vijay

  • 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

Maybe you are looking for

  • How do I hide subfolders in my inbox on iPhone 6

    I have a new iPhone 6 and I should point out that this is my first iPhone. I have added my work email to the phone via Exchange and it has synced perfectly, however within my work inbox are many many Folders and subfolders etc. The trouble I have now

  • BPM 11g: problem trying invoke a process instance from Java

    Hi all, I'm trying use this java code http://kr.forums.oracle.com/forums/thread.jspa?messageID=9244238 bpmServiceClientFactory = BPMServiceClientFactory.getInstance(properties, null, null); bpmContext = bpmServiceClientFactory.getBPMUserAuthenticatio

  • Problem with Full Screen Mode on Linux

    Hi all, I have a desktop application that should run on Full Screen Mode, and it is running fine on Windows XP/2000. I have many graphic functions that works perfect, but when I try to run it on Linux, it doesn't support full screen. I have a Red Hat

  • TIME TICKET CONFIRMATION IS NOT EXICUTING AT SUB OPERATION

    Hi, We are trying to post Time ticket Confirmation at sub-operation level through standard web service. Up to Operation level,standard web service is working fine but problem arises when we do posting at sub-operation level.Web service is not working

  • Escape Character - Help

    HI all, i am making a simple program to display a ASCII number and the symbol associated with it. To get each number in 4 digits i used a simple counter. But the problem is that i can not display the character because i can not associate the '\' with