In this document you learn how to add custom fields in POWL in SAP TM -
Business Scenario -> To add a custom field i.e. Transportation Mode in any Active Query in POWL Present in the Planning Worklist component of NWBC in SAP TM.
Step 1 - Get the Application ID and POWL Type using Function Module POWL_QUERY_REFRESH
Here, Application ID is "SCMTMS_POWL_PLAN" and POWL TYPE is "SCMTMS_TOR_FU".
Step 2 -> Go to T-Code POWL_COCKPIT
Choose POWL Type as Standard POWL and execute
Search the application ID "SCMTMS_POWL_PLAN " and Click on Maintain Type
Now search the POWL TYPE "SCMTMS_TOR_FU" and get the corresponding Feeder class.
POWL Feeder Class -> /SCMTMS/CL_UI_POW_FD_TOR_FU
The main access point for a POWL is the POWL Feeder Class. It contains the definition of the
POWL’s selection criteria, the field catalog (i.e. the result structure) and the actions that can
be executed from the POWL Toolbar for a selected set of object instances from the POWL
In TM a POWL Feeder Class is usually based on a query of a Business Object. The
relationship between a Business Object query (a Generic Result Query) and a POWL Feeder
class is always one to one. So whenever there is no POWL Feeder Class making use of an
existing Generic Result Query of a BO you will need a new POWL Feeder Class.
You should also keep this in mind when creating BO Queries for POWL usage. If you have
two completely different requirements leading to different BO Queries, of course two different
POWL Feeder Classes are required.
Step 3 -> Keep a breakpoint at the method 'CONSTRUCTOR' of the POWL Feeder Class " /SCMTMS/CL_UI_POW_FD_TOR_FU" to get the structure names for selection criteria and output Structure.
Result Structure (Output Structure) --> /SCMTMS/S_UI_POW_R_FU
The structure will represent the Result Structure for the new
POWL, i.e. it contains the list of attributes that will be available to be displayed in the
result list of the POWL.