LSMW: RSTXLITF and RFBIBL00

Hello friends, anyone that can help me to
1) combine FB01 postings (direct input program RFBIBL00) and Long text (/SAPDMC/SAP_LSMW_IMPORT_TEXTS) in the same go.
If not possible:
2) can I somehow export the saved document number from RFBIBL00 and do a new upload just for the long text.
Help needed urgently, I'm out of ideas!
BRgds
Charlotte

Thanks both... also a "Lession learned" for Charlotte today after a day off; this forum answers right away! I'm amazed! I will spread this link to my SAP collegues a.s.a.p.
Back to the question:
1) yes, I'll need to use internal number-ranges. I guess a uniqe key can anyway be on the 'Assignment' field, where the external invoice number will be added. Maybe that can be an option?
2) I'm still very 'poor' on the detail knowledge of ABAP/LSMW, so I'm sorry, but if it is possible to give some more details on the code/activites that I need to do so I can do a test right away.
2a) Do I understand it correctly that it is most likey possible to do it in the same go if there is a unique key? How? (Again, my knowledge is poor when it comes to ABAP)
2b) and Do I understand it correctly that is is also most likely possible to extract the posted accounting document number in a buffer and to 'download' these to e.g. Excel, 'hook' on the long text and start the 'Long text' program. How? (Again, my knowledge is poor when it comes to ABAP)
Looking forward to your answers!
Thanks in advance!
Charlotte

