SAP CCDSNU_JCL_SUBMIT_SYNCH Function Module for Synch. JCL Job submission









CCDSNU_JCL_SUBMIT_SYNCH is a standard ccdsnu jcl submit synch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Synch. JCL Job submission 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 ccdsnu jcl submit synch FM, simply by entering the name CCDSNU_JCL_SUBMIT_SYNCH into the relevant SAP transaction such as SE37 or SE38.

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



Function CCDSNU_JCL_SUBMIT_SYNCH 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 'CCDSNU_JCL_SUBMIT_SYNCH'"Synch. JCL Job submission
EXPORTING
* FORCE_ADMIN_SP = ABAP_FALSE "
* REMOTE_DBCON = "Logical name for a database connection

IMPORTING
RETCODE = "Return code of stored procedure
MESSAGE = "Area of the CC stored procedures output values
JCL_MAX_RC = "Return code of stored procedure

TABLES
JS_TBL = "Structure of global temp input table DSNACC.MO_TBL
RESULT = "Output of JCL-Job

EXCEPTIONS
NOT_AUTHORIZED = 1 NO_INPUT_TABLES = 10 SQL_ERROR = 11 JOB_HELD = 12 ENCRYPT_USER_FAILED = 13 DECRYPT_PASSW_FAILED = 14 NO_TSO_USER = 15 ERROR_IN_CHECK_VERSION = 2 LESS_THAN_V8 = 3 STOPROC_ABORTED = 4 DSNACCJS_NOT_INSTALLED = 5 DSNACCJQ_NOT_INSTALLED = 6 DSNACCJP_NOT_INSTALLED = 7 DSNACCJF_NOT_INSTALLED = 8 CREATE_DATABASE_FAILED = 9
.



IMPORTING Parameters details for CCDSNU_JCL_SUBMIT_SYNCH

FORCE_ADMIN_SP -

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

REMOTE_DBCON - Logical name for a database connection

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

EXPORTING Parameters details for CCDSNU_JCL_SUBMIT_SYNCH

RETCODE - Return code of stored procedure

Data type: DB2CCRETURN
Optional: No
Call by Reference: Yes

MESSAGE - Area of the CC stored procedures output values

Data type: DB2CCMTXT
Optional: No
Call by Reference: Yes

JCL_MAX_RC - Return code of stored procedure

Data type: DB2CCRETURN
Optional: No
Call by Reference: Yes

TABLES Parameters details for CCDSNU_JCL_SUBMIT_SYNCH

JS_TBL - Structure of global temp input table DSNACC.MO_TBL

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

RESULT - Output of JCL-Job

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

EXCEPTIONS details

NOT_AUTHORIZED - Authorization profile S_DB2_DBADM needed to execute

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

NO_INPUT_TABLES - The required global temp tables are not installed.

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

SQL_ERROR - EXEC SQL resulted in error.

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

JOB_HELD - Job is in INPUT or HOLD state for more than an hour

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

ENCRYPT_USER_FAILED - Encryption of TSO-user name failed

Data type:
Optional: No
Call by Reference: Yes

DECRYPT_PASSW_FAILED - Decryption of TSO-passwd failed

Data type:
Optional: No
Call by Reference: Yes

NO_TSO_USER - Invoking user has not saved his TSO profile in DB2J

Data type:
Optional: No
Call by Reference: Yes

ERROR_IN_CHECK_VERSION - Error in Function DBSYCHK_COMPARE_VERSION

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

LESS_THAN_V8 - The DB version is less than V7.1 => DSNACCOR is not available

Data type:
Optional: No
Call by Reference: Yes

STOPROC_ABORTED - Call of stored procedure didn't work

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

DSNACCJS_NOT_INSTALLED - DSNACCJS is not found in SYSIBM.SYSROUTINES

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

DSNACCJQ_NOT_INSTALLED - DSNACCJQ is not found in SYSIBM.SYSROUTINES

Data type:
Optional: No
Call by Reference: Yes

DSNACCJP_NOT_INSTALLED - DSNACCJP is not found in SYSIBM.SYSROUTINES

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

DSNACCJF_NOT_INSTALLED - DSNACCJF is not found in SYSIBM.SYSROUTINES

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

CREATE_DATABASE_FAILED - Creation of TEMP database or tablespace failed.

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

Copy and paste ABAP code example for CCDSNU_JCL_SUBMIT_SYNCH 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:
lt_js_tbl  TYPE STANDARD TABLE OF DB2CCJSTBL, "   
lv_retcode  TYPE DB2CCRETURN, "   
lv_force_admin_sp  TYPE ABAP_BOOL, "   ABAP_FALSE
lv_not_authorized  TYPE ABAP_BOOL, "   
lv_no_input_tables  TYPE ABAP_BOOL, "   
lv_sql_error  TYPE ABAP_BOOL, "   
lv_job_held  TYPE ABAP_BOOL, "   
lv_encrypt_user_failed  TYPE ABAP_BOOL, "   
lv_decrypt_passw_failed  TYPE ABAP_BOOL, "   
lv_no_tso_user  TYPE ABAP_BOOL, "   
lt_result  TYPE STANDARD TABLE OF DB2CCJFOUT, "   
lv_message  TYPE DB2CCMTXT, "   
lv_remote_dbcon  TYPE DBCON_NAME, "   
lv_error_in_check_version  TYPE DBCON_NAME, "   
lv_jcl_max_rc  TYPE DB2CCRETURN, "   
lv_less_than_v8  TYPE DB2CCRETURN, "   
lv_stoproc_aborted  TYPE DB2CCRETURN, "   
lv_dsnaccjs_not_installed  TYPE DB2CCRETURN, "   
lv_dsnaccjq_not_installed  TYPE DB2CCRETURN, "   
lv_dsnaccjp_not_installed  TYPE DB2CCRETURN, "   
lv_dsnaccjf_not_installed  TYPE DB2CCRETURN, "   
lv_create_database_failed  TYPE DB2CCRETURN. "   

  CALL FUNCTION 'CCDSNU_JCL_SUBMIT_SYNCH'  "Synch. JCL Job submission
    EXPORTING
         FORCE_ADMIN_SP = lv_force_admin_sp
         REMOTE_DBCON = lv_remote_dbcon
    IMPORTING
         RETCODE = lv_retcode
         MESSAGE = lv_message
         JCL_MAX_RC = lv_jcl_max_rc
    TABLES
         JS_TBL = lt_js_tbl
         RESULT = lt_result
    EXCEPTIONS
        NOT_AUTHORIZED = 1
        NO_INPUT_TABLES = 10
        SQL_ERROR = 11
        JOB_HELD = 12
        ENCRYPT_USER_FAILED = 13
        DECRYPT_PASSW_FAILED = 14
        NO_TSO_USER = 15
        ERROR_IN_CHECK_VERSION = 2
        LESS_THAN_V8 = 3
        STOPROC_ABORTED = 4
        DSNACCJS_NOT_INSTALLED = 5
        DSNACCJQ_NOT_INSTALLED = 6
        DSNACCJP_NOT_INSTALLED = 7
        DSNACCJF_NOT_INSTALLED = 8
        CREATE_DATABASE_FAILED = 9
. " CCDSNU_JCL_SUBMIT_SYNCH




ABAP code using 7.40 inline data declarations to call FM CCDSNU_JCL_SUBMIT_SYNCH

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_force_admin_sp) = ABAP_FALSE.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!