SAP CJDB_SAVE_SELECTION_VERSION Function Module for To save selection versions of LDB PSJ









CJDB_SAVE_SELECTION_VERSION is a standard cjdb save selection version SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for To save selection versions of LDB PSJ 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 cjdb save selection version FM, simply by entering the name CJDB_SAVE_SELECTION_VERSION into the relevant SAP transaction such as SE37 or SE38.

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



Function CJDB_SAVE_SELECTION_VERSION 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 'CJDB_SAVE_SELECTION_VERSION'"To save selection versions of LDB PSJ
EXPORTING
* I_FLG_NO_POPUP = ' ' "
* I_FLG_BEFORE_SEL = ' ' "
* I_FLG_AUFRUF_AUTO = 'X' "
* I_AUFRUF = '1' "
* I_SETXT = ' ' "
* I_DEL_TIME = ' ' "
* I_PROTECT = ' ' "
* I_CALLING_REPORT = ' ' "
* I_GEN_REPORT = ' ' "

IMPORTING
E_SELVS = "
E_SELKY = "
E_CNDBDIR = "

EXCEPTIONS
DIR_ENTRY_NOT_SAVED = 1 NO_TITLE = 2 SAVE_CANCELLED = 3
.



IMPORTING Parameters details for CJDB_SAVE_SELECTION_VERSION

I_FLG_NO_POPUP -

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

I_FLG_BEFORE_SEL -

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

I_FLG_AUFRUF_AUTO -

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

I_AUFRUF -

Data type: PSJ_MEM_ID-AUFRUF
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SETXT -

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

I_DEL_TIME -

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

I_PROTECT -

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

I_CALLING_REPORT -

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

I_GEN_REPORT -

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

EXPORTING Parameters details for CJDB_SAVE_SELECTION_VERSION

E_SELVS -

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

E_SELKY -

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

E_CNDBDIR -

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

EXCEPTIONS details

DIR_ENTRY_NOT_SAVED -

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

NO_TITLE -

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

SAVE_CANCELLED - Save canceled

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

Copy and paste ABAP code example for CJDB_SAVE_SELECTION_VERSION 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_e_selvs  TYPE CNDBDIR-SETXT, "   
lv_i_flg_no_popup  TYPE C, "   SPACE
lv_dir_entry_not_saved  TYPE C, "   
lv_e_selky  TYPE C, "   
lv_no_title  TYPE C, "   
lv_i_flg_before_sel  TYPE C, "   SPACE
lv_e_cndbdir  TYPE CNDBDIR, "   
lv_save_cancelled  TYPE CNDBDIR, "   
lv_i_flg_aufruf_auto  TYPE C, "   'X'
lv_i_aufruf  TYPE PSJ_MEM_ID-AUFRUF, "   '1'
lv_i_setxt  TYPE CNDBDIR-SETXT, "   SPACE
lv_i_del_time  TYPE CNDBDIR-DEL_TIME, "   ' '
lv_i_protect  TYPE CNDBDIR-PROTECT, "   SPACE
lv_i_calling_report  TYPE RS38M-PROGRAMM, "   SPACE
lv_i_gen_report  TYPE RS38M-PROGRAMM. "   SPACE

  CALL FUNCTION 'CJDB_SAVE_SELECTION_VERSION'  "To save selection versions of LDB PSJ
    EXPORTING
         I_FLG_NO_POPUP = lv_i_flg_no_popup
         I_FLG_BEFORE_SEL = lv_i_flg_before_sel
         I_FLG_AUFRUF_AUTO = lv_i_flg_aufruf_auto
         I_AUFRUF = lv_i_aufruf
         I_SETXT = lv_i_setxt
         I_DEL_TIME = lv_i_del_time
         I_PROTECT = lv_i_protect
         I_CALLING_REPORT = lv_i_calling_report
         I_GEN_REPORT = lv_i_gen_report
    IMPORTING
         E_SELVS = lv_e_selvs
         E_SELKY = lv_e_selky
         E_CNDBDIR = lv_e_cndbdir
    EXCEPTIONS
        DIR_ENTRY_NOT_SAVED = 1
        NO_TITLE = 2
        SAVE_CANCELLED = 3
. " CJDB_SAVE_SELECTION_VERSION




ABAP code using 7.40 inline data declarations to call FM CJDB_SAVE_SELECTION_VERSION

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 SETXT FROM CNDBDIR INTO @DATA(ld_e_selvs).
 
DATA(ld_i_flg_no_popup) = ' '.
 
 
 
 
DATA(ld_i_flg_before_sel) = ' '.
 
 
 
DATA(ld_i_flg_aufruf_auto) = 'X'.
 
"SELECT single AUFRUF FROM PSJ_MEM_ID INTO @DATA(ld_i_aufruf).
DATA(ld_i_aufruf) = '1'.
 
"SELECT single SETXT FROM CNDBDIR INTO @DATA(ld_i_setxt).
DATA(ld_i_setxt) = ' '.
 
"SELECT single DEL_TIME FROM CNDBDIR INTO @DATA(ld_i_del_time).
DATA(ld_i_del_time) = ' '.
 
"SELECT single PROTECT FROM CNDBDIR INTO @DATA(ld_i_protect).
DATA(ld_i_protect) = ' '.
 
"SELECT single PROGRAMM FROM RS38M INTO @DATA(ld_i_calling_report).
DATA(ld_i_calling_report) = ' '.
 
"SELECT single PROGRAMM FROM RS38M INTO @DATA(ld_i_gen_report).
DATA(ld_i_gen_report) = ' '.
 


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!