Useful topics on SRM POWL
HI Team ,
I had a good experience on POWL and Looking to contribute the Topics that I Learnt to my SAP Colleagues. Looking forward to contribute more on this .
1) How to ENABLE / DISABLE the Buttons in the POWL Table
2) How to maintain default values in Search criteria of an POWL
3) How to maintain properties for fields in Search criteria of an POWL
4) How to Hide the POWL Queries
5) How to find the Feeder Class of an POWL type if we know the POWL Type
6) Transaction CODES Mostly used in POWL
7) How to change the type of the LAYOUT in an WD Component dynamically
8) How to Deactivate a POWL Query
9) Enable the Buttons in POWL based on specific condition
10) How to Remove the Query from POWL
1) How to ENABLE / DISABLE the Buttons in the POWL Table
In the POWL Level , If we want a BUTTON to be ENABLED by default on Launch of the POWL in Screen
Changes to Do in SPRO
Navigation :
SPRO(TCODE )-> SAP Implementation Guide->SAP Supplier Relationship Management->Cross-Application Basic Settings->POWL and Advanced Search->Adjust POWL Layout, Search Criteria, and Pushbuttons->Execute the Button
Then select the Required POWL type as shown in below one
And click on the Actions Button then below screen appears .
For cardinality we will have 2 Options
1 ) If we select the Cardinality as IGNORE SELECTION then By default Button will be Enabled
2 ) If we select the Cardinality as the At Least One object as to be selected then Button Will be enabled on Lead selection of any record in table.
But In case of Enabling / Disabling the Button based on any condition on Lead Selected record,
We have to customize the code in the method ENABLE_BUTTONS of the FEEDER Class of the POWL TYPE
Possibilities that can be done for an button in the SPRO level for an POWL TYPE are as mentioned below
1) We can change the text for the BUTTON in the ACTION TEXT
2) Tooltip will be maintained for the additional Info
3) Cardinality helps the button to be Enabled or Disabled on LEAD SELECTION of an record or to enable the button by default .
4) Display Area : Area where the button has to be placed
5) Position : States the order of the Button where it Is to be placed in an order
6) Enabled : Enables the Button
7) Separator : Maintains a Separator between the 2 buttons
2) How to maintain default values in Search criteria of an POWL
In order to Set any Default values in the Selection criteria in POWL Level ,we have to follow the below Procedure
Execute Transaction Code POWL_QUERY
Double click the required POWL Query and then Below Screen Appears
In the above mentioned screen Select Query Parametersoption
Where we can pass the default values to the POWL Query
3) How to maintain properties for fields in Search criteria of an POWL
In order to Set any properties to the fields in the Selection criteria in POWL Level , we can do the required changes in the below way
Execute TCode POWL_QUERY
Double click the required POWL Query and we can see the screen as the below one
In the Query Settings ,
For any field in the selection criteria we can make the below mentioned settings for the field
Mandatory: Input is required Read Only: Make it as Read-Only Hidden: Make the field Hidden
Quick Search: Field to be available in Quick Search or not
4) How to Hide the POWL Queries
Execute the T Code
POWL_QUERYR
We have to select the required Query ID and we have to assign the role (Dummy) and uncheck the Activate check box as shown below
After doing the changes Invoicing Parties and Portal Providers are Deleted
5) How to find the Feeder Class of an POWL type if we know the POWL Type
Execute the Transaction Code POWL_TYPE
Double click the required POWL type then we can see the Feeder Class and the Powl Type as shown in the below one
6) Transaction CODES Mostly used in POWL
POWL_CAT Maintain POWL categories
POWL_EASY Easy-POWL Feeder Builder
POWL_QUERY Maintain POWL Query definition
POWL_QUERYR Maintain POWL Query role assignment
POWL_QUERYU Maintain POWL Query user assignment
POWL_TYPE Maintain POWL Type definition
POWL_TYPER Maintain POWL Type role assignment
POWL_TYPEU Maintain POWL Type user assignment
7) How to change the type of the LAYOUT in an WD Component dynamically
DATA : LT_MAT_LAY TYPE REF TO CL_WD_MATRIX_LAYOUT.
DATA : LT_MAT_DATA TYPE REF TO CL_WD_MATRIX_DATA.
DATA: LT_MAT_HEAD TYPE REF TO CL_WD_MATRIX_HEAD_DATA.
DATA : LT TYPE REF TO CL_WD_LAYOUT_DATA.
DATA : LR_CONT TYPE REF TO cl_wd_TRANSPARENT_container .
LR_CONT ?= VIEW->GET_ELEMENT( ‘CONTENT_CONTAINER’ ).
LT_MAT_HEAD = CL_WD_MATRIX_HEAD_DATA=>new_matrix_head_data( element = lr_cont ).
lr_cont->set_layout_data( LT_MAT_HEAD ).
8) How to Deactivate a POWL Query
Go to POWL_QUERYR transaction.
Delete that entry for query you do not want.
Run POWL_D01 report for application id you want to hide.
9) Enable the Buttons in POWL based on specific condition
In case if we want to Enable/Disable the buttons in an POWL dynamically at runtime , We can use the below method
Interface Name: IF_POWL_FEEDER
Method Name: ADJUST_ACTIONS_FROM_CUST
10) How to Remove the Query from POWL
SAP Implementation Guide –> Cross-Application Components –>General Application Functions–>
Generic SAP Business Suite Functions–> Personal Object Worklist –> Define Query Visibility at Role Level
OR
We can Use the TCODE : POWL_QUERYR
We have to select the Query ID which we want to remove
In the Role Field : we have to give the role /SAPSRM/BIDDER
And we have to Uncheck the Activate Checkbox
Then Save
After doing the required settings .Check the POWL