<?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 batch input program for transaction VA01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-program-for-transaction-va01/m-p/3422917#M822107</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;    can anybody help me reagrding Creating a batch input program for transaction VA01plzz can anybody help me as early as possible as it is very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 13:23:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-08T13:23:05Z</dc:date>
    <item>
      <title>batch input program for transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-program-for-transaction-va01/m-p/3422917#M822107</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;    can anybody help me reagrding Creating a batch input program for transaction VA01plzz can anybody help me as early as possible as it is very urgent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 13:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-program-for-transaction-va01/m-p/3422917#M822107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T13:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: batch input program for transaction VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-program-for-transaction-va01/m-p/3422918#M822108</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;Input fields: Manditory fields to create a new Sales Order using VA01. &lt;/P&gt;&lt;P&gt;Upload the input data from a text file stored in your note pc. &lt;/P&gt;&lt;P&gt;Use call transaction method. &lt;/P&gt;&lt;P&gt;Your program should allow to input the file path and file name to select the data. &lt;/P&gt;&lt;P&gt;Here I'm attaching BDC Code for  'VA01'.&lt;/P&gt;&lt;P&gt;report ZBDC3_VA01 &lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255. &lt;/P&gt;&lt;P&gt;  include bdcrecx1. &lt;/P&gt;&lt;P&gt;types : begin of ty_head, &lt;/P&gt;&lt;P&gt;        auart(4), &lt;/P&gt;&lt;P&gt;        vkorg(4), &lt;/P&gt;&lt;P&gt;        vtweg(2), &lt;/P&gt;&lt;P&gt;        spart(2), &lt;/P&gt;&lt;P&gt;        kunnr(10), &lt;/P&gt;&lt;P&gt;        bstkd(10), &lt;/P&gt;&lt;P&gt;        end of ty_head. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;types: begin of ty_item, &lt;/P&gt;&lt;P&gt;        matnr(18) type c, &lt;/P&gt;&lt;P&gt;        kwmeng(13) type c, &lt;/P&gt;&lt;P&gt;        end of ty_item. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;data: it_head type table of ty_head.  " Header &lt;/P&gt;&lt;P&gt;data: wa_head like line of it_head. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;data: it_item type table of ty_item.   " Item &lt;/P&gt;&lt;P&gt;data: wa_item like line of it_item. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;data:v_kwmeng(30) type c, &lt;/P&gt;&lt;P&gt;     v_mabnr(30) type c. &lt;/P&gt;&lt;P&gt;DATA: VAL(2) TYPE N VALUE 01. &lt;/P&gt;&lt;P&gt;DATA : w_file2 TYPE string, &lt;/P&gt;&lt;P&gt;       w_file1 TYPE string. &lt;/P&gt;&lt;P&gt;PARAMETERS: filename LIKE rlgrap-filename. &lt;/P&gt;&lt;P&gt;PARAMETERS: filenam1 LIKE rlgrap-filename. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4_FILENAME' &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      file_name = filename. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR filenam1. &lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4_FILENAME' &lt;/P&gt;&lt;P&gt;    IMPORTING &lt;/P&gt;&lt;P&gt;      file_name = filenam1. &lt;/P&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;  w_file2 = filename. &lt;/P&gt;&lt;P&gt;  w_file1 = filenam1. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;HEADER ************************ &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD' &lt;/P&gt;&lt;P&gt;    EXPORTING &lt;/P&gt;&lt;P&gt;      filename                      = w_file2 &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                      = it_head. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="15" type="ul"&gt;&lt;P&gt;Item ******************* &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&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                      = w_file1 &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                      = it_item. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;perform open_group. &lt;/P&gt;&lt;P&gt;  loop at it_head into wa_head. &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-AUART'. &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;                                WA_HEAD-AUART. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VKORG' &lt;/P&gt;&lt;P&gt;                                WA_HEAD-VKORG. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VTWEG' &lt;/P&gt;&lt;P&gt;                                WA_HEAD-VTWEG. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-SPART' &lt;/P&gt;&lt;P&gt;                                WA_HEAD-SPART. &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;                              '/00'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTKD' &lt;/P&gt;&lt;P&gt;                                WA_HEAD-BSTKD. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK' &lt;/P&gt;&lt;P&gt;                              '30.01.2006'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR' &lt;/P&gt;&lt;P&gt;                                WA_HEAD-KUNNR. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KETDAT' &lt;/P&gt;&lt;P&gt;                              '30.01.2006'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KPRGBZ' &lt;/P&gt;&lt;P&gt;                              'D'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-ZTERM' &lt;/P&gt;&lt;P&gt;                              '0001'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO1' &lt;/P&gt;&lt;P&gt;                              'CIF'. &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-INCO2' &lt;/P&gt;&lt;P&gt;                              'COST INSUSRABCE FRIEGHT'. &lt;/P&gt;&lt;P&gt;loop at it_item into wa_item . &lt;/P&gt;&lt;P&gt;CONCATENATE 'RV45A-MABNR(' '0' VAL ')' INTO v_MABNR. CONCATENATE 'RV45A-KWMENG(' '0' VAL ')' INTO v_kwmeng. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &lt;/P&gt;&lt;P&gt;                              v_kwmeng. &lt;/P&gt;&lt;P&gt;perform bdc_field       using v_mabnr &lt;/P&gt;&lt;P&gt;                                wa_item-matnr. &lt;/P&gt;&lt;P&gt;perform bdc_field       using v_kwmeng &lt;/P&gt;&lt;P&gt;                              wa_item-kwmeng. &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;                              '/00'. &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;VAL = VAL + 1. &lt;/P&gt;&lt;P&gt;IF VAL &amp;gt;   5. &lt;/P&gt;&lt;P&gt;   VAL = 5. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;  endloop. &lt;/P&gt;&lt;P&gt;VAL = 01. &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;perform bdc_transaction using 'VA01'. &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;plzz reward if it is useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 13:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-program-for-transaction-va01/m-p/3422918#M822108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T13:26:33Z</dc:date>
    </item>
  </channel>
</rss>

