SAP C14H_JOB_START Function Module for NOTRANSL: EHS: Starten eines Jobs im Batch
C14H_JOB_START is a standard c14h job start 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: EHS: Starten eines Jobs im Batch 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 c14h job start FM, simply by entering the name C14H_JOB_START into the relevant SAP transaction such as SE37 or SE38.
Function Group: C14H
Program Name: SAPLC14H
Main Program: SAPLC14H
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function C14H_JOB_START 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 'C14H_JOB_START'"NOTRANSL: EHS: Starten eines Jobs im Batch.
EXPORTING
I_JOBNAME = "
I_REPNAME = "
* I_VARIANT = "
I_STDT = "
IMPORTING
E_JOB_WAS_RELEASED = "
EXCEPTIONS
MISSING_JOBNAME = 1 MISSING_REPNAME = 2 MISSING_VARIANT = 3 ERROR_JOB_OPEN = 4 ERROR_JOB_SUBMIT = 5 ERROR_JOB_CLOSE = 6 GET_PRINT_PARAMETERS = 7
IMPORTING Parameters details for C14H_JOB_START
I_JOBNAME -
Data type: TBTCO-JOBNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_REPNAME -
Data type: TBIST-REPNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_VARIANT -
Data type: TBIST-VARIANTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_STDT -
Data type: TBTCSTRTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for C14H_JOB_START
E_JOB_WAS_RELEASED -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
EXCEPTIONS details
MISSING_JOBNAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_REPNAME -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MISSING_VARIANT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_JOB_OPEN - Error when creating the job
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_JOB_SUBMIT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_JOB_CLOSE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GET_PRINT_PARAMETERS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for C14H_JOB_START 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_i_jobname | TYPE TBTCO-JOBNAME, " | |||
lv_missing_jobname | TYPE TBTCO, " | |||
lv_e_job_was_released | TYPE ESP1_BOOLEAN, " | |||
lv_i_repname | TYPE TBIST-REPNAME, " | |||
lv_missing_repname | TYPE TBIST, " | |||
lv_i_variant | TYPE TBIST-VARIANT, " | |||
lv_missing_variant | TYPE TBIST, " | |||
lv_i_stdt | TYPE TBTCSTRT, " | |||
lv_error_job_open | TYPE TBTCSTRT, " | |||
lv_error_job_submit | TYPE TBTCSTRT, " | |||
lv_error_job_close | TYPE TBTCSTRT, " | |||
lv_get_print_parameters | TYPE TBTCSTRT. " |
  CALL FUNCTION 'C14H_JOB_START' "NOTRANSL: EHS: Starten eines Jobs im Batch |
EXPORTING | ||
I_JOBNAME | = lv_i_jobname | |
I_REPNAME | = lv_i_repname | |
I_VARIANT | = lv_i_variant | |
I_STDT | = lv_i_stdt | |
IMPORTING | ||
E_JOB_WAS_RELEASED | = lv_e_job_was_released | |
EXCEPTIONS | ||
MISSING_JOBNAME = 1 | ||
MISSING_REPNAME = 2 | ||
MISSING_VARIANT = 3 | ||
ERROR_JOB_OPEN = 4 | ||
ERROR_JOB_SUBMIT = 5 | ||
ERROR_JOB_CLOSE = 6 | ||
GET_PRINT_PARAMETERS = 7 | ||
. " C14H_JOB_START |
ABAP code using 7.40 inline data declarations to call FM C14H_JOB_START
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 JOBNAME FROM TBTCO INTO @DATA(ld_i_jobname). | ||||
"SELECT single REPNAME FROM TBIST INTO @DATA(ld_i_repname). | ||||
"SELECT single VARIANT FROM TBIST INTO @DATA(ld_i_variant). | ||||
Search for further information about these or an SAP related objects