LSMW -- - - - - - - processes (deep study)

Hello,
Can anyone highlight as to with the programming aspect how the process are taking place in lsmw and how are the files being process, how the data from the flat files get organized , how the validations carried out and at what stage the data from the files gets posted onto the database tables.
Can we trace programmatically at where and what place these things occur.

Hello zhenglin gu,
My question is how these fields are mapped at runtime from the hierarchical file structure and how does the LSMW format these data . Eg
If the structure is  HEADER1 -
fields1,fields2,fields3
                           TRANSACTION1- fieldsa,filedsb,fieldsc,fieldsd
                            TRANSACTION2-fieldsq,fieldsr,fieldst,fieldsu,fieldsv
Then at runtime I am intrested in knowing weather lsmw has all the HEADER FIELDS processed in one time or
will it first process one record from the header file and search for the relevant record in TRANSACTION1 and then in TRANSACTION2 file ? and the post the idoc?
How can I find this in LSMW programatically where is it stored?
Thanks for replying.
Regards,
Sohail Mansuri

Similar Messages

  • Ignoring a target field in LSMW processing

    Hi All,
            Is there a way to ignore a particular target field and its mapping in LSMW?
    For example, if there are 10 target fields present in a target structure, I want to ignore say 2 fields based on a value in file for another field so only 8 target fields will be considered for processing(read, convert, process)
    Thanks,
    Gopinath N

    USRID                        Communication ID/Number
                        Source:  ZHR0105-USRID (Communication ID/Number)
                        Code:    IF ZHR0105-SUBTY = '0001'.
                                   ZDMRC_0105-USRID = ZHR0105-USRID.
                                 ENDIF.
    USRID_LONG                   Communication ID/Number
                        Source:  ZHR0105-USRID_LONG (Communication: Long Identification/Number)
                        Code:    IF ZHR0105-SUBTY = '0010'.
                                   ZDMRC_0105-USRID_LONG = ZHR0105-USRID_LONG.
                                 ENDIF.
    The above is the code im using but still both the fields are picked in read and convert data as shown below and fails as there is no screen field USRID_LONG when USRID is present and vice versa
    TABNAME    Table Name              ZDMRC_0105
    TCODE      Transaction Code        PA30
    PERNR      Personnel Number        90000061
    SUBTY      Subtype                 0001
    BEGDA      Start Date              01012009
    ENDDA      End Date                31129999
    USRID      Communication ID/Number test
    USRID_LONG Communication ID/Number

  • Problem on LSMW processing...

    Hi gurus,
    I'm doing this mass upload of production Version in MM02 using LSMW. However during batch input processing, the program ignores the "check" function, thus does not display the consistency status (check stat) of the selected parameters.  How can i resolve the problem?
    Please help.
    Thanks and regards,
    ching

    Hi,
    Your problem may be with "Maintain Field Mapping and Conversion Rules". Here fields are mapped; (Fifth step)
    Ensure that each field is assign with Source Field / Constant Value

  • LSMW: Process code for DEBMDM and CREMDM

    Hi Can anyone tell me the process code for DEBMDM and CREMDM? I would like to use the IDOCs for uploading master data information.
    If you do not know the function module can you tell me what function module each one calls?
    Thanks,
    S.

    Hi you have to split this idoc into ADRMAS and CREMAS, not possible to upload CREMDM directly to Sap.
    Cheers
    Antonio

  • How to Delete TASK and employee retationship (B049) in HRP1001 Using LSMW .

    Hi,
    Please help me on below requirement.
    In LSMW Transaction:  PP02 is not supporting to delete the records from Table HRP1001 using task .
    Input file we have below details.
    Employee number
    Task ID :
    Relationship ( b049).
    Is there any other way to delete the required records from HRP1001 using LSMW process?
    Thanks & Regards,
    Naresh Chava.

    Hi Naresh,
    I am not sure about the possibility of delete the records.If you are able to do in standard transaction then you can do the same with lsmw.Create a recording method to delete the records and this delete it.
    Regards,
    Madhu.

  • ABZO Posting with T Type 100 By LSMW ( with Dep areas restriction)

    Hi Gurus
    I have few hundreds of Assets that are created before the Activation of New dep Areas. Now i have to updated the Acquisition costs to those 10 and 11 Dep areas only. I am able to do the update the acquisition costs to Asset master by ABZO tcode with restricted T type 100 for 10 and 11 Dep areas manually But i have to do it by LSMW process with BAPI  method,  But ended up in the following error message.
    Posting with transaction type 100 is not possible here, see long text
    Message no. AAPO177
    Diagnosis
    Transaction type 100 has a depreciation area limitation, although posting is not mandatory in all of the depreciation areas entered. However, it is not possible to select depreciation areas in the current transaction.
    Procedure
    Check the specifications for transaction type 100 or use transaction LSMW to enter the transaction.
    Please guide me the procedure to fix this issue.
    Meenakshi.N
    Edited by: Meenakshi.Nakshatrula on Jun 21, 2010 4:35 AM

    ABZO - Tcode,
    100 - Transaction type
    Assets - Non AUC assets
    Mistake is when i am recording the Session i haven't correctly determined the Depreciation areas. That lead me into error message.
    I was able to do it successfully by Batch input recording method instead of BAPI.
    Thanks
    Meenakshi.N

  • How to resolve error while importing data using IDoc method in LSMW ?

    Hi
    I am trying to import my data using IDoc method in LSMW.
    But after completing the whole LSMW process, when I look into the IDOC generated, the error description is as this.
    It talks about the process code and other stuff.
    Function module not allowed : APPL_IDOC_INPUTI
    Message No. B1252
    Diagnosis :
    The function module APPL_IDOC_INPUTI and the application object type which were determined are not valid for this IDoc.
    I am not able to resolve the problem.
    Please help.
    Regards,
    Rachesh Nambiar

    check the below link.
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter

  • Problem with LSMW infotype 1950 recording

    Hi !
    When I use The LSMW recording facility to play in a PO10 Properties (HR infotype 1950) I get error in the process step when the pgm action to the =UPD command  is to clear all the screens fields (pgm MP195000 screen 2000).
    I see that when LSMW process step is running sets sy-datar to "X" when MP195000 screen 2000 is executing and then a clear step executes
    ....but it do not be the same with manually infotyp input  by the same screens.
    Can some one help me  with this problem?

    Can I import it from the QA Client....there are lot of recording in this project , in which I just want to export/import only one project , how can I do that .

  • Lsmw........(multi-line items)

    hi,
       how to insert several line items in a sales order. whether this can be performed using recording or any other method can be used . If so please let me know.
                         thank you.
    regards
    prem

    Hi Prem,
    Follow these steps for processing multiple records in lsmw.
    I presume that you have one header line and multiple line items in the file and has a unique identifier. Let us say you have two nodes in lsmw called VBAK and VBAP.
    Normally lsmw process one line of the file at a time. When lsmw reads the header line, process the VBAK node and use the 'transfer_record' command (this must be already there). When the second record is processed and if the unique identifier is same as the header then write a command called 'skip_record' in the '__BEGIN_OF_RECORD__' session of VBAK. If you do like this we will have one header and multiple line items.
    Thanks
    Vinod

  • LSMW  ERROR LOG

    Hi All,
    I am working on error log created by LSMW, my work is to develop a program which can convert that error log to more user friendly log so that end user can easily identify the error.......
    The input parameter can be log id or queue id.
    If any one of you created such program then do help me through code.
    My personal email id : [email protected]
    Regards
    Rohit

    hi,  if you use a foreground way to run LSMW, it's not possible to catch all the log and memory them, because it happen on LSMW screen as message, and no one can trace them.
    So let's talk about the possiblity in background LSMW.
    As we known, it will be run as a background job, and all of the log LSMW processing will be input into Job log in SM37.
    So you can call function BP_JOBLOG_READ to read the job log, just specify the Job ID and your Job name.

  • Debugging of lsmw tool

    hello friends,
    can anybody tell me how to debug the lsmw at the point where i put a brakpoint in the actual program of transaction
    here main problem is i did the lsmw processing for one transaction i got all the records poping when i press the enter key after processing of the session with recording but finally i am not finding the recoreds in the database
    i used the commitwork bapi also but i donno where the problem is occuring
    can anyone guide me in this regard thanks alot in advanse

    Naveen,
    You can debug any LSMW object (Read or Conversion) program in the usual way by putting a hard breakpoint or soft breakpoint.
    In your Field Mapping/conversion, you can code BREAK-POINT at the very first field. Then the program execution will break when it reaches there.
    You can also put soft break-points in the generated code. To view your generated code, you need to bring it up in the initial screen of your object. To do so, click on the User Menu button & check the <i>Display Read Progam</i> & <i>Display Conversion Program</i> checkboxes. Hit ENTER. Now you will see 2 additional options on the initial screen of your Object. Double clicking on the <i>Display Read Program</i> or <i>Display Conversion Program</i> will take you into the generated code. Place your soft break-point as you normally do.
    Happy Debugging !
    Regards,
    Homiar.

  • LSMW Multiple Files

    Hi All,
    I have the records in the following pattern.
      Key Record
      REC_KEY1        CLASS1    CHAR1 CHAR_VALUE1
                                CHAR2 CHAR_VALUE2
                      CLASS2    CHAR3 CHAR_VALUE1
                                CHAR4 CHAR_VALUE4
    REC_KEY2         CLASS3    CHAR1 CHAR_VALUE1
                      CLASS4    CHAR1 CHAR_VALUE1
    REC_KEY3          SPACE       SPACE
    All these records are in a Single file. I have LSMW Structure as
       KEY
         --- CLASS
                ___ CHAR
    is there any way i can split the Above file and keep KEY VAlUE in Both the files and populate the LSMW Recorrs ? I know the way to use record identifier. Trying to use the way with Multiple fiels, One for Header with Key Value and 2nd with CLASS and CAHR Values. Please Help !!
    Thanks In Advace
    Kalso

    Hello,
    If I understood your requirement correctly this is the solution.
    Follow these steps for processing multiple records in lsmw.
    I presume that you have one header line and multiple line items in the file and has a unique identifier. Let us say you have two nodes in lsmw called VBAK and VBAP.
    Normally lsmw process one line of the file at a time. When lsmw reads the header line, process the VBAK node and use the 'transfer_record' command (this must be already there). When the second record is processed and if the unique identifier is same as the header then write a command called 'skip_record' in the '__BEGIN_OF_RECORD__' session of VBAK. If you do like this we will have one header and multiple line items.
    Thanks
    Vinod

  • LSMW Convert Excel to Tab Delimited

    Hello,
    I need to upload data, presnt in excel sheet via LSMW. The input for the LSMW needs to be in tab delimited file. Is it possible in the LSMW process to be able to convert the file format from excel to a tab delimited file or should the file format be manually changed to excel ?
    Thanks,
    Anand

    Thanks for the answer..But I wanted to know if the same operation can be automated or is it possible via LSMW ? Can we achieve this in any of the steps in LSMW ?
    Regards,
    Anand

  • LSMW data Reading Error

    HI,
    In the LSMW process i am getting the below error while doing 9th step Reading data.
    Unable to write to file 'E:\Z1XK01_ZXK01_ZXK01.lsmw.read'
    Message no. /SAPDMC/LSMW804
    Rgds
    Mani

    'E:\Z1XK01_ZXK01_ZXK01.lsmw.read'
    what is E:   ?
    only a directory on your application server  is allowed here (it must not be a directory from presentation server, which is your local PC(
    go back into step 7 and correct the directory and file name for the read data

  • LSMW Syntax Error /1CADMC/SAP_LSMW_CONV_00000056

    All,
    I am creating a a LSMW script to create mass user creations.  I put in all the information that is supposed to be there and when I get to the "Convert Data" and execute it gets this error.  In the "Display Read Data" it shows that everything is lined up as it is expected to be.  When I run the "Convert Data" it gives me the syntax run error /1CADMC/SAP_LSMW_CONV_00000056.
    I'm at a loss for what to do next.  I have recreated the recording and uploaded everything again.  I have checked all my fields and relationships. 
    Any ideas or where to go from here or patch to apply?  I am running from SAP 6.0.
    Thanks,
    -Daniel

    Hello,
    This is a typical error when one of the structures was changed in the previous steps of your LSMW process.
    Try to regenerate the conversion program based on the current LSMW definition, this can be done within the LSMW transaction.
    In the LSMW screen where you can see al your steps select the following menu : Extras->User Menu.
    You can select now some extra steps that can be used in the LSMW process.
    Try to select : "Generate conversion program", you will now have an extra option to force a new version of the conversion program based on the current settings.
    If the error still occurs analyse the previous steps in your LSMW to see if it is still consistent.
    I hope this helps.
    Wim

Maybe you are looking for

  • SAP R3 and BI system requirement for loading Inventory data (0IC_C03)

    Hi, I have installed the Business content for 0IC_C03,activated the required datasources in R3 and replicated the same in SAP BI. However, while filling up setup tables the load is getting failed and it is giving error "No internal table space....".

  • Problem with restoring Nokia N8

    Yesterday I backed up my messages, pictures and videos because I had a problem with Nokia Maps. I did a Hard Reset and returned to install and configure everything. When I restore my files from the backup are restored only photos and videos but not t

  • Transport layer change ?

    Is there any function module or class methods to chnge the tansport layer of a package. I need to change the transport layer from a program. Best Regards, Sreeram

  • How do I get my disk formatted for windows?

    I know this question has been asked a thousand times on this but my error is not like other peoples.  I am trying to partition my harddrive for windows, and i have the windows software.  I put the software on the disk and when I run boot camp to part

  • Where do I go to download firefox on a thumb drive to take on vacation with me?

    At one time I could download my startup page (Firefox) and take it with me so I could access My bookmarks. Can't seem to find this again.