Material master custom validation

hi, friends i have doubt about Material master Custom validation coding .i want some codes...please send me some sample codes...

Hi Krishna,
                 Tell me your requirement clearly.
refer this thread.This may help you
In material master How to add a new field on Basic data 1 view
Regards
Karthik

Similar Messages

  • Issue in Material Master custom tab

    Hi Experts,
    I have developed a tab in material master using SPRO -> IMG-> Logistics General -> Material Master -> Configuring Material Master -> Define Structure of Data Screens for Each Screen Sequence . Its called Costing3.
    While executing mm03 and selecting costing2 and costing3 its showing perfectly. But when i select costing3 alone its showing the below error.
    *Maintenance status of field MBEW-ZPLD1 does not correspond to status of screen*
    How to correct this? Is i missed anything in SPRO setup?
    Any one Kindly help me out.
    Mohana

    go to OMSA and maintian the status of "costing3"
    path SPRO: > Logistic general > material master > field selection > define plant specific field selection and plant specific screen selection

  • BAPI Required: Material master and customer master

    Hi experts.
    I need a BAPI's which returns
    <b>Material Master,
    Customer Master</b> detail.
    Regard
    Anees
    9886358645

    Hi Seshu Maramreddy , and All,
    <b>BAPI_MATERIAL_GET_DETAIL</b> is used to get the single record when we pass material no. but my requirement is get the all the record from material master without any condition i mean without passing the material no.
    The same with <b>BAPI_CUSTOMER_GETDETAIL2</b>.
    Now u can ask me to use the loop and call the BAPI but i cant do this because i have thousands of material and that is other R/3 system not is local R/3 system.
    I got 2 more BAPI's
    BAPI_MATERIAL_DISPLAY
    BAPI_CUSTOMER_DISPLAY.
    I think this BAPI's also use to display only one record at a time.
    Regard
    Anees
    9886358645

  • In material master two countries are comming Hu and De for tax classificati

    Hi All,
    In material master two countries are comming Hungary and germany for tax classification ,can anybody tell why .
    Thanks

    Hello,
    Please check the Tax Determination Rules & Tax Relevancy of Master Records in the link below:
    IMG - Sales and Distribution - Basic Functions - Taxes
    1. Define Tax Determination Rules
    2. Define Tax Relevancy Of Master Records - Materiall Master.
    It is from the above links the Countries & Tax Categories are proposed in Material Master / Customer Master.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Material Master : how maintenance statutes works ?

    Hi,
    I'm new to Material Master customizing and I would like to understand what maintenance statuses do and how it works.
    What does it mean exactly if I add for exemple the maintenance status "V" instead of "E" for the screen that correspond to purchase view ?
    Does it meen that the "purchase" view will become mandatory before I can sale some material and stop being mandatory to pruchase the material ?
    Are mainteance statuses related to user authorization, for exemple does it tell the views I'm aible to display or not ?
    Thanks for help,
    Regards
    Morgan

    Thanks for this answer but I don't think it solves my problem.
    What you are talking about is using the MM50 transaction to see which view aren't yet maintained considering à gived maintenance status. Of course, if I don't change default customizing, using MM50 with 'D' as a value for parameter 'Status' will tell me wich material do not have MRP Views maintained.
    But my questions a re related to :
    - authorization concept : do the maintenance statuses values I specified under "Configuring the Material Master u2192 Define Structure of
    Data Screens for Each Screen Sequence" determine wiche user can access wich view
    - if i change the maintenance statuses related to a view in this customizing, what will it do ?
    Regards,
    Morgan

  • Validation for PO text in the material master.

    Hi experts,
    I am trying to do a validation on the Purchase Order Text (long text) which must always be filled in Language EN and DE.
    Thus if a user tries to edit a material in MM02 or creates a new one in MM01 - this box of long text (PO text) must be filled, else it should throw an error.
    i created a BADI and inside that i am calling the FM read_text , but it check for only existing text already saved in the database.
    WHAT ABOUT THE RUN-TIME (ex  creating a material).
    or what if the user purposely deletes an existing PO long text and then tries to save it (database might already have a PO long text saved for that material).
    Kindly help me if there is any FM which can be called to check in the Runtime if the PO long text is filled or if we can do some customizing and make that PO long text Mandatory.
    Please not we need this field mandatory only for only 03 plants, that's where the problem is coming.
    Many Many thanks in advance.
    Rittik.

    Hi,
    You can maitain the PO text of material master record in english and german. To do this goto POtext view below languages maintained create icon will be there select that give the english language, enter the text in english and save. Again select german and enter the PO text.
    To get the PO text view mandatory , go to SPRO, logistic general, material master, fielld selection,define plant specific feild selection and plant specific screen selection. For 3 plants you can configure here.Hence the POtext view will be mandatory and gives error if not maintained. I hope this will resolve your issue. Thanking you.

  • Custom - Material Master Update using an IDOC (Message Type - MATMAS_BAPI)

    Hello everyone,
    I was writing a functional specs. Basically, I want to update the material master MM02 using an IDOC (MATMAS_BAPI01 - Basic Type & MATMAS_BAPI - Message Type). This is currently working.
    To my understanding, this currently uses function module - BAPI_IDOC_INPUT1 to update the material master after the IDOC is posted to SAP ECC from XI system.
    Now I want to add one small validation logic before it actually updates the material master (MM02).
    I looked around and found one exit - EXIT_SAPLMV02_002 in enhancement MGV00001. I was almost sure that this EXIT can be used to write the custom validation code before, actual MM02 updation.
    However while trying to establish a link between this EXIT and BAPI_IDOC_INPUT1, I found that EXIT_SAPLMV02_002 is actually a part of another function module - IDOC_INPUT_MATMAS01 and not BAPI_IDOC_INPUT1. I am stuck here if adding the custom logic in the exit really going to work.
    a bit of googling and I found from WE30 that the purpose of both these function modules are actually different. While BAPI_IDOC_INPUT1  actually create & updates the material master (also plant specific master data which is my need), IDOC_INPUT_MATMAS01 is just for maintenence of few fields in MM02 (may be custom fields).
    Can anyone point out if my thing is in right direction?
    Also please offer any solution where shall I put the Custom Logic in the EXIT or the some variants of
    BAPI_IDOC_INPUT1.
    A less technical explanation would be appreciated as I come from a functional background and invloved in this for writing the func specs. I want to make it sure that what I write is not useless and makes some sense.
    Thanks in advance,
    Arunesh

    Hi Lalit,
    Did some head breaking with the function module - BAPI_IDOC_INPUT1 to check whether it is calling the EXIT_SAPLMV02_002 internally. Couldn't get anywhere.
    On question of another EXIT in BAPI_IDOC_INPUT1, I don't see any. I am not very proficient in ABAP code, I must say though.
    I found the list of exits from google, almost same list everywhere.
    http://www.sapfans.com/forums/viewtopic.php?f=21&t=296637
    here I got the EXIT, I am talking about.
    Any other way to find either the EXIT or link the above?
    -- Arunesh

  • Enhance Material Master with custom tables

    Hi MM Gurus,
    I would like to enhance the material master data (transactions MM01/2/3) with a new tab (screen) containing some customer fields and Z tables?
    I’ve been looking the follow <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/ff/516a6749d811d182b80000e829fbfe/frameset.htm">SAP Help link</a>, “Integration of New Tables in the Material Master”, and SAP Note 44410, but still is not very clear to me how to achieve my goal.
    Can anybody tell me all the steps that I’ve to perform to do that?
    Do you know any other documentation about this issue, like a how-to guide for instance, that I can use?
    Thanks a lot for any help!
    Alexandre

    Hi,
    Firstly I would suggest that you do not do this unless you ABSOLUTELY have to.
    It is not a major modification but there is another more standard way to add fields to material masters and no modification or user exit is required.
    Simply classify the materials and use a characteristic for each additional field you want to add.
    The classification system is very flexible and very powerful and so it can easily handle complex data and interactions with other data. You can add multiple classes and so use whole groups of data. There is also a lot of standard validation as to field contents etc. (Including tables of possible entries etc.)
    So please do consider using classification first (even if you already use classification of your materials). You can also then use the standard search functions on any of the new "fields" .
    No ABAP, No modification and available now !
    Worth considering?
    Steve B

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Replication of Customer and Material master from R/3 to CRM

    Hi
    Recently in our quality server basis administrator has made a client copy from production server after that customer master and material master are not flowing from R/3 to CRM, even sales orders were not getting copied from CRM to R/3 , i went through C71 BB config document and fixed the sales orders updation from CRM to R/3 but not able to resolve the problem of customer master and material master from ECC to CRM.
    I went to B09 BB document and all settings are fine.
    Using R3AS I have loaded following objects DNL_CUST_PROD0, PROD1, PROD3, SPROD , DNL_PLANT. and Material.
    I went to R3AM1 and checked the status as running or wait for each object.
    There are no filters in R3AC1 .
    Queue name withR3AD_MATERIA0000000001 has status SYSFAIL in SMQ2  .
    What can i do to resolve this problem.
    Please advice.
    Thanks,
    Vaishnavi

    Hello Vaishnavi,
    After the client copy , have you run txn:BDLS in order to change the LOGSYS in all relevant tables?
    You can run this txn in test mode as well to see the affected tables.
    Are you getting any dump on these load ?Check it in txn:ST22.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • Material Master Upload using Bapi getting error "****** not a valid unit of

    Hi Gurus,
    i am uploading material master using BAPI Material_master_save_data , where the volume and Unit of Volume is Blank, Still i am getting error as "****** not a valid unit of volume ".kindly help me to resolve the issue.Many Thanks In advance.

    Jurgen,
    I could able to solve the issue for invalid unit Error ....Now i am getting **** unit of measure is not defined , pls check your entry or else i am getting alternate unit of mesure is same as base unit of measure .
    I have used below logic for Purchase Order Unit and Base Unit of measure .
          if wa_upload-unmsr EQ wa_upload-ord_uom .
            bapi_mara1-base_uom = wa_upload-unmsr.
            bapi_mara1-po_unit = wa_upload-ord_uom .
          elseif wa_upload-unmsr NE wa_upload-ord_uom.
            wa_upload-ord_uom = wa_upload-alt_uom.
            bapi_mara1-po_unit = wa_upload-ord_uom.
          endif.
    Many Thanks for your help.

  • Impacts in COPA of changing material and customer master data

    Dear experts,
    In my company we are considering following scenario:
    Currently mySAPerp 6.0 is implemented for all modules for the mother company.
    We have developed a new global template where there are significant changes versus the existing system, especially in the SD processes. Material and customer master also change significantly in terms of content in the tables/fields and/or values in the fields.
    The idea was to build the template from scratch in a new machine and roll-out all group affiliates, but now we are considering the possibility of making an evolutionary of the current system and try to stretch it to the processes defined in the global template.
    The scenario we want to analyze is: Keeping same organizational structure in terms of Company code, CO area and Operating Concern in existing SAP client and make an evolutionary of the existing settings to the global template processes.
    The doubts we are having are the following:
    Changing material & customer master data: Impact in COPA
    Option 1: Material master data and customer master data codes are maintained but content in the tables/fields is changed substantially, both in terms of logical content of specific fields and/or the values in the specific fields. We have following examples of changes.
    Case 1: source field in material master changes logical content. E.g. Material master field MVGR1 is currently used for product series (design line) and the content changes to be the Market Segment. The product series will be moved to a classification field. At least 5 other fields are affected by this. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 2: the source field is not changed so that the logical content of the field remains but the values change, i.e. for the same concept there will be different codifications. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Case 3: Characteristics where currently the source material master field is a Z field and the derivation is via table look up and where the Z field changes to a classification field. How can you convert the existing COPA line items to ensure that attributes are aligned? Should new characteristics be created or just change the derivation logic of the characteristic?
    Option 2: Material master data and customer data codes are re-created (codification of records is changed), meaning that new material and customer codes will exist and content in tables/fields is changed (as in option 1)
    Case: material and customer codes are changed. How can data in terms of COPA line items be converted so that they are aligned at time of reporting?
    Iu2019ve never phased a similar scenario and I fear that maintaining operating concern while changing source master data and also SD flows (we have new billing types, item categories, sales doc. Types, order reasons) may lead to inconsistencies and problems in COPA.
    I would like to ask you experts if you have come across a similar scenario and if from your experience, it is something feasible to do or there are many risks involved. What can be the impact of this scenario in existing Operating Concern for both option 1 and 2 and what would be the key activities to perform to adapt the existing operating concern. What will be the impact of the needed conversions on P&L reporting?
    Sorry for the long story. I hope you can help me out.
    Thanks and Regards,
    Eric

    Hi,
       First i think you will need to test if it works for new COPA documents created via billing.
      If it works fine then the issue is if you wish to apply these changes to the historical data already posted.
      Normally there are transactions like KE4S where you can repost the billing document to COPA
      However this may not be viable for bulk postings
      You can perform realignment (KEND) but this only works at the PA segment level (table CE4XXXX)
    regards
    Waman

  • Customer & Material Master data is not saved in SAP 4.7

    Hi All,
    We created a customer in T code XD01 and saved it. system threw a message that "customer 500001 has been saved" but when I tried to check the customer ID 500001 in XD02 and XD03, it says custoemr 500001 has not been created.
    I have checked in table KNA1, KNB1 & KNVV. No data is available in these tables.
    Same case with material master data even.
    Can anyone please tell me what could be the reason for this problem & how to fix it.
    Thanks in advance.
    JM

    Dear JM,
    Goto SNRO- Enter the number range object & click on "Change " icon.
    NR Object: DEBITOR
    Check whether any value maintained in "No. of numbers in buffer",  make it blank & re-create customer.
    It may not be exact route cause of the problem, but could be the reason .
    Test & update the forum.
    Regards,
    Reazuddin MD

  • Custom Material Master

    Hi
    I need to upload Material master data through LSMW, for this am using Object               0020   Material master
    Method               0000
    Program Name         RMDATIND
    Program Type         D   Direct Input
    <b>Problem is</b>
    We created one customised View for Material master and we have some custom fields in that view.
    Please can you tell me the procedure of appending the custom fields and view in the Direct input method program.
    I am able to pass the custom fields in LSMW direct input program using
    SAP NOTE 38299, But the customized view is not reflecting in LSMW Direct input program.
    Can you please help me how can i get Customized view in LSMW direct input program.
    Regards,
    Uma

    hi,  In my opinion,  you can check the direct input program, if it support some enhancement,  if so, you can add you logic into it.
    If not,  I think you have some enhance logic for the customize screen to update your material information.  Copy RMDATIND to a  Z program, and move these logic into this program.  E.G. update these customize part data yourself, as a additional logic in Direct Input program.
    Help it will be helpful

  • Material Master Upload though LSMW - How to add new custom segments to LSMW

    Hi,
    I have an existing LSMW to create material master idocs (ZMATMAS) from legacy file. Now I need to add new custom segment under E1MARCM, for example say ZMARC1 which will have 2 new custom fields.
    1. I created the segment through WE31 and released it.
    2. I created an extension to ZMATMAS using WE30 and released it.
    Now Im trying to change the LSMW so that I will have the new segment ZMARC1 under E1MARCM so that I can do the field mappings. But I am not able to get it done. i.e. I dont know what should I do so that I can get the new segment in LSMW.
    I tried giving the extension in the first step of LSMW. i.e. Maintain Object Attributes but its not allowing me to give an extension. Do I need to add to the basic type ZMATMAS05 and release it to get it reflected in LSMW.
    Please give your suggestions.
    Thanks a lot in advance.

    Hi
    U can not add u r 'Z' program in Maintian attributes of LSMW.
    But U can create the BAPI and assign Business object, Then u can use u r Business Object in Lsmw.
    Regards,
    Raghu.

Maybe you are looking for