Hi, I provide training in SAP UI5. Also feel free to checkout my new web page https://saptechblog.com
Webdynpro ABAP

POWL in Webdynpro ABAP

 

POWL: Personalized Object Worklist

This document explains the underlying concept of POWL and instruction to implement a POWL object in Webdynpro ABAP.

 

Work Centre:

Area in the Portal window that allow access to different application specific to roles assigned to you.

clip_image001[4]

 

Universal Worklist:

List work items and provide quick access to work items in the Work Center. Allows you to enable another user to your work item in case of your absence. Generic work list with the option of user level configuration

Personal Object Worklist:

Located in the content Area. Query driven work list that contains object from your work Area. The need for user defined work list has led to development of POWL.

·         Focus on having pre-defined query. Can change and adapt to the queries.

·         Based on the Query, objects are listed in the Work items.

·         Flexible for repetitive works or periodic tasks.

Referred as:

·         Personal object work entity repository list(POWER list)

·         Personalized object work list (POWL)

Overview of POWL Implementation process:

clip_image002[4]

This tutorial is split into three parts.

1.      Implementing the POWL Feeder

2.      Configurations

3.      Displaying the POWL in UI

Part 1- Implementing a Feeder class.

The class that implements the interface IF_POWL_FEEDER serves as the Feeder class for POWL.

 

Methods of the interface are as below:

Methods

Description

GET_ACTIONS

Defines the actions.

GET_ACTION_CONF

Throws a confirmation pop up window to proceed with actions

GET_SEL_CRITERIA

In this method selection criteria is defined and default values are configured.

GET_FIELD_CATALOG

Defines the output structure. Col position, header are determined here

GET_OBJECT_DEFINITION

Used to define a container where the selected data gets stored.

GET_OBJECTS

Used to retrieve data from the Back end system

GET_DETAIL_COMP

 

HANDLE_ACTION

Custom defined actions are handled here.

 

The two important methods that needs to be implemented mandatorily are:

1.      GET_OBJECT_DEFINITION

2.      GET_OBJECTS

 

Create a class that implements the interface IF_POWL_FEEDER.

 

clip_image003[4]

 

Write the following code in the GET_SELECTION_CRITERIA method:

clip_image004[4]

 

Here, I have declared a selection criteria and a default value to it.

SELNAME-  Name of field

KIND- Select option(S) or Parameter(P)

PARAM_TYPE- Include or Excluded(I)

SELOPT_TYPE- With interval and Multi values(A)

DATATYPE-Type of data.

 

Note: Please explore the structure for different options.

 

 

Write the following code in the Get_object definition method:

clip_image005[4]

 

Write the following code in the Get_objects method to retrieve the data from the selection criteria and display it according to Selection criteria.

 

clip_image006[4]

 

 

Note: Open all the other interface methods and activate them or it would cause dump.

Part 2:  Configuration Part

Creating an Application ID.

Go to transaction FPB_MAINTAIN_HIER and create an new application Entry.

 

clip_image008[4]

 

Save it to the transport request:

 

 

Create a Type for the POWL

Enter the transaction POWL_TYPE.  Here you define the link between the POWL and the Feeder class.

Create a new entry and provide the name of the feeder class.

clip_image009[4]

 

Save and assign it to a transport request.

 

Assign POWL Type to the APPID.

Go to transaction POWL_TYPER and maintain the relation between APPID and the POWLTYPE by creating new entry.

 

clip_image010[4]

 

Create a Query for the POWL:

 

Go to transaction POWL_QUERY and create a POWL query for the POWL type created earlier.

clip_image011[4]

 

 

Assign the POWL Query to the APPID.

Go to transaction POWL_QUERYR and assign the POWL query to the APPID created earlier.

 

clip_image012[4]

 

 

 

 Part 3: Displaying the POWL in the UI

 

Create a Webdynpro component and include the POWL_UI_COMP usage in the developed Webdynpro Component.

clip_image014[4]

 

In the layout of the View controller, create a View container UI element.

clip_image016[4]

 

In the outbound plug tab of the window controller, create the outbound plug as shown below with the listed parameters.

 

clip_image017[4]

 

Parameters:

Parameter

Type

APPLID

STRING

FORALLQ

POWL_XFLAG_TY

QNAME

POWL_QUERY_TY

QSELPARA

STRING

REFRESHA

POWL_XFLAG_TY

REFRESHQ

POWL_XFLAG_TY

SRVGROUP

POWL_XFLAG_TY

 

 

In the window tab of the Window controller, embed the Master view of POWL component in the View container we created and create a navigation link from the outbound plug to the master view of the POWL Component.

 

clip_image018[4]

 

clip_image020[4]

 

Write the following code in the handle default method of Window controller.

 

 

clip_image021[4]

 

 

Save and Activate the Webdynpro Component. Create and Execute the application.

 

 

 

 

 

Output:

 

clip_image023[4]

About Arun

1 Comments:

  1. Is it possible to make a POWL with editable field without setting the Fieldcatalog properties in GET_FIELDCATALOG The field catalog is constructed from View from GET_DEFINITION.

    ReplyDelete

Powered by Blogger.