Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Any function module to download to application server

Former Member
0 Kudos

Hi!

Is there any FM available which will download file to the application server, (Just avoiding writing code(:>()

Thanks in advance.

AD

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Not that I'm aware of. But here some code for ya.



report zrich_0001.

Parameters: d2 type localfile default '/usr/sap/TST/SYS/Data1.txt'.

data: begin of itab occurs 0,
      rec(20) type c,
      end of itab.
data: wa like line of itab.

start-of-selection.

wa-rec = 'Test'.
append wa to itab.

  open dataset d2 for output in text mode.
  loop at itab.
    transfer itab to d2.
  endloop.
  close dataset d2.


Regards,

Rich Heilman

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Not that I'm aware of. But here some code for ya.



report zrich_0001.

Parameters: d2 type localfile default '/usr/sap/TST/SYS/Data1.txt'.

data: begin of itab occurs 0,
      rec(20) type c,
      end of itab.
data: wa like line of itab.

start-of-selection.

wa-rec = 'Test'.
append wa to itab.

  open dataset d2 for output in text mode.
  loop at itab.
    transfer itab to d2.
  endloop.
  close dataset d2.


Regards,

Rich Heilman

0 Kudos

SCMS_CLIENT_TO_R3

ARCHIVFILE_CLIENT_TO_SERVER

Regards

Raja

Former Member
0 Kudos

use FM : archiv_client_to_server

check for this Function module..

try to check with archiv*-->F4 it doesn't work...

u will get the exact FM.

(reward points if it helps u)

cheers

Former Member
0 Kudos

ARCHIVFILE_TABLE_TO_SERVER

ARCHIVFILE_SERVER_TO_TABLE

Cheers.