The post describes, how to design POWL in webdynro abap. The design can be done in some steps.
- Designing the powl feeder class which tells what are the fields to be displayed & how displayed as the search criteria. Also tells what is the list table layout and data selection process to display the records on the list based on the search criteria.
- Creating POWL application ID
- Creating POWL Type
- Linking POWL application ID with POWL Type.
- Creating POWL query.
- Assigning POWL Application ID to the POWL Query.
- Creting WebDynpro Application
Let’s have a look at one of the below structure which is going to be used in designing the POWL feeder class.
The field KIND – Navigate to its data element & domain fixed values.
The field PARAM_TYPE – Navigate to its data element & domain fixed values.
The field SELOPT_TYPE – Navigate to its data element & domain fixed values.
The POWL search criteria should contain two fields- CARRID & CONNID & the POWL list should display records from SPFLI table based on the search inputs.
Get the search help from the SFLIGHT table for the field CONNID.
The POWL list displays data from SPFLI table. Now we have the table type ‘SPFLI_TAB’.
Create a class in Tx- SE24 & implement the interface IF_POWL_FEEDER.
Create an attribute GT_SPFLI which is going to hold all records form SPFLI table based on the search input.
Here 3 methods are important. Any ways activate all methods.
- GET_SEL_CRITERIA- Used to prepare the search section.
- GET_OBJECT_DEFINITION- Used to prepare the list layout.
- GET_OBJECTS- Used to select the records based on the search criteria.
Put the below code in method GET_SEL_CRITERIA.
Put the code in method – GET_OBJECT_DEFINITION.
Put the code in method – GET_OBJECTS.
With this the POWL feeder class is ready.
Lets create POWL application ID. Go to Tx- FPB_MINTAIN_HIER. Click on Change & New entries button.
Provide name as- ZTEST_FLIGHT_APP & save it. Go back.
next step is to create POWL type . Go to Tx- POWL_TYPE & click on New Entries button.
Provide POWl Type ID as – ZTEST_FLIGHT_TYPE & also provide the feeder class. Save & go back.
Next step is to link POWL application ID & the POWL type. Go to Tx- POWL_TYPER. Click on New Entries button.
Assign Application ID to the Powl type. Save & go back.
Next step is to create POWL Query. Go to Tx- POWL_QUERY. Click on New Entries button.
Provide powl query name as – ZTEST_FLIGHT_QUERY & also provide powl type as- ZTEST_FLIGHT_TYPE. Save & Go back.
Next step is to link powl application Id to the POWL Query.go to Tx- POWL_QUERYR. Click on New entries button.
Assign the POWL Application ID & POWL Query . Save it & go back.
Create an web dynpro component & make use of POWL webdynpro component- POWL_UI_COMP.
In the view add a View Container UI element. Go to the window.
Under properties tab, create the used component. Now go to outbound plugs.
Create an outbound plug and provide its parameters. Go to Window tab.
Embed view for the VC(View Container UI element)
Choose POWL_MASTER view.
Continue.
RIght click on outbound plug- OUT to create navigation link.
Choose second line.
Continue.
Go to the window method tab. double click on methheod HANDLEDEFAULT.
Put the below code which fires the outbound plug with the POWL APPLICATION ID & with POWL Query.
Create Web Dynpro application.
Test the application.
The below screen appears initially. Click on the drop down button to select a Query.
Choose the query name.
Click on preview button.
Click on Close button.
Click on apply.
Here we have the output.
Excellent Documentation
LikeLike
Tx FPB_MAITAIN_HIER->FPB_MAINTAIN_HIER.
LikeLike