AcfUpDownload 
AcfUpDownload enables large files to be uploaded to and downloaded from a KPro content server. Files up to 2 GB can be sent and received by AcfUpDownload.
Note
In the back end (content server) the file size is restricted. Presently, the content server supports files up to a size of 2 GB.
Caution
The integration of AcfUpDownload in Web Dynpro ABAP popups is not supported.
The upload/download takes place from a KPro content server to the local file system. The actual data exchange between the content server and Web Dynpro takes place using the ACF protocol.
More information:
SAP Content Server
Knowledge Provider (KPro)
Active Component Framework (ACF)
As with OfficeControl, methods can be executed. The CL_WDR_ACFUPDOWNLOAD_HNDL method handler is required for this.
Unlike other Web Dynpro ABAP UI elements, AcfUpDownload is implemented in a way that means the action can only be triggered by a method call. For AcfUpDownload, an upload/download only takes place with one of the following method calls:
IF_WD_ACFUPDOWNLOAD_SCMS~HTTP_PUT
IF_WD_ACFUPDOWNLOAD_SCMS~HTTP_GET
Note
Currently, the upload/download of large files from the application server without KPro is not possible.
Some properties of the AcfUpDownload UI element are not set with the UI element properties but with IF_WD_ACFUPDOWNLOAD_SWFS instead. Here you can display a file selection dialog.
If the application calls get for AcfUpDownload and the file is already available on the client, the following points apply:
A large number of files can be downloaded for each method; a different error could occur for each file.
However, there is only one error string with one error code. This means that only the first error is ever returned and written to the context.
There are two different get methods: with and without override-Flag
There is an onCompleted event for which an application can register (or not) with an action.
The application calls get without the override-Flag, and has not registered on onCompleted.
In this case, the value 210 (FILE_PRESENT) is contained in the error string of the context, followed by a space and a comma-separated list of existing files.
If another error occurs beforehand, this other error is in the context instead.
The application calls get without the override-Flag, and has registered on onCompleted.
In this case, the value 210 (FILE_PRESENT) is contained in the error string of the context, followed by a space and a list of existing files separated by commas.
In addition, the application receives an event with status 210 plus the comma-separated list as a statusMessage.
If a different error occurs beforehand, this error is in the event instead.
The application calls get with override-Flag = true.
The local file is replaced by a newly downloaded file.
This does not affect the error string for the context or the event value.
The application calls get with override-Flag = false.
The existing local file is retained.
This does not affect the error string for the context or the event value.
Runtime Class |
CL_WD_ACF_UP_DOWNLOAD |
Name |
Type |
Initial Value |
Bindable |
|---|---|---|---|
STRING |
(automatic) |
No |
|
STRING |
Yes |
||
STRING |
Yes |
||
WDUI_CONTEXT_MENU_BEHAVIOUR |
inherit |
No |
|
WDY_MD_UI_ELEMENT_REFERENCE |
No |
||
WDY_BOOLEAN |
true |
Yes |
|
STRING |
Yes |
||
WDUI_LIFE_TIME |
whenVisible |
Yes |
|
Translatable text |
Yes |
||
WDUI_VISIBILITY |
visible |
Yes |
|
STRING |
Yes |
Name |
|---|
Other properties that can be inherited are defined in the related higher-level classes. The related UI elements are:
For dynamic programming, the same properties, events and aggregations are available as in the View Designer. But note that the spelling format and use of upper/lower case is different.
View Designer Name |
Runtime Name |
Type |
|---|---|---|
ARCHIVES |
STRING |
|
CLASS |
STRING |
|
CONTEXT_MENU_BEHAVIOUR |
WDUI_CONTEXT_MENU_BEHAVIOUR |
|
contextMenuBehaviour: inherit |
CL_WD_ACF_UP_DOWNLOAD=>E_CONTEXT_MENU_BEHAVIOUR-INHERIT |
|
contextMenuBehaviour: provide |
CL_WD_ACF_UP_DOWNLOAD=>E_CONTEXT_MENU_BEHAVIOUR-PROVIDE |
|
contextMenuBehaviour: suppress |
CL_WD_ACF_UP_DOWNLOAD=>E_CONTEXT_MENU_BEHAVIOUR-SUPPRESS |
|
CONTEXT_MENU_ID |
WDY_MD_UI_ELEMENT_REFERENCE |
|
ENABLED |
WDY_BOOLEAN |
|
HEIGHT |
STRING |
|
LIFE_TIME |
WDUI_LIFE_TIME |
|
lifeTime: whenAlive |
CL_WD_ACF_UP_DOWNLOAD=>E_LIFE_TIME-WHEN_ALIVE |
|
lifeTime: whenVisible |
CL_WD_ACF_UP_DOWNLOAD=>E_LIFE_TIME-WHEN_VISIBLE |
|
TOOLTIP |
WDY_MD_TRANSLATABLE_TEXT |
|
VISIBLE |
WDUI_VISIBILITY |
|
visible: none |
CL_WD_ACF_UP_DOWNLOAD=>E_VISIBLE-NONE |
|
visible: visible |
CL_WD_ACF_UP_DOWNLOAD=>E_VISIBLE-VISIBLE |
|
WIDTH |
STRING |
|
View Designer Name |
Runtime Name |
|---|---|
ON_COMPLETED |
The following prerequisites must be fulfilled to enable AcfUpDownload to function smoothly on a client:
Installation of a Sun Java plug-in (Java 5 or higher)
See also SAP Note 1178747
Presence of a valid white list XML file.
Under Microsoft Windows this is %APPDATA%\SAP
You can find a test example of this UI element in the system in the SWDP_TEST_ACTIVE_COMPONENT package in the WD_TEST_APPL_ACFUPDOWN component.