LSMW with 2 source structure

Hi Expert,
I have requirement to upload Internal Order with settlement rule.
I want to make use of LSMW using Batch Input Recording method.
The thing is, settlement rule can be more than one, hence, I plan to have 2 structure, similar like header and item. I can make the main IO structure and the child settlement rule structure in maintain source structure section. However, I don't know how to link it with recording because when I try to map it, I can only create one structure relation with the main recording.
Do i need to create 2 separate recording?
Anyone has idea how to build LSMW for such requirement? Thank you.
Regards,
Abraham
Edited by: Abraham Bukit on Feb 5, 2009 11:11 AM

you cab achaive this by transfering the same strucure data again.
you can do transfer reord multiple times.
http://help.sap.com/saphelp_nw04/helpdata/en/10/6400c0ee3711d1b406006094b944c8/frameset.htm

Similar Messages

  • Mapping problem with source structures in LSMW thru idoc

    Hello,
            I am using crmxif for bp saving. I have flat file with one line. But it has many segments. do i need to mapp all segments with different source structures.
    Even for any other transactions with crm xifs, how to fill the segments .  do i need to create source  structures for all the segments.
    do i need to create different flat files for all the segments filling.   plz suggest with flat file, and source sturctures.
    thanks
    ram

    Hi RAM,
    Please refer notes 554635 and see if this helps.
    regards,
    Muralidhar Prasad Chatna

  • LSMW - one source structure - 2 targets

    Hi everyone,
    I'm trying to create a LSMW for the upload of customers. The client wants to link 2 contact persons to one vustomer.
    The flat file will have two lines with the same data, only the contact person will differ. Do you know how the difference can be made ?
    thanks in advance !

    Hi,
       if you have only one line you can do the same as mentioned below:
        First map the contact name1 to traget source. In 5th step u can map all the comman fields along with the contact person name and from the global variables u can write transfer_record. then again map all the fields along with the secound contact name and again write transfer_record.
    So u are trying to pass two customer contact records. It will work try this. Let me know if u have any issues.

  • Determining Source Structure u0096 for LSMW to upload Purchasing Info records?

    I am trying to use program RM06IBI0 through LSMW to upload Purchasing Info records. While configuring LSMW, how do I determine the source structure? Can anybody please help me with an example?
    Thanks,
    Ketan

    hi dear
    first of all record all the fields which you require through shdb including your vendor code and esokz.
    now
    generate a structure for mapping the fields through table maintainence generator option.you can add any number of fields there.
    actully this must include all the fields which are being fetched from the your flat file.
    please revert back if u find problem.
    reward points if it find useful
    regards
    amit singla

  • Multiple Source Structure in single flatfile using lsmw idoc method

    Hi Abapers,
                we have a requirement for Business partner Data mIgration into CRM system using LSMW idoc method,I got a flat file
    which has multiple source structures like(header structure,Tax structure,Mailstructure,Identification structure,bankdetails structure,card strcuture........etc of 12 structures) with identification for each structure. can any one help me how to handle this in lsmw or any link of this kind of scenario will be helpful for me .
    Thanks and Regards,

    Hi Saeed,
    For example if you want t create bom through lsmw then we will *** two files one header and other item one.In the same way .In lsmw start by keeping the idoc method i will only propose at second step how many files it need. Just map the idoc and see. Post if need more help.
    Regards,
    Madhu.

  • Problem with 2 structure in Lsmw

    Hello experts,
            I am using lsmw using batch input session. I have two structure one for vendor and other for vendor details. I am not able to assign both the structures at a time.
    So I am having problem in mapping the fields.
      I refered to other sites they have example with only one structure.

    You can use two structures in a LSMW object  . Make sure both the structures have a common field
    ( unique field to link the two structures )
    Re: LSMW loading multiple structured records..
    All the best
    Regards
    Vivek

  • APD using Query with multiple structures as a data source

    All,
    I want to set up an automatic process which executes a query and exports it to a shared drive as a csv file. I have tried various options , when I try to use APD to set up the extract, I get an error and this is because the query that I am trying to use has Strucutres in both rows and columns. Hence, I am unable to use this option. I tried RSCRM_BAPI, It works well, but there is an issue with scheduling this in Process chain. I created an event and scheduled this as a job to trigger after "event" as per SAP instructions, but the job does not exist and it is not possible to trigger it through the Process chain unless the variables are hard coded in the query which I do not want to do.
    Can any one tell me if there is a way to deal with APD using Query with multiple structures?
    Would really appreciate if some one can give me the right solution...
    Thanks

    Hi Tanu ,
    APD is an option but its not very good with large amount of data or hiearachies or if you have attributes in you query structure .
    One more option for this requirement is use of report program using function module RRW3_GET_QUERY_VIEW_DATA .
    This will work fine with multiple structure etc .
    There are some overheads with this FM  ex: if amount of data is too much then program will give dump .Solution for that is we call the FM in LOOP by diving amount of data need to be fetched .ex:  we can read data quarter wise.
    For using this function module what you can do is write an ABAP program (At SE38 ) .which will call this FM and then write the output into a flat file which you can save at application server (AL11) .From there other system can read it .
    To automate this whole process you can further add all the report programs into a process chain (RSPC) which can be schedule as per requirement .
    To pass input parameters you can use variants that will pass the values to the report .
    Check thi link for sample code :
    [http://www.tricktresor.de/content/index.php?navID=696&aID=496]
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Ensure field sequence is correct for data for mutiple source structure

    Hi,
    I'm using LSMW with IDOC message type 'FIDCC2' Basic type 'FIDCCP02'.
    I'm getting error that packed fields are not permitted.
    I'm getting Ensure field sequence is correct for data for mutiple source structures.
    Source Structures
           HEADER_STRUCT            G/L  Account Document Header
               LINE_STRUCT              G/L Account Document Line
    Source Fields
           HEADER_STRUCT             G/L  Account Document Header
               BKTXT                          C(025)    Document  Header Text
               BLART                          C(002)    Document Type
               BLDAT                          DYMD(008) Document Date
               BUDAT                          DYMD(008) Posting Date
               KURSF                          C(009)    Exchange rate
               WAERS                          C(005)    Currency
               WWERT                          DYMD(008) Translation Date
               XBLNR                          C(016)    Reference
               LINE_STRUCT               G/L Account Document Line
                   AUFNR                          C(012)    Order
                   HKONT                          C(010)    G/L Account
                   KOSTL                          C(010)    Cost Center
                   MEINS                          C(003)    Base Unit of Measure
                   MENGE                          C(013)    Quantity
                   PRCTR                          C(010)    Profit Center
                   SGTXT                          C(050)    Text
                   SHKZG                          C(001)    Debit/Credit Ind.
                   WRBTR                          AMT3(013) Amount
    I have changed PAC3 field for caracters fields of same length to avoid erreur message of no packed fields allowed.
    Structure Relations
           E1FIKPF FI Document Header (BKPF)         <<<< HEADER_STRUCT G/L  Account Document Header
                   Select Target Structure E1FIKPF .
               E1FISEG FI Document Item (BSEG)          <<<< LINE_STRUCT   G/L Account Document Line
                   E1FISE2 FI Document Item, Second Part of E1FISEG   (BSEG)
                   E1FINBU FI Subsidiary Ledger (FI-AP-AR) (BSEG)
               E1FISEC CPD Customer/Vendor  (BSEC)
               E1FISET FI Tax Data (BSET)
               E1FIXWT Extended Withholding Tax (WITH_ITEM)
    Files
           Legacy Data          On the PC (Frontend)
               File to read GL Account info   c:\GL_Account.txt
                                              Data for Multiple Source Structures (Sequential Files)
                                              Separator Tabulator
                                              Field Names at Start of File
                                              Field Order Matches Source Structure Definition
                                              With Record End Indicator (Text File)
                                              Code Page ASCII
           Legacy Data          On the R/3 server (application server)
           Imported Data        File for Imported Data (Application Server)
               Imported Data                  c:\SYNERGO_CREATE_LCNA_FI_GLDOC_CREATE.lsmw.read
           Converted Data       File for Converted Data (Application Server)
               Converted Data                 c:\SYNERGO_LCNA_FI_GLDOC_CREATE.lsmw.conv
           Wildcard Value       Value for Wildcard '*' in File Name
    Source Structures and Files
           HEADER_STRUCT G/L  Account Document Header
                         File to read GL Account info c:\GL_Account.txt
               LINE_STRUCT G/L Account Document Line
                           File to read GL Account info c:\GL_Account.txt
    File content:
    Document  Header Text     Document Type     Document Date     Posting Date     Exchange rate     Currency     Translation Date     Reference     
    G/L Account document     SA     20080401     20080409     1.05     CAD     20080409     Reference     
    Order     G/L Account     Cost Center     Base Unit of Measure     Quantity     Profit Center     Text     Debit/Credit Ind.     Amount
         44000022                    1040     Line item text 1     H     250
         60105M01     13431     TO     10          Line item text 2     S     150
    800000     60105M01                         Line item text 3     S     100
         60110P01     6617     H     40          Line item text 4     S     600
         44000022                    ACIBRAM     Line item text 5     H     600
    The file structure is as follow
    Header titles
    Header info
    Line titles
    Line1 info
    Line2 info
    Line3 info
    Line4 info
    Line5 info
    Could someone direct me in the wright direction?
    Thank you in advance!
    Curtis

    Hi,
    Thank you so much for yout reply.
    For example
    i have VBAK(Heder structure)
              VBAP( Item Structure)
    My file should be like this i think
    Identification content         Fieldnames
         H                               VBELN      ERDAT     ERNAM        
                                          Fieldvalues for header
          H                              1000          20080703   swapna
    Identification content         Fieldnames
        I                                   VBELP     AUART 
                                          Fieldvalues for item
        I                                  001             OR
                                           002             OR
    Is this format is correct.
    Let me know whether i am correct or not

  • LSMW with RSADRLSM02

    HI FOLKS,
    i want to do datamigration using lsmw with directinput method
    i want to upload the data for business address services/regionla structure the correspoind sap std program is RSADRLSM02.
    can anyone let me know how to proceed from step 2 to  5 i mean how to create the structure and assing the source fields and mappind logic
    flatfile is containing with cityno, cityname, streetno, streetname and i am getting struck at the point where at the end it is asking the logicalfile how to solve
    please someone can help me it is very urgent
    can anyone let me know how to create the logical file in file transaction and how to assign it to the standard application
    hello common guys
    lot of experts r here someone help to solve my proble plz it is very urgent
    thanks in advanse
    naveen
    Message was edited by: NAVEENKUMAR GUDURI
    Message was edited by: NAVEENKUMAR GUDURI

    Hi Naveenkumar,
    Please check this link which you can download LSMW documentation. It is very helpful and show you step by step on how to setup. Go to ABAP Tools -> ABAP utilities area and click on LSMW Described link.
    http://www.sapgenie.com/abap/
    Hope this will help.
    Regards,
    Ferry Lianto

  • LSMW with multiple transaction n multiple files

    Hi experts,
          is it possible to do data transfer using LSMW(recording) with multiple transaction and multiple files .
    Like 3 transaction and 3 files.
    I want 1st transaction and 1st file to upload first then
    2nd transaction and 2nd file
    3rd transaction and 3rd file

    Hi,
    i think you mean that you want to process first the 1st record of file1 with transaction 1 than 1st record of file 2 with transaction 2
    This is possible using recordings(as you asked for).
    First Maintain Object Attributes then mark batch input recordings and maintain recordings name.
    On the right side are two buttons one for overviewing recordings and one for maintaining more recordings.
    Here enter your additional recordings.
    Now specify for each recording a own Source Structure and
    maintain the Structure Relations and so on...
    If you just want to do 1st transaction with all records of file1 than 2nd transaction use three different LSMWs.
    You can automize the process by using Data Transfer Workbench(SXDA).
    Regards,
    Sebastian

  • Identification Specification missing in Source structure!!!

    Hi,
    I'm Saikumar.
    I'm doing LSMW (in that recording for MAP1 and MAP2 transactions).
    I've created 2 source structures ZMAP1_SOURCE and ZMAP2_SOURCE and also assigned some fields.
    I  created only one flat file for these 2 source structures and I've assigned to them.
    But When I'm reading the data...it is giving the error<b> Identification Specification missing in Source structure ZMAP1_SOURCE</b>...
    Can any give me a solution to this error in detail.
    Thanks in Advance....

    Sai when we create two structures and assign it to the same file we need to specify an identifier for SAP which will specify which structure to use. Normally it will be done at the time of creation of the Source fields. when you create that there will be a field Identifying field values there you need to give the value to that.
    eg. If you have file with two hierarchial elements
    H a b c
    I  1 2 3 5 6
    where H and I denotes the hierarchy what you need to do is you need to set the identifying field values for the Header structure as H and for the Item structure as I. SAP automatically checks and populates the values..

  • LSMW Dummy source stucture

    Hi,
    I have one issue with LSMW.
    When i define a dummy source structure with no fields the mapping saction raise the error message like
    '<struct> not found'.
    Is it nesssary that source stucture must have any field name?
    Dhirendra

    Hi Dhirendra,
    The source structure you defined in LSMW will be used to generate ABAP source code for data conversion, if no field inside, the generated ABAP code should like :
    data: begin of st,
            end of st.
    This code will get syntax error.
    You can add a dummy field in your dummy structure.
    Regards,
    Brown

  • Urgent need lsmw with directinput

    hi folks,
    i am in urgent need
    i am using the program RSADRLSM02 for the uploading of the bisiness address services/regionla structure with lsmw using directinput method
    i finished all the steps but at the end i am getting struck it is asking for the logical file i don't have any knowledge about it how to create or choose the corresponding logical file related to this program
    please can anyone guide me to solve this
    thanks in advanse
    naveen

    Hai Naveen
    I will send you some  steps for Transaction Code MM01
    Please do the steps and got any error get back to me
    Using Tcode MM01 -- Maintain the source fields are
    1) mara-amtnr  char(18)
    2) mara-mbrsh  char(1)
    3) mara-mtart  char(4)
    4) makt-maktx  char(40)
    5) mara-meins  char(3)
    the flate file format is like this as follows
    MAT991,C,COUP,Srinivas material01,Kg
    MAT992,C,COUP,Srinivas material02,Kg
    AMT993,C,COUP,Srinivas material03,Kg
    MAT994,C,COUP,Srinivas material04,Kg
    MAT995,C,COUP,Srinivas material05,Kg
    goto Tcode LSMW
    give Project Name
         Subproject Name
         object Name
    Press Enter -
    Press Execute Button
    It gives 13 radio-Button Options
    do the following 13 steps as follows
    1) select radio-Button 1 and execute
       Maintain Object Attributes
    select Standard Batch/Direct Input
       give Object -- 0020
           Method -- 0000
       save & Come Back
    2) select radio-Button 2 and execute
       Maintain Source Structures
       select the source structure and got to click on create button
       give source structure name & Description
       save & Come Back
    3) select radio-Button 3 and execute
       Maintain Source Fields
       select the source structure and click on create button
       give
       first field
            field name    matnr
            Field Label   material Number
            Field Length  18
            Field Type    C
       Second field
            field name    mbrsh
            Field Label   Industrial Sector
            Field Length  1
            Field Type    C
       Third field
            field name    mtart
            Field Label   material type
            Field Length  4
            Field Type    C
       fourth field
            field name    maktx
            Field Label   material description
            Field Length  40
            Field Type    C
       fifth field
            field name    meins
            Field Label   base unit of measurement
            Field Length  3
            Field Type    C
      save & come back
    4) select radio-Button 4 and execute
       Maintain Structure Relations
       go to blue lines 
          select first blue line and click on create relationship button
          select Second blue line and click on create relationship button
          select Third blue line and click on create relationship button
      save & come back
    5) select radio-Button 5 and execute
       Maintain Field Mapping and Conversion Rules
       Select the Tcode and click on Rule button there you will select constant
       and press continue button
       give Transaction Code : MM01 and press Enter
       after that
       1) select MATNR field click on Source filed(this is the field mapping) select MATNR and press Enter
       2) select MBRSH field click on Source filed(this is the field mapping) select MBRSH and press Enter
       3) select MTART field click on Source filed(this is the field mapping) select MTART and press Enter
       4) select MAKTX field click on Source filed(this is the field mapping) select MAKTX and press Enter
       5) select MEINS field click on Source filed(this is the field mapping) select MEINS and press Enter
      finally     
      save & come back
    6) select radio-Button 6 and execute
       Maintain Fixed Values, Translations, User-Defined Routines
       give FIXED VALUE Name & Description as MM01
       come back
    7) select radio-Button 7 and execute
       Specify Files
       select On the PC (Frontend) -- and click on Create button(f5)
                                      give the path of the file like "c:\material_data.txt"
                                      description : -
                                      separators as select comma radiao- button
       and press enter   save & come back
    8) select radio-Button 8 and execute
       Assign Files
       Save & come back
    9) select radio-Button 9 and execute
       Read Files
       Execute
       come back
       come back
    10) select radio-Button 10 and execute
        Display Imported Data
        Execute and press enter
        come back
        Come back
    11) select radio-Button 11 and execute
        Convert Data
        Execute
        come back
        Come back
    12) select radio-Button 12 and execute
        Display Converted Data
        Execute & come back
    13) select radio-Button 13 and execute
        Start Direct Input Program
       select the Program
       select continue button
    go with via physical file
    give the lock mode as 'E'
    and execute
    Thanks & regards
    Sreenivasulu P

  • Lsmw with idoc

    Hi all, Can any one send me the steps for upload material data using LSMW-IDoc method

    hi,
    <b>Working With LSMW:</b>
    Use TCODE LSMW
    <b>Objects of LSMW:</b>
      •Project   – ID with max of 10 char to Name the data transfer project.
      • Subproject   – Used as further structuring attribute.
      • Object   – ID with max of 10 Characters, to name the Business object .
      • Project can have multiple sub projects and subprojects can have multiple objects.
      • Project documentation displays any documentation maintained for individual pop ups and processing steps
    <b>User Guide:</b> Clicking on Enter leads to interactive user guide which displays the Project name, sub project name and object to be created.
    <b>Object type and import techniques:</b>
      • Standard Batch / Direct input.
      • Batch Input Recording
          o If no standard programs available
          o To reduce number of target fields.
          o Only for fixed screen sequence.
        • BAPI
        • IDOC
          o Settings and preparations needed for each project
    <b>Preparations for IDOC inbound processing:</b>
        • Choose settings -> IDOC inbound processing in LSMW
        • Set up File port for file transfer, create port using WE21.
        • Additionally set up RFC port for submitting data packages directly to function module IDoc_Inbound_Asynchronous, without creating a file during data conversion.
        • Setup partner type (SAP recommended ‘US’) using WE44.
        • Maintain partner number using WE20.
        • Activate IDOC inbound processing.
        • Verify workflow customizing.
    <b>Steps in creating LSMW Project:</b>
        1) Maintain attributes – choose the import method.
        2)Maintain source structure/s with or without hierarchical relations. (Header, Detail)
        3) Maintain source fields for the source structures. Possible field types – C,N,X, date, amount and packed filed with decimal places.
        • Fields can be maintained individually or in table form or copy from other sources using upload from a text file
        4) Maintain relationship between source and target structures.
        5) Maintain Field mapping and conversion rules
        • For each Target field the following information is displayed:
          o Field description
          o Assigned source fields (if any)
          o Rule type (fixed value, translation etc.)
          o Coding.
          o Some fields are preset by the system & are marked with Default setting.
        6) Maintain Fixed values, translations, user defined routines – Here reusable rules can be processed like assigning fixed values, translation definition etc.
        6) Specify Files
          o Legacy data location on PC / application server
          o File for read data ( extension .lsm.read)
          o File for converted data (extension .lsm.conv)
        7) Assign Files – to defined source structures
        8) Read data – Can process all the data or part of data by specifying from / to transaction numbers.
        9) Display read data – To verify the input data being read
        10) Convert Data – Data conversion happens here, if data conversion program is not up to date, it gets regenerated automatically.
        11) Display converted data – To verify the converted data
    <b>Import Data – Based on the object type selected</b>
        • Standard Batch input or Recording
          o Generate Batch input session
          o Run Batch input session
        • Standard Direct input session
          o Direct input program or direct input transaction is called
    <b>BAPI / IDOC Technique:</b>
        • IDOC creation
          o Information packages from the converted data are stored on R/3 Database.
          o system assigns a number to every IDOC.
          o The file of converted data is deleted.
    <b>   • IDOC processing</b>
          o IDOCS created are posted to the corresponding application program.
          o Application program checks data and posts in the application database.
    <b>Finally Transport LSMW Projects:</b>
        • R/3 Transport system
          o Extras ->Create change request
          o Change request can be exported/imported using CTS
        • Export Project
          o Select / Deselect part / entire project & export to another R/3 system
        • Import Project
          o Exported mapping / rules can be imported through PC file
          o Existing Project data gets overwritten
          o Prevent overwriting by using
        ‘Import under different name
    <b>for more information follow this link.</b>
    http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/content.htm
    regards,
    Ashokreddy

  • LSMW with Recording??? Transaction BP

    Hi Experts,
    Actually, I am new to SAP CRM system and presently doing some conversion programs using the LSMW.  I am loading Client and Service Tickets data using the Transactions BP.
    I have a doubt, the data which I am loading has about 40 fields in the source structure while the transactions BP is showing only 10 fields when I do the recording??? How do I map the fields....
    Also, the questions is, if I do recording and if I give BP as transaction, how do I mention all the screens of the BP transaction... Is there any way by which I can record all the screens of the BP transaction.....???
    I really need your help as I am approaching deadlines and I am very new to the SAP CRM system.  I will appreciate your answers and will give you appropirate points.
    Thanks....
        -Ken

    Ken,
    I would not recommend using a BDC to load data into CRM.  A better method would be to load the data using the XIF adapter IDOC interface when using LSMW.  The IDOC types would start with CRMXIF_PARTNER*.
    I have written a small weblog at:
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter
    This shows how to use the XIF adapter for products.  The usage of it for Business Partner data would work in a similar fashion.
    Hopefully this will help you get started.
    Good Luck,
    Stephen

Maybe you are looking for

  • SRM Query

    Hi all, I am workin on SRM 4.0.I have started configuring the system from scratch.I am referring to the SRM EBP 5.0 Configuration Guide.The problems which i am facin are like that: 1> Not able to run the report BBP_UPLOAD_PAYMENT_TERMS. It shows the

  • My phone will only half load when I switch it on and then crashes

    Solved! Go to Solution.

  • Recording sounds on the fly

    Can anyone tell me if you can record sounds on the fly? By that I mean during my voice recording and not in post production. Our podcast is a live event. We do no editing or postproduction. Currently I use a PC to play sounds and feed them through th

  • Consolidation Unit Clearing account for Income / Expenses elimination

    Hi, When companys are leaving the group, where the parent comapany has some income/expenses elimination transactions with the company leaving, there is still balance on the parent company on consolidation unit clearing account with the company leavin

  • User defined Applications not available

    Dear gurus, I'm new to BPC for MS, and my problem is that I have created new applications (copy of existing ones and some modifications) within a new set of applications. When I try to select one of this new applications on BPC for Excel, they are no