First we create a table in SE11 and Activate it.
Create some entries in the table
create a table type for table YDEPARTMENT
now in SFP tcode create an interface YH1328_DEPARTMENT_INTERFACE with import parameters as the database table of type table type created.
create form in SFP YH1328_DEPARTMENT_FORM
Click on layout tab drag the table from on the page , Save & Activate the Form
In SE80 Create a Web Dynpro Application yh_dept_dyn_adobe create a View and Window
In the Layout Tab of the view MAIN create an Interactive Element.
In the properties give template source as ' YH1328_DEPARTMENT_FORM' this the adobe form that we have created earlier and the data in automatically avaiable to the data source.
In the Method Tab of the MAIN view in method 'WDDOINIT' give the code below
create webdynpro application and activate it. Test it ...
An idobe form is displayed with the table and the data contents.