SAP CJDW_GLOBAL_VALUES Function Module for NOTRANSL: Abfragen globale Werte PSP
CJDW_GLOBAL_VALUES is a standard cjdw global values 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: Abfragen globale Werte PSP 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 cjdw global values FM, simply by entering the name CJDW_GLOBAL_VALUES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CJDW
Program Name: SAPLCJDW
Main Program: SAPLCJDW
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CJDW_GLOBAL_VALUES 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 'CJDW_GLOBAL_VALUES'"NOTRANSL: Abfragen globale Werte PSP.
EXPORTING
* V_CHANGELOG = CON_KEEP "Change log indicator active
* V_VERSION_FLAG = CON_KEEP "Indicator version is to be saved
* V_WBS_PARTITION = CON_KEEP "Indicator subproject mode is active
* MEMID_PROJ = ' ' "Memory ID for internal table PROJ record
* MEMID_PRPS = ' ' "Memory ID for internal table PRPS records
* MEMID_PRHI = ' ' "Memory ID for internal table PRHI records
IMPORTING
V_CHANGELOG = "Change log indicator active
V_VERSION_FLAG = "Indicator version is to be saved
V_WBS_PARTITION = "Indicator subproject mode is active
E_BEAKZ_PROJ = "Project definition change indicator
E_MEMID_PROJ = "Memory ID for internal table PROJ record
E_MEMID_PRPS = "Memory ID for internal table PRPS records
E_MEMID_PRHI = "Memory ID for internal table PRHI records
E_PSTAB_TFILL = "Number of entries in document table
E_PSPNR = "
E_TCJ41 = "
E_VSNUMBER = "
V_DISP_ROOT = "Current root of element list (CJDI_DISP,U24)
E_ARC_PROJ = "
V_ENTRY_INDEX = "Index access element in PSTAB
V_IDENT = "Display options for WBS elements
V_PROJ = "Project definition master record
V_PROJ_AUTHC = "X change authorization for project definition
V_PROJ_AUTHD = "X display authorization for project definition
V_PROJ_INPDF = "
V_PSPID = "
IMPORTING Parameters details for CJDW_GLOBAL_VALUES
V_CHANGELOG - Change log indicator active
Data type: RCJ_MARKL-MARKDefault: CON_KEEP
Optional: Yes
Call by Reference: No ( called with pass by value option)
V_VERSION_FLAG - Indicator version is to be saved
Data type: RCJ_MARKL-MARKDefault: CON_KEEP
Optional: Yes
Call by Reference: No ( called with pass by value option)
V_WBS_PARTITION - Indicator subproject mode is active
Data type: RCJ_MARKL-MARKDefault: CON_KEEP
Optional: Yes
Call by Reference: No ( called with pass by value option)
MEMID_PROJ - Memory ID for internal table PROJ record
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MEMID_PRPS - Memory ID for internal table PRPS records
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MEMID_PRHI - Memory ID for internal table PRHI records
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CJDW_GLOBAL_VALUES
V_CHANGELOG - Change log indicator active
Data type: RCJ_MARKL-MARKOptional: No
Call by Reference: No ( called with pass by value option)
V_VERSION_FLAG - Indicator version is to be saved
Data type: RCJ_MARKL-MARKOptional: No
Call by Reference: No ( called with pass by value option)
V_WBS_PARTITION - Indicator subproject mode is active
Data type: RCJ_MARKL-MARKOptional: No
Call by Reference: No ( called with pass by value option)
E_BEAKZ_PROJ - Project definition change indicator
Data type: TC10-TRTYPOptional: No
Call by Reference: No ( called with pass by value option)
E_MEMID_PROJ - Memory ID for internal table PROJ record
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_MEMID_PRPS - Memory ID for internal table PRPS records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_MEMID_PRHI - Memory ID for internal table PRHI records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_PSTAB_TFILL - Number of entries in document table
Data type: SY-TFILLOptional: No
Call by Reference: No ( called with pass by value option)
E_PSPNR -
Data type: PROJ-PSPNROptional: No
Call by Reference: No ( called with pass by value option)
E_TCJ41 -
Data type: TCJ41Optional: No
Call by Reference: No ( called with pass by value option)
E_VSNUMBER -
Data type: VSKOPF-VSNMROptional: No
Call by Reference: No ( called with pass by value option)
V_DISP_ROOT - Current root of element list (CJDI_DISP,U24)
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
E_ARC_PROJ -
Data type: PROJOptional: No
Call by Reference: No ( called with pass by value option)
V_ENTRY_INDEX - Index access element in PSTAB
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
V_IDENT - Display options for WBS elements
Data type: TCJ41-IDENTOptional: No
Call by Reference: No ( called with pass by value option)
V_PROJ - Project definition master record
Data type: PROJOptional: No
Call by Reference: No ( called with pass by value option)
V_PROJ_AUTHC - X change authorization for project definition
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
V_PROJ_AUTHD - X display authorization for project definition
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
V_PROJ_INPDF -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
V_PSPID -
Data type: PROJ-PSPIDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CJDW_GLOBAL_VALUES 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_v_changelog | TYPE RCJ_MARKL-MARK, " | |||
| lv_v_changelog | TYPE RCJ_MARKL-MARK, " CON_KEEP | |||
| lv_v_version_flag | TYPE RCJ_MARKL-MARK, " | |||
| lv_v_wbs_partition | TYPE RCJ_MARKL-MARK, " | |||
| lv_e_beakz_proj | TYPE TC10-TRTYP, " | |||
| lv_e_memid_proj | TYPE TC10, " | |||
| lv_e_memid_prps | TYPE TC10, " | |||
| lv_e_memid_prhi | TYPE TC10, " | |||
| lv_e_pstab_tfill | TYPE SY-TFILL, " | |||
| lv_e_pspnr | TYPE PROJ-PSPNR, " | |||
| lv_e_tcj41 | TYPE TCJ41, " | |||
| lv_e_vsnumber | TYPE VSKOPF-VSNMR, " | |||
| lv_v_disp_root | TYPE SY-TABIX, " | |||
| lv_v_version_flag | TYPE RCJ_MARKL-MARK, " CON_KEEP | |||
| lv_e_arc_proj | TYPE PROJ, " | |||
| lv_v_entry_index | TYPE SY-TABIX, " | |||
| lv_v_wbs_partition | TYPE RCJ_MARKL-MARK, " CON_KEEP | |||
| lv_v_ident | TYPE TCJ41-IDENT, " | |||
| lv_memid_proj | TYPE TCJ41, " SPACE | |||
| lv_v_proj | TYPE PROJ, " | |||
| lv_memid_prps | TYPE PROJ, " SPACE | |||
| lv_memid_prhi | TYPE PROJ, " SPACE | |||
| lv_v_proj_authc | TYPE PROJ, " | |||
| lv_v_proj_authd | TYPE PROJ, " | |||
| lv_v_proj_inpdf | TYPE PROJ, " | |||
| lv_v_pspid | TYPE PROJ-PSPID. " |
|   CALL FUNCTION 'CJDW_GLOBAL_VALUES' "NOTRANSL: Abfragen globale Werte PSP |
| EXPORTING | ||
| V_CHANGELOG | = lv_v_changelog | |
| V_VERSION_FLAG | = lv_v_version_flag | |
| V_WBS_PARTITION | = lv_v_wbs_partition | |
| MEMID_PROJ | = lv_memid_proj | |
| MEMID_PRPS | = lv_memid_prps | |
| MEMID_PRHI | = lv_memid_prhi | |
| IMPORTING | ||
| V_CHANGELOG | = lv_v_changelog | |
| V_VERSION_FLAG | = lv_v_version_flag | |
| V_WBS_PARTITION | = lv_v_wbs_partition | |
| E_BEAKZ_PROJ | = lv_e_beakz_proj | |
| E_MEMID_PROJ | = lv_e_memid_proj | |
| E_MEMID_PRPS | = lv_e_memid_prps | |
| E_MEMID_PRHI | = lv_e_memid_prhi | |
| E_PSTAB_TFILL | = lv_e_pstab_tfill | |
| E_PSPNR | = lv_e_pspnr | |
| E_TCJ41 | = lv_e_tcj41 | |
| E_VSNUMBER | = lv_e_vsnumber | |
| V_DISP_ROOT | = lv_v_disp_root | |
| E_ARC_PROJ | = lv_e_arc_proj | |
| V_ENTRY_INDEX | = lv_v_entry_index | |
| V_IDENT | = lv_v_ident | |
| V_PROJ | = lv_v_proj | |
| V_PROJ_AUTHC | = lv_v_proj_authc | |
| V_PROJ_AUTHD | = lv_v_proj_authd | |
| V_PROJ_INPDF | = lv_v_proj_inpdf | |
| V_PSPID | = lv_v_pspid | |
| . " CJDW_GLOBAL_VALUES | ||
ABAP code using 7.40 inline data declarations to call FM CJDW_GLOBAL_VALUES
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 MARK FROM RCJ_MARKL INTO @DATA(ld_v_changelog). | ||||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_v_changelog). | ||||
| DATA(ld_v_changelog) | = CON_KEEP. | |||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_v_version_flag). | ||||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_v_wbs_partition). | ||||
| "SELECT single TRTYP FROM TC10 INTO @DATA(ld_e_beakz_proj). | ||||
| "SELECT single TFILL FROM SY INTO @DATA(ld_e_pstab_tfill). | ||||
| "SELECT single PSPNR FROM PROJ INTO @DATA(ld_e_pspnr). | ||||
| "SELECT single VSNMR FROM VSKOPF INTO @DATA(ld_e_vsnumber). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_v_disp_root). | ||||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_v_version_flag). | ||||
| DATA(ld_v_version_flag) | = CON_KEEP. | |||
| "SELECT single TABIX FROM SY INTO @DATA(ld_v_entry_index). | ||||
| "SELECT single MARK FROM RCJ_MARKL INTO @DATA(ld_v_wbs_partition). | ||||
| DATA(ld_v_wbs_partition) | = CON_KEEP. | |||
| "SELECT single IDENT FROM TCJ41 INTO @DATA(ld_v_ident). | ||||
| DATA(ld_memid_proj) | = ' '. | |||
| DATA(ld_memid_prps) | = ' '. | |||
| DATA(ld_memid_prhi) | = ' '. | |||
| "SELECT single PSPID FROM PROJ INTO @DATA(ld_v_pspid). | ||||
Search for further information about these or an SAP related objects