Help on LSMW

Dear all,
I have done direct input method for GL upload LSMW.
I am able to see converted data as well in right fields. but when trying to run batch input , it is giving me following error .
File FIN_GL_ABB_FIN_GL_1_GLCOA.lsmw.conv is being checked
Session 1 : Special character for 'empty field' is /
Trans. 1 : Transaction FS00 is not supported
... Last header record ...
... BSK00-STYPE 5
... BSK00-TCODE FS00
... BSK00-SAKNR 139204
... BSK00-BUKRS 0010
... BSK00-REF_SAKNR /
... BSK00-REF_BUKRS /
....Editing was terminated
Can any body help me , wht is the exact error ?
Thanks in advance.

Componet   Data type Lenght
type
STYPE_BI      CHAR        1     0     Batch Input
TCODE      CHAR        20     0     Transaction Code
SAKNR      CHAR        10     0     G/L Account BUKRS      CHAR        4     0     Company Code
SAKNR      CHAR        10     0     G/L Account
BUKRS      CHAR         4     0     Company Code
pls maintain these above mentioned ( 1,20,10,4,10,4)l enghts for each discriptions in the legacy file..

Similar Messages

  • Help required-LSMW.

    Hi,
      My requirement is that I will get a flat file in which one of the fields will be with 26 digits... I am using transaction KS01... So for the cost center creation the criteria is that I need to concatenate the company code, the 7-11 digits (of the 26 digit field) & zero '0'... I am able to do this for the first record ... but I am not able to get the same for the second record... the logic that i have written is as follows:-
    in the field mapping step under the cost center I written the following ABAP code.
    DATA : V_BUKRS LIKE CSKS-BUKRS.
    SELECT BUKRS
      INTO V_BUKRS
      FROM CSKS
      WHERE KOKRS = SOURCE-CONTROLLING_AREA.
    CONCATENATE V_BUKRS
                SOURCE-26DIGIT_CTCTR+6(5)
                '0'
          INTO TARGET-KOSTL.
    ENDSELECT.
    How do I debug this program in LSMW??
    Your help is appreciated.
    -Seema.

    Hi Seema,
    When you are in the initial screen of LSMW for the object(with all the radio-buttons), click on the 'Personal Menu' push button and select the checkbox for 'Display Conversion Program.'. Then you can simply select that action and put a break-point in the code section and debug it.
    But if I may comment, just based on the code piece given here, your 'SELECT statement may not be returning any records for your second record.
    Is your SOURCE-CONTROLLING_AREA field similar to CSKS-KOKRS? Otherwise a select like this might not return any values.
    Also, there is a potential for multiple records to be fetched from CSKS since you are passing only partial key. So, essentially you are moving your concatenated value into the TARGET-KOSTL based on your last record from that select.
    What is your requirement with regards to the BUKRS? Is it that you need to create cost centers for all BUKRS assigned to a given controlling area on the file?
    Please let us know.
    Srinivas

  • Help regarding LSMW

    hi ,
    i am new to SAP. actually i am trying to update vendor master data for the following fields using LSMW.
    LIFNR BUKRS EKORG KTOKK TITLE_MEDI NAME1 NAME2 SORT1
    REMARK KUNNR STCD1 STCD2 BANKS BANKL BANKN BKONT LNRZA
    AKONT ZUAWA QSSKZ QLAND QSREC ALTKN PERNR ZTERM TOGRU
    REPRF ZWELS ZAHLS LNRZB HBKID INCO1 INCO2 KALSK WEBRE
    WAERS BSTAE PARVW GPARN
    in Maintain Object attributes i have declared it as standard batch/direct input using object (0040),method standard,program name(rfbikr00),program type (b)
    while trying to upload it i am getting an error saying that transaction Xk01 is not supported. please help me regarding this and the method to upload the vendor master data into sap sys from a legacy sys in LSMW method.

    HI deephi
    follow the below steps
    4.4.2.2.3     Importing Vendor Master Data
    Use
    The purpose of this activity is to import vendor master data via LSMW using Batch Input.
    Prerequisites
    You have imported the LSMW project BP_AIO into your system.
    Specifying LSMW Project Details
    1.     Access the activity using the following transaction code:
    Transaction Code     LSMW
    2.     Confirm the information message Welcome to the Legacy System Migration Workbench.
    3.     On the Legacy System Migration Workbench screen, enter the following values:
    Field name     Description     User action and values     Notes
    PROJECT     Name of data transfer project      BP_AIO     More than one subproject can be assigned to a project.
    SUBPROJ     Specifies the name of the subproject     MM     A subproject can have an unlimited number of objects
    OBJECT     Object name. An object corresponds to a business object.     VENDORS_FINAL     An object is assigned to a subproject
    4.     Choose   Continue. The LSM Workbench: BP_AIO MM, VENDORS_FINAL screen is displayed.
    You can change the default view from display mode to change mode. To do this, choose Double Click=Display.
    Specifying an External File
    If an external file has already been specified, only change the file name of the existing file. Do not add or create any additional files.
    1.     In the LSM Workbench: BP_AIO, MM, VENDORS_FINAL screen, start the process step Specify Files and go into change mode, if you are in display mode.
    2.     In the LSM Workbench; Specify Files (Change) view, go to the structure item Legacy Data - On the PC (Frontend). Double-click on the object file entry that is located directly under Legacy Data - On the PC (Frontend). The File on Front End: Maintain Properties entry screen is displayed. Enter the following values:
    Field name     Description     User action and values     Notes
    File     LSMW data file name     Specify the path and name of the external data file or browse for the external data file     
    Name     Object type     Specify the name of the object type     
    File Contents          Select the radio button
    Data for One Source Structure     
    Separators          Tabulator     Check file for separators, if necessary
    File Structure          Choose Field Names at start of File     
    File Type          Select the radio button
    Record End Marker (Text File)     
    Code Page          Select ASCII     
    3.     Choose Continue, save your file settings and choose Back.
    Assigning a File
    Omit this activity if an external file has already been specified and assigned.
    1.     To assign an external file, double-click on the process step Assign File.
    2.     In the LSM Workbench: Assign File view, select the first line highlighted in yellow and choose   Assignment. The file you have specified in the previous step is assigned. Repeat this for each entry highlighted in yellow until you have assigned the file assigned to each structure.
    Importing Data from Files
    1.     To import the data from the assigned files, double-click on the process step Import Data.
    2.     Choose   Execute without entering any values. Go back to the Process Step list
    Converting Imported Data
    1.     To convert the imported data, double-click on the process step Convert Data.
    2.     Choose   Execute without entering any data. Go back to the Process Step list.
    Creating Batch Input Session
    1.     Double-click the step Create Batch Input Session.
    2.     In the Batch Input interface for Vendors screen, choose Execute, confirm the messages which are displayed. If a batch input session was created successfully the message Session 1 session name VENDORS_FINA was created is displayed.
    Running Batch Input Session
    1.     Double-click the step Run Batch Input Session.
    2.     On the Batch Input: Session Overview screen, select the session you have created in the step before. If the batch input session was created correctly, New is displayed in the column Status.
    3.     Choose Process.
    4.     In the dialog box Process Session vendors_Fina, choose a processing mode.
    5.     Choose Process.
    6.     In case of foreground processing, select Enter till the data is imported.
    7.     In case of background processing, the system message 1 session transferred to background processing is displayed.
    8.     In case of errors, solve them and run through the process again.
    Possible problems might be:
    •     Configuration does not fulfill the master data requirements (CATT and manual processing of the transaction would also fail)
    •     External master data file is not stored as tab separated file
    •     Other data inconsistencies
    Result
    You have created vendor master data.
    regards
    kishore

  • BAPI's Business object not found in the search help of LSMW.

    Hi,
    I am loading Open sales contracts using LSMW BAPI method.
    The business object for this is BUS2034 and the FM is BAPI_CONTRACT_CREATEFROMDATA.
    But when i am selecting the Business object in LSMW, it is not appeared in the search help.
    Is there any way to add the required Business object, Function module in LSMW manually?
    Please suggest.
    Thanks,
    Vishnu..

    Have checked the entries in table TBDBA (BAPI ALE mapping) for this BO ? If this is not available, you may have generate "ALE interface for BAPI" using Transaction code BDBG. 
    P.S. See the code written in FM "/SAPDMC/LSM_F4_BUSOBJ" (Search help for BO) and read reference to table TBDBA in line number 54.
    Regards, Vinod
    Edited by: Vinod Kumar on Aug 30, 2011 5:30 PM

  • Need help with LSMW fro specific case

    Hello,
      I am going to create project on lsmw for data migration from legacy system. In this specific case it is not just migration of the data to SAP system but its processing the data an dthen creating objects in SAP system. Hence its very perfomarmace critical.
    I amn using Idoc and BAPI in lsmw.
    My question how to improve performance here .
    My options:
    1. Call the API(which is processing the data) in side the BAPI with new task for each independent set.
    2. No need of (1) if I am doing parallel processing in step idoc processing. Here lsmw itself provides parallel processing of Idoc.
    3. Use FPP . but since FPP can be integrated only for data in database, I would need to first store the incoming data in a temp tables and then call API in FPP run where API reads data from temp tables .
    Can you please suggest from your experience which is the best technique to improve the perfromance in this situation ?

    Hello Suresh,
      Thank you so much for resply.
    My proiblem with lsmw is that I cannot call API in background job but it wil run in dialog process.
    That was one reason to think of storing it temporarily and tehn processing it in FPP.
    But just today I came across what is called as data transfer workbench help document where it says that you can process job in background . Can anyone confirm this ?
    If yes then my next question is how to enable parallel processing using workbench

  • Kindly help reg - LSMW using BAPI

    Hi All,
      I am using LSMW using BAPI method to upload data to create an Purchase order. I m getting this error.
    " Identification specifications missing for source structure 'PSOURCE_HEAD' ".
    Here are the steps I have followed.
    1. Created an IDOC Inbound Processing.
    2. Bussiness Object: BUS2012
        Method          : CreateFromData
        Message Type    : PORDCR
        Basic Type      : PORDCR05
    3. Maintained Source Structure : PSOURCE_HEAD AND PSOURCE_ITEM
    4. Maintained Source Fields for PSOURCE_HEAD AND ITEM
    5. Maintained Structure Relations:
         E1PORDCR=>PSOURCE_HEAD
         E1BPEKKOC=>PSOURCE_HEAD
         E1BPEKOC=>PSOURCE_ITEM
         E1BPEKET=>PSOURCE_ITEM
    6. MAINTAINED FIELD MAPPING:
         E1PORDCR - E1PORDCR-HEAD_ADD_DATA_RELEVANT = 'H'.
         E1PORDCR - E1PORDCR-ITEM_ADD_DATA_RELEVANT = 'I'.
    7. specify files
    8. Assign Files : assigned uploaded file to both PSOURCE_HEAD AND PSOURCE_ITEM
    9. IMPORT DATA: I M GETTING THE PROBLEM " Identification specifications missing for source Structure 'PSOURCE_HEAD' ".
      H     1001     1000     000     
      I     100-130     20     200     001     1000     28.06.2006
    With Regards
    Vasu

    Hi vasu
    I have encountered the same problem with material BOM creation.
    The reason you get this message is probably because you didn't define correctly the identification field in the source structures.
    In step 'Maintain source fields' you should define the first field of every structure as identification field by creating char field of length 1. Then from the tree view of source fields, double click this field (in change mode) and give appropriate value in field 'Identifying Field Content', meaning 1 for header structure, 2 for items structure etc.
    This should fix the problem.
    Best regards

  • Need help with LSMW for ME23N

    Hey Guys,
    I have this problem where i need to do a recording for LSMW for ME23N. This are the steps i took:
    1. Enter ME23N
    2. Click on the Change Button (i can't enter me22n directly to edit when its running a batch)
    3. Click on the Drop down List
    4. Key in a different Item number
    5. Press enter
    6. Select the delivery TAB
    7. Check the Delivery completed button
    8. Save.
    When i run the batch, the problem comes at step 4. I have a batch file with the following format:
    05 4500120382
    The list box, cannot read the number 05. Is there anyway to go around this?
    Thank you

    hi,
    Check it, may be usefull for you:
    Here is the link explaining step by step LSMW
    /people/hema.rao/blog/2006/09/14/lsmw--step-by-step
    http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc
    Regards
    Priyanka.P

  • Help on LSMW for extending materials to storage location

    Hi Friends,
    Please guide me with steps in LSMW to extend material master data to different storage location with same plant using tcode MMSC.
    Thanks in advance
    Smitha

    You should not do LSMW on MMSC, this does not make much sense.
    Use standard given mateial master import procedures, like BAPI, which is the easiest procedure to create just one view.
    By the way, you can do it easily with MM17, except you have to maintain individual values líke bin description.

  • Need help in LSMW

    Hi,
    While I am doing LSMW for FB01 transaction, in step "Display Converted Data" it is giving special character for empyt field is '/'. Can any one tell me, what should be done to keep empty field as blank.
    Regards,
    Sandesh.

    Hi Sanjay,
    Your LSMW is using a batch input for transaction FB01.
    In batch input it is sometimes necessary to leave out some field on the screen your processing.
    In your input file sometimes fields can be filled and sometimes not.
    The question is what to do with those fields:
    1. Should the field on the screen be made empty
    2. Should the default value on the screen be kept.
    For purpose 2 you can a special character in your input file (/).
    This will indicate to the LSMW program that generates the batch input session that this field should not be used/filled.
    In this way you can preserve default values without overwiting them with blank values.
    Hope this was helpfull.
    Regards,
    Arjan Aalbers

  • HELP NEEDED *Lsmw using bapi as import method*

    Hi,
        I am trying a n example implementing lsmw using bapi as inport method for the purchase order data. Here when i am trying to get the data i am getting an error "Ensure field sequence is correct for data for multiple source  structures". I have single text file which has both header and the line item data.
    IDENTIFIER VENDOR PURCH ORG     PURCH GRP                
    H                  100001           0001                  001               
    IDENTIFIER MATERIAL QTY PRICE MATGRP PLANT     DELDATE
    I                   A         50        1000               YAS1     20/10/2007
    Thank you,
    Madhu

    Hi madhu,
    check the step where you assign the source structure in the LSMW and check whether it is in accordance with your flat file field sequence.  I think that is cause for your error.
    Reward points if useful.
    Best Regards,
    Sekhar

  • Soem help on lsmw using direct input for mm01

    hi,
            this is to srinivas.i have done all the steps u have given.but at the step...convert data it is showing soem error msg.the error is
    sytax error in prgm in include in line 68.for type "C",max length specification of 65535 is allowed.thanx in advance....

    Hi Praveen,
    the steps i was given you is working fine.
    i just check the entire process
    where did you got error.
    I think in 6th step you just create fixes values,Translations & User-defined routines
    ans delete all you have done at 6th step then the cursor goes to 7th step.
    please let me know any error.
    thanks & regards
    Sreenivasulu P

  • For help on LSMW

    Hi all ,
    I am using rfbibl00 to create batch input session for FI data upload .
    My poblem is Session can b pricessd successflly in forground . But when I submit it to back ground ,
    it goes into error .
    Thanking you.
    Subash

    Hi,  
    ZGL_BALANCE_HEADER        G/L Balance Header
        BLDAT                          C(008)    Document Date
        BUDAT                          C(008)    Posting Date
        BLART                          C(002)    Document Type
        BUKRS                          C(004)    Company Code
        WAERS                          C(005)    Currency
        MONAT                          C(002)    Posting Period
        WWERT                          C(008)    Date (batch input)
        XBLNR                          C(016)    Reference Document number
        BKTXT                          C(025)    Document Header Text
        KURSF                          C(010)    Exchange rate
        ZGL_BALANCE_ITEM          G/L Balance Load Item
            BUKRS                          C(004)    Company Code for the Next Line Item
            NEWBK                          C(004)    New company code
            NEWBS                          C(002)    Posting Key for the Next Line Item
            DUMMYX                         C(010)    General Ledger Account
            MWSKZ                          C(002)     Sales Tax Code
            TXJCD                          C(015)    Tax Jurisdiction
            WRBTR                          C(016)     Amount in document currency (batch input field)
            KOSTL                          C(010)    Cost Center
            AUFNR                          C(012)    Order Number
            PROJK                          C(008)    No longer use this field (use PROJK)
            PRCTR                          C(010)    Profit Center
            NPLNR                          C(012)    Network Number for Account Assignment
            VBEL2                          C(010)    Sales Document
            EBELN                          C(010)    Purchasing Document Number
            MENGE                          C(017)    Quantity (Batch Input Field)
            PERNR                          C(008)    Personnel Number (Batch Input Field)
            MATNR                          C(018)    Material Number
            ZUONR                          C(018)    Assignment Number
            SGTXT                          C(050)    Item Text
    In the above structure have BUKRS and NEWBK is the key field.
    But it is working in foreground .   Whenever it is in Background the below message are getting .
    Error message :    ---
    Session ZGL_BALANCE_ is being processed by user NAGPATIL in mode N on server ptg-mrbsapdev
    Field RF05A-NEWBK. does not exist in the screen SAPMF05A 0100
    Transaction error
    Processing statistics
             1 transactions read
             0 transactions processed
             1 transactions with errors
             0 transactions deleted
    Batch input processing ended
    Regards,
    Subash

  • While recording a t.code for lsmw upload

    How to obtain data collection template from LSMW object for example BOM creation.  I forgot this step.  Can some one help.

    Dear,
    LSMW-> 1 Maintain Object Attributes  --> Flag on Batch input recording --> insert name and t-code in order to start registration.
    Let me know if i solved your dubt.
    Daniele

  • LSMW- while convertin data

    hi ,
    In LSMW....while i am using the radio button convert data i get this error.
    I had five fields all of type C. various lengths like 18,1,4,30,7.
    This is the error i get saying line 68. How can I rectify.
    For type "C", a maximum length specification of 65535 is allowed.
    Plz help.

    In LSMW, where you see all the radiobuttons, go to the menu, 'Extras-->User Menu' and select the checkbox for 'Display Conversion Program'. Press the green OK icon and you should now see an additional radiobutton for 'Display Conversion Program'. Double click on that and you will see the program that does the conversion. Put a breakpoint in there at line 68 and see why the error is coming.

  • SA Creation using LSMW BAPI BUS2013

    Hi,
    We have requirement for uploading open SA in to ECC and would need your help in LSMW, after analyzing I think best option to upload / create open SA is using BAPI method of LSMW as there is standard BAPI available BUS2013. But I have never used this method before though I am  well aware of recording method of LSMW. Please let me know how to proceed on LSMW using standardd BAPI.
    Step1- Maintain Object Attributes is done -
    BUS2013
    CREATE
    PURSAG_CREATE
    PURSAG_CREATE01
    Step2- Maintain Source Structure -
    Do we need to create 2 different structures here i.e. One for Header and One for item? If yes is it going to be at same level or lower level?
    Also need help for next 4 steps.
    Thanks
    Vihaan

    Hi Jurgen,
    Sorry didn't get you as I got stuck at step 2, please see how I did till now and provide your valuable input:
    Step 2 - Maintain Source Structures
           Created one Headerdata structure - HDATA
                Create one Itemdata structure - IDATA (IDATA is created as lower level of HDATA)
    Step3 - Maintain Source Fields
      Under HDATA:
               IDENTIFIER      C(001)  IDENTIFIER
               LIFNR              C(010) VENDOR
               EVART           C(004) SA DOCTYPE
               EKORG           C(004) PORG
               EKGRP           C(004) PRGP
               KDATE           C(008) Validity End Date
    Under IDATA:
              IDENTIFIER      C(001)  IDENTIFIER
              MATNR           C(018) Material Numer
              KTMNG           C(016) Tar Qty
              NETPR            C(013) Price
              WERKS           C(004) Plant
              LGORT           C(004) Storage location
    Step4 - Maintain structure relations
    Structure Relations
           E1PURSAG_CREATE        Header segment                                               <<<< HDATA SA HEADER DATA
               E1BPMEOUTHEADER        Header Data Outline Agreement                                <<<< HDATA SA HEADER DATA
       E1BPMEOUTITEM          Item Data of Contract                                        <<<< IDATA   SA Item Data
           E1BPMEOUTITEM1         Item Data of Contract                                        <<<< IDATA   SA Item Data
       E1BPMEOUTITEMX         Item Data Change Parameter for Outline Agreement             <<<< IDATA   SA Item Data
       E1BPMEOUTACCOUNT       Account Assignment Data - Outline Agreement                  <<<< IDATA   SA Item Data
    Stpe5 - Maintain filed mapping and Conversion rules
    Have mintained all the filed mapping like plant, material PORG etc.
    Step7 - Specify file - Done
    Step8- Assign file??? Here I am assigning file to HDATA structure only and not able to asign file to IDATA
    Source Structures and Files
           HEADERDATA SA HEADER DATA
                      SA Creation - TEST C:\Users\XME31L.txt
               ITEMDATA SA Item Data
    Here I would like to know how to create file considering above structure, do I need to create a single file with Header and Item fields in that? if Yes, then how to place it on excel - (like first row header column fields, second row - header field values and then in third row Item coloumn fields and 4th row item values)
    OR I need to create two different files one for header fields and one for item fields and then aissgn them to HDATA and IDATA respectively?if Yes, then I am not able to aissgn file to IDATA as it gives error saying "File XME31L.txt can only be assigned to one source structure.
    Please help me here
    Thanks
    Vihaan

Maybe you are looking for

  • Can someone help with a previous post labeled "Writing to a data file with time stamp - Help! "

    Can someone possibly help with a previous post labeled "Writing to a data file with time stamp - Help! " Thanks

  • Handle Runtime error: TSV_TNEW_PAGE_ALLOC_FAILED

    Hi, In my programme, some times I end up with handling of lots of data in internal table. And this results in a dump. Category               ABAP Server Resource Shortage Runtime Errors         TSV_TNEW_PAGE_ALLOC_FAILED Short text     No more memory

  • Holidays not updated in workschedule

    Dear all, I have created factory calender having updated with holidays , In work schedule rule it is assinged to PSG and ESG, till it is not showing any holiday after creating workschedule with same rule so what else is the configuration required. Sa

  • Check printing (FBZ5)

    Hi All, I am using FBZ5 transaction for check printing. In printing program i have one line as     MOVE-CORRESPONDING REGUH TO TREGUH.     APPEND  TREGUH.  CLEAR  TREGUH. It works fine up to 2008 financial year. But as new financial year is 2009 the

  • TREE STructures

    hi all, i was working with the tree structures . . . i used CL_GUI_SIMPLE_TREE. when i was done with it i found that it can only make one level nodes nesting . Please help what should i use, i want to have a tree with any number of levels of tree nod