<?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: Uplaoding data to Pplication Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382747#M812171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first fetch the text fiel data from presentation server to ur internal table using GUI_UPLOAD function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after fetching the data from preasentation sever using data sets we can upload data to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open data set for write mode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET &amp;lt;Appserver file&amp;gt; &lt;/P&gt;&lt;P&gt;         FOR OUTPUT IN  TEXT MODE MESSAGE l_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     LOOP AT &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE &amp;lt;itab&amp;gt;-field&lt;/P&gt;&lt;P&gt;             INTO &amp;lt;string&amp;gt; SEPARATED BY &amp;lt;separator&amp;gt;.&lt;/P&gt;&lt;P&gt;      TRANSFER l_str TO &amp;lt;Appserver file&amp;gt;.&lt;/P&gt;&lt;P&gt;      CLEAR: l_str.&lt;/P&gt;&lt;P&gt;    ENDLOOP.                           " LOOP AT REPORT_tab&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;Appserver file&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 09:06:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T09:06:50Z</dc:date>
    <item>
      <title>Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382740#M812164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          need to uplaod a text file from Presentation Server to Application Server. Could any one tell me the procedure.thnaks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      sant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 08:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382740#M812164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T08:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382741#M812165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use transaction CG3Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382741#M812165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382742#M812166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi write a report program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that first upload the presentation server file into an internal table using GUI_UPLOAD function module. after that use OPEN DATASET .. transfer and CLOSE DATASET logic to transfer the file to application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:00:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382742#M812166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382743#M812167</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;try this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
       field1 type p,
       field2 type p,
       field3 type P,
       field4 type p,
       desc   type char10,
       end   of itab.

data: filepath_g(100),
      filepath        type string.

CALL FUNCTION 'AL_POPUP_FOR_LOCAL_PATH'
  EXPORTING
    DOC_TYPE         = 'txt'
  IMPORTING
    FILERETURN       = filepath_g
          .

filepath = filepath_g.

CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = filepath
    FILETYPE                      = 'ASC'
    HAS_FIELD_SEPARATOR           = 'X'
  tables
    data_tab                      = itab
 EXCEPTIONS
   FILE_OPEN_ERROR               = 1
   FILE_READ_ERROR               = 2
   NO_BATCH                      = 3
   GUI_REFUSE_FILETRANSFER       = 4
   INVALID_TYPE                  = 5
   NO_AUTHORITY                  = 6
   UNKNOWN_ERROR                 = 7
   BAD_DATA_FORMAT               = 8
   HEADER_NOT_ALLOWED            = 9
   SEPARATOR_NOT_ALLOWED         = 10
   HEADER_TOO_LONG               = 11
   UNKNOWN_DP_ERROR              = 12
   ACCESS_DENIED                 = 13
   DP_OUT_OF_MEMORY              = 14
   DISK_FULL                     = 15
   DP_TIMEOUT                    = 16
   OTHERS                        = 17
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

loop at itab.
write : / itab-field1,itab-field2,itab-field3,itab-field4,itab-desc.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382743#M812167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382744#M812168</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;Use FM GUI_UPLOAD to get the file from  Presentation Server into an internal table. &lt;/P&gt;&lt;P&gt;Then use FM GUI_DOWNLOAD using same internal table to download the file to Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guarav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:01:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382744#M812168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382745#M812169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Use GUI_UPLOAD to get the data of file from presentation server to your internal table in program. (Got for where-used list of teh FM, you will get to see the usage).&lt;/P&gt;&lt;P&gt;     then use OPEN DATASET and dump the data from the internal table to the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;theja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382745#M812169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382746#M812170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CG3Z transaction .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;andIn the source , with out deleting the path that is already there in the pop-up ,select F4 option and select the path . Then give the target file name  in the apploicatipon  serevr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do it programitically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use Open data set operation as given by other pals.&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nageswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382746#M812170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382747#M812171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first fetch the text fiel data from presentation server to ur internal table using GUI_UPLOAD function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after fetching the data from preasentation sever using data sets we can upload data to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Open data set for write mode&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  OPEN DATASET &amp;lt;Appserver file&amp;gt; &lt;/P&gt;&lt;P&gt;         FOR OUTPUT IN  TEXT MODE MESSAGE l_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;     LOOP AT &amp;lt;itab&amp;gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE &amp;lt;itab&amp;gt;-field&lt;/P&gt;&lt;P&gt;             INTO &amp;lt;string&amp;gt; SEPARATED BY &amp;lt;separator&amp;gt;.&lt;/P&gt;&lt;P&gt;      TRANSFER l_str TO &amp;lt;Appserver file&amp;gt;.&lt;/P&gt;&lt;P&gt;      CLEAR: l_str.&lt;/P&gt;&lt;P&gt;    ENDLOOP.                           " LOOP AT REPORT_tab&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;Appserver file&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382747#M812171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382748#M812172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can also use CG3Z transaction to upload the file from presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382748#M812172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding data to Pplication Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382749#M812173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the approach depends upon your requirement. If you want to load few files lets say for ur testing program ten you can use TCODE: cg3Z this will Upload the file from users machine to the appln Server  ( Tcode cg3y will download Files from appln to users machine).&lt;/P&gt;&lt;P&gt;If you want to write a program then use FM: GUI_UPLOAd to upload the file from the Presentation Server  and use Open DATASET ..to write the file on the Application Server.&lt;/P&gt;&lt;P&gt;approach depends on ur requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 09:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-data-to-pplication-server/m-p/3382749#M812173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T09:19:22Z</dc:date>
    </item>
  </channel>
</rss>

