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: 

to transport the values to cg3z tcode

Former Member
0 Kudos

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

1 REPLY 1

naimesh_patel
Active Contributor
0 Kudos

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