SAP CATS_DISPLAY_LIST Function Module for NOTRANSL: Genehmigung mit Liste für Workflow
CATS_DISPLAY_LIST is a standard cats display list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Genehmigung mit Liste für Workflow processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cats display list FM, simply by entering the name CATS_DISPLAY_LIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: CAPP
Program Name: SAPLCAPP
Main Program: SAPLCAPP
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CATS_DISPLAY_LIST pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CATS_DISPLAY_LIST'"NOTRANSL: Genehmigung mit Liste für Workflow.
EXPORTING
WORKITEMID = "Work item ID
* MAIL = 'X' "Generic Type
* ALL_DAYS = ' ' "Generic Type
* DIRECT_HR = ' ' "Generic Type
* PARTIAL_APPROVAL = ' ' "Generic Type
TABLES
ALLOWED_PERNR = "Allowed personnel numbers
EXCEPTIONS
ENQEUE_ERROR = 1
IMPORTING Parameters details for CATS_DISPLAY_LIST
WORKITEMID - Work item ID
Data type: CATSDB-WORKITEMIDOptional: No
Call by Reference: No ( called with pass by value option)
MAIL - Generic Type
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ALL_DAYS - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIRECT_HR - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
PARTIAL_APPROVAL - Generic Type
Data type: CDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CATS_DISPLAY_LIST
ALLOWED_PERNR - Allowed personnel numbers
Data type: ALLPERNROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ENQEUE_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CATS_DISPLAY_LIST Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_workitemid | TYPE CATSDB-WORKITEMID, " | |||
lv_enqeue_error | TYPE CATSDB, " | |||
lt_allowed_pernr | TYPE STANDARD TABLE OF ALLPERNR, " | |||
lv_mail | TYPE C, " 'X' | |||
lv_all_days | TYPE C, " ' ' | |||
lv_direct_hr | TYPE C, " ' ' | |||
lv_partial_approval | TYPE C. " ' ' |
  CALL FUNCTION 'CATS_DISPLAY_LIST' "NOTRANSL: Genehmigung mit Liste für Workflow |
EXPORTING | ||
WORKITEMID | = lv_workitemid | |
= lv_mail | ||
ALL_DAYS | = lv_all_days | |
DIRECT_HR | = lv_direct_hr | |
PARTIAL_APPROVAL | = lv_partial_approval | |
TABLES | ||
ALLOWED_PERNR | = lt_allowed_pernr | |
EXCEPTIONS | ||
ENQEUE_ERROR = 1 | ||
. " CATS_DISPLAY_LIST |
ABAP code using 7.40 inline data declarations to call FM CATS_DISPLAY_LIST
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8."SELECT single WORKITEMID FROM CATSDB INTO @DATA(ld_workitemid). | ||||
DATA(ld_mail) | = 'X'. | |||
DATA(ld_all_days) | = ' '. | |||
DATA(ld_direct_hr) | = ' '. | |||
DATA(ld_partial_approval) | = ' '. | |||
Search for further information about these or an SAP related objects