on 09-09-2010 2:23 PM
Hello together,
my Web Dynpro Application shall save 4 Files to the client or to a share.
If the User presses SAVE DATA on the application, the data should be saved in a table (this is already done) but also the new and the old data should be saved in 4 Files on the client or share, without pressing any other Buttons or something else.
This new and old data are divided in 4 Files. I already did the file Download with a Button, and on the browser there comes a popup and i can save this files - > but this is not what it should.
Can somebody please HELP?
Regards Chris
ACFUpDownload Tutorial:
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Why do i have to set my Files to Cache?
Because ACFUpDownload is designed for use with the KPRO/Cache Server. It isn't designed to communicate directly back to the Web Dynpro ABAP application. The ICF Handler Class and the Cache table are the ways to fake an external KPRO/Cache Server on the same ABAP stack and then transfer the updated back to the WDA user session. The Upload is done as a streaming upload into a separate work process of ICF handler and not the user session of the WDA application.
>And what's
ZISLUPLD_FILE_LIST_TBL
for a table?
That's a table type referenced in the code.
Its not as simple with ACFUpDownload becuase the Web Dynpro ABAP user session isn't the one hosting the download. It is streamed from the separate handler instance. In the WDA application you need to build a URL that points to the specific file. The file content needs to be placed into the cache table so that the handler class can serve it out when it receives the request from the ACFUpDownload Applet.
How much of my example code are you using? Are you using the class ZCL_WDA_FISL_UPLOAD_HANDLER? It was primarily designed for uploading first and then downloading these files. You just need to extend it with another static method simliar to IMPORT_FILE_REQUEST. Instead of extracting the data out of the server request object, just pass the XSTRING of the content into the method as a parameter. The rest of the logic to insert the data into the cache table would stay the same.
Remember you are in a web browser, not a desktop application. There is a security sandbox that protects the client machine from web browser access. The only way you are going to get slient downloads of multiple files in Web Dynpro is with the AcfUpDownload UI element in 7.01 and higher. It uses a signed Java Applet to get around the browser security sandbox.
You sya you need to write this to the clietn or to a share. Is the file share accessible from the file system of the ABAP application server? If so you might have a much easier time writing the files to the file share via normal ABAP Dataset commands. This won't involve the browser at all since the ABAP application server will write directly to the file share.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.