ABAP Freak Show – April 1st – ACF UpDownload in Web Dynpro ABAP


In this episode of the show we continue a theme from the previous episode when we discuss alternative ways to upload files.  Instead of using the fileUpload UI element or FlashIslands; in this episode we explore the new ACFUpDownload UI element that came in NetWeaver 7.01.

This new UI element is intended for usage only with KPRO and SAP Content and Cache Server. However in this eLearning we show how you can write your own ICM Handler Class so that you can have silient, multiple file uploads and downloads directly to/from your ABAP Application Server. We also use the new ACFExecute UI element to launch programs on the users’ desktop. Finally we show how to setup the security whitelist in order to use these new UI Elements.

Here is the link where you can download the source code as a transport or in SAPlink format:
http://sdn-mentor-handson-2008.googlecode.com/files/WDA_ACF_UpDownload_Example.zip

Tags: , ,

3 responses to “ABAP Freak Show – April 1st – ACF UpDownload in Web Dynpro ABAP”

  1. angelique heutinck says :

    Hi Thomas,

    Looks great! However, I think this new UI element cannot be used to do mass uploads/updates of data that need to be stored in SAP tables (so comparable with the good old LSMW tool)?

    Is there a tool like LSMW, CATT, eCATT that we can use for recording webenabled transactions (applications developed in Web Dynpro ABAP)?

    For us this is a critical point for choosing the UI tool for an upcoming project as mass uploads do happen quit often. I don’t want to be forced to go back to win UI technology just because there is no good mass upload solution available for Web enabled applications. I hope you can help me in finding the solution.

  2. Thomas Jung says :

    >I think this new UI element cannot be used to do mass uploads/updates of data that need to be stored in SAP tables
    This UI element is just about the transfer of data from the client machine to the server. It has nothing to do with how the data is used or processed after upload. Think of it as the equal to the CL_GUI_FRONTEND_SERVICES class and methods GUI_UPLOAD and GUI_DOWNLOAD.

    >Is there a tool like LSMW, CATT, eCATT that we can use for recording webenabled transactions (applications developed in Web Dynpro ABAP)
    You shouldn’t need such a tool that is tied to the user interface. With WDA you should be using MVC to design your application. This is part of the reason for MVC so that you have a clear separation of the model – business logic. You should always have a reusable class that can be called to input and create data with the same validations without going through the user interface. This is the process that SAP is following as we create new WDA screens. We use the enterprise services and their implementation classes as the Model for the WD Components. This ensures that you always have a clear API to use to mass import data.

    Although we wouldn’t recommend doing any kind of mass data load via the user interface any longer – eCATT will be supported for automated testing of Web Dynpro ABAP applications as of NetWeaver 7.0 Enhancement Package 2.

  3. Ariel Fisher says :

    Hi Thomas.

    I’ve got two questions:
    1. Once a file was uploaded (d:Uploadnewfil1.txt) I can’t upload same file again. I receive “Upload Erroe 230, file is allready on content server”.
    How Do I delete it from the content server ?

    2. Once the file was uploaded to the KPROContent server how can I dd this file to the DMS (using bapi_document_create2 or tcode cv01n ???)

    Thanks
    Ariel Fisher

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: