2013 Jul 18 4:07 PM
Hi Guys,
i want to copy a file from the users desktop into the filesystem of the Application server.
The following statements are used:
cl_gui_frontend_services=>gui_upload
...
call function 'EPS_OPEN_OUTPUT_FILE'
...
loop at l_tab_file assigning <l_string>.
transfer <l_string> to l_filepath.
endloop.
On our Testsystem it works fine - however on a different System the Transfer statement Dumps claiming the file is not open.
The function EPS_OPEN_OUTPUT_FILE however claims to open it and runs succesfully.
Any Ideas what could cause this or how to figure out whats missing?
Enough Authorizations are given. File and path are created in Transaction AL11 / SM69
greetings
Klaus
2013 Jul 18 6:04 PM
Hi Klaus
can you upload the dump?
Does this end user full access to his C Drive and sap_all&sap_new(just for test purpose)?
Last time with something similar, the support reinstalled the SAP GUI to the user
Let me know
a
2013 Jul 18 6:04 PM
Hi Klaus
can you upload the dump?
Does this end user full access to his C Drive and sap_all&sap_new(just for test purpose)?
Last time with something similar, the support reinstalled the SAP GUI to the user
Let me know
a
2013 Jul 18 6:36 PM
Hello,
The FM "EPS_OPEN_OUTPUT_FILE" seems to be a RFC. I would suggest to use DATASET commands for writing to the app server.
Check this link
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htmhttp://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
Best regards,
swanand
2013 Jul 19 3:59 AM
Also check if you can upload a file to that specific location using the standard transaction CG3Z.
If you can't, then it could be an auth issue.
Note that the auth in this case would be the file system auth for the username under which the SAP application server was started and not your logged in SAP user auth
2013 Jul 19 7:30 AM
Hi,
can't upload the dump until tuesday. The Admins told me that Auth. should not be an issue.
I will try the CG3Z transaction on tuesday and report back or award points if solved
2013 Jul 19 8:30 AM
HI Klaus,
Did you check whether the file exists before opening for writing the data to the file in App. server.
It is better to use OPEN DATASET filename statement in OUTPUT mode and check the SY-SUBRC value so that the file is ready for doing required operations.
Check all the Pre-requisites before calling
cheers,
Venkat
2013 Jul 19 12:03 PM
Hi ,
Try to use C13Z_FILE_UPLOAD_BINARY FM to upload the file into Application server.
2013 Jul 19 1:01 PM
Hi,
You can upload the file from the presentation server using the FM GUI_UPLOAD. Then write to the application server using the syntax
OPEN DATASET <filename> FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
Hope this helps!
2013 Jul 19 1:33 PM
Hi,
for this purpose you can use transaction CG3Z (Upload file from presentation server to application server).
Observation.
If you use transaction CG3Y you can download file from application server to presentation server.
Cheers
Ivan Marconato
2013 Jul 20 7:36 AM
2013 Jul 23 11:29 AM
Hi All,
its a BW System and there is no CG3Z transaction or functions available therefore i can't use them. Open Dataset would probably work but the Program did make use of the above mentioned function module and i don't want to change it just jet without any hints or clues why its not working on some systems but does on others.
2013 Jul 23 12:57 PM
HI,
Read the data from the desktop using GUI_UPLOAD.
Then to write the file in the application server, use the command
OPEN DATASET <datasetname> for output in text mode encoding default.
Here <datasetname> is the file name which will be created in AL11 transaction.
2013 Jul 23 2:50 PM
Hi Guys,
turned out to be some stupid customizing error (upper/lower case)
so this is solved!