Similar Messages

  • In LSMW, what is diff between LSMW-BAPI and LSMW-IDOC

    hello all
    In LSMW, what is diff between LSMW-BAPI and LSMW-IDOC

    Hi Swamy,
    The differences between IDoc and BAPI are as follows: 
    IDOC
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system.
    Idocs are processed asynchronously and no information whatsoever is returned to the client.
    The target system need not be always online. The IDOC would be created and would send the IDOC once the target system is available (tRFC concept). Hence supports guaranteed delivery.
    With asynchronous links the sub-process on the client can be finished even if the communication line or the server is not available. In this case the message is stored in the database and the communication can be done later.
    The disadvantage of asynchronous links is that the sub-process on the server cannot return information to the calling sub-process on the client. A special way for sending information back to the client is required. In addition, a special error handling mechanism is required to handle errors on the receiving side.
    IDOCs may be more changeable from release to release.
    IDOCs  are poorly documented.
    BAPI
    BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
    BAPIs are called synchronously and (usually) return information.
    For BAPIs the client code needs to do the appropriate error handling.
    Problems with synchronous links occur if the communication line or the server is temporarily not available. If this happens, the sub-process on the client cannot be finished (otherwise there would be data inconsistencies).
    Synchronous links have the advantage that the sub-process on the server can return values to the sub-process on the client that has started the link.
    BAPIs are not totally immune to upgrades.
    BAPIs are reasonably well documented.
    Reward points if useful.
    Best Regards,
    Sekhar

  • LSMW and RFBIBL00

    Hi,
    I am using RFBIBL00 in LSMW to upload AP/AR open items. When I run the job in the foreground, I am getting an error as the second line item is not filled (empty). I think that the structure of my upload file is not correct. Do you have sample upload file?
    The settings are:
    - Object: 0100
    - Method: 0000
    - Program name: RFBIBL00
    - Program Type: D
    The upload file (XLS) has two rows. The following columns are filled.
    <b>Row 1:</b>
    Document type:     KR
    Posting key:     31
    Account: 125263
    Company: code 8000
    Reference: lsmw1
    Currency key: EUR
    Amount: 100
    Document date:     19102007
    Posting date: 19102007
    Header text:     test lsmw
    Profitcenter:     
    Item text:     test lsmw
    <b>Row 2:</b>
    Posting key:     40
    Account: 41003000
    Company code: 8000
    Amount: 100
    Header text:     test lsmw
    Cost center: 310032     
    Profit center: Dummy
    Item text:     test lsmw
    Kind regards,
    Kenan

    Hi guys,
    I solved my problem
    The solution is:
    1) Create two structures for open item; STRUCT_HEADER and STRUCT_ITEM (lower level).
    2) Define the source fields. Create a dummy source key field with the same name (e.g. ITEM_NO) in both structures for linking header and items.
    3)  Maintain structure relations. Link BGR00 and BBKPF to STRUCT_HEADER and link BBSEG to STRUCT_ITEM.
    4) Maintain field mapping for all source fields except for key field (e.g. ITEM_NO)
    5) Specify two (table, separator tabular) source files. One for header and one for items.
    6) Prepare the source files. Define the key field (e.g. ITEM_NO) in both files. Use same key value (e.g. ITEM_NO = 001) in the "header.txt" for the related items in the source file "items.txt". So, you can have an open item with 1 header and 100 line items.
    Good luck!
    Kenan

  • LSMW-standard program RFBIBL00-two withholding information lines

    Hi,
    I am using a LSMW with the standard program RFBIBL00. The structure is BKPF , BSEG and WITH. I have a field for each one.
    The problem is when I try to upload 2 lines for vendors in the same document which have withholdong information i cannot set in the WITH field and structure which withholding information is for each line.
    Any idea or in this case I don't have other option than upload each line in different document?
    Thanks,
    Cecilia

    hi zarina,
           please send me the documents to my mail also
    ([email protected]),, waiting for your mail
    thanks in advance ,,
    krishna
    Message was edited by:
            Krishna Ramasamy

  • Hi, I've just started as a fresher in sap fico and I'm upto the LSMW part and I'm wondering why I keep getting an error in Run batch step when I do everything else correct could you help?  Please help I'm really trying to learn it as fast as possible

    Please help I'm really trying to learn it as fast as possible?  I've posted the file with all my screen shots going through the enitre process of me creating the LSMW file.

    First, I will try to address the iPod issue: If youve tried EVERYTHING on the website, your only other option is probably to contact Apple, I recommend by phone, and informing them of the problem. You are covered by warranty and therefore they are liable to assist you. Try that and come back with a status update
    Now I will address your attitude about it:Its absolutely understandable to be upset over something like this, especially with such an expensive product, but you are generalizing far to much. You may think Apple is being unproffesional by not warning potential buyers of the iPods common faults, but do you really think they would? they are out to sell these things, they arent going to point out the bad in their product. And not all iPods have problems, in fact only a fraction do. That gopes for the rest o Apples products as well. You are too hasty assuming all Apple products are junk, and one of many reasons as to why that is unfair of you is becuase you dont own any other Apple products.

  • Lsmw header and item.

    Hi experts,
               I have problem with uploading data for quatation using lsmw.  in this lsmw, i used recording method. i have two structure . one for header and another for item. when i am mapping, its not showing the item structure. can anyone explain this problem ?
    Regards,
    Varadarajan.R

    Hi,
    You can create Both in a single LSMW.you Need to create two Structures in STEP 2.,One for HEADER and Other for Line.
    Then In step three Maintain The source fields for both separately.I think you will be Able to do it.
    In one of our requirement  we did the same for Long text and long Text item.
    The better way is through SAP SCRIPTING but i doubt whether in your project that is feasible or not..
    Regards,
    Rahul
    Edited by: Rahul Kumar Sinha on Dec 10, 2009 8:55 AM

  • LSMW - Withholding taxes - RFBIBL00 program

    Hi,
    I need to change a LSMW for FI Postings with Withholding Taxes.
    The LSMW reads 2 files (Header and Item) and I need to add the 3rd file (withholding taxes).
    Header and Item are related by the first field of both structures.
    How do I create the source structure for the 3rd file? How is the relationship between the 2nd and 3rd files?
    The withholding file can have more than 1 record for each item. Example:
    FILE 1 - Header
    Header 1
    Header 2
    FILE 2 - Items
    Header 1 - Item 1
    Header 1 - Item 2
    Header 2 - Item 1
    Header 2 - Item 2
    FILE 3 - Withholdings Taxes
    Header 1 - Item 1 - Withholding 1
    Header 1 - Item 1 - Withholding 2
    Header 1 - Item 1 - Withholding 3
    Header 1 - Item 2 - Withholding 1
    Header 1 - Item 2 - Withholding 2
    Header 2 - Item 1 - Withholding 1
    Header 2 - Item 1 - Withholding 2
    Header 2 - Item 1 - Withholding 3
    Header 2 - Item 2 - Withholding 1
    Thanks in advance,
    Thanks,
    Janete

    Thank you Rob.
    Your example is exactly what I want to do. BUT I dont know how to create the fields to relate the three files. If you know please send me an example. I am thinking to do something like this:
    Header Structure
    Ident1
    Document Date
    Item Structure
    Ident1
    Ident2
    Account
    Amount
    Withholding Structure
    Ident1
    Ident2
    Wt_code
    Wt_type
    thks,
    Janete

  • FBS1 and RFBIBL00 Flat File Creation

    Hello All,
    I am creating a file for processing by RFBIBL00 I am using the data structures that are supposed to be used by the program to consume the file created. They are:
      data: lv_session TYPE BGR00,  - Session Var
              lv_hdr TYPE BBKPF,         - Header
              lv_rec TYPE BBSEG,        - Detail
    the file gets created and consumed fine by RFBIBL00 however, when I go to sm35 to complete the Session and it goes through the FBS1 screen the formats of the data are not correct?
    The dates must be created in the format per the structure which is: 06232009
    when the session is going through validation is complains that the format is not correct?
    It wants the date to be in this format 06.23.2009 but, I cannot put the '.' in because the length of the variable for the date is only 8 long
    Anyone else had this issue?
    Thanks

    >
    keith warnock wrote:
    > When I pass the date of 20090623, the session gets created OK.
    >
    > When you run the session the date appears on screen as so: '20.09.0623'
    >
    > The error is: ' For the ML Fiscal year variant, no period is defined for 20.09.0623'
    Hello Keith,
    Just try to pass the date in the format DDMMYYYY & check.
    BR,
    Suhas

  • LSMW Source and Field Mapping

    Hi,
      I'm trying to use the LSMW.  What is the fastest way to maintain the source field and relationship?? Is it possible to define the source field and length in a text file and load it in the LSMW??
    Regards,
    Kit

    Hi Kit,
            u can create source fields in faster way.
    menupath
    In the 3rd step i.e., Maintain source fields
    source fields -> table maintenance
    here u can fill all the fields at a time.
    u can also maintain the fields in a file and copy and paste them in the Table maintenance .
    In 5th step i.e.,  Maintain Field Mapping and Conversion Rules
    Extras -> Auto field Mapping
    Now u get the auto field mapping setting pop-up.
    click ok.
    Now u Get the auto field mapping proposel pop-up.
    Here check Target field and Source field and click on Accept proposel push button for all the fields.
    with this the source and target field mapping are done automatically.
    reward if helpfull
    raam

  • Lsmw xk01 and witholdingTAX

    hi Gru,
    i have a problem with a TC lsmw and a field relatives at wotholding tax dynpro.
    i have create a project with
    Object               0040  
    Method               0001   Standard
    Program Name         RFBIKR00
    Program Type         B   Batch Input
    i have created all step:
    Maintain Source Structures
    Maintain Source Fields
    Maintain Structure Relations
    Maintain Field Mapping and Conversion Rules
    Maintain Fixed Values, Translations, User-Defined Routines
    Specify Files
    Assign Files
    Read Data
    Display Read Data
    Convert Data
    Display Converted Data
    Create Batch Input Session
    Run Batch Input Session
    when i display a converted data all is ok but when i launch a batch input session, occurred an errore message 'E' Required entry is missing in withholding tax area.
    the field data not appears in field on dynpro! but is correctly read in precedent step...
    can u help me?
    thx in advance & sorry for my little english
    Valerio

    Maybe the LSMW default mappings of BLFM1 are still there (usually the first few fields of the structure)?
    What you could try is adding a rule in BLMF1 like
    if BLF00-EKORG is initial.   (check for nodata sign also)
      skip_record.
    endif.
    Thomas

  • LSMW, CREMAS04, and updating Partner Functions

    I am involved with converting legacy data into SAP. To populate the SAP Vendor Master correctly will involve 3 passes using LSMW:
    Pass #1: use IDOC CREMAS04 and populate the majority of master record fields
    Pass #2: use BAPI: Business Object "BUS4001"; Method "SAVEREPLICA"; Message Type "ADRMAS"; Basic Type "ADRMAS03" to update Vendor record address data.
    Pass #3: use IDOC CREMAS04 and update Head Office, Alternate Payee, and related Partner Function data.
    The problem I am having is best explained using the following example:
    When a vendor record (ex: Vendor Number 300004) is first created, the following 3 Partner Functions are also created automatically to reference the same vendor number: OA, VN, & PI (Ordering Address, Vendor, & Invoicing Party):
    OA    Ordering Address    300004   Vendor A
    VN    Vendor                   300004   Vendor A
    PI      Invoicing Party        300004   Vendor A
    This particular vendor is actually one of many "plants" or "warehouses" of a larger vendor, and I need to configure the record to reflect that the Purchase Orders go to the Parent Vendor (Head office) and that the Invoice comes from the same source. Therefore, I need to remove or edit the existing OA and PI partner functions so that I only end up with the same 3 Partner Functions, but the linked vendor record for partner functions OA and PI needs to be that of Head Office.
    Example: if using Vendor Number 300005 "Head Office Vendor"
    OA    Ordering Address    300005   Vendor A
    VN    Vendor                   300004   Vendor A
    PI      Invoicing Party        300005   Vendor A
    What I am actually seeing when I post the IDOC is the following:
    OA    Ordering Address    300004   Vendor A
    OA    Ordering Address    300005   Vendor A
    VN    Vendor                   300004   Vendor A
    PI      Invoicing Party        300004   Vendor A
    PI      Invoicing Party        300005   Vendor A
    Can anyone shed some light on this?

    Don,
    I am trying to work with the same data that you discussed in this thread.  Can you send me some additional details on your Pass #2?  I was successful in Pass #1, particularly in adding new PI vendors when necessary and deleting the existing internally created PI vendors.  But I'm stuck on Pass #2 where I want to add the extended address information that you mention using the SAVEREPLICA BAPI.  I can certainly use the recording method, but would like to leverage the power of the BAPI approach.
    Thanks in advance!
    Wes

  • LSMW testing and Debugging

    Hi
      I really need help about testing and debugging LSMW. I really appreciate  if anybody can provide me enough help on how to test LSMW and Debug in QA environment
    Pls help me

    Once you input the Project, Subproject and Objec on the initial screen and execute it.
    Here you are guided through the individual steps of data migration. Example: Maintain Object attribute...etc.
    on the application tool bar, click on the personal menu push button, you will list of all the steps. Check the Display conversion program.
    After you maintain the field mapping, read data and convert data. you can execute the Display conversion program step. This will display the generated progrom.
    Here you can set the <b>break point</b>.
    Other way is while doing the field mapping, you can set hard break-point.

  • LSMW upload and Regular upload problem

    Hi All,
    Pt1. I am trying to upload few docs from LSMW.......i can upload all upload and everything is fine, but when i am trying to open the attached doc its says that "c:\user\........" could not be accessed.
    Pt2. If i do manual creating of document for the same doc type i can attach and open the attachement.
    What is the difference, am i missing anything ?
    Do i need some DC30 config ? If yes, then why its working (Point 2.)
    Thanks,
    Tarun.

    sap note is there.

  • LSMW  - RFBIDE00 and default partner functions

    Hello all,
    I want to use LSMW and standard program RFBIDE00 to create customer master data. I want to be able to assign a different payer to the customer but if I do it through BKNVP, then it creates a second PY customer on the master data along with the INITIAL one.
    What I want is to change this initial value to something I upload in the text file.
    How can I do this? Is there a way to delete PY line first and add again in this program or should I first create relevant customers with two PY functions and then delete the initial one with another program? Or I should use another program to change PY partner after batch input?
    Thank you
    Regards

    Hi,
    check these links
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/LSMW_tutorial.html
    http://www.sapbrain.com/TOOLS/LSMW/SAP_LSMW_steps_introduction.html
    http://esnips.com/doc/8e732760-5548-44cc-a0bb-5982c9424f17/lsmw_sp.ppt
    http://esnips.com/doc/f55fef40-fb82-4e89-9000-88316699c323/Data-Transfer-Using-LSMW.zip
    http://esnips.com/doc/1cd73c19-4263-42a4-9d6f-ac5487b0ebcb/LSMW-with-Idocs.ppt
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
    http://esnips.com/doc/7582d072-6663-4388-803b-4b2b94d7f85e/LSMW.pdf
    for Long texts Upload
    Please take a look at this..
    http://help.sap.com/saphelp_erp2005/helpdata/en/e1/c6d30210e6cf4eac7b054a73f8fb1d/frameset.htm
    LSMW with TABLE CONTROL
    Refer the links -
    lsmw table control
    Re: Table control in LSMW
    Table control in LSMW
    Table Control in LSMW
    Re: Table Control in LSMW
    just refer to the link below
    http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g
    best regards
    sravani yendru.

  • BAPI and RFBIBL00

    Hi, I’m new in apab programming so a have couple questions for you gays. Problem is next:
    I have to made inputs from non sap system to SAP FI and SD module. Everything mast be done with BAPI’s, also I must use RFBIBL00.
    For start my questions are:
    So may question is which is easiest way to do this?
    Can input in RFBIBL00 be a string?
    Thanks in advance!!!

    Hi,
    I think you've posted this in wrong groups.
    Regards
    Raja Sekhar

Maybe you are looking for