SAP OIUREP_REP_GEN_JOB_NAME Function Module for Production: MMS-2014 - Generate Job Name
OIUREP_REP_GEN_JOB_NAME is a standard oiurep rep gen job name SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Production: MMS-2014 - Generate Job Name 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 oiurep rep gen job name FM, simply by entering the name OIUREP_REP_GEN_JOB_NAME into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIUREP_MASTER
Program Name: SAPLOIUREP_MASTER
Main Program: SAPLOIUREP_MASTER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIUREP_REP_GEN_JOB_NAME 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 'OIUREP_REP_GEN_JOB_NAME'"Production: MMS-2014 - Generate Job Name.
EXPORTING
PROCESS = "1, 2, or 3 - Extract, Generate, Finalize
AGENCY = "
REP_NAME = "
YEAR = "Fiscal year
MONTH = "Month
IMPORTING
JOBNAME = "Background job name
REG_NUMBER = "Regulatory Reporting Run Number
EXCEPTIONS
GET_NEXT_SYS_NO_ERR = 1
IMPORTING Parameters details for OIUREP_REP_GEN_JOB_NAME
PROCESS - 1, 2, or 3 - Extract, Generate, Finalize
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
AGENCY -
Data type: OIUREP_AGENCYOptional: No
Call by Reference: No ( called with pass by value option)
REP_NAME -
Data type: OIU_REP_REPNAMEOptional: No
Call by Reference: No ( called with pass by value option)
YEAR - Fiscal year
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
MONTH - Month
Data type: OIU_REPMONTHOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIUREP_REP_GEN_JOB_NAME
JOBNAME - Background job name
Data type: TBTCJOB-JOBNAMEOptional: No
Call by Reference: No ( called with pass by value option)
REG_NUMBER - Regulatory Reporting Run Number
Data type: OIUREP_REG_NUMBEROptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
GET_NEXT_SYS_NO_ERR - Invalid next system number returned.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OIUREP_REP_GEN_JOB_NAME 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_jobname | TYPE TBTCJOB-JOBNAME, " | |||
| lv_process | TYPE SY-TABIX, " | |||
| lv_get_next_sys_no_err | TYPE SY, " | |||
| lv_agency | TYPE OIUREP_AGENCY, " | |||
| lv_reg_number | TYPE OIUREP_REG_NUMBER, " | |||
| lv_rep_name | TYPE OIU_REP_REPNAME, " | |||
| lv_year | TYPE GJAHR, " | |||
| lv_month | TYPE OIU_REPMONTH. " |
|   CALL FUNCTION 'OIUREP_REP_GEN_JOB_NAME' "Production: MMS-2014 - Generate Job Name |
| EXPORTING | ||
| PROCESS | = lv_process | |
| AGENCY | = lv_agency | |
| REP_NAME | = lv_rep_name | |
| YEAR | = lv_year | |
| MONTH | = lv_month | |
| IMPORTING | ||
| JOBNAME | = lv_jobname | |
| REG_NUMBER | = lv_reg_number | |
| EXCEPTIONS | ||
| GET_NEXT_SYS_NO_ERR = 1 | ||
| . " OIUREP_REP_GEN_JOB_NAME | ||
ABAP code using 7.40 inline data declarations to call FM OIUREP_REP_GEN_JOB_NAME
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 TBTCJOB INTO @DATA(ld_jobname). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_process). | ||||
Search for further information about these or an SAP related objects