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

Program to execute ARCHIVFILE_CLIENT_TO_SERVER FM

Former Member
0 Likes
1,964

Hi experts;

My knowhow of ABAP is very limited so be patience.

I need to create a program to execute FM ARCHIVFILE_CLIENT_TO_SERVER.

If you run it, the FM will ask you a path and a targetpath.

my path should be
pclis02\consult\Equipa_EM\Line_TEXT.csv (CSV file that is in the customer network)

my targetpath should be
debtdc00\sapmnt\trans_DEB\LINE (to be located in application server)

Can anyone help me building the program?

Best regards;

Ricardo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
895

Hi Srinivas;

When I check it and error occurs in the "CALL...":

The last statement is not complete (period missing).

Hi Lakshman;

That transaction doesn't exist

Thanks for the fast answers

5 REPLIES 5
Read only

Former Member
0 Likes
895

DATA:W_FILEPATH TYPE SAPB-SAPPFAD,

W_SPATH TYPE SAPB-SAPPFAD.

W_SPATH = '
pclis02\consult\Equipa_EM\Line_TEXT.csv'.

W_FILEPATH = '
debtdc00\sapmnt\trans_DEB\LINE '.

CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'

EXPORTING

PATH = W_SPATH

TARGETPATH = W_FILEPATH

EXCEPTIONS

ERROR_FILE = 1

OTHERS = 2

Read only

Lakshmant1
Active Contributor
0 Likes
895

Hi Ricardo,

check transaaction CG3Z

Thanks

Lakshman

Read only

Former Member
0 Likes
896

Hi Srinivas;

When I check it and error occurs in the "CALL...":

The last statement is not complete (period missing).

Hi Lakshman;

That transaction doesn't exist

Thanks for the fast answers

Read only

0 Likes
895

Need to put a '.' at the end ....

DATA:W_FILEPATH TYPE SAPB-SAPPFAD,

W_SPATH TYPE SAPB-SAPPFAD.

W_SPATH = '
pclis02\consult\Equipa_EM\Line_TEXT.csv'.

W_FILEPATH = '
debtdc00\sapmnt\trans_DEB\LINE '.

CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'

EXPORTING

PATH = W_SPATH

TARGETPATH = W_FILEPATH

EXCEPTIONS

ERROR_FILE = 1

OTHERS = 2 .

Read only

Former Member
0 Likes
895

Hi Srinivas;

Like I said... very limited knowhow.

Thanks... that work!