on 12-12-2013 2:05 PM
HI guys,
i have a WDA with a flow in which i have to store some data to my local computer. I press my button and use these lines.
**********************************************************************
* save data to local computer
**********************************************************************
cl_wd_runtime_services=>attach_file_to_response(
i_filename = ls_filename
i_content = xstr
i_mime_type = 'CSV' ).
**********************************************************************
* call batch programm to create archive...
**********************************************************************
ls_progname = 'ZDPRF_WRITE_PDF_TO_ARCHIVE'.
SUBMIT (ls_progname) WITH i_fname = ls_filename EXPORTING LIST TO MEMORY AND RETURN.
Without calling the batch programm the "save under" dialog appeared and works fine. But...
now the dialog didn't appeared.
Is there a way to force the dialog to "save under" the data before i call the batch program... or to wait somehow until the dialog appeard ?
Or another idea ?
Thx in advance
Best regards
--Bernward Henkel
Hi,
You can try to wrap this batch program call( without return) in an event/method call from workflow task! and then trigger that event after the file open dialog.
Check this document for triggering business object event/workflow: http://scn.sap.com/docs/DOC-10472
Hope this helps u,
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
i tried to wrap the program call into an event... but it was the same result. First the framework starts the batch program. When it is finished (with an error because the file which i want to work with isn't there ) the dialog appears to download the file .
My current solution is to separate both "events" into two buttons. Not nice but it works!
Thx for the hint...
Regards,
--Bernward
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.