SAP EMMA_PREPARE_TCODE_JOBRUN Function Module for
EMMA_PREPARE_TCODE_JOBRUN is a standard emma prepare tcode jobrun SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 emma prepare tcode jobrun FM, simply by entering the name EMMA_PREPARE_TCODE_JOBRUN into the relevant SAP transaction such as SE37 or SE38.
Function Group: EMMA_DATA_PROCESS
Program Name: SAPLEMMA_DATA_PROCESS
Main Program: SAPLEMMA_DATA_PROCESS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EMMA_PREPARE_TCODE_JOBRUN 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 'EMMA_PREPARE_TCODE_JOBRUN'".
EXPORTING
* IT_TCODE = "
* IT_TIME = "
* IT_USER = "
* IT_DATE = "
* IT_BPCODE = "
* IT_BPAREA = "
* IT_RUNID = "
* IT_EXTRUNID = "
* IV_PREPARE = "
* IV_PREPCASE = "
IMPORTING
ET_EMMA_HDR = "
EXCEPTIONS
NO_JOBFOUND = 1
IMPORTING Parameters details for EMMA_PREPARE_TCODE_JOBRUN
IT_TCODE -
Data type: EMMA_TCODE_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_TIME -
Data type: EMMA_TIME_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_USER -
Data type: EMMA_USER_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_DATE -
Data type: EMMA_DATE_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_BPCODE -
Data type: EMMA_BPCODE_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_BPAREA -
Data type: EMMA_BPAREA_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_RUNID -
Data type: EMMA_RUNID_RANGE_TABOptional: Yes
Call by Reference: Yes
IT_EXTRUNID -
Data type: EMMA_EXTRUNID_RANGE_TABOptional: Yes
Call by Reference: Yes
IV_PREPARE -
Data type: EMMA_PREPAREOptional: Yes
Call by Reference: Yes
IV_PREPCASE -
Data type: EMMA_PREPCASEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EMMA_PREPARE_TCODE_JOBRUN
ET_EMMA_HDR -
Data type: EMMA_HDR_ALV_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_JOBFOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for EMMA_PREPARE_TCODE_JOBRUN 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_it_tcode | TYPE EMMA_TCODE_RANGE_TAB, " | |||
| lv_et_emma_hdr | TYPE EMMA_HDR_ALV_TAB, " | |||
| lv_no_jobfound | TYPE EMMA_HDR_ALV_TAB, " | |||
| lv_it_time | TYPE EMMA_TIME_RANGE_TAB, " | |||
| lv_it_user | TYPE EMMA_USER_RANGE_TAB, " | |||
| lv_it_date | TYPE EMMA_DATE_RANGE_TAB, " | |||
| lv_it_bpcode | TYPE EMMA_BPCODE_RANGE_TAB, " | |||
| lv_it_bparea | TYPE EMMA_BPAREA_RANGE_TAB, " | |||
| lv_it_runid | TYPE EMMA_RUNID_RANGE_TAB, " | |||
| lv_it_extrunid | TYPE EMMA_EXTRUNID_RANGE_TAB, " | |||
| lv_iv_prepare | TYPE EMMA_PREPARE, " | |||
| lv_iv_prepcase | TYPE EMMA_PREPCASE. " |
|   CALL FUNCTION 'EMMA_PREPARE_TCODE_JOBRUN' " |
| EXPORTING | ||
| IT_TCODE | = lv_it_tcode | |
| IT_TIME | = lv_it_time | |
| IT_USER | = lv_it_user | |
| IT_DATE | = lv_it_date | |
| IT_BPCODE | = lv_it_bpcode | |
| IT_BPAREA | = lv_it_bparea | |
| IT_RUNID | = lv_it_runid | |
| IT_EXTRUNID | = lv_it_extrunid | |
| IV_PREPARE | = lv_iv_prepare | |
| IV_PREPCASE | = lv_iv_prepcase | |
| IMPORTING | ||
| ET_EMMA_HDR | = lv_et_emma_hdr | |
| EXCEPTIONS | ||
| NO_JOBFOUND = 1 | ||
| . " EMMA_PREPARE_TCODE_JOBRUN | ||
ABAP code using 7.40 inline data declarations to call FM EMMA_PREPARE_TCODE_JOBRUN
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.Search for further information about these or an SAP related objects