<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: lsmw FB01 loading text file question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317326#M1028892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your patience rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not talking about adding a z structure. when you load data, you do not need all the data in the text file, just the data you need to load. then you create your source structures and your source fields that are the same as the file. then you map your source fields to the data structures in "maintain field mapping and conversion rules". you don't need to have all the data in the text file, just the data you need to load, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so therefore, if i use this structure, i need to have all of the header and item structure is my text file? and also need to create all the fields in the "maintain source structures" and "maintain source fields"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 18:14:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-14T18:14:18Z</dc:date>
    <item>
      <title>lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317316#M1028882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have done a search on this and many other web sites concerning the following problem, and have not got a concrete answer, so i will ask if someone can give an answer to the quesions below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- i have a project to extract the BSID table and use the contents of that table to create Open A/R items in a new company code. &lt;/P&gt;&lt;P&gt;- i have used lsmw for many data loads in the past and had few problems loading data, but when using lsmw to load the fb01 data, there is no place to maintain field mappings for the second half of the transaction. &lt;/P&gt;&lt;P&gt;questions&lt;/P&gt;&lt;P&gt;1) hows does the program RFBIBL00 know that there is another line item to load when using lsmw?&lt;/P&gt;&lt;P&gt;2) i am assuming that the file needs an additional record for everyone i extract from BSID. i can add this record to the file manually, but when i do this, the program thinks there are two seperate FB01 transactions. do i add the records manually to the text file?&lt;/P&gt;&lt;P&gt;3) do i need to change the structure of BBSEG?&lt;/P&gt;&lt;P&gt;4) is there a std program in sap to do this addition of records for a text file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 02:09:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317316#M1028882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T02:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317317#M1028883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done posting of AR / AP items using the standard program RFBIBL00 in LSMW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too have faced same issues as the no. of line items were more than 999 per record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding I will try to answer ur questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In LSMW we have standard functions like TRANSFER_RECORD and ON_CHANGE_TRANSFER_RECORD etc. By default, after every structure the LSMW uses transfer_record function. so that after every record in the file the record is transfered to output. &lt;/P&gt;&lt;P&gt;The solution for this is, You can have &lt;STRONG&gt;ON_CHANGE_TRANSFER_RECORD&lt;/STRONG&gt; function instead of TRANSFER_RECORD after the header structures.But keep in mind that in the text file that you are uploading the header fields &lt;STRONG&gt;SHOULD BE SAME&lt;/STRONG&gt; for all the line items. The program RFBIBL00 takes the same header record for all the line items and transfer the record only after all the line items are processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There is no need to add an extra field in the structure. Only thing you need to do is to maintain same header fields for all the line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. There is no need to change the structure of RFBIBL00 as the above solution will solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. RFBIBL00 is the standard program. In case u feel that the program is not meeting ur requirements, you may as well choose BAPI method in LSMW for posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Asif Ali Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 03:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317317#M1028883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T03:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317318#M1028884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks, your explanation is good but i need a little more clarity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your #1 response, where do you change function for this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and, what is the structure of the file? do i need to have specfic fields at the beginning of every row? can you give an detailed example please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317318#M1028884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317319#M1028885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The file into RFBIBL00 is delimtted by the header record. If the first record is a header record and the next two are detail records and the fourth one a header record, the program will attempt to create a single document for the first three records before processing the fourth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, presumably, your header data will come partlly from BSID with additional data supplied by you; the second (first detail) record from BSID and the third (second detail) depends on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 16:35:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317319#M1028885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T16:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317320#M1028886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i understand there needs to be header and detail rows in my text file, but what makes them header or detail rows? do i need a field to denote that in the file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my exact issue. how do i make a row in the text file a header or detail row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317320#M1028886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317321#M1028887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen the program documentation? It's quite good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:13:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317321#M1028887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317322#M1028888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually, i have. it does not explain this process very well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317322#M1028888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317323#M1028889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first record of the file will have the structure BGR00; each document header structure BBKPF; and within each document, the items will have the structure BBSEG. Fill each as appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317323#M1028889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317324#M1028890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to be clear, you are saying that the file cannot be dynamic? all other times i have used lsmw, it allows you to create a text file that is dynamic. any fields can be used. for example, if i want to create a vendor, i can pass an address if i want, but if i do not want to, i have the option of not passing any data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the clarity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317324#M1028890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317325#M1028891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure about "dynamic". I seem to recall that you could create some Z structures (ZBSEG or something like that) where you create only the fields that you will use. However, In these SAP structures, you normally pass "/" in empty fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 17:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317325#M1028891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317326#M1028892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your patience rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not talking about adding a z structure. when you load data, you do not need all the data in the text file, just the data you need to load. then you create your source structures and your source fields that are the same as the file. then you map your source fields to the data structures in "maintain field mapping and conversion rules". you don't need to have all the data in the text file, just the data you need to load, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so therefore, if i use this structure, i need to have all of the header and item structure is my text file? and also need to create all the fields in the "maintain source structures" and "maintain source fields"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317326#M1028892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317327#M1028893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't use LSMW, so I can't comment on that. Yes, you have to fill the fields you don't use with '/' (or some other empty field indicator). There are routines that do this for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A typical skeleton might look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  POP_DATASET
*&amp;amp;---------------------------------------------------------------------*
form pop_dataset.
  perform init_strukturen_erzeugen(rfbibli0) using c_nodata.
  perform bgr00_data.
  loop at zzfth_int.
    perform bbkpf_data_fb01.
    loop at zzfti_int
    where zzfbukrs = zzfth_int-zzfbukrs
    and   zzfdocno = zzfth_int-zzfdocno.
      perform bbseg_data.
    endloop.
  endloop.
endform.                               " POP_DATASET&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(You might want to get rid of the nested loops though &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Aug 14, 2008 2:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317327#M1028893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317328#M1028894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rob for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if anyone else that uses lsmw with FB01 can answer my questions i would appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 18:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317328#M1028894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-14T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw FB01 loading text file question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317329#M1028895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought it would be easy to explain by creating the Blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this link for blog:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="47031"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2008 21:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-fb01-loading-text-file-question/m-p/4317329#M1028895</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-08-14T21:40:56Z</dc:date>
    </item>
  </channel>
</rss>

