BDC or lsmw for ABT1N Transaction

Hi gurus,
last day i got some problem when i do a lSMW for  ABT1n Tran.i am thankful to u if u  please help me that how can i do it.please give me a complete document for that trans and also a text file so that i properly update it.
                if u do any BDC program for that transaction please give me that program .it's very urgent for me....
Thanks in advance....

Hi Steve,
BAPI_HU_CREATE itself creates HU. You can refer the HU number genrated by this BAPI itself. I hope you are calling bapi as below:
CALL FUNCTION 'BAPI_HU_CREATE'
            EXPORTING
              HEADERPROPOSAL = L_WA_HU_HEAD
            IMPORTING
              HUHEADER       = L_WA_HU_HEADER
              HUKEY          = L_V_HU_NUMBER
            TABLES
              ITEMSPROPOSAL  = L_I_HU_ITEM
              RETURN         = I_HU_RETURN
              HUITEM         = L_I_CREATE_HU.
Here, L_V_HU_NUMBER is the HU generated.
Thanks,
Archana
Edited by: Archana Pawar on Sep 29, 2010 7:47 AM

Similar Messages

  • LSMW - for Customised Transactions

    Hi,
    I had read that LSMW is used for SAP Transactions but since we have BDC recording option in LSMW,cant we use LSMW for Custom Transactions ?/
    Regards,
    Chitwanjit Singh

    Well, I'll close my query here. I got the answer on internet.
    Regards,
    Chitwanjit

  • Lsmw for me21n transaction

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

    Hi ,
    I had a problem while doing lsmw for me21n transaction. My problem is how to handle table control in that. can any one send some screen shots or link, how to do table control
    Thanks & Regards,
    sreehari
    Moderator Message: Search for available information on the web before posting
    Edited by: kishan P on Sep 3, 2010 9:51 AM

  • 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

  • BDC or LSMW for open PO

    Dear Friends,
    We are suppose to go likve soon, but we have @ 500 open Purchase orders and we would like to ipload same in sap as retail can any 1 guide me how to do it?
    Regrads,
    Vishal
    [email protected]

    Hi Vishal,
    Please make a note that,
    LSMW is used to transfer Master Data.
    BDC is used for transactional Data.
    LSMW can import data from legacy systems (e.g. in the form of Excel sheets or CSV files). For this, I guess, LSMW converts your data into batch input files automatically. If you use BDC, on the other hand, you have to write your batch input file yourself, line per line.
    So, Open Purchase Order are the Transactional Data for you can use BDC for this Purpose
    Please take your ABAPER's help to will write a Code to Migrate the Data.
    Hope this Solve your Purpose and Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

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

  • BDC or LSMW for MR21

    Hi,
    Can anyone help me in creating a BDC for MR21:
    •Create a batch input recording and generate a program that can be modified. A transaction code should be created to run the program, and users must have the transaction included in their profiles. The program must allow BDC sessions to be created (rather than only offering a call transaction option). In the case of large files, the BDC session may be scheduled to run in background. Whereas a program running a call transaction can only run in foreground, if the file is being uploaded from the PC / network.
    or an LSMW for MR21.
    •Create a batch input recording through LSMW, and create the dataload using that. Since the data will be provided in SAP format, it is not strictly necessary to have an LSMW, but the developer may decide this is the simplest development method anyway.
    Please help me in this regard.
    Thanks,
    Sai

    hie
    for a BDC program for MR21 go to transaction SM35. Recording --> New Recording -->enter the a suitable name for the recording name and transaction MR21 and start to carry out the recording with the help of a functional guy. After you the process has gone through press save and back. Highlight your recordings name and press program. fill in the required name and on the filed contents radio button select Transfer form recording. After this you will have your BDC program ready.
    Create another program with type Executable. Copy and paste your BDC program into that one.  We do this so that you can assign a transaction code to your program.  For the transaction code go to transaction SE93 and fill in a relevant transaction code for your program. Press Create and fill in a relevant description for your transaction code. On the start Object radio button select option Transaction with parameters (parameter transaction) since we will have a parameter for picking the logical destination for the file to be uploaded.
    Make adjustments to your program according to your requirements.
    I would be happy to assist further.
    Regards
    PrinceIsaac

  • LSMW for MSC1N Transaction to Create Batch

    Hi,
    I want to create Multiple batches for Large number of Materials.
    Could any body Please suggest me how to write LSMW for MSC1N.
    Thanks
    Bhuvana

    the very first step of LSMW gives you the option to choose the import method.
    SAP provides 2 import methods ready for use:
    BAPI method:
    BUS1001002
    SAVEREPLICA
    BATMAS
    BATMAS03
    and IDOC method
    BATMAS
    BATMAS03

  • Regading LSMW for VD01 transaction

    HI,
    This is KSR Saireddy. i am getting the problem in LSMW at the the STEP Create Batch Input Session.i am executing this step,now i am getting the file name as ZIMS_91_ZIMS_91_MIGRT_CUSTOMER.lsmw.conv after excuting it is giving the message that Transaction VD01 not supported  can any body please give me answer why VD01 is not supported .

    Hi Selva,
    LSMW is a detailed 15 Step process to transfer Data from Flat file to SAP System.It is fairly simple provided you have some hand holding for the first time with some ABAP team member.
    Please go through the details as mentioned in the [thread|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf].We can discuss it in detail once you are through.
    Broadly speaking our purpose in LSMW is to do :
    RECORDING PROGRAM:A screen by screen recording of a transaction that we intend to use ( for eg.QP01). These screen by screen records are stored and served as a reference later on.
    SAMPLE TXT FILE: This recording gives us a txt file with fields that nees to be replaced with upload file in the same format
    UPLOAD FILE: Add all information in the file that you need to upload in SAP in separate rows
    EXECUTE BDC:The recording program executes screen by screen in same sequence and uploads the data as in the UPLOAD File.
    This description is very simplistic view of LSMW based on my exposure. I am sure that there are many more features than just this (like Filtering, Conversion etc.)
    Open up a new thread. We can discuss this in further detail if required.
    Thanks,
    RAVI.

  • LSMW for sales transaction

    Dear all,
    For the migration data project , to migrate sales transaction(contract) from our legacy system to SAP in a huge amount, we use LSMW with I doc processing, we upload the data with three steps :
    1. first we upload the sold to party, 2.then we upload the ship to party,3.we upload the bill to party.
    When im upload the sold to party, the system otomatically generate ship to party and bill to party with the same number BP as sold to party, so when i upload the ship to party, my contract become have two ship to party, and its also happen when i upload the bill to party. We have use the same method 6 month ago to our system and this situation doesn't happen back then(back then the system dosen't otomatically generate ship to party and bill to party with the same number BP as sold to party). Could anyone tell me what could be the problem? Thank you.
    Regards
    Indah

    Dear Glenn,
    I'm doing LSMW in CRM, just for information i already done building relationship for sold to party, bill to party and ship to party, one sold to party may have many ship or bill to party. And the data is really huge so i can't mantain which the main partner for sold to party each time, because they could have different ship to party,do you have another solution??
    Thank you
    Regards
    Indah Puspita
    Edited by: Indah Puspita on Jan 7, 2008 8:38 AM

  • Fatal error while executing BDC in background for PFCG transaction

    Hello,
    I have requirement where I have to create or modify roles in PFCG transaction.
    I used BDC to do this. While executing in foreground it works fine but in
    background mode it is giving me runtime error as
    "Control Framework: Fatal error - GUI cannot be reached". What
    could be the reason behind it.
    Is there any BAPI available to meet this functionality where I can modify or
    create new roles in PFCG Transaction code.
    Thank You.
    Regards,
    Dipak

    Hi Dengyong,
    I tried searching with that. But did not get any suitable BAPI or FM to meet this functionality.
    Regards,
    Dipak

  • BDC or BAPI for HUP1 transaction?

    Dear All,
    I am trying record HUP1 transaction but not able to get HU number in recording.
    Even I tried BAPI_HU_CREATE for creating HU number and this BAPI creates HU number but when I saved HUP1
    the system genrate one more HU number (new HU number).
    Please Suggest me the any solution for HUP1 recording.
    Hu Number creation is done in background .
    Help will be appriciated.
    Thanks and Regards
    Steve

    Hi Steve,
    BAPI_HU_CREATE itself creates HU. You can refer the HU number genrated by this BAPI itself. I hope you are calling bapi as below:
    CALL FUNCTION 'BAPI_HU_CREATE'
                EXPORTING
                  HEADERPROPOSAL = L_WA_HU_HEAD
                IMPORTING
                  HUHEADER       = L_WA_HU_HEADER
                  HUKEY          = L_V_HU_NUMBER
                TABLES
                  ITEMSPROPOSAL  = L_I_HU_ITEM
                  RETURN         = I_HU_RETURN
                  HUITEM         = L_I_CREATE_HU.
    Here, L_V_HU_NUMBER is the HU generated.
    Thanks,
    Archana
    Edited by: Archana Pawar on Sep 29, 2010 7:47 AM

  • LSMW for transaction PA30.

    Hi Experts,
    I want to know the steps to create LSMW for Transaction code PA30 (recording).Please dont send me LSMW for other transactions.....I need the steps only for PA30 transaction. Points will be rewarded.

    Check this site for LSMW document..
    http://www.erpgenie.com/abap/index.htm
    Check this link for Step-by-Step Guide for using BAPI in LSMW with screen shots
    http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
    Check these threads.
    Inbound Idoc With LSMW
    LSMW Using IDOC
    Also check this link too
    http://www.abapprogramming.blogspot.com/2007/08/difference-between-conversion-and.html
    regards.

  • LSMW for transaction code -TRS_SEC_ACC- Securities Accounts

    Hi Experts,
    I have to create a LSMW for the transaction code TRS_SEC_ACC.please help me to find out any standard method for the above to create the Securities Accounts.
    Regards
    Swaraj

    I have never worked with the transaction
    TRS_SEC_ACC
    but F4 search help in  Bapi method in LSMW gives me
    BUS5200
    CREATE
    maybe OSS Note 777320 - CMS 3.0: Data migration from CML to CMS
    can help you further

  • LSMW for PA70 Tcode and APPRAISAL infotype in HR ABAP

    Hi Experts,
    Please help on this, how to create LSMW for PA70 transaction and appraisal Infotype in HR ABAP.
    Thanks,
    Kumar.

    Try searching BDC for table control.
    Lot of things are available you need to include that .
    For Appraisal.
    Check using below FM and try to develop a legacy data upload prog
    RHPA_APPRAISAL_DELETE - To delete the appraisal
    RHPA_APPRAISAL_ACTIVATE - To activate appraisal before modification
    RHPA_APPRAISAL_READ - To change rating and status for an employee
    RHPA_APPRAISAL_1045_MODIFY - To modify rating and change date for appraisal
    RHPA_APPRAISAL_HISTORICIZE - To change status of appraisal to completed
    Performing all actions in order should help to load appraisals.
    Thanks

Maybe you are looking for

  • IDoc creation on save and change of production order

    I am looking for a way to create, and send if possible (if not I'll send with a batch job), on the save (creation and change) of production orders.  This will be a modified LOIPRO iDoc.  Currently we have a customer exit on the save of the production

  • Why am I getting an error when trying to install?

    Hi, I tried to download the OS X Mavericks update for my mid-2012 model of the Macbook Pro - 15 inch, but it would not install. For whatever reason it keeps saying: Unknown Error. Please try again later (04). I don't know why this is happening. My fr

  • Firewire issues?  Cannot Eject anything firewire..

    So.. anything I connect via firewire, cf card in a firewire reader, external firewire hard drives, ipods.. will not eject.. when I try to eject any of these items I get a message saying "The disk ___ is in use and could not be ejected. Try quitting a

  • SAP Code Inspector

    Hi Everyone, In our project we have a requirement to automate the code review checklist preparation to the maximum extent possible. Code Inspector has some standard checks included into it from which we can select the relevant checks for inspection p

  • Axis - Web service is not getting deployed on https

    I am using axis api for creating web service and Tomcat to deploy it. When I deploy the web service first time, it works perfectly, but If I upgrade my web application, the server-config.wsdd file gets deleted from WEB-INf directory of my web applica