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: 

Using transactions CG3Z and CG3Y

Former Member

Hello,

I'm using two different steps in my program.
The first one uses Transaction CG3Z to Transfer a file to AL11, the second one copies a file from AL11 to the presentation server by using CG3Y to open it local.
But if I try to do both steps in the same session, the CG3Y can't find the file. If I leave the program and start it again, it works.
Is there any way to commit the changes, done by the CG3Z?


Thanks
Markus

9 REPLIES 9

0 Kudos

Hi

I know this class and it's methods, but how do I get access to an AL11-Directory that's not mounted to the system, by using GUI_UPLOAD or GUI_DOWNLOAD?

Thanks
Markus

0 Kudos

What u mean with "not mounted" is an FTP or another external service?

matt
Active Contributor

Basic programming. OPEN DATASET...

0 Kudos

True i dont understand that only want consume the files of the AS.

0 Kudos

Hi Matthew,

I've tested the following process:

- Uploading by GUI_UPLOAD (in binary)
- Uploading by OPEN DATASET IN BINARY MODE
- Transfering back by using CG3Y
but still the same problem.
If I look in the AL11 (in another window) I can't see the uploaded file unless I leave the program. After a new call the program finds the file.

raymond_giuseppi
Active Contributor

Build your own report with method gui_upload/gui_download of class CL_GUI_FRONTEND_SERVICES and OPEN DATASET, TRANSFER statements and an explicit DATASET statement as "An opened file that was not explicitly closed using CLOSE DATASET is automatically closed when the program is exited."

Former Member
0 Kudos

Hi all,

it works.
Seems to be a timing-problem on the server.

Thanks for your help
Markus

0 Kudos

If this has been resolved then kindly close the question (see this blog). It still shows up as unanswered.