SAP CNPB_W_REFRESH_WORKLIST_TREE Function Module for NOTRANSL: Stellt die Baumstruktur des AV für die graph. Anzeige zur Verfüg









CNPB_W_REFRESH_WORKLIST_TREE is a standard cnpb w refresh worklist tree 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: Stellt die Baumstruktur des AV für die graph. Anzeige zur Verfüg 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 cnpb w refresh worklist tree FM, simply by entering the name CNPB_W_REFRESH_WORKLIST_TREE into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNPB_W
Program Name: SAPLCNPB_W
Main Program: SAPLCNPB_W
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CNPB_W_REFRESH_WORKLIST_TREE 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 'CNPB_W_REFRESH_WORKLIST_TREE'"NOTRANSL: Stellt die Baumstruktur des AV für die graph. Anzeige zur Verfüg
EXPORTING
* I_EXPAND_ALL_NODES = '' "Single-Character Indicator
* I_INSERT_NODE = '' "Single-Character Indicator

EXCEPTIONS
FAILED = 1 COLUMN_EXISTS = 10 TOO_MANY_COLUMNS = 11 ILLEGAL_ALIGNMENT = 12 DIFFERENT_COLUMN_TYPES = 13 PREDECESSOR_COLUMN_NOT = 14 NO_OBJECTS_FOUND = 15 ILLEGAL_LEVEL_COUNT = 16 START_COLUMN_NOT_FOUND = 17 END_COLUMN_NOT_FOUND = 18 START_COLUMN_IN_HIERARCHY = 19 CNTL_SYSTEM_ERROR = 2 END_COLUMN_IN_HIERARCHY = 20 START_COLUMN_EMPTY = 21 NO_EVENT_HANDLER = 22 CREATE_ERROR = 3 ILLEGAL_NODE_SELECTION_MODE = 4 ILLEGAL_COLUMN_NAME = 5 ERROR_IN_TABLES = 6 DP_ERROR = 7 TABLE_STRUCTURE_NAME_NOT_FOUND = 8 INCONSISTENT_IMPORT_PARAMETERS = 9
.



IMPORTING Parameters details for CNPB_W_REFRESH_WORKLIST_TREE

I_EXPAND_ALL_NODES - Single-Character Indicator

Data type: CHAR1
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_INSERT_NODE - Single-Character Indicator

Data type: CHAR1
Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COLUMN_EXISTS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TOO_MANY_COLUMNS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_ALIGNMENT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DIFFERENT_COLUMN_TYPES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PREDECESSOR_COLUMN_NOT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_OBJECTS_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_LEVEL_COUNT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

START_COLUMN_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

END_COLUMN_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

START_COLUMN_IN_HIERARCHY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CNTL_SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

END_COLUMN_IN_HIERARCHY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

START_COLUMN_EMPTY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_EVENT_HANDLER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CREATE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_NODE_SELECTION_MODE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_COLUMN_NAME -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_IN_TABLES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DP_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLE_STRUCTURE_NAME_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INCONSISTENT_IMPORT_PARAMETERS -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CNPB_W_REFRESH_WORKLIST_TREE 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_failed  TYPE STRING, "   
lv_i_expand_all_nodes  TYPE CHAR1, "   ''
lv_column_exists  TYPE CHAR1, "   
lv_too_many_columns  TYPE CHAR1, "   
lv_illegal_alignment  TYPE CHAR1, "   
lv_different_column_types  TYPE CHAR1, "   
lv_predecessor_column_not  TYPE CHAR1, "   
lv_no_objects_found  TYPE CHAR1, "   
lv_illegal_level_count  TYPE CHAR1, "   
lv_start_column_not_found  TYPE CHAR1, "   
lv_end_column_not_found  TYPE CHAR1, "   
lv_start_column_in_hierarchy  TYPE CHAR1, "   
lv_i_insert_node  TYPE CHAR1, "   ''
lv_cntl_system_error  TYPE CHAR1, "   
lv_end_column_in_hierarchy  TYPE CHAR1, "   
lv_start_column_empty  TYPE CHAR1, "   
lv_no_event_handler  TYPE CHAR1, "   
lv_create_error  TYPE CHAR1, "   
lv_illegal_node_selection_mode  TYPE CHAR1, "   
lv_illegal_column_name  TYPE CHAR1, "   
lv_error_in_tables  TYPE CHAR1, "   
lv_dp_error  TYPE CHAR1, "   
lv_table_structure_name_not_found  TYPE CHAR1, "   
lv_inconsistent_import_parameters  TYPE CHAR1. "   

  CALL FUNCTION 'CNPB_W_REFRESH_WORKLIST_TREE'  "NOTRANSL: Stellt die Baumstruktur des AV für die graph. Anzeige zur Verfüg
    EXPORTING
         I_EXPAND_ALL_NODES = lv_i_expand_all_nodes
         I_INSERT_NODE = lv_i_insert_node
    EXCEPTIONS
        FAILED = 1
        COLUMN_EXISTS = 10
        TOO_MANY_COLUMNS = 11
        ILLEGAL_ALIGNMENT = 12
        DIFFERENT_COLUMN_TYPES = 13
        PREDECESSOR_COLUMN_NOT = 14
        NO_OBJECTS_FOUND = 15
        ILLEGAL_LEVEL_COUNT = 16
        START_COLUMN_NOT_FOUND = 17
        END_COLUMN_NOT_FOUND = 18
        START_COLUMN_IN_HIERARCHY = 19
        CNTL_SYSTEM_ERROR = 2
        END_COLUMN_IN_HIERARCHY = 20
        START_COLUMN_EMPTY = 21
        NO_EVENT_HANDLER = 22
        CREATE_ERROR = 3
        ILLEGAL_NODE_SELECTION_MODE = 4
        ILLEGAL_COLUMN_NAME = 5
        ERROR_IN_TABLES = 6
        DP_ERROR = 7
        TABLE_STRUCTURE_NAME_NOT_FOUND = 8
        INCONSISTENT_IMPORT_PARAMETERS = 9
. " CNPB_W_REFRESH_WORKLIST_TREE




ABAP code using 7.40 inline data declarations to call FM CNPB_W_REFRESH_WORKLIST_TREE

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.

 
DATA(ld_i_expand_all_nodes) = ''.
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_insert_node) = ''.
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!