‎2008 May 07 12:30 PM
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
‎2008 May 07 12:48 PM
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
‎2008 May 07 12:34 PM
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
‎2008 May 07 12:42 PM
‎2008 May 07 12:48 PM
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
‎2008 May 07 12:53 PM
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 .
‎2008 May 07 12:54 PM
Hi Srinivas;
Like I said... very limited knowhow.
Thanks... that work!