08-20-2008 3:05 PM
hi
i have a folder on presentation server with some files
(excel files and text files)
now i need to upload all the files at a time by calling the transaction in my program .
thats why i have used like this
PARAMETERS: fr_fil type rlgrap-filename DEFAULT 'C:\My Programs\folder\test.txt' ,
ap_fil type rlgrap-filename default 'E:\usr\sap\DVEBMGS00\data\data2.dat'.
SUBMIT RC1TCG3Z with rcgfiletr-ftfront = fr_fil WITH rcgfiletr-ftappl = ap_fil and RETURN.
But its not taking my values its taking other values
Plesae help me
regards
08-20-2008 3:19 PM
Tcode CG3Z doesn't have the selection screen. So, SUBMIT will not work.
Instead of that try like this:
PERFORM L_EXEC_FILE_UPLOAD IN PROGRAM SAPLC13Z IF FOUND
USING
FR_FIL " << Pass your Forntend file
AP_FIL " << Server FIle
L_OVERWRITE "< Overwrite MODE
'BIN'
CHANGING
FLG_STAY.
This is the subroutine which is being called inside the CG3Z.
OR
You can use the FM C13Z_FILE_UPLOAD_BINARY.
Regards,
Naimesh Patel
Edited by: Naimesh Patel on Aug 20, 2008 9:20 AM - FM has been added