Professional Documents
Culture Documents
Object Worklist)
Applies to:
SAP Netweaver 7.0 Enhancement Package 1 and Higher – Web Dynpro ABAP. For more information, visit
the Web Dynpro ABAP homepage.
Summary
This article illustrates different possibilities in Personal Object Worklists (POWL) and also covers different
requirements that come in projects.
Author Bio
Karthick works as a Consultant in Deloitte, he has work experience in SAP ABAP, POWL,
Web Dynpro ABAP and SRM.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Possibilities in POWL (Personal Object Worklist)
Table of Contents
Applies to: ........................................................................................................................................................... 1
Summary............................................................................................................................................................. 1
Author Bio ........................................................................................................................................................... 1
Contents.............................................................................................................................................................. 2
Objective ............................................................................................................................................................. 3
Basic Building blocks of POWL .......................................................................................................................... 3
Possibilities ......................................................................................................................................................... 3
At Message Area: ............................................................................................................................................... 3
At the Query Area ............................................................................................................................................... 3
At the Quick Criteria Maintenance ...................................................................................................................... 7
At the Field catalog ............................................................................................................................................. 8
At the Actions ...................................................................................................................................................... 9
Triggering New Applications ............................................................................................................................. 10
Setting Default Query ....................................................................................................................................... 13
Header for POWL ............................................................................................................................................. 14
Hiding Export to Excel and PDF printing .......................................................................................................... 14
Triggering POWL Application on click of a button or link on a page ................................................................ 15
Setting Row Count and Column count ............................................................................................................. 16
Related content ................................................................................................................................................. 17
Disclaimer and Liability Notice .......................................................................................................................... 18
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Possibilities in POWL (Personal Object Worklist)
Objective
This document illustrates different possibilities in Personal Object Worklists (POWL).
Query Area
List Area
Possibilities
At Message Area:
On the message area three different Message Types can be displayed
Information
Warning
Error
Link Matrix
This option comes under personalization which allows switching from the tab strip view to a link matrix view.
The link matrix is the view that shows the categorizations possibly made by the user, while the tab strip
rather represents a flat sequence of queries.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Possibilities in POWL (Personal Object Worklist)
Tabstrip View:
Based on the radio button we select here, the corresponding layout appears.
The other way is through Application Configuration
Step1: Create a Component Configuration with the below details
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Possibilities in POWL (Personal Object Worklist)
Values can be defaulted for the fields as well. We can achieve this requirement by passing the values as
specified below in the method GET_SEL_CRITERIA.
Quick Criteria Maintenance field To Achieve..?
Field ->Select-option with interval and SELNAME, KIND as ‘S’, SELOPT_TYPE as ‘A’,
multi-selection ALLOW_ADMIN_CHANGE,DATATYPE,
QUICKSEARCH_CRIT, CRITTEXT
Values can be defaulted by passing data to the
parameter C_DEFAULT_VALUES
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
Possibilities in POWL (Personal Object Worklist)
We can achieve this by passing the values in the method GET_FIELD_CATALOG as specified below.
Field Catalog field To Achieve…?
Dropdown Pass values to DISPLAY_TYPE(DK), COL_VISIBLE, COLPOS,
COLID, ENABLED, WIDTH
Dropdown values to the field VALID_VALUES
Editable Pass values to COL_VISIBLE, COLPOS, COLID, ENABLED(X),
WIDTH, EDITABLE(X)
Link to URL Pass values to DISPLAY_TYPE(LU), TEXT(Name of the URL),
COL_VISIBLE, COLPOS, COLID, ENABLED
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
Possibilities in POWL (Personal Object Worklist)
At the Actions
We can get the buttons placed on the Toolbar by passing the entries in the method GET_ACTIONS.
Button To achieve..?
Pass values to ACTIONID, CARDINALITY(‘I’), PLACEMENT(‘B’), ENABLED(‘X’),
TEXT(‘Selector’),
Imagesource(‘/SAP/BC/WebDynpro/SAP/C_SRT_SEARCH_BROWSE_UI/deployment_unit.gif’),
ADD_SEPARATOR(‘X’)
The entries Test Absolute, Test OBN has to be passed to the field ACT_CHOICES with values
for ACTIONID, ENABLED(‘X’), TEXT and IMAGESOURCE.
Pass values to ACTIONID, CARDINALITY(‘I’), PLACEMENT(‘B’), ENABLED(‘X’),
TEXT(‘Selector’),
Imagesource(‘/SAP/BC/WebDynpro/SAP/C_SRT_SEARCH_BROWSE_UI/deployment_unit.gif’),
ADD_SEPARATOR(‘X’)
Pass values to ACTIONID, CARDINALITY(‘I’), PLACEMENT(‘B’), ENABLED(‘X’),
TEXT(‘Selector’),
Imagesource(‘/SAP/BC/WebDynpro/SAP/C_SRT_SEARCH_BROWSE_UI/deployment_unit.gif’),
ADD_SEPARATOR(‘X’)
For Deleting a line, C_SELECTED table contains the selected records in HANDLE_ACTION
method. Delete this table, and then automatically the records get deleted. Also set
e_result_lines_changed & e_selected_changed = ‘X’
Pass values to ACTIONID, CARDINALITY(‘I’), PLACEMENT(‘B’), ENABLED(‘X’),
TEXT(‘Selector’),
Imagesource(‘/SAP/BC/WebDynpro/SAP/C_SRT_SEARCH_BROWSE_UI/deployment_unit.gif’),
ADD_SEPARATOR(‘X’)
For Inserting a new line add new line to the table C_RESULT_TAB in the method
HANDLE_ACTION, set e_result_lines_changed & e_selected_changed = ‘X’
Pass values to ACTIONID, CARDINALITY(‘I’), PLACEMENT(‘B’), ENABLED(‘X’),
TEXT(‘Selector’),
Imagesource(‘/SAP/BC/WebDynpro/SAP/C_SRT_SEARCH_BROWSE_UI/deployment_unit.gif’),
ADD_SEPARATOR(‘X’)
Changed data on the UI is available in the table C_RESULT_TAB in the method
HANDLE_ACTION. Based on the requirement these values can be used for further processing
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
Possibilities in POWL (Personal Object Worklist)
To get the popup pass the required message to the parameter e_conf_message in the method
GET_ACTION_CONF based on the value of the Action ID. If user selects Yes for deletion, then in the
method HANDLE_ACTION the value for the parameter I_ACTION_CONF comes as ‘Y’, based on this the
corresponding code can be written.
Methods:
'UPDATE_DETAIL_DATA' implement this method in order to receive the DATA reference of the POWL
lead selection Parameter - 'I_POWL_LINE_DATA' type ref to DATA
Events:
'DO_REFRESH' fire this event from your detail component when you need the POWL query refreshed
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11
Possibilities in POWL (Personal Object Worklist)
5. Pass the Business object and Operation details on click on one of the buttons in HANDLE_ACTION
method.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 12
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 13
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 14
Possibilities in POWL (Personal Object Worklist)
Business Object ID
Operation ID
*-- The below code will navigate to the POWL list Iview
lr_port_manager is referenced to if_wd_portal_integration
CALL METHOD lr_port_manager->navigate_to_object
EXPORTING
system = lv_system
object_type = lv_object_type
operation = lv_operation
business_parameters = lt_bus_parameter_list.
For setting the default query and any other configuration we can make use of the parameter
BUSINESS_PARAMETERS.
ls_bus_parameter_list-key = ’QNAME’
ls_bus_parameter_list-value = Query name.
APPEND ls_bus_parameter_list TO lt_bus_parameter_list.
ls_bus_parameter_list-key = 'WDCONFIGURATIONID'.
ls_bus_parameter_list-value = 'ZTEST_APP_CONF_POWL'.
APPEND ls_bus_parameter_list TO lt_bus_parameter_list.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 15
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 16
Possibilities in POWL (Personal Object Worklist)
Related content
For more information, visit the Web Dynpro ABAP homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 17
Possibilities in POWL (Personal Object Worklist)
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 18