SAP Function Modules

CJSD_SELECT_BASIC_DATA SAP Function module







CJSD_SELECT_BASIC_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CJSD_SELECT_BASIC_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CJSD
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CJSD_SELECT_BASIC_DATA - CJSD SELECT BASIC DATA





CALL FUNCTION 'CJSD_SELECT_BASIC_DATA' "
* EXPORTING
*   append = SPACE              "
*   enqueue = SPACE             "
*   entry_element = SPACE       " prpss-posid
*   memid_proj = CON_MEMID_PROJ  "
*   memid_prps = CON_MEMID_PRPS  "
*   no_subitems = SPACE         "
*   project = SPACE             " projs-pspid
  IMPORTING
    e_indent =                  " rcwbs-sel01
    e_input_proj =              " rcwbs-sel01
    e_input_prps =              " rcwbs-sel01
    e_output_proj =             " rcwbs-sel01
    e_output_prps =             " rcwbs-sel01
    e_proj =                    " projs
    e_prps =                    " prpss
    e_tcj41 =                   " tcj41
    e_memid_proj =              "
    e_memid_prps =              "
  EXCEPTIONS
    ENTRY_ELEMENT_NOT_FOUND = 1  "
    MISSING_PARAMETER = 2       "
    PROJECT_NOT_FOUND = 3       "
    .  "  CJSD_SELECT_BASIC_DATA

ABAP code example for Function Module CJSD_SELECT_BASIC_DATA





The ABAP code below is a full code listing to execute function module CJSD_SELECT_BASIC_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_indent  TYPE RCWBS-SEL01 ,
ld_e_input_proj  TYPE RCWBS-SEL01 ,
ld_e_input_prps  TYPE RCWBS-SEL01 ,
ld_e_output_proj  TYPE RCWBS-SEL01 ,
ld_e_output_prps  TYPE RCWBS-SEL01 ,
ld_e_proj  TYPE PROJS ,
ld_e_prps  TYPE PRPSS ,
ld_e_tcj41  TYPE TCJ41 ,
ld_e_memid_proj  TYPE STRING ,
ld_e_memid_prps  TYPE STRING .

DATA(ld_append) = 'some text here'.
DATA(ld_enqueue) = 'some text here'.

SELECT single POSID
FROM PRPSS
INTO @DATA(ld_entry_element).

DATA(ld_memid_proj) = 'some text here'.
DATA(ld_memid_prps) = 'some text here'.
DATA(ld_no_subitems) = 'some text here'.

SELECT single PSPID
FROM PROJS
INTO @DATA(ld_project).
. CALL FUNCTION 'CJSD_SELECT_BASIC_DATA' * EXPORTING * append = ld_append * enqueue = ld_enqueue * entry_element = ld_entry_element * memid_proj = ld_memid_proj * memid_prps = ld_memid_prps * no_subitems = ld_no_subitems * project = ld_project IMPORTING e_indent = ld_e_indent e_input_proj = ld_e_input_proj e_input_prps = ld_e_input_prps e_output_proj = ld_e_output_proj e_output_prps = ld_e_output_prps e_proj = ld_e_proj e_prps = ld_e_prps e_tcj41 = ld_e_tcj41 e_memid_proj = ld_e_memid_proj e_memid_prps = ld_e_memid_prps EXCEPTIONS ENTRY_ELEMENT_NOT_FOUND = 1 MISSING_PARAMETER = 2 PROJECT_NOT_FOUND = 3 . " CJSD_SELECT_BASIC_DATA
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_indent  TYPE RCWBS-SEL01 ,
ld_append  TYPE STRING ,
ld_e_input_proj  TYPE RCWBS-SEL01 ,
ld_enqueue  TYPE STRING ,
ld_e_input_prps  TYPE RCWBS-SEL01 ,
ld_entry_element  TYPE PRPSS-POSID ,
ld_e_output_proj  TYPE RCWBS-SEL01 ,
ld_memid_proj  TYPE STRING ,
ld_e_output_prps  TYPE RCWBS-SEL01 ,
ld_memid_prps  TYPE STRING ,
ld_e_proj  TYPE PROJS ,
ld_no_subitems  TYPE STRING ,
ld_e_prps  TYPE PRPSS ,
ld_project  TYPE PROJS-PSPID ,
ld_e_tcj41  TYPE TCJ41 ,
ld_e_memid_proj  TYPE STRING ,
ld_e_memid_prps  TYPE STRING .

ld_append = 'some text here'.
ld_enqueue = 'some text here'.

SELECT single POSID
FROM PRPSS
INTO ld_entry_element.

ld_memid_proj = 'some text here'.
ld_memid_prps = 'some text here'.
ld_no_subitems = 'some text here'.

SELECT single PSPID
FROM PROJS
INTO ld_project.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CJSD_SELECT_BASIC_DATA or its description.