<?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: va01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800945#M654029</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;VA01 is used to create sales order... this is an electronic document and have two parts, header and item lines..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header data contains, the sold to and ship to party customers, reference document and other characteristics..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Item lines contain the data like material number, desc, qty, price etc etc..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write a BDC program for VA01 to create Sales orders using ur flat file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 04:29:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T04:29:53Z</dc:date>
    <item>
      <title>va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800942#M654026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;what are the item lines in va01 transaction how to transfer the item lines data from flat file to database .&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;radhakrishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800942#M654026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800943#M654027</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;you can use BDC for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if helpful,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jinesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800943#M654027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800944#M654028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a report program which does following:&lt;/P&gt;&lt;P&gt;1. Selection screen with File Name &amp;amp; File path&lt;/P&gt;&lt;P&gt;2. Program Uploads the file using GUI_UPLOAD Function Module&lt;/P&gt;&lt;P&gt;3. The internal table will have all the data from file.&lt;/P&gt;&lt;P&gt;4. do a BDC recording using SHDB or SM35 transaction&lt;/P&gt;&lt;P&gt;5. Place that recording in your report program&lt;/P&gt;&lt;P&gt;6. Loop over the line item recording to pass your line item data from internal table&lt;/P&gt;&lt;P&gt;7. Call transaction VA01 using the bdcdata internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800944#M654028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800945#M654029</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;VA01 is used to create sales order... this is an electronic document and have two parts, header and item lines..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header data contains, the sold to and ship to party customers, reference document and other characteristics..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Item lines contain the data like material number, desc, qty, price etc etc..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write a BDC program for VA01 to create Sales orders using ur flat file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vikas Bittera.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800945#M654029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800946#M654030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RadhaKrishna,&lt;/P&gt;&lt;P&gt;You can use the recording method SHDB in BDc, it will simpliify ur work for the item lines. Please find the sample coding for it also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sample Program&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;report yma_ki&lt;/P&gt;&lt;P&gt;no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;*PARAMETERS: P_DSN LIKE RLGRAP-FILENAME DEFAULT 'D:/D1112.TXT'.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;auart like vbak-auart,&lt;/P&gt;&lt;P&gt;bstkd like vbkd-bstkd,&lt;/P&gt;&lt;P&gt;bstdk(10) type c,&lt;/P&gt;&lt;P&gt;kunnr like kuagv-kunnr,&lt;/P&gt;&lt;P&gt;kprgbz like rv45a-kprgbz,&lt;/P&gt;&lt;P&gt;mabnr like rv45a-mabnr,&lt;/P&gt;&lt;P&gt;posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;kwmeng(9) type c,&lt;/P&gt;&lt;P&gt;vrkme like vbap-vrkme,&lt;/P&gt;&lt;P&gt;route like vbap-route,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: begin of i_error occurs 0,&lt;/P&gt;&lt;P&gt;auart like vbak-auart,&lt;/P&gt;&lt;P&gt;bstkd like vbkd-bstkd,&lt;/P&gt;&lt;P&gt;bstdk(10) type c,&lt;/P&gt;&lt;P&gt;kunnr like kuagv-kunnr,&lt;/P&gt;&lt;P&gt;kprgbz like rv45a-kprgbz,&lt;/P&gt;&lt;P&gt;mabnr like rv45a-mabnr,&lt;/P&gt;&lt;P&gt;posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;kwmeng(9) type c,&lt;/P&gt;&lt;P&gt;vrkme like vbap-vrkme,&lt;/P&gt;&lt;P&gt;route like vbap-route,&lt;/P&gt;&lt;P&gt;msg(100) type c,&lt;/P&gt;&lt;P&gt;end of i_error.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : i_msgcall like bdcmsgcoll occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data: m_string(200) type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = 'C:\MAA.TXT'&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*perform open_group.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro1 using 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'VBAK-AUART'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;itab-auart.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro1 using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'SICH'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;itab-bstkd.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;itab-bstdk.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;itab-kunnr.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;'01/05/2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'RV45A-KPRGBZ'&lt;/P&gt;&lt;P&gt;itab-kprgbz.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'VBAP-VRKME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'RV45A-MABNR(01)'&lt;/P&gt;&lt;P&gt;itab-mabnr.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBAP-POSNR(01)'&lt;/P&gt;&lt;P&gt;itab-posnr.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'RV45A-KWMENG(01)'&lt;/P&gt;&lt;P&gt;itab-kwmeng.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBAP-VRKME(01)'&lt;/P&gt;&lt;P&gt;itab-vrkme.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'VBAP-ROUTE(01)'&lt;/P&gt;&lt;P&gt;itab-route.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro1 using 'SAPLSPO2' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field1 using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=OPT1'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;perform process_err_rec.&lt;/P&gt;&lt;P&gt;perform print_errors.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;*perform close_group.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start new screen *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_dynpro1 using program dynpro.&lt;/P&gt;&lt;P&gt;clear bdcdata.&lt;/P&gt;&lt;P&gt;bdcdata-program = program.&lt;/P&gt;&lt;P&gt;bdcdata-dynpro = dynpro.&lt;/P&gt;&lt;P&gt;bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;append bdcdata.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert field *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form bdc_field1 using fnam fval.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear bdcdata.&lt;/P&gt;&lt;P&gt;bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;append bdcdata.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form process_err_rec&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form process_err_rec .&lt;/P&gt;&lt;P&gt;loop at i_msgcall.&lt;/P&gt;&lt;P&gt;call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;id = i_msgcall-msgid&lt;/P&gt;&lt;P&gt;lang = 'EN'&lt;/P&gt;&lt;P&gt;no = i_msgcall-msgnr&lt;/P&gt;&lt;P&gt;v1 = i_msgcall-msgv1&lt;/P&gt;&lt;P&gt;v2 = i_msgcall-msgv2&lt;/P&gt;&lt;P&gt;v3 = i_msgcall-msgv3&lt;/P&gt;&lt;P&gt;v4 = i_msgcall-msgv4&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;msg = m_string&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;not_found = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform. " process_err_rec&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form get_err_records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_err_records using p_lw_mstring.&lt;/P&gt;&lt;P&gt;move-corresponding itab to i_error.&lt;/P&gt;&lt;P&gt;move p_lw_mstring to i_error-msg.&lt;/P&gt;&lt;P&gt;append i_error.&lt;/P&gt;&lt;P&gt;clear i_error.&lt;/P&gt;&lt;P&gt;endform. " GET_ERR_RECORDS&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form print_errors&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form print_errors .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Printing the error records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; text-e01 color 6.&lt;/P&gt;&lt;P&gt;loop at i_error.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;write:/2 i_error-auart,&lt;/P&gt;&lt;P&gt;8 i_error-bstkd,&lt;/P&gt;&lt;P&gt;21 i_error-kunnr,&lt;/P&gt;&lt;P&gt;26 i_error-mabnr,&lt;/P&gt;&lt;P&gt;30 i_error-posnr,&lt;/P&gt;&lt;P&gt;36 i_error-vrkme,&lt;/P&gt;&lt;P&gt;40 i_error-msg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;All the Best&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Points if Useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800946#M654030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800947#M654031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report YSPBDC_VA01&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : vbak,&lt;/P&gt;&lt;P&gt;         kna1,&lt;/P&gt;&lt;P&gt;         vbap,&lt;/P&gt;&lt;P&gt;         vbkd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of record occurs 0,&lt;/P&gt;&lt;P&gt;        slno    type i,          "Slno.&lt;/P&gt;&lt;P&gt;        auart   like vbak-auart,&lt;/P&gt;&lt;P&gt;        vkorg   like vbak-vkorg,&lt;/P&gt;&lt;P&gt;        vtweg   like vbak-vtweg,&lt;/P&gt;&lt;P&gt;        spart   like vbak-spart,&lt;/P&gt;&lt;P&gt;        kunag   like vbak-kunnr,  "sold to&lt;/P&gt;&lt;P&gt;        kunnr   like vbak-kunnr,  "ship to&lt;/P&gt;&lt;P&gt;        bstkd   like vbkd-bstkd,&lt;/P&gt;&lt;P&gt;        ketdat  like vbak-audat,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       posnr   like vbap-posnr,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        matnr   like vbap-matnr,&lt;/P&gt;&lt;P&gt;        kwmeng(17)  type c,&lt;/P&gt;&lt;P&gt;        werks   like vbap-werks,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       ocsr    like kna1-kunnr,  "order CSR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       fse     like kna1-kunnr,  "fse&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: filename(128) value 'C:\balaji\va01.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  perform upload_file.&lt;/P&gt;&lt;P&gt;  perform load_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form upload_file.&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          FILENAME                = FILENAME&lt;/P&gt;&lt;P&gt;          FILETYPE                = 'DAT'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;           DATA_TAB                = RECORD&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;          CONVERSION_ERROR        = 1&lt;/P&gt;&lt;P&gt;          INVALID_TABLE_WIDTH     = 2&lt;/P&gt;&lt;P&gt;          INVALID_TYPE            = 3&lt;/P&gt;&lt;P&gt;          NO_BATCH                = 4&lt;/P&gt;&lt;P&gt;          UNKNOWN_ERROR           = 5&lt;/P&gt;&lt;P&gt;          GUI_REFUSE_FILETRANSFER = 6&lt;/P&gt;&lt;P&gt;          OTHERS                  = 7&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt; IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form load_data.&lt;/P&gt;&lt;P&gt;  perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at new slno.&lt;/P&gt;&lt;P&gt;      read table record index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'VBAK-SPART'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                                    record-auart.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                                    record-vkorg.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                                    record-vtweg.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                                    record-spart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=POAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBKD-BSTKD'&lt;/P&gt;&lt;P&gt;                                    record-bstkd.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                                    record-kunag.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                                    record-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      shift record-ketdat by 4 PLACES circular.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RV45A-KETDAT'&lt;/P&gt;&lt;P&gt;                                    record-ketdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'VBAP-WERKS(01)'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RV45A-MABNR(01)'&lt;/P&gt;&lt;P&gt;                                    record-matnr.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'RV45A-KWMENG(01)'&lt;/P&gt;&lt;P&gt;                                    record-kwmeng.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'VBAP-WERKS(01)'&lt;/P&gt;&lt;P&gt;                                    record-werks.&lt;/P&gt;&lt;P&gt;      continue.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=POAN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'VBAP-WERKS(02)'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RV45A-MABNR(02)'&lt;/P&gt;&lt;P&gt;                                  record-matnr.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'RV45A-KWMENG(02)'&lt;/P&gt;&lt;P&gt;                                  record-kwmeng.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'VBAP-WERKS(02)'&lt;/P&gt;&lt;P&gt;                                  record-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 '=POAN'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 'VBAP-WERKS(02)'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'RV45A-MABNR(02)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 '800221'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'RV45A-KWMENG(02)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 '                  1'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'VBAP-WERKS(02)'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 'wmnb'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                 'RV45A-MABNR(02)'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at end of slno.&lt;/P&gt;&lt;P&gt;      read table record index sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;      perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=SICH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform close_group.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me reward points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Poli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:37:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800947#M654031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800948#M654032</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;Make use of Bapi "CreateFromDat1" in sales Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800948#M654032</guid>
      <dc:creator>former_member15255</dc:creator>
      <dc:date>2007-09-06T04:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: va01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800949#M654033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Radhakrishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would address the second part of your query. &amp;lt;b&amp;gt;Note that the number of line items would vary with each Sales Order .&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should make a recording using SHDB of VA01 in which you &amp;lt;b&amp;gt;fill in at least one line item row .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you are to make a BDC of this , this logic of entering one row's data is to replicated for as many line items available in your flat file by &amp;lt;b&amp;gt;using a loop&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use your own logic to find out the end of line items for a single sales order &amp;lt;b&amp;gt;eg . 'X'&amp;lt;/b&amp;gt; in the first column of the flat file or excel  sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this lead helps you . You may get back for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 04:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/2800949#M654033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T04:56:18Z</dc:date>
    </item>
  </channel>
</rss>

