<?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: How to upload a flat file from application server in BDC Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022194#M413979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;look at this...&lt;/P&gt;&lt;P&gt; i think it will help ful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET W_PHY_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER itab TO W_PHY_FNAME.&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;    CLOSE DATASET W_PHY_FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mahendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2007 10:23:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-16T10:23:26Z</dc:date>
    <item>
      <title>How to upload a flat file from application server in BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022190#M413975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all SAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to upload a flat file from application server in BDC Program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Tel me Urgently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:16:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022190#M413975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a flat file from application server in BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022191#M413976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;report ZSDBDCP_PRICING no standard page heading&lt;/P&gt;&lt;P&gt;       line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include zbdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Internal Table To hold condition records data from flat file.&lt;/P&gt;&lt;P&gt;Data: begin of it_pricing occurs 0,&lt;/P&gt;&lt;P&gt;       key(4),&lt;/P&gt;&lt;P&gt;       f1(4),&lt;/P&gt;&lt;P&gt;       f2(4),&lt;/P&gt;&lt;P&gt;       f3(2),&lt;/P&gt;&lt;P&gt;       f4(18),&lt;/P&gt;&lt;P&gt;       f5(16),&lt;/P&gt;&lt;P&gt;      end of it_pricing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Internal Table To hold condition records header  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_header occurs 0,&lt;/P&gt;&lt;P&gt;         key(4),&lt;/P&gt;&lt;P&gt;         f1(4),&lt;/P&gt;&lt;P&gt;         f2(4),&lt;/P&gt;&lt;P&gt;         f3(2),&lt;/P&gt;&lt;P&gt;       end of it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Internal Table To hold condition records details .&lt;/P&gt;&lt;P&gt;data : begin of it_details occurs 0,&lt;/P&gt;&lt;P&gt;        key(4),&lt;/P&gt;&lt;P&gt;        f4(18),&lt;/P&gt;&lt;P&gt;        f5(16),&lt;/P&gt;&lt;P&gt;       end of it_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_sno(2),&lt;/P&gt;&lt;P&gt;       v_rows type i,&lt;/P&gt;&lt;P&gt;       v_fname(40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;refresh : it_pricing,it_header,it_details.&lt;/P&gt;&lt;P&gt;clear  : it_pricing,it_header,it_details.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           FILENAME                = 'C:\WINDOWS\Desktop\pricing.txt'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           FILETYPE                = 'DAT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           DATA_TAB                = it_pricing&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           CONVERSION_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           INVALID_TABLE_WIDTH     = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           INVALID_TYPE            = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           NO_BATCH                = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           UNKNOWN_ERROR           = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           GUI_REFUSE_FILETRANSFER = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           OTHERS                  = 7.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.&lt;/P&gt;&lt;P&gt;  OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    write : / 'File could not be uploaded.. Check file name.'.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  CLEAR : it_pricing[], it_pricing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    READ DATASET P_FNAME INTO V_STR.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;write v_str.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;translate v_str using '#/'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SPLIT V_STR AT ',' INTO it_pricing-key&lt;/P&gt;&lt;P&gt;                            it_pricing-F1 it_pricing-F2 it_pricing-F3&lt;/P&gt;&lt;P&gt;                            it_pricing-F4 it_pricing-F5 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND it_pricing.&lt;/P&gt;&lt;P&gt;    CLEAR it_pricing.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF it_pricing[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    WRITE : / 'No data found to upload'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_pricing.&lt;/P&gt;&lt;P&gt;    At new key.&lt;/P&gt;&lt;P&gt;      read table it_pricing index sy-tabix.&lt;/P&gt;&lt;P&gt;      move-corresponding it_pricing to it_header.&lt;/P&gt;&lt;P&gt;      append it_header.&lt;/P&gt;&lt;P&gt;      clear it_header.&lt;/P&gt;&lt;P&gt;    endat.&lt;/P&gt;&lt;P&gt;    move-corresponding it_pricing to it_details.&lt;/P&gt;&lt;P&gt;    append it_details.&lt;/P&gt;&lt;P&gt;    clear it_details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  v_rows = sy-srows - 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV13A' '0100'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'RV13A-KSCHL'.&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 'RV13A-KSCHL'&lt;/P&gt;&lt;P&gt;                                  it_header-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV13A' '1004'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'KONP-KBETR(01)'.&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;    perform bdc_field       using 'KOMG-VKORG'&lt;/P&gt;&lt;P&gt;                                  it_header-f2.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'KOMG-VTWEG'&lt;/P&gt;&lt;P&gt;                                   it_header-f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Table Control&lt;/P&gt;&lt;P&gt;    v_sno = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at it_details where key eq it_header-key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      v_sno = v_sno + 1.&lt;/P&gt;&lt;P&gt;      clear v_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_fname&lt;/P&gt;&lt;P&gt;                                    it_details-f4.&lt;/P&gt;&lt;P&gt;      clear v_fname.&lt;/P&gt;&lt;P&gt;      CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using v_fname&lt;/P&gt;&lt;P&gt;                                    it_details-f5.&lt;/P&gt;&lt;P&gt;      if v_sno eq v_rows.&lt;/P&gt;&lt;P&gt;        v_sno = 0.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV13A' '1004'.&lt;/P&gt;&lt;P&gt;        perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                 '=P+'.&lt;/P&gt;&lt;P&gt;        perform bdc_dynpro      using 'SAPMV13A' '1004'.&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;      endif.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;*--Save&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMV13A' '1004'.&lt;/P&gt;&lt;P&gt;&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 'VK11'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  perform close_group.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022191#M413976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a flat file from application server in BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022192#M413977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi,
   Folow these steps.

