2018 Feb 23 8:06 AM
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
2018 Feb 23 8:43 AM
Hi Markus
Go to this wiki https://wiki.scn.sap.com/wiki/display/ABAP/File%2C+Directory+Operations+using+CL_GUI_FRONTEND_SERVIC...
Regards
2018 Feb 23 9:43 AM
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
2018 Feb 23 9:50 AM
What u mean with "not mounted" is an FTP or another external service?
2018 Feb 23 10:00 AM
2018 Feb 23 10:50 AM
True i dont understand that only want consume the files of the AS.
2018 Feb 23 10:59 AM
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.
2018 Feb 23 11:18 AM
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."
2018 Feb 23 11:20 AM
Hi all,
it works.
Seems to be a timing-problem on the server.
Thanks for your help
Markus
2018 Feb 23 9:17 PM
If this has been resolved then kindly close the question (see this blog). It still shows up as unanswered.