Tuesday, February 8, 2011

Offline scenario to upload a filled-in adobe form using Web Dynpro for ABAP

The requirement is to upload the filled PDF data file into SAP from browser. FILE UPLOAD element is used in Web Dynro to upload the file. This document is extension to ‘how to down the file from the browser’.

Step1: Go to SE80 and create Web Dynpro component ‘ZUPLOAD_FORM’ as shown.

Press enter. Then following screen will appear.

Press ‘Yes’ and provide the description.

Step2: Now go to context tab in Main view.

Create attribute ‘PDF_SOURCE’ of type XSTRING as shown below.

Step3: Select Insert element from ROOTUIELEMENTCONTAINER.

Select the element FileUpload as shown.

Click on Enter.

And also create button. The properties of the buttons are as shown below.



Step4: Now select the binding tab against DATA property of the FileUpload element. Bind this DATA property with PDF_SOURCE attribute defined in context.

The property tab of the FileUpload is as shown below.

Step5: Go to Method tab,

Click on the method ‘ONACTIONUPLOAD’ from the METHOD tab or double click on Action property ‘UPLOAD’ defined in the button property which takes you to the method ‘ONACTIONUPLOAD’. Enter the code provided here.

Step6: Create the Web Dynpro application and execute it.

Browse the file and click on upload button.

If you check the data base, the PDF data is uploaded into database table.

The screen shot of the Web Dynpro component is




No comments:

Tutorials on SAP-ABAP

Adobe Interactive Forms Tutorials

Business Server Pages (BSP)

Userexits/BADIs

Web Dynpro for ABAP (Step by step procedure for web dynpro,Tutorials on Web Dynpro,)

ALV Tutorials

Blog Archive

goodsites