<?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: write a file on presentation server and application server... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676243#M298228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with concatenating fields into long length IT and download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o.w. insert some field in 1st and 2nd fields with value ' ' and download directly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anupama Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 10:22:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-14T10:22:09Z</dc:date>
    <item>
      <title>write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676241#M298226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all..&lt;/P&gt;&lt;P&gt;I have got a requirement. I am having an internal table which has records&lt;/P&gt;&lt;P&gt;AAAA CCCC DDDD. Now the requirement is i need to write records from the internal table to presentation server or application server depending upon users selection. Now my issue is they want the file to be in format&lt;/P&gt;&lt;P&gt;AAAA CCCCDDDD. it means they need a space only between first and second record and second and third should be continous. Can you tell me how can i do it for presentation server?&lt;/P&gt;&lt;P&gt;i knw i can put space or some other delimiter between all records.&lt;/P&gt;&lt;P&gt;Also if possible please help me with the logic on application server to do the same format.&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 10:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676241#M298226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T10:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676242#M298227</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;PRE&gt;&lt;CODE&gt;parameters: p_file like rlgrap-filename obligatory
default '/usr/sap/upload.xls'.
 
types: begin of t_data,
vbeln like vbap-vbeln,
posnr like vbap-posnr,
matnr like vbap-matnr,
werks like vbap-werks,
megne like vbap-zmeng,
end of t_data.
data: it_data type standard table of t_data,
wa_data type t_data.
 
open dataset p_file for output in text mode encoding default.
if sy-subrc ne 0.
write:/ 'Unable to open file:', p_file.
else.
loop at it_data  to wa_data.
transfer wa_data to p_file.
endloop.
endif.
close dataset p_file.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlepd pls markl points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 10:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676242#M298227</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-14T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676243#M298228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with concatenating fields into long length IT and download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o.w. insert some field in 1st and 2nd fields with value ' ' and download directly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Anu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anupama Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 10:22:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676243#M298228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T10:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676244#M298229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well u concatenate the second and the third record and put that concatenated record and the first record  in an separate internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for downloading the record u can use the function module GUI_DOWNLOAD to dat from the internal table to PC with your required format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 11:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676244#M298229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676245#M298230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;If you want to upload/download to Application server use&lt;/P&gt;&lt;P&gt;DATASET or INDX table for the same. &lt;/P&gt;&lt;P&gt;This will be helpful when the program is running in background.&lt;/P&gt;&lt;P&gt;Then download the file from application server to presentation server using function modules. &lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Baburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 11:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676245#M298230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T11:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: write a file on presentation server and application server...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676246#M298231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By record do you mean the columns of the internal table ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the case you can do the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET l_file FOR OUTPUT IN LEGACY TEXT MODE.&lt;/P&gt;&lt;P&gt;    Loop at it_output into is_output.&lt;/P&gt;&lt;P&gt;      Clear lstr.&lt;/P&gt;&lt;P&gt;      DO.&lt;/P&gt;&lt;P&gt;        ASSIGN COMPONENT SY-INDEX OF STRUCTURE is_output TO &amp;lt;F&amp;gt;.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0. EXIT.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          if sy-index = 1.&lt;/P&gt;&lt;P&gt;            concatenate &amp;lt;F&amp;gt; '*' into lstr.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;             concatenate lstr &amp;lt;F&amp;gt; into lstr.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;       ENDDO.&lt;/P&gt;&lt;P&gt;       translate lstr using '* '.&lt;/P&gt;&lt;P&gt;       TRANSFER lstr TO l_file LENGTH 1024.&lt;/P&gt;&lt;P&gt;       Append lstr to itab-line.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;*--&amp;gt; Close the opened file on server&lt;/P&gt;&lt;P&gt;    CLOSE DATASET l_file.&lt;/P&gt;&lt;P&gt;Later download the file using GUI_DOWNLOAD and table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 11:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-a-file-on-presentation-server-and-application-server/m-p/1676246#M298231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T11:55:57Z</dc:date>
    </item>
  </channel>
</rss>

