SAP Function Modules

FKK_EBS_EXT_START_MASS_ACT SAP Function module







FKK_EBS_EXT_START_MASS_ACT 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 FKK_EBS_EXT_START_MASS_ACT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FKEBS_MASS_ACT
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM FKK_EBS_EXT_START_MASS_ACT - FKK EBS EXT START MASS ACT





CALL FUNCTION 'FKK_EBS_EXT_START_MASS_ACT' "
  EXPORTING
    iv_jtype =                  " jtype_kk      Type of Job
    iv_aktyp =                  " aktyp_kk      Mass Activity Type
    iv_copyd =                  " laufd_kk      Date ID
    iv_copyi =                  " laufi_kk      Additional Identification Characteristic
*   iv_laufd =                  " laufd_kk      Date ID
*   iv_trunk_laufi = 'EBS'      " laufi_kk      Additional Identification Characteristic
*   iv_rundte =                 " sy-datum      Date and Time, Current (Application Server) Date
*   iv_runtm =                  " sy-uzeit      Date and Time, Current Application Server Time
  IMPORTING
    ev_laufd =                  " fkkcocc-laufd  Date ID
    ev_laufi =                  " fkkcocc-laufi  Additional Identification Characteristic
* TABLES
*   et_jobhead =                " tbtcjob       Structure for Transferring Job Header Data (BI-API)
  EXCEPTIONS
    WRONG_INPUT = 1             "
    TEMPLATE_NOT_EXISTING = 2   "
    RUN_NOT_CREATED = 3         "
    USERKEY_EXISTS = 4          "
    ERROR_IN_JOBS_CREATION = 5  "
    ERROR_IN_SUBMIT_FKJO_SCHEDULE = 6  "
    ERROR_IN_READING_MAKTJOBS = 7  "
    ERROR_IN_JOB_RELEASE = 8    "
    .  "  FKK_EBS_EXT_START_MASS_ACT

ABAP code example for Function Module FKK_EBS_EXT_START_MASS_ACT





The ABAP code below is a full code listing to execute function module FKK_EBS_EXT_START_MASS_ACT 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).

DATA:
ld_ev_laufd  TYPE FKKCOCC-LAUFD ,
ld_ev_laufi  TYPE FKKCOCC-LAUFI ,
it_et_jobhead  TYPE STANDARD TABLE OF TBTCJOB,"TABLES PARAM
wa_et_jobhead  LIKE LINE OF it_et_jobhead .

DATA(ld_iv_jtype) = 'Check type of data required'.
DATA(ld_iv_aktyp) = 'Check type of data required'.
DATA(ld_iv_copyd) = 'Check type of data required'.
DATA(ld_iv_copyi) = 'Check type of data required'.
DATA(ld_iv_laufd) = 'Check type of data required'.
DATA(ld_iv_trunk_laufi) = 'Check type of data required'.
DATA(ld_iv_rundte) = '20210129'.
DATA(ld_iv_runtm) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_jobhead to it_et_jobhead. . CALL FUNCTION 'FKK_EBS_EXT_START_MASS_ACT' EXPORTING iv_jtype = ld_iv_jtype iv_aktyp = ld_iv_aktyp iv_copyd = ld_iv_copyd iv_copyi = ld_iv_copyi * iv_laufd = ld_iv_laufd * iv_trunk_laufi = ld_iv_trunk_laufi * iv_rundte = ld_iv_rundte * iv_runtm = ld_iv_runtm IMPORTING ev_laufd = ld_ev_laufd ev_laufi = ld_ev_laufi * TABLES * et_jobhead = it_et_jobhead EXCEPTIONS WRONG_INPUT = 1 TEMPLATE_NOT_EXISTING = 2 RUN_NOT_CREATED = 3 USERKEY_EXISTS = 4 ERROR_IN_JOBS_CREATION = 5 ERROR_IN_SUBMIT_FKJO_SCHEDULE = 6 ERROR_IN_READING_MAKTJOBS = 7 ERROR_IN_JOB_RELEASE = 8 . " FKK_EBS_EXT_START_MASS_ACT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_ev_laufd  TYPE FKKCOCC-LAUFD ,
ld_iv_jtype  TYPE JTYPE_KK ,
it_et_jobhead  TYPE STANDARD TABLE OF TBTCJOB ,
wa_et_jobhead  LIKE LINE OF it_et_jobhead,
ld_ev_laufi  TYPE FKKCOCC-LAUFI ,
ld_iv_aktyp  TYPE AKTYP_KK ,
ld_iv_copyd  TYPE LAUFD_KK ,
ld_iv_copyi  TYPE LAUFI_KK ,
ld_iv_laufd  TYPE LAUFD_KK ,
ld_iv_trunk_laufi  TYPE LAUFI_KK ,
ld_iv_rundte  TYPE SY-DATUM ,
ld_iv_runtm  TYPE SY-UZEIT .

ld_iv_jtype = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_jobhead to it_et_jobhead.
ld_iv_aktyp = 'Check type of data required'.
ld_iv_copyd = 'Check type of data required'.
ld_iv_copyi = 'Check type of data required'.
ld_iv_laufd = 'Check type of data required'.
ld_iv_trunk_laufi = 'Check type of data required'.
ld_iv_rundte = '20210129'.
ld_iv_runtm = 'Check type of data required'.

Contribute (Add Comments)

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 FKK_EBS_EXT_START_MASS_ACT or its description.