SAP CNV_MBT_PC_PROG_START_BGR Function Module for Schedule background job in a specified system / immediate start possible









CNV_MBT_PC_PROG_START_BGR is a standard cnv mbt pc prog start bgr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Schedule background job in a specified system / immediate start possible 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 cnv mbt pc prog start bgr FM, simply by entering the name CNV_MBT_PC_PROG_START_BGR into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNV_MBT_PC
Program Name: SAPLCNV_MBT_PC
Main Program: SAPLCNV_MBT_PC
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CNV_MBT_PC_PROG_START_BGR 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 'CNV_MBT_PC_PROG_START_BGR'"Schedule background job in a specified system / immediate start possible
EXPORTING
PROGNAME = "
* JOB_NAME = "

IMPORTING
JOBNAME = "
JOBCOUNT = "

TABLES
LT_PARAMS = "

EXCEPTIONS
PROGRAM_DOES_NOT_EXIST = 1 NO_AUTHORITY = 2 SCHEDULING_ERROR = 3
.



IMPORTING Parameters details for CNV_MBT_PC_PROG_START_BGR

PROGNAME -

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

JOB_NAME -

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

EXPORTING Parameters details for CNV_MBT_PC_PROG_START_BGR

JOBNAME -

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

JOBCOUNT -

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

TABLES Parameters details for CNV_MBT_PC_PROG_START_BGR

LT_PARAMS -

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

EXCEPTIONS details

PROGRAM_DOES_NOT_EXIST -

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

NO_AUTHORITY -

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

SCHEDULING_ERROR -

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

Copy and paste ABAP code example for CNV_MBT_PC_PROG_START_BGR 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 TBTCO-JOBNAME, "   
lv_progname  TYPE CNVMBTACTIVITY-PROGNAME, "   
lt_lt_params  TYPE STANDARD TABLE OF RSPARAMS, "   
lv_program_does_not_exist  TYPE RSPARAMS, "   
lv_jobcount  TYPE TBTCO-JOBCOUNT, "   
lv_job_name  TYPE TBTCO-JOBNAME, "   
lv_no_authority  TYPE TBTCO, "   
lv_scheduling_error  TYPE TBTCO. "   

  CALL FUNCTION 'CNV_MBT_PC_PROG_START_BGR'  "Schedule background job in a specified system / immediate start possible
    EXPORTING
         PROGNAME = lv_progname
         JOB_NAME = lv_job_name
    IMPORTING
         JOBNAME = lv_jobname
         JOBCOUNT = lv_jobcount
    TABLES
         LT_PARAMS = lt_lt_params
    EXCEPTIONS
        PROGRAM_DOES_NOT_EXIST = 1
        NO_AUTHORITY = 2
        SCHEDULING_ERROR = 3
. " CNV_MBT_PC_PROG_START_BGR




ABAP code using 7.40 inline data declarations to call FM CNV_MBT_PC_PROG_START_BGR

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_jobname).
 
"SELECT single PROGNAME FROM CNVMBTACTIVITY INTO @DATA(ld_progname).
 
 
 
"SELECT single JOBCOUNT FROM TBTCO INTO @DATA(ld_jobcount).
 
"SELECT single JOBNAME FROM TBTCO INTO @DATA(ld_job_name).
 
 
 


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!