on 09-04-2014 10:05 AM
Hi Experts,
I tried the below code for uploading a file into the Application server(AL11) by using the statement OPEN DATASET.
* Saving it in SAP App Directory
CONSTANTS path_name TYPE LOCALFILE VALUE 'usr/sap/tmp/'.
CONCATENATE path_name
ls_n_upload-FILE_NAME
INTO l_fname.
OPEN DATASET l_fname FOR OUTPUT IN BINARY MODE MESSAGE lv_msg.
TRANSFER ls_n_upload-FILE_CONTENTS to l_fname.
CLOSE DATASET l_fname.
But am getting the error as
Error message:File "usr/sap/tmp/E:\Pillar Program Criteria.pdf" is not open.Please contact system administrator for help.
I tried to analyze the error in so many ways. But couldn't. So my doubt is, whether this OPEN DATASET statement supports Web Dynpro ABAP, as it is trying to call the GUI.
Please clear this experts and let me know whether can i make the application to work perfectly.
BR,
RAM.
I think the error is in your filename i.e. "usr/sap/tmp/E:\Pillar Program Criteria.pdf" I doubt very much that "usr/sap/tmp/E:\Pillar Program Criteria.pdf" should be there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
phew, been a while since i done this, maybe you can google and find some code. i found this, maybe you can try something along these lines: http://wiki.scn.sap.com/wiki/display/Snippets/How+to+zip++files+in+Application+server+using+CL_ABAP_...
hope this helps, have nice day further.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.