open dataset &amp;lt;filename&amp;gt; for input in text mode.

if sy-subrc = 0.
do.
read dataset &amp;lt;filename&amp;gt; into itab-data.
if sy-subrc = 0.
append itab.
clear itab.
else.
exit.
endif.
enddo.
close dataset &amp;lt;filename&amp;gt;.
endif.

Regards,
Ravi&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022192#M413977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a flat file from application server in BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022193#M413978</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;Just look at the following program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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; Report  ZUPLOADTAB                                                  *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&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; Example of Uploading tab delimited file                             *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&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;REPORT  zuploadtab                    .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: p_infile  LIKE rlgrap-filename&lt;/P&gt;&lt;P&gt;                        OBLIGATORY DEFAULT  '/usr/sap/'..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: ld_file LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*Internal tabe to store upload data&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_record,&lt;/P&gt;&lt;P&gt;    name1 like pa0002-VORNA,&lt;/P&gt;&lt;P&gt;    name2 like pa0002-name2,&lt;/P&gt;&lt;P&gt;    age   type i,&lt;/P&gt;&lt;P&gt;    END OF t_record.&lt;/P&gt;&lt;P&gt;DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;      wa_record TYPE t_record.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*Text version of data table&lt;/P&gt;&lt;P&gt;TYPES: begin of t_uploadtxt,&lt;/P&gt;&lt;P&gt;  name1(10) type c,&lt;/P&gt;&lt;P&gt;  name2(15) type c,&lt;/P&gt;&lt;P&gt;  age(5)  type c,&lt;/P&gt;&lt;P&gt; end of t_uploadtxt.&lt;/P&gt;&lt;P&gt;DATA: wa_uploadtxt TYPE t_uploadtxt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*String value to data in initially.&lt;/P&gt;&lt;P&gt;DATA: wa_string(255) type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;constants: con_tab TYPE x VALUE '09'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*If you have Unicode check active in program attributes then you will&lt;/P&gt;&lt;P&gt;*need to declare constants as follows:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*class cl_abap_char_utilities definition load.&lt;/P&gt;&lt;P&gt;*constants:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   con_tab  type c value cl_abap_char_utilities=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*START-OF-SELECTION&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;ld_file = p_infile.&lt;/P&gt;&lt;P&gt;OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    CLEAR: wa_string, wa_uploadtxt.&lt;/P&gt;&lt;P&gt;    READ DATASET ld_file INTO wa_string.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1&lt;/P&gt;&lt;P&gt;                                      wa_uploadtxt-name2&lt;/P&gt;&lt;P&gt;                                      wa_uploadtxt-age.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.&lt;/P&gt;&lt;P&gt;      APPEND wa_upload TO it_record.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;  CLOSE DATASET ld_file.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*END-OF-SELECTION&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;*!! Text data is now contained within the internal table IT_RECORD&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display report data for illustration purposes&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Use GUI_DOWNLOAD function moduel to download to a flat file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at it_record into wa_record.&lt;/P&gt;&lt;P&gt;    write:/     sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-name1, sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-name2, sy-vline,&lt;/P&gt;&lt;P&gt;           (10) wa_record-age, sy-vline.&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;Regards&lt;/P&gt;&lt;P&gt;Rk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rk Pasupuleti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022193#M413978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a flat file from application server in BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022194#M413979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;look at this...&lt;/P&gt;&lt;P&gt; i think it will help ful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET W_PHY_FNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER itab TO W_PHY_FNAME.&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;    CLOSE DATASET W_PHY_FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mahendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 10:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-upload-a-flat-file-from-application-server-in-bdc-program/m-p/2022194#M413979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T10:23:26Z</dc:date>
    </item>
  </channel>
</rss>

