Skip to Content

We have created Web Dynpro Components and implemented the methods in first part How to Run Executable files from Web Dynpro ABAP – Part 1

Now we will see creating and executing the Web Dynpro Application.

Step 5: Creating Web Dynpro Application.

        Right click on Web Dynpro Component and click on Create Web Dynpro Application

   /wp-content/uploads/2012/12/39_168880.jpg

   Enter description, click on OK and save the Web Dynpro Application.

   /wp-content/uploads/2012/12/40_168965.jpg

Result

Right click on Web Dynpro Application and click on Test.

  /wp-content/uploads/2012/12/41_168966.jpg

  You can see the created application in browser.

   /wp-content/uploads/2012/12/42_168967.jpg

Now Click on any button to see the result ( say Open MS word ).

   /wp-content/uploads/2012/12/43_168968.jpg

Oops!! Nothing opened. Click on Show Log to see the message log.

    /wp-content/uploads/2012/12/44_168969.jpg

You can see the message that “application was not cleared by whitelist” .

Due to security reasons, only authorized executables on client PC are triggered by AcfExecute. The authorized servers and directories are listed in WhiteList.

So, we need to create a white list now. This is the main part of this Demo.

Creating Whitelist

     Execute transaction WDR_ACF_WLIST and click on edit button (F6).

    /wp-content/uploads/2012/12/45_168972.jpg

  Click on New Entries to create entries.

        /wp-content/uploads/2012/12/46_168973.jpg

  Enter Whitelist name and description. Click on Save.

    /wp-content/uploads/2012/12/47_168974.jpg

  Now select the created entry and click on Applikation folder.

     /wp-content/uploads/2012/12/48_168975.jpg

Click on New Entries to create entries.

    /wp-content/uploads/2012/12/49_168976.jpg

Select the created whitelist from F4 help and maintain the Application Paths.

     /wp-content/uploads/2012/12/50_168980.jpg

Note: The Application paths which I maintained in the above customizing is the application paths in Windows 7 OS which may vary from other Operation Systems. Please use the actual application path according to your Operation System.

Click on Save and click on back button. Now in the initial screen of the transaction WDR_ACF_WLIST, you can see the created whitelist.

Click on Activate button.

  /wp-content/uploads/2012/12/51_168981.jpg

It will prompt to overwrite the xml file. click on transfer button.

   /wp-content/uploads/2012/12/52_168982.jpg

You can see a success message that “Security list created”.

     /wp-content/uploads/2012/12/53_168989.jpg

We have successfully created security whitelist. Now we will test our application.

Run the Web Dynpro Application. Click on ‘Open MS Word’ button.

  /wp-content/uploads/2012/12/54_168990.jpg

Aww.. MS Word document opened .

Click on ‘Open MS Excel’ button.

   /wp-content/uploads/2012/12/56_168991.jpg

Click on ‘Open MS Paint’ button.

   /wp-content/uploads/2012/12/57_168998.jpg

Click on ‘Open Notepad’ button.

    /wp-content/uploads/2012/12/58_168999.jpg

Click on “Open Calculator” button.

   /wp-content/uploads/2012/12/59_169004.jpg

Click on “Shutdown System” button.

     /wp-content/uploads/2012/12/61_169270.jpg

After seeing this message( I will not leave you dear), I cancelled System Shutdown.

Click on “Cancel Shutdown” button.

   /wp-content/uploads/2012/12/63_169352.jpg

Conclusion

Here I demonstrated a simple Application on how to run executable files from Web Dynpro ABAP using powerful AcfExecute. You can use this according to your Requirements.

References

   AcfExecute SAP Help content

 

To report this post you need to login first.

7 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply