LSMW for MB1B

Hello,
Can any one help me LSMW for MB1B tcode.
Header details : Movment type,Plant,storage location
Item details     : Receiving plant,Mat no ,qty ,batch no.
Regards,
Chitra

ok,we can use recording.
one recording,we have 2 input structure  ( Header + Item).
1.How will you make relationship between source and target.
we dont know,while execution how many item record will come for item part?
2.While recording how will you do it?
Regards,
Chitra

Similar Messages

  • Lsmw for mb1b transaction.

    hello,
        is it possible to do lsmw for mb1b transaction.
        if possible then how ?
        any suggestions please.

    Hi
    you can use the LSMW for the transaction MB1B .
    Or
    use the program to stock transfer from plant to plant :
    REPORT YMBIE096 LINE-SIZE 80.
    * Program: YMBIE096
    * Author: Sheila Titchener
    * Date: Mar 1999
    * Purpose: To move stock to new plant
    TABLES: MCHB.
    * internal table
    DATA: BEGIN OF I_MCHB OCCURS 0,
    MATNR LIKE MCHB-MATNR,
    LGORT LIKE MCHB-LGORT,
    CHARG LIKE MCHB-CHARG,
    J_2CTRNR LIKE MCHB-J_2CTRNR,
    J_2CELNG LIKE MCHB-J_2CELNG,
    CLABS LIKE MCHB-CLABS,
    END OF I_MCHB.
    *-----------------------new code smt nov 98-----------------------------
    * batch input tables
    DATA BEGIN OF BDCDATA OCCURS 100.
    INCLUDE STRUCTURE BDCDATA.
    DATA END OF BDCDATA.
    DATA BEGIN OF MESSTAB OCCURS 10.
    INCLUDE STRUCTURE BDCMSGCOLL.
    DATA END OF MESSTAB.
    SELECT-OPTIONS S_MATNR FOR MCHB-MATNR.
    PARAMETERS: P_DISP AS CHECKBOX.
    DATA W_MODE.
    DATA W_MESSAGE LIKE MESSAGE.
    START-OF-SELECTION.
    SELECT MATNR LGORT J_2CELNG CHARG CLABS J_2CTRNR FROM MCHB
    INTO CORRESPONDING FIELDS OF TABLE I_MCHB
    WHERE MATNR IN S_MATNR
    AND WERKS = 'BT'.
    END-OF-SELECTION.
    LOOP AT I_MCHB.
    CHECK I_MCHB-J_2CELNG NE 0.
    CHECK I_MCHB-J_2CELNG = I_MCHB-CLABS.
    PERFORM MOVE_STOCK.
    ENDLOOP.
    *& Form MOVE_STOCK
    * Call transaction MB1B to transfer stock
    FORM MOVE_STOCK.
    DATA: W_QTY(10).
    WRITE I_MCHB-J_2CELNG TO W_QTY DECIMALS 0.
    REFRESH: BDCDATA, MESSTAB.
    PERFORM DYNPRO USING:
    'X' 'SAPMM07M' '0400',
    ' ' 'RM07M-BWARTWA' '301',
    ' ' 'RM07M-WERKS' 'BT',
    ' ' 'RM07M-LGORT' I_MCHB-LGORT,
    ' ' 'BDC_OKCODE' '/0',
    'X' 'SAPMM07M' '0421',
    ' ' 'MSEGK-UMWRK' '94',
    ' ' 'MSEGK-UMLGO' I_MCHB-LGORT,
    ' ' 'BDC_OKCODE' 'NLE',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    'X' 'SAPMM07M' '0421',
    ' ' 'MSEG-MATNR(1)' I_MCHB-MATNR,
    ' ' 'MSEG-ERFMG(1)' W_QTY,
    ' ' 'MSEG-CHARG(1)' I_MCHB-CHARG,
    ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0',
    * 'X' 'SAPMM07M' '0410',
    * ' ' 'BDC_OKCODE' '/0',
    *CODING BLOCK
    * 'X' 'SAPLKACB' '0002',
    * ' ' 'BDC_OKCODE' '/8',
    *CODING BLOCK
    * 'X' 'SAPLKACB' '0002',
    * ' ' 'BDC_OKCODE' '/8',
    'X' 'SAPLJ2CW' '0190',
    ' ' 'J_5C7-UMCHA' I_MCHB-CHARG,
    ' ' 'BDC_OKCODE' '/7',
    'X' 'SAPMM07M' '0421',
    ' ' 'BDC_OKCODE' '/11',
    *CODING BLOCK
    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '/0'.
    IF P_DISP = 'X'.
    W_MODE = 'A'.
    ELSE.
    W_MODE = 'N'.
    ENDIF.
    CALL TRANSACTION 'MB1B' USING BDCDATA MODE W_MODE UPDATE 'S'
    MESSAGES INTO MESSTAB.
    WRITE: / I_MCHB-MATNR, I_MCHB-CHARG, I_MCHB-LGORT,
    I_MCHB-J_2CTRNR, I_MCHB-J_2CELNG.
    IF SY-SUBRC NE 0.
    * what to do if there's an error????
    LOOP AT MESSTAB.
    SY-MSGNO = MESSTAB-MSGNR.
    CALL FUNCTION 'WRITE_MESSAGE'
    EXPORTING
    MSGID = MESSTAB-MSGID
    MSGNO = SY-MSGNO
    MSGTY = MESSTAB-MSGTYP
    MSGV1 = MESSTAB-MSGV1
    MSGV2 = MESSTAB-MSGV2
    MSGV3 = MESSTAB-MSGV3
    MSGV4 = MESSTAB-MSGV4
    MSGV5 = MESSTAB-MSGV4
    IMPORTING
    * error =
    MESSG = W_MESSAGE
    * msgln =
    EXCEPTIONS
    OTHERS = 1.
    WRITE: / W_MESSAGE.
    * message id messtab-msgid type 'I' number messtab-msgnr.
    ENDLOOP.
    ENDIF.
    ENDFORM. " CHANGE_BILLING_TYPE
    * FORM DYNPRO - new form smt nov 1998
    * > DYNBEGIN
    * > NAME
    * > VALUE
    FORM DYNPRO USING DYNBEGIN NAME VALUE.
    IF DYNBEGIN = 'X'.
    CLEAR BDCDATA.
    MOVE: NAME TO BDCDATA-PROGRAM,
    VALUE TO BDCDATA-DYNPRO,
    'X' TO BDCDATA-DYNBEGIN.
    APPEND BDCDATA.
    ELSE.
    CLEAR BDCDATA.
    MOVE: NAME TO BDCDATA-FNAM,
    VALUE TO BDCDATA-FVAL.
    APPEND BDCDATA.
    ENDIF.
    ENDFORM.
    Edited by: raj on Jun 5, 2009 7:55 AM

  • LSMW for T-code MB1B

    Hi ABAPERS,
       I have assignment to create LSMW for MB1B Transaction code.
    In which process i should use because I have to load the data in item level and no standard program is available for this,
    Can you please guide me that in which process i should use and the steps for that..
    Thanks and Regards
    Deepa

    SAP has following standard import methods for goods movements that can be used:
    batch input:
    Objekt               0110  
    Methode              0000 
    report name         RM07MMBL
    BAPI:
    Business-Objekt      BUS2017     
    Methode              CREATEFROMDATA
    message type       MBGMCR
    Basis type             MBGMCR03
    IDOC:
    message type       MBGMCR
    Basis type             MBGMCR03
    still the opinion that no standard programm is available?

  • Creation Of LSMW for Actions..........

    Dear ALL
    Recorded an LSMW for PA40 hiring actions which includes infogroup - [ IT 0000, 0001, 0002, 0105-ZVEN (Sub type)]
    This is for external vendor employees hiring actions.
    While recording or manually running the process, it is working fine.
    When in foregroud or background process, the alternate pernr is getting generated. Say for 1st record , pernr generated is 80023, then for next it is 80025, 80027so on.
    Kindly suggest me in this issue.
    Thanks
    MJ

    Hi,
    1-you keep no range as external and assign PERNR sequentially so that it remains same as you want it
    2-kindly go through the LSMW abain to see what have you assigned in field mapping & conversion rules
    3- check one record created thru LSMW and see if next (alternate number gets assigned to Ref PERNR in IT0000)
    Check the alternate number to see if anything gets assigned to it.
    salil

  • How to create LSMW for a transaction having scroll bar

    Hi all,
    I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
    For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
    Thanks,
    Pavan.

    you can solve it with bdc:
    e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
    with sth like this:
    ERG = BUZEI MOD 10 .
      IF ERG = 1.
    Dynpro darf nur alle 10 Zeilen prozessiert werden -
        PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'.             "ins
      ENDIF.
    add 1 to buzei.
    A.

  • Error in the LSMW for vendor master using standard batch/direct input

    I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
    Batch Input Interface for Vendors
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name VNDR_CREATE_ was opened
    FB104                    Trans. 2 XK01 : Acct already exists; general area not being processed
    FB125                    ... Data in table BLFA1 cannot be processed
    FB016                    ... Last header record ...
    FB014                    ... BLF00-STYPE 1
    FB014                    ... BLF00-TCODE XK01
    FB014                    ... BLF00-LIFNR 300951
    FB014                    ... BLF00-BUKRS 402
    FB014                    ... BLF00-EKORG /
    FB014                    ... BLF00-KTOKK VEND
    FB017                    ... Last data record ...
    FB014                    ... BLFA1-STYPE 2
    FB014                    ... BLFA1-TBNAM BLFA1
    FB014                    ... BLFA1-ANRED /
    FB014                    ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
    This is because when we use XK01 to create the vendor by using the

    Please check this answered link:
    Re: LSMW for Vendor Master
    LSMW Upload vendor master data
    Edited by: Afshad Irani on May 5, 2010 12:42 PM

  • Error in LSMW for MM41 - "No batch input data for screen SAPLMGMW 0100"

    I'm trying to create an LSMW for MM41 to create new Retail articles en Mass. This will be used to only create the Basic view as other LSMW's already exist to maintain the other views. I've created the Recording and setup the LSMW already. My data is read correctly from the source file. When I execute the batch session it fails with the following error - "No batch input data for screen SAPLMGMW 0100".
    I assume the fields in MM41 screen are not setup for batch processing. Could someone with more knowledge or experience in SAP Retail please confirm my assumption and explain where this is setup or provide an alternative to creating new articles en Mass via MM41? The direct input method is more suited for MM01 and not MM41.
    Regards
    Fawaaz

    Hi Guys,
    Thanks so much for all the prompt responses. My issue is now resolved.
    The issue, I'm sure, was my default settings in the MM41 screen which the recording probably took into account or the batch program didn't like. I deleted my recording and created a new one but before I started the recording, I went into the MM41 screen and removed all default values AND view selections. I made my Basic view selection constant in my recording and also in my field mapping. My LSMW for MM41 is now working perfectly.
    Just to answer some of the questions above, my LSMW was Reading and Converting the data in my source file fine. When I display the Read and Converted data, it shows the data fields in the correct place.
    Thanks again.
    Regards
    Fawaaz

  • Classification view creation via LSMW for Material master

    Hi,
    We are planning to have an LSMW for creation of material master along with classification view for configurable materials.
    Though we see a flag to indicate classification view  - XEIC1                        Indicator: take Classification view into account
    We do not see a structure where in we can pass all the characteristics and the corresponding values.
    Is this something possible only with BAPIs such as -> BAPI_OBJCL_CREATE after creation of other view for that material.
    Regards,
    HR

    Hi,
    Thanks for the response. This is helpful.
    However, we were intending to use a single LSMW for creation of all views of material master including classification view. Right now we are using Program RMDATIND as direct input method in LSMW.
    Please let me know if there is a way to use single LSMW for creation of all views of material master.
    Thanks
    HR
    Edited by: Hema Rao on Jan 8, 2009 7:58 AM

  • Issue in LSMW for material master using standard input program RMDATIND!!

    Hello guys,
    I have a issue in LSMW for material master.
    I have a custom field in MARA table. which I want to add in my LSMW.
    I added the field in BMMH1 structure. I'm passing the value to this field, But it is not populated in the table when I run it.
    Is there anything else I need to do apart from addition of field in the structure BMMH1.
    Thanks in advance for your help.
    Regards,
    Sumeet....

    see oss note 44410, it gives you a step by step overview.
    https://service.sap.com/sap/support/notes/44410

  • Creation of lsmw for updation of position and pers area

    Hi friends,
    I am tried many time to update position and personnel area through lsmw for all employees ,at time of recording its coming.But once compltion of lsmw preparation i am uploaded my inputs through tabfile that time its updating only personnel number and infotype  and its asking the save the action screen (At the same time its showing one popup below screen like there is no recording for mp000000).Can you tell any one there whats the problem.At the same time is it possible to upload the position and personnel area through lsmw.
    Thanks,
    arjun.

    Hi Arjun
    Are you performing a hiring actions, if you are performing a hiring action, when you start with LSMW, the recording should be correct with hire date or start date, personnel number, reason for hire, position number, personal area, employee group and subgroup.
    The source field you specific should contain the required field name, type, length and field discription.  The field mapping should be done perfectly and assign the specified file in txt format and try to upload.
    If you are facing any problem, let me know.  I think I can help you
    Regards
    Santhosh.S

  • Is it possible to create LSMW for PQ10, PQ13?

    Hi Fridz,
    I have created the OM actions, now I'm trying to create LSMW for the actions PQ10 (creation of org unit), PQ13 (Creation of Position) but while recording LSMW relationships are not creating under - Maintain Field Mapping and Conversion Rules in LSMW. Please advice on this whether these transactions are possible to create LSMW with fore & backgroung.
    $Narayana

    Hi Narayana,
    Use BDC's for better maintainance of relationship. which worked fine for me.
    thanks,
    vasu.

  • LSMW for Outbound Delivery

    Hi,
    I am not able to find an LSMW for creating GR for outbound delivery. I tried using recording in MIGO but it did not work. Also MB1C is not working for outbound delivery. Please help.
    Regards,
    Anubhav

    Hi
    I think it is better to write a Z program/ BDC to have a mass GR creation of an outbound delivery.
    or
    You have an Auto Goods receipt using confimations. If we activate Auto GR in customizing for Confirmation control key. Once confirmations(ASN) is created a GR will be created automatically.
    Hope this helps
    Regards,
    Sasi

  • A small logical problem in LSMW for MM01...

    I need to create a LSMW for MM01 transaction, wherein I have to check the initial four
    digits of the material as 'ORCL'. If initial four digits of the
    incoming material are 'ORCL', then create this material as it is.
    Else replace these four digits with 'SAPM' (for sap material) while
    creating this material.
    This will  differentiate between materials coming from Oracle and non
    oracle system.
    I know that I need to create a new rule in the step 5 of LSMW: "Maintain Field Mapping and Conversion Rules", under the ABAP heading.
    But, how should the rule proceed??
    Pls help me out!!!

    awesome! thnks a lot naimesh.... you are tooo goood!
    Can you please help me again...??
    Now, I need to replace the records which are not 'ORCLXXX' with SAPXXX format. For example, say a record has the material number as ORCL007. This will pass on and created as ORCL007. If a record has the material number as MMMM007, this should be converted to SAPM007.
    Should I use fieldsymbols for this, or just replace the strings??
    This will be the last, I promise....

  • LSMW FOR P.O UPLOAD

    Hi Guys,
    I am using LSMW for uploading the Purchase order. This I could able to do without any problem for single line item P.O.
    This was done by recordning method.
    Can some one explain how to upload purchase order for more that one line item.
    Thanks,
    Dhanu
    Edited by: Dhananjayappa E on Jul 30, 2008 4:40 PM
    Edited by: Dhananjayappa E on Jul 30, 2008 4:40 PM

    It is Somewhat Difficult to Contol Screen Variables While Using LSMW. If the Data is Bulk Use BDC with the Help of Abaper.
    http://aspalliance.com/1130_Batch_Data_Communication_BDC_in_SAP_R3
    http://abap-gallery.blogspot.com/2007/08/bdc-batch-data-communication-tutorial.html
    http://it.toolbox.com/wiki//index.php/Bdc
    Regards,
    Ashok

  • Lsmw for purchase requisition and purchase order

    hi all
    can anyone brief me for lsmw for PR & PO.

    In lsmw in first step selec the option one standard object
    Object               0085   Purchase Order
    Method               0001   Purchase order
    Program Name         RM06EEI0.
    Program Type         D   Direct Input
    then save and come back and then go to object overview here u will find all the fields use in this object u can upload.
    After this follow the normal step.
    for pur req use object 0080.

Maybe you are looking for

  • Using Oracle OLE DB provider (with ADO) generates error: ORA-01843 while using date

    Were using OLE DB provider in order to connect to our Oracle 9i database. When executing the following query in a SQL Plus window I will get the correct results: SELECT gum_seu_syo_id, seu_userid, seu_first_name, seu_last_name From group_user_mapping

  • Workflow in the releasing of Credit blocked sales orders.

    Hi All, My Client requirement is that they need workflow in the releasing of credit blocked sales orders. If once sales order is blocked then it should be approved at 3 levels, then only it should be released. Suggestions are highly appreciated  Rega

  • File not found exception with SES crawler

    Hi, I have integrated oracle SES with UCM 11g. when i shedule the crawler i am getting this exception. ***Crawler raised the following error for data source "VzUCM" at time Mar 14, 2012 12:35:28*** EQG-30236: Crawler plug-in fatal error: java.io.File

  • Migrating MSSQL Database to PointBase5.5 Database

    I am using Pointbase 5.5 Databaseserver comes with weblogic9.0.it represents database as ".dbn and .wal" files inside poinbase installation databases folder. My Question: i have one large database contains thousands of tables in MS SQL Server as ".md

  • Adobe Captivate Generally

    Adobe is clearly a good outfit, however I sometimes think one needs to think like someone with Aspergers when using certain adobe programmes. Captivate for example, a good piece of kit but maybe it should be called Aspergers Captivate as it seems the