Material Master upload problem (LSMW)

Hi
  I am using Standard Batch input program (RMDATIND)  for MM upload i need to validate the old material number if it is already existed in MARA it should throw an error at the end of the processing saying that "Old material number" already existing in MARA . Flat file will have thousands of records.
One solution like, we can move all the error records in one internal table in code of Filed mapping conversion rule step , but the problem is where we can write the error records?
Another question when we use Standard program for conversion is it possible to show error log at the end of the processing?
Its very urgent  Kindly help me ........
Rgds,
bhanu.......

Hi,
  YOu can populate error messages in LSMW. To achieve this you add code in LSMW.  Follow the below procedure to add code in LSMW.
In Display FieldMapping and Conversion rule Step of LSMW click the button Display Variant. A screen will pop up. Check the boxes - Global Definitions and ABAP Sub Programs. This will allow you to add code in LSMW.
At check the error records follow the below mentioned procedure...
<b>Error messages in the conversion log</b>
How can user-defined error messages be added to the conversion log?
1.     Use of  WRITE  command in the Coding
a.     Example: WRITE: ‚Error during conversion of field xxx’
2.     In the editor use ‚Insert -> Message’ to use a message already existing in the SAP system.
a.     Example (Coding after using the menu function and filling the fields):
WA_ERRORTAB-ID = '/SAPDMC/LSMW'.
WA_ERRORTAB-MSGNO = 012.                         
WA_ERRORTAB-PAR1 = 'A'.                          
WA_ERRORTAB-PAR2 = 'B'.                          
WA_ERRORTAB-PAR3 = 'C'.                          
WA_ERRORTAB-PAR4 = 'D'.                          
INSERT WA_ERRORTAB INTO TABLE G_ERROR_TAB. 
The message will be added to the log.
For further reference click the link below
http://www.erpgenie.com/sapgenie/docs/Lsmw.zip.
Regards,
Vara

