SAP CJDW_SELECT_BASIC_DATA Function Module for NOTRANSL: Selektion der Grunddaten Projektstrukturplan









CJDW_SELECT_BASIC_DATA is a standard cjdw select basic data 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: Selektion der Grunddaten Projektstrukturplan 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 select basic data FM, simply by entering the name CJDW_SELECT_BASIC_DATA 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_SELECT_BASIC_DATA 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_SELECT_BASIC_DATA'"NOTRANSL: Selektion der Grunddaten Projektstrukturplan
EXPORTING
* APPEND = ' ' "Complete document table (no reinitialization)
* ENQUEUE = ' ' "X = Block (for change)
* ENTRY_ELEMENT = ' ' "Top Element
* FLG_SUBPR = ' ' "Select subproject only
* MEMID_PROJ = CON_MEMID_PROJ "Memory ID for PROJ (-> internal table INT_PROJ)
* MEMID_PRPS = CON_MEMID_PRPS "Memory ID for internal table PRPS records
* NO_SUBITEMS = ' ' "Elements under initial element not selected
* PROJECT = ' ' "Project number

IMPORTING
E_INDENT = "X = Identification is indented
E_MEMID_PRPS = "Memory ID for internal table PRPS records
E_INPUT_PROJ = "Authorization for changing proj
E_INPUT_PRPS = "Authorization for changing PRPS
E_OUTPUT_PROJ = "Authorization for displaying proj
E_OUTPUT_PRPS = "Authorization for displaying PRPS
E_PROJ = "Project definition
E_PRPS = "Structure element
E_TCJ41 = "Profile
E_MEMID_PROJ = "Memory ID for PROJ (-> internal table INT_PROJ)

EXCEPTIONS
ENTRY_ELEMENT_NOT_FOUND = 1 MISSING_PARAMETER = 2 PROJECT_NOT_FOUND = 3 PROJECT_INACT = 4 ALE_DISTRIBUTED = 5
.



IMPORTING Parameters details for CJDW_SELECT_BASIC_DATA

APPEND - Complete document table (no reinitialization)

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

ENQUEUE - X = Block (for change)

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

ENTRY_ELEMENT - Top Element

Data type: PRPS-POSID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_SUBPR - Select subproject only

Data type: RCWBS-SEL01
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MEMID_PROJ - Memory ID for PROJ (-> internal table INT_PROJ)

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

MEMID_PRPS - Memory ID for internal table PRPS records

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

NO_SUBITEMS - Elements under initial element not selected

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

PROJECT - Project number

Data type: PROJ-PSPID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CJDW_SELECT_BASIC_DATA

E_INDENT - X = Identification is indented

Data type: RCWBS-SEL01
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_INPUT_PROJ - Authorization for changing proj

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

E_INPUT_PRPS - Authorization for changing PRPS

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

E_OUTPUT_PROJ - Authorization for displaying proj

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

E_OUTPUT_PRPS - Authorization for displaying PRPS

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

E_PROJ - Project definition

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

E_PRPS - Structure element

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

E_TCJ41 - Profile

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

E_MEMID_PROJ - Memory ID for PROJ (-> internal table INT_PROJ)

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

EXCEPTIONS details

ENTRY_ELEMENT_NOT_FOUND - Initial element does not exist

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

MISSING_PARAMETER - Project or initial element must be specified

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

PROJECT_NOT_FOUND - Project does not exist

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

PROJECT_INACT -

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

ALE_DISTRIBUTED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CJDW_SELECT_BASIC_DATA 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_append  TYPE STRING, "   SPACE
lv_e_indent  TYPE RCWBS-SEL01, "   
lv_entry_element_not_found  TYPE RCWBS, "   
lv_e_memid_prps  TYPE RCWBS, "   
lv_enqueue  TYPE RCWBS, "   SPACE
lv_e_input_proj  TYPE RCWBS-SEL01, "   
lv_missing_parameter  TYPE RCWBS, "   
lv_e_input_prps  TYPE RCWBS-SEL01, "   
lv_entry_element  TYPE PRPS-POSID, "   SPACE
lv_project_not_found  TYPE PRPS, "   
lv_flg_subpr  TYPE RCWBS-SEL01, "   SPACE
lv_e_output_proj  TYPE RCWBS-SEL01, "   
lv_project_inact  TYPE RCWBS, "   
lv_memid_proj  TYPE RCWBS, "   CON_MEMID_PROJ
lv_e_output_prps  TYPE RCWBS-SEL01, "   
lv_ale_distributed  TYPE RCWBS, "   
lv_e_proj  TYPE PROJ, "   
lv_memid_prps  TYPE PROJ, "   CON_MEMID_PRPS
lv_e_prps  TYPE PRPS, "   
lv_no_subitems  TYPE PRPS, "   SPACE
lv_e_tcj41  TYPE TCJ41, "   
lv_project  TYPE PROJ-PSPID, "   SPACE
lv_e_memid_proj  TYPE PROJ. "   

  CALL FUNCTION 'CJDW_SELECT_BASIC_DATA'  "NOTRANSL: Selektion der Grunddaten Projektstrukturplan
    EXPORTING
         APPEND = lv_append
         ENQUEUE = lv_enqueue
         ENTRY_ELEMENT = lv_entry_element
         FLG_SUBPR = lv_flg_subpr
         MEMID_PROJ = lv_memid_proj
         MEMID_PRPS = lv_memid_prps
         NO_SUBITEMS = lv_no_subitems
         PROJECT = lv_project
    IMPORTING
         E_INDENT = lv_e_indent
         E_MEMID_PRPS = lv_e_memid_prps
         E_INPUT_PROJ = lv_e_input_proj
         E_INPUT_PRPS = lv_e_input_prps
         E_OUTPUT_PROJ = lv_e_output_proj
         E_OUTPUT_PRPS = lv_e_output_prps
         E_PROJ = lv_e_proj
         E_PRPS = lv_e_prps
         E_TCJ41 = lv_e_tcj41
         E_MEMID_PROJ = lv_e_memid_proj
    EXCEPTIONS
        ENTRY_ELEMENT_NOT_FOUND = 1
        MISSING_PARAMETER = 2
        PROJECT_NOT_FOUND = 3
        PROJECT_INACT = 4
        ALE_DISTRIBUTED = 5
. " CJDW_SELECT_BASIC_DATA




ABAP code using 7.40 inline data declarations to call FM CJDW_SELECT_BASIC_DATA

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_append) = ' '.
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_e_indent).
 
 
 
DATA(ld_enqueue) = ' '.
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_e_input_proj).
 
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_e_input_prps).
 
"SELECT single POSID FROM PRPS INTO @DATA(ld_entry_element).
DATA(ld_entry_element) = ' '.
 
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_flg_subpr).
DATA(ld_flg_subpr) = ' '.
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_e_output_proj).
 
 
DATA(ld_memid_proj) = CON_MEMID_PROJ.
 
"SELECT single SEL01 FROM RCWBS INTO @DATA(ld_e_output_prps).
 
 
 
DATA(ld_memid_prps) = CON_MEMID_PRPS.
 
 
DATA(ld_no_subitems) = ' '.
 
 
"SELECT single PSPID FROM PROJ INTO @DATA(ld_project).
DATA(ld_project) = ' '.
 
 


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!