Material master reallocation

If material is deleted then can we create a new material with the deleted material number, ie reallocation of the number?
-Bansal

Hi,
No,
mainly because the material is not physically deleted, it is merely flagged as deleted until the archiving process has run and even then, links are kept to the master data.
If a material number has been used, there will be historical data, movements, sales and purchases. This historical data cannot be deleted due to auditing purposes and so the material number wil be refrenced on them and any subsequent reports would show the "old" material and the "new" material combined.
So SAP does not allow you to reallocate a material.
Steve B

Similar Messages

  • What are the mandatory fields while creation of material master in differen

    what are the mandatory fields while creation of material master in different views?

    Hi Gopi,
      This is purely depends on the function configuration, which would be done MM consultants.  Kindly check with them.
    thanks & regards
    Kishore Kumar Maram

  • Copy of Material Master charac. values to the batch classif. in GR for PO

    Dear gurus,
    Could you please help me with the following issue. I have a material managed in batches, and it has a classification type 023 in material master. I fill one chaacteristic of this classification with some value. Now I want this value to be copied to the batch classification during the creation of new batch while making GR to production order.
    Is it possible?

    Hi Nikolaj,
    What I am understand your requirement is like,
    You want to fetch the value of Characteristic maintain in Batch class in Material master to the Batches, correct?
    But my Friend if you maintain value of characteristic in Batch Class in material master then it will works as a validation.
    For Example,
    Suppose your Characteristic is Colour and in Material Master Batch classification view you have maintain value as Red.Then system will not allow you any other colour in Batches.You will find that value in Drop Down list.
    Regards,
    Dhaval

  • Automatic creation of Material Master at the time raising the PO !!!

    Hello All,
    I am stuck in a scenario of our client which should be implemented (or mapped) in SAP.
    Scenario: At the time of creating the PO (in there legacy system -in house developed) they can choose the items from the existing master data or/and they can also add a new item (which is not present in the master data records at the time of creating the PO).
    Now as soon as the system realise that a new item is inserted into the PO, it will create that item record automatically in the backend (database) and the master data will be present from there on.
    The items they are dealing with are all fashion accessories and they generate order on the following basis:
    1. Demand of particular item in market.
    2. List of items provided by the vendor.
    3. Based on the requirement in there outlets.
    So for them its very difficult to fix there master data records, as it can be changed daily or monthly as per the market conditions. At the same time every time they order, its almost around 100 different items (some time 80 of them are new) in a single PO so they cannot create 80 records manually each time.
    These items are not consumable material so obviously they are maintaining the stock for them. They are also not going to use IS Retail.
    I am not at all sure how can we map this particular practice in SAP, it would be really appreciated if any one could help me on this problem.
    Please let me know if you need any other details from my side.

    Hi,
      As you have two different systems one in house developed and another SAP, and the PO creation part starts from Legasy system which creats the PO in SAP, you can do some development as per below
    1:  While Passing the details from legasy to SAP, use two columns in legasy one will contain the Material Code of ECC (for laready exist material ) and another for deescription of material.
    2: In case material is new for which there is no material master in ECC pass only description from legasy systems.
    3:While getting triggred from Legasy to ECC to create the PO, first check whehter all the material code exists or not in ECC.
    4:If some material are not created (only description present) for those material first create the Material Code using BAPI 'BAPI_MATERIAL_SAVEDATA'.
    5: Aftre creation of Material code create the PO using BAPI ' BAPI_PO_CREATE1'.
    6:For the new created material , trnasfre the master record from ECC to Legasy systemso that next time user can see that material in your legasy system.
    Regards,
    Zafar

  • Creation of material master

    Dear all,
    While entering of MM01, MM02, MM03 T codes, The system showing the error message - "Record Y1 01 does not exist in Table T133A" - for this what do I do, Plz suggest.
    reg
    Vishnu.Ch

    Hi Madhu,
        Thanks for your reply. But, I have one more doubt. For non stock materials, we
    will specify the cost centre and G/L account at the time of creation of Purchase order. Then, do we have to specify the valuation class at the time of creation of
    Material Master since there is no automatic account determination?
    Regards
    Yoga

  • In creation of material master

    hi to all,
    I have one issue regarding material master creation in in intial screen.
    when i enter the material number, industry sector and material type it gives one error  message as "record Z2 01  is not exist in table T133A"  and message number as "M3748".
    Regards
    Raju.

    Hi
    Are you experiencing this after upgrade?
    This is something relevant to IS-oil.
    However please go through OSS notes 918298 and 868771, you may get a clue.
    warm regards
    sairam

  • Issue in material master update from presentation server  using BAPI....

    Hi Guru's...
    i am trying to change the material master from presentation server (desktop flat file)
    using BAPI(BAPI_MATERIAL_SAVEDATA) ....
    while executing my program i am getting the message like material had changed...
    but while in mm02 i am un able to fine the updates...
    please find below program logic and correct me if any mistakes....
    thanks in advance...
    *& Report  ZAREPAS36
    REPORT  zarepas36.
    DATA : gs_bapimathead             TYPE  bapimathead,
           gs_clientdata              TYPE  bapi_mara,
           gs_clientdatax             TYPE  bapi_marax.
    TYPES : BEGIN OF gty_itab1,
            matnr(18),
            matkl(9),
            spart(2),
            ntgew(13),
            gewei(3),
            meins(3),
            END OF gty_itab1.
    DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
           gwa_itab1 TYPE gty_itab1.
    TYPES: BEGIN OF gty_itab2,
           abc(132),
           END OF gty_itab2.
    DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
          gwa_itab2 TYPE gty_itab2.
    flat file at selection screen
    PARAMETERS: p_files TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = p_files
        filetype = 'ASC'
      CHANGING
        data_tab = gt_itab2
      EXCEPTIONS
        OTHERS   = 8.
    LOOP AT gt_itab2 INTO gwa_itab2.
      IF gwa_itab2-abc(1) = 'S'.
        gwa_itab1 = gwa_itab2-abc(132).
        APPEND gwa_itab1 TO gt_itab1.
      ENDIF.
    ENDLOOP.
    loop at gt_itab1 into gwa_itab1.
    *Material
    gs_bapimathead-material    = gwa_itab1-matnr.
    *Material details at client data
    *material group.
    gs_clientdata-matl_group = gwa_itab1-matkl.
    gs_clientdatax-matl_group = 'X'.
    *Division
    gs_clientdata-division = gwa_itab1-spart.
    gs_clientdatax-division = 'X'.
    *Net Weight
    gs_clientdata-net_weight = gwa_itab1-ntgew.
    gs_clientdatax-net_weight = 'X'.
    *Unit of Weight
    gs_clientdata-unit_of_wt = gwa_itab1-gewei.
    gs_clientdatax-unit_of_wt = 'X'.
    *Base Unit of Measure
    gs_clientdata-base_uom = gwa_itab1-meins.
    gs_clientdatax-base_uom = 'X'.
    endloop.
    *calling BAPI for making changes in material and saving thru BAPI.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata    = gs_bapimathead
        clientdata  = gs_clientdata
        clientdatax = gs_clientdatax.
    IF sy-subrc NE 0.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      WRITE: / 'Error occured while changing material'.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      WRITE: / 'material',gs_bapimathead-material,'changed'.
    ENDIF.

    hi hello Guru's
    i resolved the issuee..
    pleaso go thru the below proram logic for your reference..........
    *& Report  ZAREPAS36
    REPORT  zarepas36.
    DATA : gs_bapimathead             TYPE  bapimathead,
           gs_clientdata              TYPE  bapi_mara,
           gs_clientdatax             TYPE  bapi_marax.
    TYPES : BEGIN OF gty_itab1,
            matnr(18),
            matkl(9),
            spart(2),
            ntgew(13),
            gewei(3),
            meins(3),
            END OF gty_itab1.
    DATA : gt_itab1 TYPE STANDARD TABLE OF gty_itab1,
           gwa_itab1 TYPE gty_itab1.
    TYPES: BEGIN OF gty_itab2,
           abc(132),
           END OF gty_itab2.
    DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,
          gwa_itab2 TYPE gty_itab2.
    DATA:ls_return         TYPE bapiret2,
         lt_bapiret2       TYPE standard table of bapiret2.
    flat file at selection screen
    PARAMETERS: p_files TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = p_files
        filetype = 'ASC'
      CHANGING
        data_tab = gt_itab2
      EXCEPTIONS
        OTHERS   = 8.
    LOOP AT gt_itab2 INTO gwa_itab2.
      IF gwa_itab2-abc(1) = 'S'.
        gwa_itab1 = gwa_itab2-abc(132).
        APPEND gwa_itab1 TO gt_itab1.
      ENDIF.
    ENDLOOP.
    LOOP AT gt_itab1 INTO gwa_itab1.
    *Material
      gs_bapimathead-material    = gwa_itab1-matnr.
    *Material details at client data
    *material group.
      gs_clientdata-matl_group = gwa_itab1-matkl.
      gs_clientdatax-matl_group = 'X'.
    *Division
      gs_clientdata-division = gwa_itab1-spart.
      gs_clientdatax-division = 'X'.
    *Net Weight
      gs_clientdata-net_weight = gwa_itab1-ntgew.
      gs_clientdatax-net_weight = 'X'.
    *Unit of Weight
      gs_clientdata-unit_of_wt = gwa_itab1-gewei.
      gs_clientdatax-unit_of_wt = 'X'.
    *Base Unit of Measure
      gs_clientdata-base_uom = gwa_itab1-meins.
      gs_clientdatax-base_uom = 'X'.
    ENDLOOP.
    *calling BAPI for making changes in material and saving thru BAPI.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata    = gs_bapimathead
        clientdata  = gs_clientdata
        clientdatax = gs_clientdatax
      IMPORTING
        return      = ls_return.
    LOOP AT lt_bapiret2 INTO ls_return.
      EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      WRITE: / 'Error occured while changing material'.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      WRITE: / 'material',gs_bapimathead-material,'changed'.
    ENDIF.

  • Adding fields in costing view of material master

    Hi gurus,
    I need to add 4 fields in costing view of material master. I have followed the steps in SPRO, for configuring customized screen in material master.
    1) Created a function group YMMCO and copied the screen 2904 from program SAPLMGD1.
    2) Added 4 fields in my customized screen.
    3) Created copy of 01 ( Screen reference ) to z1 in OMT3B.
    Since 2904 is not there in the sequence . I changed one 0001 sequence at the end to 2904 . I also assigned my program
    SAPLYMMCO to it. I can see the changed fields in data screen and subscreen.
    4) Then I assigned the SSq to z1 in transaction OMT3E.
    But unfortunately, when I go to MM01 to create a material , I am not able to view the fields I added in costing view.
    I have checked the screen for the previous field, it shows 2904 only.
    Two days back, I did the same thing in basic data view 1 , it was working properly. As per client's suggestion I put it in
    costing view, it is not working . Please give me suitable suggestions.
    Thanks in advance.
    D. Mallick

    Hi,
    I also need to add custom fields to Basic data view. After copying & changing the screen sequence in Config, I could able to see the custom fields in Basic Data view.
    I have appended structure with custom fields to MARA table.
    But the values I enter in the screen is not getting updated to the table MARA.
    Can you please let me know the code, I should have have in PAI (Process After Input) module in the Sub Screen to update the values?
    Thanks,
    Dasa

  • View document in material master, Basic data 2 screen?

    Hello gurus,
    How to view a DIR assigned to material master - basic data 2?
    According to help.sap.com:
    Additional Function for Material Master Record:
    In Customizing for the Material Master, you can define a standard document type by choosing Make Global Settings.
    -  Done this: assigned document type needed, created a DIR with that type and assigned it to a given material
    Documents of this standard document type are displayed in the material master record, in the Basic data 2 view (Extras ® Document data).
    - Information of the DIR can be seen in the main screen, no path Extras --> Document data (I know DIRs are shown behind menu path Additional data --> Documents)
    You can display the original application files of a document (for example, an engineering/design drawing) directly from the object (for example, material) using a display application (viewer).
    PROBLEM starts here: no icon or button to click in order to view the document although the help states so.
    Any idea what should be done? Should I install a software of some sort to view? Assign it somehow with SAP? The document type here is doc (MS Word), so nothing special.
    Any advice is highly appreciated.
    BR,
    Pipsa

    Hello Sam,
    Sorry, I think I described the problem inaccurately.
    I could see the document already but for that I must follow the path Additional data --> Document data.
    My core question was: Is there a means to allow a user to display the document directly in the screen Basic data 2 since system creates a new subscreen called Design documents assigned anyway?
    It seems that the design documents assigned is for information purposes only. It would have been far better with usability to have the display icon in the main data.
    BR,
    Pipsa

  • 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

  • Material master data complete in bi - infoset or multiprovider

    Hi all.
    for one of the reporting requirement of my client i need to extract the complete material master data in BI - from MARA, MARC, MARD, MSTLB tabls.
    which i have done and stored in the infoobjects - 0MATERIAL, 0MAT_ST_LOC, 0MAT_PLANT, 0MAT_SALES.
    now user want to see all the information against each material in 1 single line the multiple lines will only come in when there is plant.
    which approach i shoul go for this scenario.
    infoset or multiprovider.
    i created infoset by using inner join but then i see only common materials, left outer join is giving me problems.like -
    Invalid or missing ON condition for left outer join (0MAT_PLANT)
    Invalid or missing ON condition for left outer join (0MAT_ST_LOC)
    Invalid ON condition for left outer join (0MATERIAL)
    kindly give your suggesstions on this.
    thanks
    dipika

    Hello,
    There are restrictions regarding left outer join in infoset:
    If a left outer join is used, the following restriction applies to the right table (right operand):
    ·        Only join conditions with exactly one other table can be defined and
    ·        This table in turn cannot be a right table (right operand) of a left outer join.                                       
    Tables connected with left outer joins always form the end of a chain of tables. In this way, as many tables as you want can be linked in an InfoSet with a left outer join to a core of tables that are connected using inner joins.                                                
    The restrictions on the definition of left outer joins are due to the technical limitations of databases. These restrictions do not apply to inner joins. 
    http://help.sap.com/saphelp_nw2004s/helpdata/EN/67/7e4b3eaf72561ee10000000a114084/content.htm
    http://help.sap.com/saphelp_banking60/helpdata/ru/a3/96663bd194a978e10000000a11402f/content.htm
    BR
    Ondrej

  • Not allow order unit in INFO record if it is not in material master

    Hello there!
    In standar SAP any user can introduce any order unit in the info record, even if it is not maintained in the material master alternative units of meassure. We need to block this...
    The conversion factor is not a problem for us, as we can set it only for display in the customizing, so that the systems brings it automatically from material master
    The idea is to allow as order units only those units of meassure that exist in material master.
    We have been checking if it is possible, but no success...
    Any idea on how to get it? Error messages, user exists, or so on...
    Thanks!!
    César

    Hey vmendoza7785,
    Congratulations on getting your new iPhone. I'm sure it is frustrating not being able to do everything you want with it. Let's see if we can get your backup started.
    If you are having an issue with being unable to make a backup of your iPhone with iTunes, I would suggest that you troubleshoot using the steps in this article - 
    If you can't back up or restore your iPhone, iPad, or iPod using iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • Profit center in material master is not in MARC table

    Hi All,
    We have maintained profit center in Material master costing 1 screen but when I am checking it in MARC table I am not able to see profit center in MARC Table.
    Please tell me in which table this profit center data will sit.
    Thanks in advance.
    Pavan H S

    Hi,
    The field name of profit center in table MARC is MARC-PRCTR, maybe you should increase the width of output list in the selection screen when you use data browser of table; or from menu Settings>List Format>Choose Fields, then select field PRCTR to display, that will be okay!
    Good day
    Z.T

  • New Text in the Sales Text View in the Material Master

    Hi All,
    I want to create new text ID in the material master sales text tab
    Can you please help me in how to create the new text for material master sales text tab view.
    Regards
    Rajesh

    Well it may not be possible by standard SAP to create in Material.
    AN alternative might be to use a standard text type and then call it in your Text Determination Procedure.
    T-code "SO10" --> Give "Text Name  & Text ID & Language --> Click at "Create" --> On next screen --> Go to (Menu) --> change editor --> Write the text which you want
    Go to VOTXN , and maintain the required confirguation to get this standard Text copied to the material during order processing.
    Regards
    Sai
    Edited by: Sai on Apr 16, 2010 1:39 PM

  • Upload of purchase order text in the material master

    Now we have information of Purchase order text for all the material.
    Is it possible to upload the Purchase order text using LSMW.
    Some friends were telling that LSMW is not possible for Purchase Order text.
    Can anyone suggest how I can upload this purchase order text for all 1000
    material using LSMW program.
    /if not LSMW is there any other method to upload it
    thanks in advance
    deepak.s.goura

    Dear Deepak,
    there is standard direct upload i believe
    go to lsmw
    Execute 1st option
    then inLSMW:Object Attribute screen
    in standard batch/ direct input
    firsr radio button
    select object 005
    and method 003
    Program name RSTXLITF.
    Then go by normal process i.e source field , field mapping...
    In this way u can also upload Text in the Material master.
    Rewards if helpful
    Regards
    Sanjay L

Maybe you are looking for