SAP Function Modules

FKK_SAMPLE_1798 SAP Function module - Mass Activity: Event After the Last Interval of a Process







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

Associated Function Group: FKKAKTIV
Released Date: 30.11.1998
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FKK_SAMPLE_1798 - FKK SAMPLE 1798





CALL FUNCTION 'FKK_SAMPLE_1798' "Mass Activity: Event After the Last Interval of a Process
  EXPORTING
    i_fkkcocc =                 " fkkcocc       Run Parameters
    i_fkk_prot =                " fkkprot       Additional Log: Parameters
*   i_basics =                  " fkk_mad_basics  Basis parameters for mass act. from v. 4.5.1
  TABLES
    t_fimsg =                   " fimsg         FI Message Table
    t_fkkcoinfo =               " fkkcoinfo     Required Periods
*   t_prot_gpart =              " fkkr_gpart    Additional Log: Business Partner
*   t_prot_vkont =              " fkkr_vkont    Additional Log: Contract Account
    .  "  FKK_SAMPLE_1798

ABAP code example for Function Module FKK_SAMPLE_1798





The ABAP code below is a full code listing to execute function module FKK_SAMPLE_1798 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:
it_t_fimsg  TYPE STANDARD TABLE OF FIMSG,"TABLES PARAM
wa_t_fimsg  LIKE LINE OF it_t_fimsg ,
it_t_fkkcoinfo  TYPE STANDARD TABLE OF FKKCOINFO,"TABLES PARAM
wa_t_fkkcoinfo  LIKE LINE OF it_t_fkkcoinfo ,
it_t_prot_gpart  TYPE STANDARD TABLE OF FKKR_GPART,"TABLES PARAM
wa_t_prot_gpart  LIKE LINE OF it_t_prot_gpart ,
it_t_prot_vkont  TYPE STANDARD TABLE OF FKKR_VKONT,"TABLES PARAM
wa_t_prot_vkont  LIKE LINE OF it_t_prot_vkont .

DATA(ld_i_fkkcocc) = 'Check type of data required'.
DATA(ld_i_fkk_prot) = 'Check type of data required'.
DATA(ld_i_basics) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fimsg to it_t_fimsg.

"populate fields of struture and append to itab
append wa_t_fkkcoinfo to it_t_fkkcoinfo.

"populate fields of struture and append to itab
append wa_t_prot_gpart to it_t_prot_gpart.

"populate fields of struture and append to itab
append wa_t_prot_vkont to it_t_prot_vkont. . CALL FUNCTION 'FKK_SAMPLE_1798' EXPORTING i_fkkcocc = ld_i_fkkcocc i_fkk_prot = ld_i_fkk_prot * i_basics = ld_i_basics TABLES t_fimsg = it_t_fimsg t_fkkcoinfo = it_t_fkkcoinfo * t_prot_gpart = it_t_prot_gpart * t_prot_vkont = it_t_prot_vkont . " FKK_SAMPLE_1798
IF SY-SUBRC EQ 0. "All OK 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_i_fkkcocc  TYPE FKKCOCC ,
it_t_fimsg  TYPE STANDARD TABLE OF FIMSG ,
wa_t_fimsg  LIKE LINE OF it_t_fimsg,
ld_i_fkk_prot  TYPE FKKPROT ,
it_t_fkkcoinfo  TYPE STANDARD TABLE OF FKKCOINFO ,
wa_t_fkkcoinfo  LIKE LINE OF it_t_fkkcoinfo,
ld_i_basics  TYPE FKK_MAD_BASICS ,
it_t_prot_gpart  TYPE STANDARD TABLE OF FKKR_GPART ,
wa_t_prot_gpart  LIKE LINE OF it_t_prot_gpart,
it_t_prot_vkont  TYPE STANDARD TABLE OF FKKR_VKONT ,
wa_t_prot_vkont  LIKE LINE OF it_t_prot_vkont.

ld_i_fkkcocc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fimsg to it_t_fimsg.
ld_i_fkk_prot = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkcoinfo to it_t_fkkcoinfo.
ld_i_basics = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_prot_gpart to it_t_prot_gpart.

"populate fields of struture and append to itab
append wa_t_prot_vkont to it_t_prot_vkont.

SAP Documentation for FM FKK_SAMPLE_1798


The activity program triggers event 1798 after processing the last interval of a process. ...See here for full SAP fm documentation












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