Similar Messages

  • Material master Upload with LSMW

    Hi
    When I make Material master Upload with LSMW, I could not find any entry in planning file.
    Please explain.

    Mayuresh,
    Not all LSMW transactions properly update Planning file.
    You can run transaction MDAB to set up planning file in Background
    You can run transaction MDRE to detect and correct Planning file inconsistancies in Background.
    It is probably a good idea to run these jobs periodically, say, weekly, in most production environments.
    Regards,
    DB49

  • Problems in Material Master Upload by LSMW

    Dear Experts,
    The question was asked to me in interview, What Problems you face while uploading your material master data by LSMW ?
    Please give me some information on this question.
    Thanks in Advance

    hi,
    Check the link it would be usefull:
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/c5/213c487a3c11d3bc8100105a6588b2/frameset.htm
    Hope it helps...
    Regards
    Priyanka.P

  • What is the standard program for Material Master upload using LSMW

    Dear All
    I am trying to use the MM upload using DATMIG_INF4. I want to know what are the different standard projects that are used for Material master upload.

    Hi Amol,
    You can load the material master using direct input method  in LSMW ,details of which are as follows:
    Object               0020   Material master
    Method               0000                 
    Program name         RMDATIND             
    Program type         D   Direct input    
    Please revert back in case of any doubt.
    Cheers
    VJ

  • Problem in material master upload using LSMW

    Dear All
    I am trying to upload material master using LSMW (batch input recording).
    I am facing problem while doing 14 step (Run Batch Input Session). When i'm running the batch input session, on the Create Material (Initial Screen), system picks values for material code, industry sector & material type but gives error message "select at least one view". system is not allowing me select the views which i selected while recording. system allows me to select all the view which i don't want.
    why system is asking me to select the views and also how to select the required view?
    thanks
    manoj gupta

    thanks charu
    do i need to do complete LSMW steps fpr all the view separately? if i do LSMW for basic view1, for other view do i need to go for change TCode or create T Code?
    thanks
    manoj gupta

  • Help reqd on Material Master uploading in LSMW by view steps....

    Hi all....
    Pls understand my requirement and post ur replies...i dont need the basic LSMW learning steps for MM,Vendor etc.,like that...
    My problem is...im want to upload my material master datas by steps like 1st i want to uplaod the basic views 1&2 for all the material types in one shot...
    next thing i want to load the other views like purchasing sales mrp plant qm accounting etc., in single shot......like screen to be extended formats....im mm01 or by mm02...
    when i did....no problem i've  faced upto MRP loading...but the next view like plan,QM,accounting is not coming when recording in RUN batch input session..it says..."the material has been already extended and no input was given for this screen"....
    Hope u understand,my problem....
    if u have answers...pls post me on urgent basis.....
    thanks...
    sankar

    Create purchase requisition by LSMW

  • 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.

  • I have encountered a peculiar problem in MM01 material master upload.

    I have encountered a peculiar problem in MM01 material master upload. The
    BDC program uploads data using Session method. The problem is when i
    process the session in foreground mode the data uploads successfully, but
    when i process it in background mode it gives the following errors in the
    log.
    'Control Framework: Fatal error - GUI cannot be reached'.
    'Runtime error RAISE_EXCEPTION has occurred'.
    When i debugged the program i found that this error is encountered when
    data is being input in 'Purchase Order text' editor of MM01 transaction.
    There is no problem with the BDC recording or the program as i could see.
    The only problem what i believe is the system is unable to call the text
    editor for inputting purchase order text data in background mode.

    Hi
    Try uploading a BAPI it would be better
    http://www.saptechies.com/mm01-upload-using-bapi/
    Regards
    Shiva

  • I want to upload material master (MM01) using LSMW with BAPI method

    I want to upload material master (MM01) using LSMW with BAPI method and also later on I may need to change the updated data.
    Which business object and Method I should use so that i can do both.
    Thanks
    kumar n

    Hi,
    The business object is BUS1001.
    Thanks,
    Murali

  • Problem with Material Master upload

    Hi All,
    I want to know what the file MTVFP( Group Check Availability) filed gonna do in material master upload bapi "BAPI_MATERIAL_SAVEDATA". When i am trying to upload data i am getting the following error "The field MARC-MTVFP/BAPI_MARC-AVAILCHECK is defined as a required field; it does not contain an entry".
    Thanks

    Hello Ben ,
                    I am getting the same error , could you please let me know how you got it solved.
    Comradely ,
    K.Sibi

  • Material Master upload Programe

    Hi anybody,
    I developed Material master upload programe in ABAP. Material is uploaded. but more than 18 characters materials is upload upto 18 characters last character is "!".
    Ex: SET SCREW M12X50MM L    - I want upload this material.
           But SAP takes automatically like SET SCREW M12X50M! 18 th character is "!" symbol.
    how do i resolve this problem. I want upload more than 18 characters.
    anybody please tell me this issue.
    Tks,
    S.Muthu.

    what are you talking about material code or material discription
    rgds
    Rajesh

  • Help me for material master upload by using Direct Input method

    <b>Hi All,</b>
       Can any one help me out for developing Material Master Upload program  by using <b>Direct Input</b> Method where we are also submitting the report to upload the data in SAP Database.
    <b>
    Thanks in Advance!</b>
    <b>Ramkumar.K</b>

    <b>Hi Kumar,</b>
      Thanks! I am using submit statement in my program as well but its populating all the views like Sales Organization Data, Sales - General / Plant Data, Accounting, and all the other views except the<b> Basic Data View</b>.. Eventhough i have populated the corresponding fields of the same.
    I am also using structure BGR00, BMM00, BMMH1 to upload the data
    Can you please help me on this..
    <b>
    Regards,
    Ramkumar.K</b>

  • Material master upload -lsmw

    Hai guys,
               I want to upload material using lsmw for material master.i am following all the steps in the lsmw. i am using the batch input method for uploading.If the sales unit is different from the unit of measure..i will be getting the conversions data like numerator and denominator fields.
    i am getting the same fields if the issue unit is also different.so i couldnt able to map it correctly with the conversion fields..this repeating fields are not captured in the recording for the target fields.
    so i couldnt able to map it.please help me to solve this problem..
    with regards,
    sathish..

    Hi,
    Please close this duplicate thread..
    Thanks,
    Naren

  • LSMW for material master upload

    Hi gurus
    i have one problem while uploading material master with LSMW.
    I have murged 2 company codes in one so while creating material master system is asking me tax classification data in sales view for 2 country sales org and distrubition channel. I am using sap std LSMW for material master creation.
    system is giving me error as " tax classification data not maintained completely".
    need your valuable help to solve this problem

    Tax classification data is mandatory field in Sales view of MM01.
    Check out you mapping for the tax classification fields. usually classification value is 0 OR 1.
    You can first test the values in MM01 Sales View with the legacy data you have and this way you will able to find the mandatory fields also and can see the valid values for the fields.
    Remember you may have more than one Tax Classification values depending on the country code.
    For that you can add those many columns in legacy data file and map them.
    Hope it helps.

  • LSMW - Material Master upload

    Hi all,
    1)I am uploading materials by LSMW - Direct input method.
    [5th step in LSMW(Maintain Field Mapping and Conversion Rules).]
    I would like to know the field name for mapping for Tax classification field in Sales Org 1 view of Materail Master.
    I need to upload this field with 1 as input.
    How do this?.
    2) What would be the input value for Check Box in Material Master for LSMW.
    Thanks in Advance.

    Hi,
    1.) You can map this value with the field TATY and TAXM.
    2.) The check box which you are checing on the material master would be represented by 'X' in the LSMW mapping.
    hopefully this is helpful for you.
    Regards,
    Lalit Kabra

Maybe you are looking for

  • Optimizing work flow in FCP on new iMac? (dropped frames)

    Hello- I've recently purchased a new iMac, first in about 6 years. I'm looking for some advice about optimizing my work flow in FCP. I am largely self-taught, using FCP for hobbyist/amateur video. Until this new computer, I have been using FCP on oth

  • Putting text or date on picture on a calendar date

    When placing a picture on a calendar date, the date disapppears.  Is there a way to allow for the calendar date to appear or to add text to the picture? I know you can caption the picture and the text shows on a date above the picture.  Not the best

  • Changing an email address on flickr

    How can i change my default email address on flickr when it is a btinternet address?i want to make it a different yahoo address incase i ever loose my bt access

  • Plugin Needed for MIME

    Hi. I am relatively new to Macs, just got my Aluminum model a few days ago. I am having trouble listening to some things on some websites. For example, when I try the radio on this site: http://eradioportal.com/index.php?p=7&type=2&sec=4&aid=200 I ge

  • Find duplicate with sum=0

    I need to find duplicates (ID) but the sum of column VALUES has tu be zero. can anyone help me please ? I HAVE TABLE ID VALUE 100 -100 100 100 100 100 200 50 --------------- THE DESIRED RESULT IS ID VALUE 100 -100 100 100 ------------