<?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: application server to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644182#M877550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt; Hi Abhishek Kumar,

Check the following program to interact with application server. How to send data to Application server and how to get from there . comments are included wherever those are neeeded.

&lt;PRE&gt;&lt;CODE&gt;REPORT  ovtest.
DATA:
      fname(60) VALUE 'myfile',
      num TYPE i.

OPEN DATASET fname FOR OUTPUT.
"opens the file for writing(OUTPUT)
DO 10 TIMES.
  num = num + 1.
  TRANSFER num TO fname.
  "This statement passes the content of data object(num) to the file specified in fname.
ENDDO.
CLOSE DATASET fname.
"This statement closes the file specified in fname.

OPEN DATASET fname FOR INPUT.
"The addition FOR INPUT opens the file for reading.
DO.
  READ DATASET fname INTO num.
  "This statement exports data from the file specified in fname into the data object num
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  WRITE / num.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;

Once it is executed in SE38 go to AL11 to check the file specified in the program .

I hope that it helps you .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Apr 2008 09:44:57 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-04-12T09:44:57Z</dc:date>
    <item>
      <title>application server to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644179#M877547</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;&lt;/P&gt;&lt;P&gt;i have to download dataa from application serer to internal table ,as the program has to be run in background we cannot use function module download.what to do in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 07:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644179#M877547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T07:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: application server to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644180#M877548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can OPEN DATASET, READ DATASET, CLOSE DATASET to download data from application server to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 07:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644180#M877548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T07:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: application server to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644181#M877549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  OPEN DATASET FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE s107(yaero_ps) DISPLAY LIKE c_e. &lt;/P&gt;&lt;P&gt;message e008.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ DATASET FNAME INTO l_string LENGTH l_wllength.&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 l_string AT con_tab INTO wa_data_file-ebeln&lt;/P&gt;&lt;P&gt;wa_data_file-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_data_file TO fp_flatfile.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET FNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and to get the file name use FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LOGICAL_FILENAME = FP_FILE&lt;/P&gt;&lt;P&gt;OPERATING_SYSTEM = SY-OPSYS&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = FNAME&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KIRAN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 08:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644181#M877549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: application server to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644182#M877550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt; Hi Abhishek Kumar,

Check the following program to interact with application server. How to send data to Application server and how to get from there . comments are included wherever those are neeeded.

&lt;PRE&gt;&lt;CODE&gt;REPORT  ovtest.
DATA:
      fname(60) VALUE 'myfile',
      num TYPE i.

OPEN DATASET fname FOR OUTPUT.
"opens the file for writing(OUTPUT)
DO 10 TIMES.
  num = num + 1.
  TRANSFER num TO fname.
  "This statement passes the content of data object(num) to the file specified in fname.
ENDDO.
CLOSE DATASET fname.
"This statement closes the file specified in fname.

OPEN DATASET fname FOR INPUT.
"The addition FOR INPUT opens the file for reading.
DO.
  READ DATASET fname INTO num.
  "This statement exports data from the file specified in fname into the data object num
  IF sy-subrc &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  WRITE / num.
ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;

Once it is executed in SE38 go to AL11 to check the file specified in the program .

I hope that it helps you .

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 09:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644182#M877550</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-12T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: application server to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644183#M877551</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;Files on application server are sequential files. Three steps are involved in sequential file handling&lt;/P&gt;&lt;P&gt;OPEN&lt;/P&gt;&lt;P&gt;PROCESS&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here processing is reading a file or writing on to a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open dataset filename for input in text mode.&lt;/P&gt;&lt;P&gt;  Do.&lt;/P&gt;&lt;P&gt;    read dataset filename into workarea.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;       append workarea to itab.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;   enddo.&lt;/P&gt;&lt;P&gt;close dataset filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function modules ws_download and gui_download ws_upload, gui_upload are used to process the presentation server files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2008 10:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-server-to-internal-table/m-p/3644183#M877551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-12T10:08:42Z</dc:date>
    </item>
  </channel>
</rss>

