LSMW Multiple Structures

I need to create an LSMW to create and/or modify vendords.  How do I physically set up my input file to contain records for BGR00, BLF00, and BLFA1 Structures?
How does this correspond with the "Identifying Field Value" parameter of the Source Field Mapping portion of the LSMW setup?

u can assign field value starting frm 1 to one set of values ... e.g assign 1 to all the values which needs to be inserted in  table BGR00 and put 1 in the identifying field value ... like this 2 for BLF00 table and put 2 in identifying field value ... when uploading ... system will automatically pick the respective values
hope this will help
bbye tac care
Ashwani

Similar Messages

  • Is it possible LSMW recording method using multiple structures

    Hi,
    can any body tell me, is it possible LSMW recording method using multiple structures
    i,e using Header details one flat file structure and Item details another flat file structures

    Hi,
    Check this link..
    LSMW multiple structure migration

  • If CSV file contains multiple structure...

    If CSV file contains multiple structures...then how should set vaules in file content conversion.
    pls mention any links regarding File Content Conversion
    thanks in advance..
    Ramesh

    Hi,
    You are using RecordSet. Here are some scenarios.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters - IDoc to File
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - File to ABAP Proxy
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] - File to Mail
    Regards,
    Wojciech

  • Reading Multiple Structures

    Hi,
    Could anyone tell me how to read multiple structures in a single BPEL process?
    I have a requirement to read multiple files with different structures to be read in a single BPEL process.
    All these files will be ftped and read from a single source folder, this need to be transformed to common canonical xml format [OAGIS], Any possibilities?
    Thanks in Advance
    Regards
    Sathish
    Message was edited by:
    user555459

    if Reading Multiple Structures mean by Reading Multiple FileType from FTP location then
    the solution for above problem is to either fallow the naming convention or stick for on file type. (*.* is not allowed in FTP adapter)
    fallowing the naming convention: uploaded files should start with somename_----.txt or csv or any structure, type......
    then we can put a condition like somename*.* will pickup all the files start with somename.... instead of structure...
    try this link.... study the documentaion
    http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIABDJEF
    hope this will help you....

  • 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

  • Multiple structures in BEx used in CR

    hi,
    I have a BEx-query (P&L) which uses multiple structures.
    When I open it in CR I see my key figures OK, but the other structure is displayed as one field.
    I want to format my report in CR so that some fields in the structure are indented, some should be bold etc etc.
    When my list of fields in the structure are displayed as only ONE field in CR this formatting will be set on all fields in the structure and that's not what I want.
    I have a workaorund for this, but it's quite complex for the end users so I wonder if you have any news on if and when we will be able to get a BEx-query with multiple sttructures in CR and in CR be able to format each field in the structure in an easy way.
    Kind regards
    /martin

    hey, i have the same problem.. whats your workaround? Can you give me a hint?

  • LSMW loading multiple structured records..

    Hi,
    We want to know how to load multi structured records thru <b>LSMW</b>, ie. we have a customer records which have multiple sub items eg, telephone numbers..multiple identification numbers for each customer.
    Q. What is the best way to load these thru lsmw.
    Q. Do we need one input file or multiple files input files (prefered)? How do we link  these record in different files?
    Q. Do we use Batch recording or BAPI input? we want to load the <b>Business Partner</b> object (I know nothing about SAP!) What BAPI to use?
    mike

    First you have to work out what your logical group of records is going to be. Business partner, addresses telephone numbers, e-mail, web address, etc.
    Now you must decide how your input data is to be structured. Single file for all records, or multiple files, one for each record type.
    If you want multiple input files then each record <u>MUST</u> have a unique key that LSMW can use to group together your logical set.
    If you want to use a single input file, then either all records have the same structure and an unique key identifier for each logical group. Or you have many record types and an identifier for each one. You must have a way of indicating the start of the next logical group, (record type '1', or a change of unique identifier).
    You can only sort your input files if you include an unique key in each record.
    Now look to see what methods are available to load the data. BAPIs (Business APIs) these are functions that can be called from both, within SAP and from external systems. IDOCs (Intermediate DOCuments) programs that process data that is in known format (related to EDI) into SAP, most of these programs are now BAPIs. BI and DI (Batch and Direct Input) Older SAP programs that apply all the edits and sequence of the screens that the user uses. BI allows you to process the updates at a later time. BDC (Batch Data Communication) a process where by a program trys to imatate a user inputting the data, to be used as a last resort.
    Do not expect to be able to get all of your logical group loaded with a single method.
    Look at BAPIs whose names start BAPI_BUPA, transactions BAPI, SE37.
    MattG.

  • Reg: LSMW Multiple line items of scale pricing in transaction VK11

    Hi,
    Iam using LSMW to upload price condition records(VK11)
    Totally Iam having two records which i have split as 2 flat files.
    one flat file with header details and another flat file with line items for scale quantity and scale pricing, something like below.
    Header flat file
    __ZPR3__
    __cust1__
    __Mat1__
    __AUD__
    __EA__
    __100__
    __10__
    __ZPR3__
    __cust2__
    __Mat2__
    __AUD__
    __EA__
    __300__
    __10__
    Line Item Flat file
    __cust1__
    __mat1__
    __95__
    __20__
    __cust1__
    __mat1__
    __90__
    __30__
    __cust1__
    __mat1__
    __85__
    __40__
    __cust1__
    __mat1__
    __80__
    __50__
    __cust1__
    __mat1__
    __75__
    __60__
    __cust2__
    __mat2__
    __70__
    __20__
    __cust2__
    __mat2__
    __65__
    __30__
    __cust2__
    __mat2__
    __60__
    __40__
    When i do the step of Read Data in LSMW iam getting the data correctly.
    in Display read data step i got the header data in yellow and its line item in blue.
    In Convert data step iam gettin as
    Transaction read = 2.
    Records read = 11.
    Transaction written = 2.
    Record written = 9.
    In Display Converted data step Iam getting every record as a higher level item (displayed in green)
    In Create Batch Input Session step Iam getting the message as 1 batch Input folder with 9 transactions
    Which is actually wrong because only two transaction only must be written.
    I think i migh have problem in Convert data step but iam not sure, can anyone help me what should be done.
    My requirement is to upload the two datas with multiple scale prices for transaction vk11.
    Kindly Help.
    Regards
    Naveen

    hi,
    For u r reqrmnt u can make use of direct input method.
    1)
    Object               0070   Condition record
    Method               0000
    Program name         RV14BTCI
    Program type         B   Batch input
    it make use of transaction VK15( alternate for vk11where instead of selecting combination u can directly input table name)
    2) create u r internal table structure with the following fields
         KSCHL               cond type
         KOTABNR          cond table
         VKORG             sales org
         VTWEG              distr chnnl
         KUNNR              customer
         MATNR              material num
         WERKS             plant
         WAERK             currency
         DATAB               from date
         DATBI                to date
         KSTBM              cond scale qty
         KBETR              rate
         LOEVM_KO       del ind
         KPEIN               cond pricing unit
    in the above if u dont require any fields u can omit but make sure u r using all key fields.
    i thnk in u r reqrmnt its customer specific pricing so customer, cond scale qty,rate r needed.
    deltion indicator is used to delete existing records.
    3)  maintain structure relations till BKOND3
    4)  for field mapping do Auto field mapping
         give Tcode VK15
         give value for VAKEY ( concate salesorg, plant,materialno,customer) 
    assign dates in standard format (YYYYMMDD)
    5) Run remaining steps like assigning files, read convert and all
    u r flat file structure shud be da same like u r internal table.
    if u r not givin values provide empty space.
    flat file
    zpr3   cust1   mat1   aud ea 100 10   95 20
    zpr3   cust1  mat1    aud ea 100 10   90 30
    zpr3   cust2  mat2    aud ea 300 10   70 20
    i hope it gives u some idea .
    if its useful rewrd me.

  • ME01 LSMW multiple record for same material issue.

    Hi Experts,
    I have an issue with multiple record for the same material and plant when I upload the data from the file.  Lets I have the records.
    Material        Plant              Start date      Enddate        Vendor          Porg.
    1     0010     20060101     99991231     2     0010
    1     0010     20060101     99991231     3     0010
    When I upload the above data there are 2 IDOCs created when I am using the method LSMW-IDOC method, but only last record is getting updated and the first one is not getting updated in ME01 souce list. But I am getting the success message for both IDOC in LSMW. So I am not sure how to fix this why only last record is updated and not other records??

    why do you have 2 idocs?
    wouldn't be 1 idoc with 2 items be more logical?
    1 record in structure E1EORDH
    and 2 records in structure E1EORDM
    I believe your 2 IDOCs get posted, but I think your 2nd Idoc overwrites the values entered from the first IDOC.

  • 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

  • Manage multiple structure mapping

    Hello all,
    i have a scenario MAIL -> PI -> MAIL.
    I am working with standard XSD with multiple external references and namespaces for my outbound and inbound structureq. All messages have different structures that i cannot merge because of different namespace untouchable.
    I have a Sender Mail Adapter in order to read my mailbox with an interface filling in it.
    I know the interface i need to use only when i am reading a specific field in the mail attachment.
    My problem is that the interface in the CC refers to one Interface mapping while i need something dynamic. I cannot use also condition in receiver determination or interface determination due to my standard structure.
    I would like something to allow me to choose what Interface mapping i use... I recall that each XSD structure are different, this is the main problem for me.
    It must be a way to do it but i don't find it, someone got an idea ?
    Thanks,
    Jean-Philippe

    OK, if you always have the same receiver, you should give the condition in the interface determination. On which PI version are you working?
    In fact PI doesn't care as much about real fitting interface structures as long as you do not wish to do validation or so. You just have to configure things right. E.g. you can chose as interface the IDoc WBBDLD04, but you give the PI an INVOIC01. If you just transport the message, nobody cares.
    Now, if you read the mails from your mailbox with a dummy interface, you actually don't know, what's in your message. You're sending the message always to the same receiver system, so you don't have to give any condition here. Now in interface determination, you give all the interfaces that possibly could be on the inbound side. For each interface you now have to put a condition, where you check with an xpath expression, if it is maybe a WBBDLD04 or an INVOIC01 or a DELVRY03 or whatever you have to check.

  • Split delimited file into multiple structures

    Hi experts,
    I have a delimited text file that has multiple row types - each row contains only one structure, but there could be 10 different row types (structures) in the file. I can figure out which structure each row belongs. Just need to come up with a way to dynamically split each line.
    I am trying to stay away from:
    case 'row type'
      when 'structure A'
        split into A1, A2, A3...
      when 'structure B'
        split into B1, B2, B3...
    end with.
    Rather, create a routine accepting file line and structure (or structure name) that returns the structure with data populated.
    Any suggestions?
    Thanks,
    Hyun Kang

    This may give you some ideas. 
    report zrich_0001.
    data: begin of itab1 occurs 0,
          fld1(10) type c,
          end of itab1.
    data: begin of itab2 occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          end of itab2.
    data: begin of itab3 occurs 0,
          fld1(10) type c,
          fld2(10) type c,
          fld3(10) type c,
          end of itab3.
    data: tab_name type string.
    data: istr type table of string with header line.
    data: isplit type table of string with header line.
    field-symbols: <dyn_tab> type table,
                   <dyn_wa>,
                   <fs>.
    start-of-selection.
      call function 'GUI_UPLOAD'
           exporting
                filename = 'C:test.txt'
           tables
                data_tab = istr.
      loop at istr.
        split istr at ',' into table isplit.
        read table isplit index 1.
        concatenate isplit '[]' into tab_name.
        assign (tab_name) to <dyn_tab>.
        assign (isplit) to <dyn_wa>.
        delete isplit index 1.
        loop at isplit.
          assign component sy-tabix of structure <dyn_wa> to <fs>.
          if sy-subrc <> 0.
            exit.
          endif.
          <fs> = isplit.
        endloop.
        append <dyn_wa> to <dyn_tab>.
      endloop.
      loop at itab1.
        write:/ itab1-fld1.
      endloop.
      loop at itab2.
        write:/ itab2-fld1, itab2-fld2.
      endloop.
      loop at itab3.
        write:/ itab3-fld1, itab3-fld2, itab3-fld3.
      endloop.
    My file looks like this.
    ITAB1,Value1
    ITAB1,Value2
    ITAB2,ValueA,ValueB,
    ITAB2,ValueC,ValueD,
    ITAB3,ValueR,ValueS,ValueT
    ITAB3,ValueU,ValueV,ValueW
    You can see in this program, that the first column drives what internal table the data is written to for that line.
    Regards,
    RIch Heilman

  • LSMW - Maintaining structure relations

    I am trying to upload customer records using LSMW. There are two source structures (one for customer header and the other for customer-contactingperson which is item level). I completed first three steps. I am stuck at 'Maintain structure relations' step. How do we assign the structures here?
    There are lot of things like BKNA1, BKNB1, BKNBK..so on but I am kind of clueless to which source structures I have to assign these target structures. Can you please help with this or are there any general rules here to go through this step with out any errors?
    Thank you very much.

    In my header structure, I have following fields:
    Customer Number     Name     Street     City     Zipcode     Country     Language     TelephoneNumber
    In my contact structure (which is item level), I have the following fields:
    CustomerNumber     LastName     FirstName     FormofAddress     Department     Position     TelephoneNumberContact
    From 'Migrating your SAP data' (book from SAP press), I see that they
    - assigned source header structure to BGR00, BKN00, BKNA1 and BKNB1.
    - assigned souce contact structure to BKNVK.
    It is clear to me that we have to assign the header data to all required structures (which came up as BGR00, BKN00 and BKNA1 in my example). But how do I know that I also have to assign it to BKNB1?
    If you can help with this question, my problem is solved.
    Thanks a lot!

  • LSMW hierarchical structure

    Hello gurus,
    Is it possible to create an adhoc BDC hierarchical LSMW project.
    Example:
    -o- I want to create a material basic view
    -o- I want to add "additional data"
    Alternate language descriptions
    Unit conversions (units per box, etc)
    I created a recording for it. I created a two level structure in the maintain source structures and split the fields out into what I'll call Level 1 and Level 2.
    I assigned files for the two levels .
    When I went to the maintatain conversion rules, The fields area came up blank. All it had in it was the TABNAME and TCODE entries.
    Is there something I'm missing?
    I'll be happy to supply more info via email and screen shots if that would help.
    Thanks
    Ed Baker

    How did you link the source structures to the target structure?
    Problem is that with a recording you only get one flat target structure (as far as I know...), so you cannot map a two level source structure to it.
    In your example I would turn to the standard SAP object 0020 (program RMDATIND).
    To create your own hiearchical upload process you would need to create target structures, a BDC program and also tamper with the SXD0 to SXD3 table entries...quite an effort.
    Thomas

  • LSMW multiple recordings

    Hi All,
    I am trying to use LSMW to upload an org Unit. My question is that is there a way to use two recordings in one LSMW session? Also is there a way to use multiple source files?
    I have one recording that creates the org units using PP02 infotype 1000 and the other recording creates relationships using infotype 1001.
    I would appreciate your response.
    Regards,
    ~Mark

    yea u r right...im doin the same process right now...i have to assign 4 files..so i did the same thing...gud tht u got it b4 hand than i have replied the answer for u...
    so if ur Q is solved close this thread..by marking solved
    thanks
    sony
    Message was edited by: sony
    Message was edited by: sony

Maybe you are looking for