cancel
Showing results for 
Search instead for 
Did you mean: 

Waiting to finish the document download dialog

former_member429661
Participant
0 Kudos

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



Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

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

former_member429661
Participant
0 Kudos

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