Application Development and Automation 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: 
Read only

File Upload to Application Server

Former Member
0 Likes
4,910

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,533

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

12 REPLIES 12
Read only

Former Member
0 Likes
3,534

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

Read only

Former Member
0 Likes
3,533

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

Read only

former_member189059
Active Contributor
0 Likes
3,533

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

Read only

0 Likes
3,533

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

Read only

Former Member
0 Likes
3,533

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

Read only

Former Member
0 Likes
3,533

Hi ,

     Try to use    C13Z_FILE_UPLOAD_BINARY FM to upload the file into Application server.

Read only

Former Member
0 Likes
3,533

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!

Read only

Former Member
0 Likes
3,533

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

Read only

Former Member
0 Likes
3,533

You can use standard report  RC1TCG3Z

Read only

Former Member
0 Likes
3,533

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.

Read only

Former Member
0 Likes
3,533

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.

Read only

Former Member
0 Likes
3,533

Hi Guys,

turned out to be some stupid customizing error (upper/lower case)

so this is solved!