SUBST_SCHEDULE_GENERATOR_46B is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name SUBST_SCHEDULE_GENERATOR_46B into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
SUGP_46B
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'SUBST_SCHEDULE_GENERATOR_46B' "RFC-enabled FM for scheduling a background job
* EXPORTING
* jobname = SPACE " tbtco-jobname Name of background job that will be started
* repname = SPACE " sy-repid Name of report that will be started
* varname = SPACE " raldb-variant Name of variant for this report
* authcknam = 'DDIC' " tbtcjob-authcknam Name of user under whom report runs
* batchhost = SPACE " tbtco-btcsystem Name of addressed host (see source text!)
* language = SY-LANGU " sy-langu Language in which job should run
* priparams = SPACE " pri_params Printer parameters for spooler
* iv_schedever = SPACE " gsugi_pa-w_tadir Flag:'X'=Start even for BATCHHOST without batch capacity
* param = 0 " i
IMPORTING
jobcount = " tbtco-jobcount Job Number
rc_start = " sy-subrc Return code (if IV_ABORT_ON_ERROR = SPACE)
* TABLES
* seltab = " rsparams Parameter table for transfer to program
. " SUBST_SCHEDULE_GENERATOR_46B
The ABAP code below is a full code listing to execute function module SUBST_SCHEDULE_GENERATOR_46B including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_jobcount | TYPE TBTCO-JOBCOUNT , |
| ld_rc_start | TYPE SY-SUBRC , |
| it_seltab | TYPE STANDARD TABLE OF RSPARAMS,"TABLES PARAM |
| wa_seltab | LIKE LINE OF it_seltab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_jobcount | TYPE TBTCO-JOBCOUNT , |
| ld_jobname | TYPE TBTCO-JOBNAME , |
| it_seltab | TYPE STANDARD TABLE OF RSPARAMS , |
| wa_seltab | LIKE LINE OF it_seltab, |
| ld_rc_start | TYPE SY-SUBRC , |
| ld_repname | TYPE SY-REPID , |
| ld_varname | TYPE RALDB-VARIANT , |
| ld_authcknam | TYPE TBTCJOB-AUTHCKNAM , |
| ld_batchhost | TYPE TBTCO-BTCSYSTEM , |
| ld_language | TYPE SY-LANGU , |
| ld_priparams | TYPE PRI_PARAMS , |
| ld_iv_schedever | TYPE GSUGI_PA-W_TADIR , |
| ld_param | TYPE I . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SUBST_SCHEDULE_GENERATOR_46B or its description.