cancel
Showing results for 
Search instead for 
Did you mean: 

ACFUpDownload ZCL_WDA_FISL_UPLOAD_HANDLER doesn't get invoked

former_member211591
Contributor
0 Kudos

Hi all,

following Thomas Jungs' Tutorial ( https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d... ) I created a silent download for my own component Z_MY_UPDOWN. I also imported Thomas' component ZWDA_701_ACF_UPDOWNLOAD shown in the tutorial.

Although ZWDA_701_ACF_UPDOWNLOAD works fine, I'am not able to download files with my own component Z_MY_UPDOWN.

The main difference between these component is, that I just change the upload of the files into the Cache-ZTable. I'am not using the ACFUpDownload to cache the files, instead I created a method to fill the cache with files from the application server. This works fine, and the files are cached correctly.

A further difference is that I don't use two actions/buttons (one for upload and one for download), I've got just one action, which first caches the file and then tries to download it.

I figuered out the the handler ZCL_WDA_FISL_UPLOAD_HANDLER (which is called using an SICF service by creating an URL during runtime) does not get invoked.

Does anybody have an idea why the handler does not get invoked when using Z_MY_UPDOWN, but gets invoked when using ZWDA_701_ACF_UPDOWNLOAD?

PS: When putting the URL, which is created during runtime (Z_MY_UPDOWN) to download the file, into a webbrowser the file is being downloaded succesfully(Hanlder is being invoked).

The URL I create looks like this:

http://xxxxxxxxxxxxxxxxx/zuploader?sap-client=100&uploadcallback=5133A854A29E0286E10080000ADA02F9&fi...

Thans a lot

ismail

Accepted Solutions (1)

Accepted Solutions (1)

former_member211591
Contributor
0 Kudos

Solved my issue...

While creating the UIElement ACFUpDownload dynamically at WDDOMODIFYVIEW I forgot to add this UIElement as a child to the view. So I had an reference to the acf-updownload-handler but no reference to an ACF-UIElement within the view.

As I figured out, for ACF method calls you need to have a reference to such an ACF-UIElement.

BR

ismail

Answers (0)