<?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: FM to upload the Internal table data into application server. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558143#M1430787</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;typeS:  BEGIN OF t_dwnld,&lt;/P&gt;&lt;P&gt;        ebeln TYPE ebeln,&lt;/P&gt;&lt;P&gt;        bsart TYPE esart,&lt;/P&gt;&lt;P&gt;        ernam TYPE ernam,&lt;/P&gt;&lt;P&gt;        aedat(10) TYPE c, "erdat,&lt;/P&gt;&lt;P&gt;        lifnr TYPE lifnr,&lt;/P&gt;&lt;P&gt;        name1 TYPE name1_gp,&lt;/P&gt;&lt;P&gt;        ekorg TYPE ekorg,&lt;/P&gt;&lt;P&gt;        bkgrp TYPE bkgrp,&lt;/P&gt;&lt;P&gt;        bukrs TYPE bukrs,&lt;/P&gt;&lt;P&gt;        zterm TYPE dzterm,&lt;/P&gt;&lt;P&gt;        extyp TYPE zzexptype,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       hdtxt TYPE string,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;        pstyp TYPE pstyp,&lt;/P&gt;&lt;P&gt;        knttp TYPE knttp,&lt;/P&gt;&lt;P&gt;        vrtkz TYPE vrtkz,&lt;/P&gt;&lt;P&gt;        zekkn TYPE dzekkn,&lt;/P&gt;&lt;P&gt;        vproz TYPE vproz,&lt;/P&gt;&lt;P&gt;        txz01 TYPE txz01,&lt;/P&gt;&lt;P&gt;        matkl TYPE matkl,&lt;/P&gt;&lt;P&gt;        eindt(10) TYPE c, " TYPE eindt,&lt;/P&gt;&lt;P&gt;        werks TYPE werks_d,&lt;/P&gt;&lt;P&gt;        menge TYPE bstmg,&lt;/P&gt;&lt;P&gt;        meins TYPE bstme,&lt;/P&gt;&lt;P&gt;        netpr TYPE bprei,&lt;/P&gt;&lt;P&gt;        afnam TYPE afnam,&lt;/P&gt;&lt;P&gt;        bednr TYPE bednr,&lt;/P&gt;&lt;P&gt;        mwskz TYPE mwskz,&lt;/P&gt;&lt;P&gt;        adrn2 TYPE adrn2,&lt;/P&gt;&lt;P&gt;        totgr TYPE menge_d,&lt;/P&gt;&lt;P&gt;        opqty TYPE menge_d,&lt;/P&gt;&lt;P&gt;        paqty TYPE menge_d,&lt;/P&gt;&lt;P&gt;        pckno TYPE packno,&lt;/P&gt;&lt;P&gt;        sbpck TYPE sub_packno,&lt;/P&gt;&lt;P&gt;        linum TYPE srv_line_no,&lt;/P&gt;&lt;P&gt;        extln TYPE extrow,&lt;/P&gt;&lt;P&gt;        srtxt TYPE sh_text1,&lt;/P&gt;&lt;P&gt;        srqty TYPE mengev,&lt;/P&gt;&lt;P&gt;        srbum TYPE meins,&lt;/P&gt;&lt;P&gt;        sgrpc TYPE bapigrprice,&lt;/P&gt;&lt;P&gt;        saqty TYPE act_menge,&lt;/P&gt;&lt;P&gt;        stogr TYPE mengev,&lt;/P&gt;&lt;P&gt;        sopqt TYPE mengev,&lt;/P&gt;&lt;P&gt;        spaqt TYPE mengev,&lt;/P&gt;&lt;P&gt;        sakto TYPE saknr,&lt;/P&gt;&lt;P&gt;        kostl TYPE kostl,&lt;/P&gt;&lt;P&gt;        nplnr TYPE nplnr,&lt;/P&gt;&lt;P&gt;        actvt(4) TYPE c,&lt;/P&gt;&lt;P&gt;        sub   TYPE zzsub,&lt;/P&gt;&lt;P&gt;        wbs(24) TYPE c, "ps_psp_pnr,&lt;/P&gt;&lt;P&gt;        asset TYPE anln1,&lt;/P&gt;&lt;P&gt;        delid TYPE eloek,&lt;/P&gt;&lt;P&gt;       END OF t_dwnld,&lt;/P&gt;&lt;P&gt;i_dwnld type standard table of t_dwnld,&lt;/P&gt;&lt;P&gt;wa_dwnld type t_dwnld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;transfering data from ITAB to Application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DATA : path TYPE string.&lt;/P&gt;&lt;P&gt;    path = 'E:\usr\sap\trans\ZTOTAL_SERVICE_PO.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT i_dwnld INTO wa_dwnld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     REPLACE ALL OCCURRENCES OF '#' IN wa_dwnld WITH ''.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER wa_dwnld TO path.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLOSE DATASET path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In application server, teh data is stored with '#' how to remove it. adn i need a excel file in the application server path.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 04:44:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-27T04:44:49Z</dc:date>
    <item>
      <title>FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558140#M1430784</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;  Could you please give me Function module to Upload the Internal table data into Application server ie., in &lt;STRONG&gt;Tcode AL11&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know for downloading the Application server file into itab is "&lt;STRONG&gt;SUBST_GET_FILE_LIST&lt;/STRONG&gt;" FM and using open dtaa set we get the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 03:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558140#M1430784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T03:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558141#M1430785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think you have any direct FM for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;CG3Y,CG3Z&lt;/STRONG&gt; transactions to upload flatfile directly or&lt;/P&gt;&lt;P&gt;use Dataset statements to upload from internal table to application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 03:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558141#M1430785</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-01-27T03:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558142#M1430786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.&lt;/P&gt;&lt;P&gt;Here's the code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IF tb_alvdisplay[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    MESSAGE e999(/dcsea/zais_msg) WITH text-e01.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF  NOT cb_ufile IS INITIAL  "Download to file&lt;/P&gt;&lt;P&gt;     AND sy-pagno = 0.            "Only down page headers for first page&lt;/P&gt;&lt;P&gt;      PERFORM fm_concatenate_path_name USING    p_path&lt;/P&gt;&lt;P&gt;                                                p_file&lt;/P&gt;&lt;P&gt;                                       CHANGING v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Open file for download.&lt;/P&gt;&lt;P&gt;      PERFORM fm_open_file USING v_file .&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT tb_alvdisplay.&lt;/P&gt;&lt;P&gt;      IF  NOT cb_ufile IS INITIAL.&lt;/P&gt;&lt;P&gt;*Passing the values of the respective headings to the structure.&lt;/P&gt;&lt;P&gt;        ws_rec-vend_no     = tb_alvdisplay-vendno.&lt;/P&gt;&lt;P&gt;        ws_rec-vend_nm     = tb_alvdisplay-vendnm.&lt;/P&gt;&lt;P&gt;        ws_rec-title       = tb_alvdisplay-vendtl.&lt;/P&gt;&lt;P&gt;        ws_rec-add         = tb_alvdisplay-add.&lt;/P&gt;&lt;P&gt;        ws_rec-city1       = tb_alvdisplay-city1.&lt;/P&gt;&lt;P&gt;        ws_rec-region      = tb_alvdisplay-region.&lt;/P&gt;&lt;P&gt;        ws_rec-country     = tb_alvdisplay-country.&lt;/P&gt;&lt;P&gt;        ws_rec-pobox       = tb_alvdisplay-po.&lt;/P&gt;&lt;P&gt;        ws_rec-phone       = tb_alvdisplay-telf1.&lt;/P&gt;&lt;P&gt;        ws_rec-extn        = tb_alvdisplay-extn.&lt;/P&gt;&lt;P&gt;        ws_rec-fax         = tb_alvdisplay-telfx.&lt;/P&gt;&lt;P&gt;        ws_rec-zterm       = tb_alvdisplay-zterm.&lt;/P&gt;&lt;P&gt;        ws_rec-remark      = tb_alvdisplay-remark.&lt;/P&gt;&lt;P&gt;        ws_rec-email       = tb_alvdisplay-email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Passing the separator 'PIPE' to the structure.&lt;/P&gt;&lt;P&gt;          ws_rec-sep01  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep02  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep03  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep04  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep05  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep06  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep07  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep08  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep09  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep10  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep11  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep12  = co_sep.&lt;/P&gt;&lt;P&gt;          ws_rec-sep13  = co_sep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TRANSFER ws_rec TO v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      AT LAST.&lt;/P&gt;&lt;P&gt;        IF NOT cb_ufile IS INITIAL.&lt;/P&gt;&lt;P&gt;*Closing the DATASET file.&lt;/P&gt;&lt;P&gt;          CLOSE DATASET v_file.&lt;/P&gt;&lt;P&gt;          IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*Failure Message.&lt;/P&gt;&lt;P&gt;            MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;*Success message.&lt;/P&gt;&lt;P&gt;            MESSAGE s999(/dcsea/zais_msg) WITH text-t05.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDAT.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 04:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558142#M1430786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T04:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558143#M1430787</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;typeS:  BEGIN OF t_dwnld,&lt;/P&gt;&lt;P&gt;        ebeln TYPE ebeln,&lt;/P&gt;&lt;P&gt;        bsart TYPE esart,&lt;/P&gt;&lt;P&gt;        ernam TYPE ernam,&lt;/P&gt;&lt;P&gt;        aedat(10) TYPE c, "erdat,&lt;/P&gt;&lt;P&gt;        lifnr TYPE lifnr,&lt;/P&gt;&lt;P&gt;        name1 TYPE name1_gp,&lt;/P&gt;&lt;P&gt;        ekorg TYPE ekorg,&lt;/P&gt;&lt;P&gt;        bkgrp TYPE bkgrp,&lt;/P&gt;&lt;P&gt;        bukrs TYPE bukrs,&lt;/P&gt;&lt;P&gt;        zterm TYPE dzterm,&lt;/P&gt;&lt;P&gt;        extyp TYPE zzexptype,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       hdtxt TYPE string,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ebelp TYPE ebelp,&lt;/P&gt;&lt;P&gt;        pstyp TYPE pstyp,&lt;/P&gt;&lt;P&gt;        knttp TYPE knttp,&lt;/P&gt;&lt;P&gt;        vrtkz TYPE vrtkz,&lt;/P&gt;&lt;P&gt;        zekkn TYPE dzekkn,&lt;/P&gt;&lt;P&gt;        vproz TYPE vproz,&lt;/P&gt;&lt;P&gt;        txz01 TYPE txz01,&lt;/P&gt;&lt;P&gt;        matkl TYPE matkl,&lt;/P&gt;&lt;P&gt;        eindt(10) TYPE c, " TYPE eindt,&lt;/P&gt;&lt;P&gt;        werks TYPE werks_d,&lt;/P&gt;&lt;P&gt;        menge TYPE bstmg,&lt;/P&gt;&lt;P&gt;        meins TYPE bstme,&lt;/P&gt;&lt;P&gt;        netpr TYPE bprei,&lt;/P&gt;&lt;P&gt;        afnam TYPE afnam,&lt;/P&gt;&lt;P&gt;        bednr TYPE bednr,&lt;/P&gt;&lt;P&gt;        mwskz TYPE mwskz,&lt;/P&gt;&lt;P&gt;        adrn2 TYPE adrn2,&lt;/P&gt;&lt;P&gt;        totgr TYPE menge_d,&lt;/P&gt;&lt;P&gt;        opqty TYPE menge_d,&lt;/P&gt;&lt;P&gt;        paqty TYPE menge_d,&lt;/P&gt;&lt;P&gt;        pckno TYPE packno,&lt;/P&gt;&lt;P&gt;        sbpck TYPE sub_packno,&lt;/P&gt;&lt;P&gt;        linum TYPE srv_line_no,&lt;/P&gt;&lt;P&gt;        extln TYPE extrow,&lt;/P&gt;&lt;P&gt;        srtxt TYPE sh_text1,&lt;/P&gt;&lt;P&gt;        srqty TYPE mengev,&lt;/P&gt;&lt;P&gt;        srbum TYPE meins,&lt;/P&gt;&lt;P&gt;        sgrpc TYPE bapigrprice,&lt;/P&gt;&lt;P&gt;        saqty TYPE act_menge,&lt;/P&gt;&lt;P&gt;        stogr TYPE mengev,&lt;/P&gt;&lt;P&gt;        sopqt TYPE mengev,&lt;/P&gt;&lt;P&gt;        spaqt TYPE mengev,&lt;/P&gt;&lt;P&gt;        sakto TYPE saknr,&lt;/P&gt;&lt;P&gt;        kostl TYPE kostl,&lt;/P&gt;&lt;P&gt;        nplnr TYPE nplnr,&lt;/P&gt;&lt;P&gt;        actvt(4) TYPE c,&lt;/P&gt;&lt;P&gt;        sub   TYPE zzsub,&lt;/P&gt;&lt;P&gt;        wbs(24) TYPE c, "ps_psp_pnr,&lt;/P&gt;&lt;P&gt;        asset TYPE anln1,&lt;/P&gt;&lt;P&gt;        delid TYPE eloek,&lt;/P&gt;&lt;P&gt;       END OF t_dwnld,&lt;/P&gt;&lt;P&gt;i_dwnld type standard table of t_dwnld,&lt;/P&gt;&lt;P&gt;wa_dwnld type t_dwnld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;transfering data from ITAB to Application server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    DATA : path TYPE string.&lt;/P&gt;&lt;P&gt;    path = 'E:\usr\sap\trans\ZTOTAL_SERVICE_PO.csv'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT i_dwnld INTO wa_dwnld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     REPLACE ALL OCCURRENCES OF '#' IN wa_dwnld WITH ''.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      TRANSFER wa_dwnld TO path.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLOSE DATASET path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In application server, teh data is stored with '#' how to remove it. adn i need a excel file in the application server path.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 04:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558143#M1430787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T04:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558144#M1430788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please correct my code which is mentioned above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 04:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558144#M1430788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T04:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558145#M1430789</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;Please find the ZFM to upload the data to app server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION zput_data_app_server .
  CONSTANTS:
        con_tab  TYPE c VALUE cl_abap_char_utilities=&amp;gt;horizontal_tab.
  TYPES: BEGIN OF itab_type,
          word(255) TYPE c,
        END   OF itab_type.
  DATA: it_tab TYPE TABLE OF itab_type.
  DATA: wa_tab TYPE itab_type.
  DATA: l_ref_table_des TYPE REF TO cl_abap_structdescr.
  DATA: ist_details TYPE abap_compdescr_tab.
  DATA: wa_details TYPE abap_compdescr.
  DATA: lv_loop TYPE sy-index.
  DATA: wa_string TYPE string.   "0001
  data: lv_strlen type i.
  FIELD-SYMBOLS:
    &amp;lt;lf_tab&amp;gt; TYPE ANY TABLE,
    &amp;lt;lf_wa&amp;gt;,
    &amp;lt;lf_field&amp;gt;.
  DATA l_dy_line  TYPE REF TO data.
  CREATE DATA l_dy_line LIKE LINE OF p_record.
  ASSIGN l_dy_line-&amp;gt;* TO &amp;lt;lf_wa&amp;gt;.
*fecth  columns from of dynamic work area
  l_ref_table_des ?=
      cl_abap_typedescr=&amp;gt;describe_by_data( &amp;lt;lf_wa&amp;gt; ).
  ist_details[] = l_ref_table_des-&amp;gt;components[].
*Count number of fields in structure
  DESCRIBE TABLE ist_details LINES lv_loop.
  TRY.
      OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc NE 0.
        RAISE file_open_error.
      ELSE.
        LOOP AT p_record.
          CLEAR: wa_string.
          DO lv_loop TIMES .
            ASSIGN COMPONENT sy-index OF STRUCTURE p_record TO &amp;lt;lf_field&amp;gt;.
            CONCATENATE  wa_string &amp;lt;lf_field&amp;gt; INTO wa_string. "0003
            if lv_loop &amp;gt; sy-index.                            "0003
              CONCATENATE  wa_string con_tab INTO wa_string.  "0003
            ENDIF.                                            "0003
          ENDDO.
          TRANSFER wa_string TO p_file.
        ENDLOOP.
        CLOSE DATASET p_file.
      ENDIF.
    CATCH cx_sy_file_authority.
      RAISE file_open_error.
    CATCH cx_sy_conversion_codepage.
      RAISE file_open_error.
  ENDTRY.
ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 04:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558145#M1430789</guid>
      <dc:creator>kanishakgupta1</dc:creator>
      <dc:date>2010-01-27T04:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558146#M1430790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code looks OK to me.&lt;/P&gt;&lt;P&gt;Just pass the output fields with their values and the separator before the TRANSFER statement.&lt;/P&gt;&lt;P&gt;Copy the code i pasted previously and let me know if you have any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558146#M1430790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558147#M1430791</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;Did you check in debugging mode whether 'replace' is working or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Loop  i_dwnld INTO wa_dwnld.
REPLACE ALL OCCURRENCES OF '#' IN wa_dwnld WITH ' '.
MODIFY i_dwnld FROM wa_dwnld .
Endloop.

TRANSFER  i_dwnld TO path.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code. I think it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558147#M1430791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558148#M1430792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what si teh data type of ws_rec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:42:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558148#M1430792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558149#M1430793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES : t_sep(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure for holding all the values while downloading to sap server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF ws_rec,
         vend_no(20),
         sep01 TYPE t_sep,
         vend_nm(30),
         sep02 TYPE t_sep,
         title(30),
         sep03 TYPE t_sep,
         add(70),
         sep04 TYPE t_sep,
         city1(40),
         sep05 TYPE t_sep,
         region(3),
         sep06 TYPE t_sep,
         country(40),
         sep07 TYPE t_sep,
         pobox(40),
         sep08 TYPE t_sep,
         phone(15),
         sep09 TYPE t_sep,
         extn(10),
         sep10 TYPE t_sep,
         fax(20),
         sep11 TYPE t_sep,
         remark(60),
         sep12 TYPE t_sep,
         email(40),
         sep13 TYPE t_sep,
         zterm(20),
      END OF ws_rec.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 05:46:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558149#M1430793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T05:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: FM to upload the Internal table data into application server.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558150#M1430794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 15:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-to-upload-the-internal-table-data-into-application-server/m-p/6558150#M1430794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-09T15:36:27Z</dc:date>
    </item>
  </channel>
</rss>

