Application Development and Automation 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: 
Read only

Any function module to download to application server

Former Member
0 Likes
1,063

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
701

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

Hi!

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

Thanks in advance.

AD

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
702

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

Read only

0 Likes
701

SCMS_CLIENT_TO_R3

ARCHIVFILE_CLIENT_TO_SERVER

Regards

Raja

Read only

Former Member
0 Likes
701

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

Read only

Former Member
0 Likes
701

ARCHIVFILE_TABLE_TO_SERVER

ARCHIVFILE_SERVER_TO_TABLE

Cheers.