LSMW - MB1C Variant

hi,
I need to migrate data, usualy entered through transaction MB1C ("Enter other goods receipts"), with movement type 501, where after entering materials (from class 023) screen for classification pop up. Is there any object in LSMW that can migrate this kind of data?
thx for any suggestion
Lukasz

In LSMW, you have the follwing option:
Direct Input Program - <b>RM07MMBL</b>
(Object - 0110  Method - 0000)
Business Object Method: <b>CREATEFROMDATA</b> (Business Object -BUS2017)
Actually, you can write your own program using <b>BAPI_GOODSMVT_CREATE</b>

Similar Messages

  • LSMW  -  MB1C  material with serial number

    Hi  experts,
    Is it possible to get material with serial numbers in inicial stock entry MB1C transaction recording type LSMW.
    how to do LSMW for Materials with serial numbers.
    Thanksin Advance,
    Anthyodaya.

    Hi ,
    I have one material  with 7 qty so serial number also different numbers of 7 . so where can i enter the 7 serial numbers in the excel sheet. i have to create 7 lines with same material or is there any another way.
    can u pls explain me clear. i am doing RECORDING method.
    Regards,
    Anthyodaya.

  • LSMW - Material Variant

    hi,
    I'm uploading material using LSMW object 020 method 000 and then object 0130 method 002 for classification.
    I'm unable to fill field STDPD ( ConfigurableMaterial ) and those fields under "configure variant" button on the "MRP 3" screen ( transaction MM01 ).
    what is the best way to configure variants ?
    Any suggestions ?
    Lukas

    hi lukas,
    first fill the field stdpd and using transaction mmo1 by using configure variant.

  • MB1C via LSMW for Serialized Materials not loading all Items

    Dear Experts,
    I am using LSMW to load initial entry of materials with serial numbers using Tcode MB1C. The challenge i am having is that not more than three(3) of the serials get uploaded the remaining are not loaded. I have items that have varying quantities. What could be responsible for this?

    Hi,
    Insted of LSMW  make a abap program using   'BAPI_GOODSMVT_CREATE'  it is simple and works properly.
    regards,
    zafar

  • Initial Stock Upload T code MB1C and Movement Type 561through LSMW - Error

    Hi,
    Trying to Upload the Initial Stock, Transaction Code MB1C and Movement Type 561 through LSMW.
    While recording the fileds, system giving a message of Code Block.
    Please let us know about Code Block while uploading the Initial Stock.
    Thanks
    Siddu.

    Check this thread
    [Re: Coding Block in LSMW recording via MB1C|Coding Block in LSMW recording via MB1C;
    thanks
    G. Lakshmipathi

  • LSMW and MB1C

    Hi everyone,
    I'm trying to create a program with the  LSMW using the recording overview for the transaction MB1C. but the problem is that when I record the transaction I see that for every material that my batch input session creates it will create a document number, and I just one a document number for the entire load of materials. how can I control that using the LSMW. Is it possible?
    Is there and standard program for this? (transaction MB1C).
    Thanks in advanced,
    Fidel

    I don't know for sure but i don't think that the program RM07MMBL deals with the transaction MB1C.
    I might be wrong, but I was analyzing the code and I didn't see the transaction.
    fidel

  • IDoc Error in LSMW for MB1C - Special stock type is E

    When we use MB1C for GR to enter initial entry of stock balance into unrestricted stock for special stock type is E.
    The document is Posted.
    But, when we use LSMW for the above Transaction, the document is not posted.
    In the Inbound processing of IDOC  has the status "Application document not posted".
    In the IDoc Status record gives
       current status : 51 ("SD Document XXXXXXXXX is not in the database or has been archived"
    Pl explain how this problem can be addressed.

    Hi,
    It seems that the stock indicator in E demands for a sales order in the MB1C transaction. The sales order provided by you in the flat file is getting validated by SAP and that sales order is not available in the system or might have been archived.
    It is better to provide a live Sales order to book the stock to that particular sales order. If in case if the Sales order mentioned by you is closed or not required, in such as case the material can be stored under unrestricted stock and not under the sales order stock
    Thanks and Regards,
    Dilli Babu R

  • Coding Block in LSMW recording via MB1C

    Doing Inventory load by LSMW, when recording with T.Code MB1C, in 2nd screen getting a "coding Block". How to go around it it.

    through LSMW the MB1C Recording not support, you can go for below standard methods like
    Batch Input
    Object               0110   Goods movement
    Method               0000
    Program Name         RM07MMBL
    Program Type         B   Batch Input
    or BAPI method
    Business Object      BUS2017      Goods Movement
    Method               CREATEFROMDATA              Post Goods Movement
    Message Type         MBGMCR                      Post goods movements with MB1c
    Basic Type           MBGMCR03                    Post Goods Movements with MB1C

  • MB1C LSMW Recording fails with missing Prod Date for Batch Managed Material

    An LSMW recording for transaction MB1C that was batch managed was successfully recorded.  This included the entry of the Production Date before pressing enter to post the Good Receipts.  However, when the transaction was executed, the error came back, "Enter the date of production".  In looking at the screen in the lsmw batch results, it shows the date in the production date field.
    I also tried to create the recording in the Transaction Recorder (trancode SHDB), and process the recording simulating the background mode and got the same results.
    Any ideas why it seems to be ignoring the production date?  Any help will be greatly appreciated.

    An LSMW recording for transaction MB1C that was batch managed was successfully recorded.  This included the entry of the Production Date before pressing enter to post the Good Receipts.  However, when the transaction was executed, the error came back, "Enter the date of production".  In looking at the screen in the lsmw batch results, it shows the date in the production date field.
    I also tried to create the recording in the Transaction Recorder (trancode SHDB), and process the recording simulating the background mode and got the same results.
    Any ideas why it seems to be ignoring the production date?  Any help will be greatly appreciated.

  • Material variants via LSMW

    Hello all,
    Is it possible to create material variants via LSMW. Via the direct input (RMDATIND), I can't fill the necessary fields in the MRP 3 view and configure the variant. I tried to search for an other transaction to use and maybe create a batch input but for the moment no luck.
    Thanks in advance
    Best regards
    Roel

    Hi
    Yes, u should use only one file with data of client-level and plant-level, so it means the data of client-livell will be the same for the same material code.
    In this way u can create only one transaction  for every materila/plant (i.e the BAPI will be called for every plant), if u use two files the system'll try to upload the data of two plants by the same transaction.
    What u need to understand if u need to move the data client-level again as soon as you move the data of second plant.
    Max

  • LSMW for MB1C with Batch & Characterstic

    Dear All,
    I want to upload the initial stock with movement type 561.My materials are Batch Managed and the Batch are having certain Characterstic.So i want to upload the Stock with Batch Characterstic.This is not possible with recording in LSMW.Can anybody help me out in making the LSMW.
    Thanks
    Jagmohan

    Try this code
    REPORT zosmm_carga_caract_lote NO STANDARD PAGE HEADING LINE-SIZE 100.
    Global Parameters
    DATA: BEGIN OF t_message OCCURS 0.
    INCLUDE STRUCTURE bapiret2.
    DATA: END OF t_message.
    DATA: BEGIN OF t_archivo OCCURS 0,
    lineas(42),
    END OF t_archivo.
    DATA: BEGIN OF t_carga OCCURS 0,
    charg(10),
    valor(30),
    END OF t_carga.
    DATA: BEGIN OF t_caract OCCURS 40,
    atnam LIKE cabn-atnam,
    atinn LIKE cabn-atinn,
    atfor LIKE cabn-atfor,
    anzst LIKE cabn-anzst,
    END OF t_caract.
    BAPI structures
    DATA: BEGIN OF wa_allocvaluescharnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_char.
    DATA: END OF wa_allocvaluescharnew.
    DATA: BEGIN OF wa_allocvaluesnumnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_num.
    DATA: END OF wa_allocvaluesnumnew.
    DATA: BEGIN OF wa_allocvaluescurrnew OCCURS 0.
    INCLUDE STRUCTURE bapi1003_alloc_values_curr.
    DATA: END OF wa_allocvaluescurrnew.
    Variables
    DATA: lineas TYPE i,
    w_rc LIKE sy-subrc,
    mens LIKE message,
    date_err(1) TYPE c,
    swc(1).
    DATA: c_totreg(6),
    c_vanreg(6).
    DATA: v_atinn LIKE cabn-atinn,
    v_atfor LIKE cabn-atfor,
    v_anzst LIKE cabn-anzst.
    SELECTION-SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK uno WITH FRAME TITLE text-001.
    PARAMETER: p_matnr LIKE mara-matnr OBLIGATORY,
    p_atnam LIKE cabn-atnam OBLIGATORY.
    PARAMETER: p_file LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK uno.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    PERFORM buscar_archivo USING p_file.
    START-OF-SELECTION.
    START-OF-SELECTION.
    REFRESH: t_archivo, t_carga, t_caract.
    *** Characteristics Values
    SELECT SINGLE atinn atfor anzst
    INTO (v_atinn, v_atfor, v_anzst)
    FROM cabn
    WHERE atnam = p_atnam.
    IF sy-subrc NE 0.
    MESSAGE i899(m3) WITH 'Not Valid Characteritics'.
    ELSE.
    *** Read input and upload
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_file
    filetype = 'ASC'
    TABLES
    data_tab = t_archivo
    EXCEPTIONS
    conversion_error = 1
    invalid_table_width = 2
    invalid_type = 3
    no_batch = 4
    unknown_error = 5
    gui_refuse_filetransfer = 6
    OTHERS = 7.
    IF sy-subrc EQ 0.
    LOOP AT t_archivo.
    CLEAR t_carga.
    SPLIT t_archivo AT ';'
    INTO t_carga-charg t_carga-valor.
    APPEND t_carga.
    ENDLOOP.
    DESCRIBE TABLE t_carga LINES lineas.
    IF lineas > 0.
    PERFORM clasificar_lotes.
    ELSE.
    MESSAGE i899(m3) WITH 'Doesn't exist batch to process'.
    ENDIF.
    ELSE.
    MESSAGE i899(m3) WITH 'Error on upload'.
    ENDIF.
    ENDIF.
    TOP-OF-PAGE
    TOP-OF-PAGE.
    WRITE: /'TITLE', sy-datum, sy-uname NO-GAP.
    WRITE: /'Material: ', p_matnr.
    WRITE: /'Characteristics: ', p_atnam.
    SKIP.
    WRITE: 01 'Batch', 11 'Valor', 30 'Log'.
    ULINE.
    *& Form clasificar_lotes
    FORM clasificar_lotes.
    DATA: w_matnr LIKE mara-matnr,
    w_cuobjbm LIKE mch1-cuobj_bm,
    w_obtab LIKE inob-obtab,
    w_objek LIKE inob-objek,
    w_class LIKE klah-class,
    w_clint LIKE kssk-clint,
    w_valor(8),
    w_mbapi(80),
    logline(100).
    CLEAR: t_message.
    LOOP AT t_carga WHERE charg IS NOT INITIAL.
    REFRESH: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew.
    CLEAR: wa_allocvaluescharnew,
    wa_allocvaluesnumnew,
    wa_allocvaluescurrnew,
    date_err,
    w_mbapi,
    logline.
    CONCATENATE t_carga-charg t_carga-valor
    INTO logline SEPARATED BY space.
    *** Find object to classified
    SELECT SINGLE cuobj_bm matnr
    INTO (w_cuobjbm, w_matnr)
    FROM mch1
    WHERE charg = t_carga-charg
    AND matnr = p_matnr.
    IF sy-subrc EQ 0.
    SELECT SINGLE obtab objek
    INTO (w_obtab,w_objek)
    FROM inob
    WHERE cuobj = w_cuobjbm.
    *** Find class from object
    SELECT SINGLE clint INTO w_clint
    FROM kssk
    WHERE objek = w_cuobjbm
    AND mafid = 'O'
    AND klart = '023'.
    IF sy-subrc = 0.
    SELECT SINGLE class INTO w_class
    FROM klah
    WHERE clint = w_clint.
    TRANSLATE t_carga-valor USING ',.'.
    CONDENSE t_carga-valor.
    CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    KEYDATE = SY-DATUM
    UNVALUATED_CHARS = ' '
    language = sy-langu
    IMPORTING
    STATUS =
    STANDARDCLASS =
    TABLES
    allocvaluesnum = wa_allocvaluesnumnew
    allocvalueschar = wa_allocvaluescharnew
    allocvaluescurr = wa_allocvaluescurrnew
    return = t_message.
    *** Define characteristics type
    CASE v_atfor.
    WHEN 'CHAR' OR 'BOOL'.
    wa_allocvaluescharnew-charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    APPEND wa_allocvaluescharnew.
    LOOP AT wa_allocvaluescharnew WHERE charact = p_atnam.
    wa_allocvaluescharnew-value_char = t_carga-valor.
    wa_allocvaluescharnew-value_neutral = t_carga-valor.
    MODIFY wa_allocvaluescharnew.
    ENDLOOP.
    WHEN 'NUM' OR 'TIME'.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    wa_allocvaluesnumnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'DATE'.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
    EXPORTING
    datum = t_carga-valor
    dtype = 'DATS'
    IMPORTING
    error = date_err
    idate = w_valor
    messg = mens.
    IF date_err = 'X'.
    CONCATENATE logline '-> Error: Fecha no valida'
    INTO logline SEPARATED BY space.
    ENDIF.
    wa_allocvaluesnumnew-charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    APPEND wa_allocvaluesnumnew.
    LOOP AT wa_allocvaluesnumnew WHERE charact = p_atnam.
    wa_allocvaluesnumnew-value_from = w_valor.
    MODIFY wa_allocvaluesnumnew.
    ENDLOOP.
    WHEN 'CURR'.
    wa_allocvaluescurrnew-charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    APPEND wa_allocvaluescurrnew.
    LOOP AT wa_allocvaluescurrnew WHERE charact = p_atnam.
    wa_allocvaluescurrnew-value_from = t_carga-valor.
    MODIFY wa_allocvaluescurrnew.
    ENDLOOP.
    ENDCASE.
    IF date_err IS INITIAL.
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> by AGARCIA
    CALL FUNCTION 'BAPI_OBJCL_CHANGE_KEY'
    CALL FUNCTION 'BAPI_OBJCL_CHANGE'
    EXPORTING
    objectkey = w_objek
    objecttable = 'MCH1'
    classnum = w_class
    classtype = '023'
    status = '1'
    TABLES
    allocvaluesnumnew = wa_allocvaluesnumnew
    allocvaluescharnew = wa_allocvaluescharnew
    allocvaluescurrnew = wa_allocvaluescurrnew
    return = t_message.
    IF sy-subrc EQ 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    LOOP AT t_message WHERE type CO 'EA'.
    CONCATENATE w_mbapi t_message-message ';'
    INTO w_mbapi SEPARATED BY space.
    ENDLOOP.
    IF w_mbapi IS INITIAL.
    CONCATENATE logline '-> Ok!' INTO logline SEPARATED BY space.
    ELSE.
    CONCATENATE logline '-> Error:' w_mbapi
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Problem on BAPI Execution
    INTO logline SEPARATED BY space.
    ENDIF.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    ELSE.
    CONCATENATE logline '-> Error: Class object don't found'.
    INTO logline SEPARATED BY space.
    ENDIF.
    WRITE: / logline.
    ENDLOOP.
    WRITE: / '>>>>>>>>>> FIN DEL PROCESO <<<<<<<<<<'.
    ENDFORM. " clasificar_lotes
    Form buscar_archivo
    Muestra el diálogo para seleccionar el archivo
    +----
    FORM buscar_archivo CHANGING ie_arch.
    DATA: v_file1 LIKE dynpread-fieldname,
    v_file2 LIKE ibipparms-path.
    v_file1 = ie_arch.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = v_file1
    IMPORTING
    file_name = v_file2.
    ie_arch = v_file2.
    ENDFORM. " BUSCAR_ARCHIVO

  • Error while creating stock using tcode: MB1C

    Error while creating stock using tcode: MB1C
    The Error is: Check table T004F:entry G006 does not exist

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Error in creation of stock thro Tcode MB1C

    Hi,
    while  creation of stock thro  Tcode MB1C i got the error posting period mentioned as 12/2002 to 11/2002.
    I tried using Tcode OMSY to update my company's period and year as current year but it is grayad out.
    Please advise
    Regards
    Ramya

    Hi,
    OMSY setting is used only for once & for all to fix up the Initial Period and Year for a company code for material management. After setting in OMSY, nobody should touch this setting.
    Now 1st check in MM side in MMRV t.code which period open for your company code & back posting allowed or not. If period 11 & 12 not open, you can open in t.code MMPV
    And also check in FI Side in t.code OB52 which period is open for in all Account Types A, K, D,M, S and specially Account Type u201C+u201D which stands for valid for all accounts types . If periods 11 & 12 not open, you can open for all account types.
    Note:
    Check your fiscal year variant for your company code in OBY6 t.code. If it is K4 , then open periods {Period start from January(01) & end in December(12)}. If it is V3 , then your periods {Period start from April(01) & end in March (12)}
    Regards,
    Biju K

  • SAP posting period error while mainting stock in MB1C

    Hi,
    Error Description:-
    While I am maintain the stock in MB1C i got an error i.e.
    Error:-  Postingonly possible in periods 2006/12 and 2006/11 in company code CLC1 ( CLC1 is mycompany code.)
    To resolve this error  I did some pre-requisite, 
    First :- In OB29, I define my fiscal year variant ( Here,  I copied the K4 andrename S4 and save )
    Second :- then, in OB37, I Assign fiscal year variant to company code.
    Third :- I define variant for open postingperiod, ( Here, I define my ownvariant  to use the following  menu path - IMG-- FAFinancialaccounting global settingsDocuments-- Posting periods--Define variant forposting periods).
    Forth:- in OB52, i define the open and close posting periods ( Here, in new entries i choose my variantwhich i define in 3rd step  and define myperiods).
    still system not allowing me the current dated posting, then i use the following step to resolve the error,
    I mgoing to MMPV for close the periods. (here I  closed all periods, month wisetill 2012/01).
    stilli got the same error,  so  Icheck  MMRV & OMSY, weather postingperiods change or not.. ( Here, systemshows me backdated posting periods i.e. 2006/12).
    Kindly help me to resolve this error.
    reg.Mayur

    Hi,
    As you Said i closed each period as well as fiscal year , but still my problem not resolved .. system shown me following notification after i closed the period..
    Mode: Close period only
    Client:800
    Period entered (month/year):042010
    Invalid period for company code CLC1; no conversion here.
    Period closing complete; log issued.
    Mode: Close period only
    Client:800
    Period entered (month/year):012012
    CoCd CLC1: table T009B incomplete; no conversion here.
    Period closing complete; log issued.
    Mode: Close period only
    Client:800
    Period entered (month/year):022012
    Incorrect period in control rec. of CoCd CLC1; no conversion
    The current period (month/year) of the control record is122006
    Period closing complete; log issued.
    E N D

  • How to use different  numbers ranges in LSMW for a material in 8plants

    Hi all,
    I have to upload data using MM01 in LSMW by using external numbers.
    the MATNR for materials are like this 17240,22818,82618,487218,7218,26418
    how can i take these numbers in LSMW.i have 61 material numbers to be extended to 8plants.can i upload these material numbers at a time in LSMW
    the above material number should be extended to 8plants.but the field values for some fields are varying.the material number should be same for 8plants
    For this issue, which method i should follow in LSMW.

    Just do one thing,
    while recording enter the material numer field by yourself(Not blank).This material is the material which you mention out of 61,
    and upload the same in your upload file, and just change plant.i mean 8 records are there for each material( all 61)
    reward if useful.
    Amit Singla

Maybe you are looking for

  • How do I reinstall the driver software for my iphone 3gs to my PC?

    Hi there, I accidentally deleted the driver software for my iPhone 3GS and don't know how to get it back. My computer is a Windows Vista and I can still sync to iTunes and sync music and photos etc. But I want to use internet tethering for an interne

  • Time capsule problems after installing Lion

    After installing Lion, I need to regularly shut down iMac(Intel) in order to have Time capsule do the next backup. This method allows me to manually back up the automatic function to back up no longer exists. Also unable to connect to the backup disk

  • Shared components (multiple parents)

    Hi, I have posted a question in the AWT section, but it relates to Swing too, so I'm posting a link here. Please take a look: http://forum.java.sun.com/thread.jspa?threadID=786181&tstart=0 Thanks.

  • Printer won't print in black.

    I have an HP Photosmart D5510. My black cartridge ran out and I replaced it to find that the black no longer works after running multiple pages, cleaning the machine, etc. I am running Microsoft 7. I tried the hard shut down as suggested in the forum

  • Publish Page HTML and SWF

    Dear Experts. I have two files: A file with extension .html and other with extension .swf. I  uploaded the two documents in the KM in a folder. I created a  KM Document iview  for display this page that was uploaped in the portal KM  but the system n