SAP Function Modules

FKK_SAMPLE_1211 SAP Function module







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

Associated Function Group: FKP3
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FKK_SAMPLE_1211 - FKK SAMPLE 1211





CALL FUNCTION 'FKK_SAMPLE_1211' "
  EXPORTING
    i_with_simulated_items =    " boole-boole
*   i_fkkeposc =                " fkkeposc
  IMPORTING
    e_ndtxt_deactivate =        " fkkl1-ndtxt
    e_ndtxt_activate =          " fkkl1-ndtxt
    e_sndsp =                   " fkkl1-sndsp
    e_function_for_display =    " tfdir-funcname  Name of Function Module
    e_ftext_1117 =              " fkkl1-ndtxt
    e_fcode_1117 =              " sy-ucomm
    e_icon_1117 =               " iconname
  TABLES
    t_postab =                  " fkkepos       Selected Items
    t_sel_values =              " fkkl1
*   t_totals =                  " fkkepos_tot
*   t_new_items =               " fkkepos
*   t_sel_criteria =            " fkkeposs2
*   t_range_gpart =             " fkk_rt_gpart
*   t_range_vkont =             " fkk_rt_vkont
*   t_range_vtref =             " fkk_rt_vtref
*   t_range_bukrs =             " fkk_rt_bukrs
    .  "  FKK_SAMPLE_1211

ABAP code example for Function Module FKK_SAMPLE_1211





The ABAP code below is a full code listing to execute function module FKK_SAMPLE_1211 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_e_ndtxt_deactivate  TYPE FKKL1-NDTXT ,
ld_e_ndtxt_activate  TYPE FKKL1-NDTXT ,
ld_e_sndsp  TYPE FKKL1-SNDSP ,
ld_e_function_for_display  TYPE TFDIR-FUNCNAME ,
ld_e_ftext_1117  TYPE FKKL1-NDTXT ,
ld_e_fcode_1117  TYPE SY-UCOMM ,
ld_e_icon_1117  TYPE ICONNAME ,
it_t_postab  TYPE STANDARD TABLE OF FKKEPOS,"TABLES PARAM
wa_t_postab  LIKE LINE OF it_t_postab ,
it_t_sel_values  TYPE STANDARD TABLE OF FKKL1,"TABLES PARAM
wa_t_sel_values  LIKE LINE OF it_t_sel_values ,
it_t_totals  TYPE STANDARD TABLE OF FKKEPOS_TOT,"TABLES PARAM
wa_t_totals  LIKE LINE OF it_t_totals ,
it_t_new_items  TYPE STANDARD TABLE OF FKKEPOS,"TABLES PARAM
wa_t_new_items  LIKE LINE OF it_t_new_items ,
it_t_sel_criteria  TYPE STANDARD TABLE OF FKKEPOSS2,"TABLES PARAM
wa_t_sel_criteria  LIKE LINE OF it_t_sel_criteria ,
it_t_range_gpart  TYPE STANDARD TABLE OF FKK_RT_GPART,"TABLES PARAM
wa_t_range_gpart  LIKE LINE OF it_t_range_gpart ,
it_t_range_vkont  TYPE STANDARD TABLE OF FKK_RT_VKONT,"TABLES PARAM
wa_t_range_vkont  LIKE LINE OF it_t_range_vkont ,
it_t_range_vtref  TYPE STANDARD TABLE OF FKK_RT_VTREF,"TABLES PARAM
wa_t_range_vtref  LIKE LINE OF it_t_range_vtref ,
it_t_range_bukrs  TYPE STANDARD TABLE OF FKK_RT_BUKRS,"TABLES PARAM
wa_t_range_bukrs  LIKE LINE OF it_t_range_bukrs .


DATA(ld_i_with_simulated_items) = some text here
DATA(ld_i_fkkeposc) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_postab to it_t_postab.

"populate fields of struture and append to itab
append wa_t_sel_values to it_t_sel_values.

"populate fields of struture and append to itab
append wa_t_totals to it_t_totals.

"populate fields of struture and append to itab
append wa_t_new_items to it_t_new_items.

"populate fields of struture and append to itab
append wa_t_sel_criteria to it_t_sel_criteria.

"populate fields of struture and append to itab
append wa_t_range_gpart to it_t_range_gpart.

"populate fields of struture and append to itab
append wa_t_range_vkont to it_t_range_vkont.

"populate fields of struture and append to itab
append wa_t_range_vtref to it_t_range_vtref.

"populate fields of struture and append to itab
append wa_t_range_bukrs to it_t_range_bukrs. . CALL FUNCTION 'FKK_SAMPLE_1211' EXPORTING i_with_simulated_items = ld_i_with_simulated_items * i_fkkeposc = ld_i_fkkeposc IMPORTING e_ndtxt_deactivate = ld_e_ndtxt_deactivate e_ndtxt_activate = ld_e_ndtxt_activate e_sndsp = ld_e_sndsp e_function_for_display = ld_e_function_for_display e_ftext_1117 = ld_e_ftext_1117 e_fcode_1117 = ld_e_fcode_1117 e_icon_1117 = ld_e_icon_1117 TABLES t_postab = it_t_postab t_sel_values = it_t_sel_values * t_totals = it_t_totals * t_new_items = it_t_new_items * t_sel_criteria = it_t_sel_criteria * t_range_gpart = it_t_range_gpart * t_range_vkont = it_t_range_vkont * t_range_vtref = it_t_range_vtref * t_range_bukrs = it_t_range_bukrs . " FKK_SAMPLE_1211
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_e_ndtxt_deactivate  TYPE FKKL1-NDTXT ,
ld_i_with_simulated_items  TYPE BOOLE-BOOLE ,
it_t_postab  TYPE STANDARD TABLE OF FKKEPOS ,
wa_t_postab  LIKE LINE OF it_t_postab,
ld_e_ndtxt_activate  TYPE FKKL1-NDTXT ,
ld_i_fkkeposc  TYPE FKKEPOSC ,
it_t_sel_values  TYPE STANDARD TABLE OF FKKL1 ,
wa_t_sel_values  LIKE LINE OF it_t_sel_values,
ld_e_sndsp  TYPE FKKL1-SNDSP ,
it_t_totals  TYPE STANDARD TABLE OF FKKEPOS_TOT ,
wa_t_totals  LIKE LINE OF it_t_totals,
ld_e_function_for_display  TYPE TFDIR-FUNCNAME ,
it_t_new_items  TYPE STANDARD TABLE OF FKKEPOS ,
wa_t_new_items  LIKE LINE OF it_t_new_items,
ld_e_ftext_1117  TYPE FKKL1-NDTXT ,
it_t_sel_criteria  TYPE STANDARD TABLE OF FKKEPOSS2 ,
wa_t_sel_criteria  LIKE LINE OF it_t_sel_criteria,
ld_e_fcode_1117  TYPE SY-UCOMM ,
it_t_range_gpart  TYPE STANDARD TABLE OF FKK_RT_GPART ,
wa_t_range_gpart  LIKE LINE OF it_t_range_gpart,
ld_e_icon_1117  TYPE ICONNAME ,
it_t_range_vkont  TYPE STANDARD TABLE OF FKK_RT_VKONT ,
wa_t_range_vkont  LIKE LINE OF it_t_range_vkont,
it_t_range_vtref  TYPE STANDARD TABLE OF FKK_RT_VTREF ,
wa_t_range_vtref  LIKE LINE OF it_t_range_vtref,
it_t_range_bukrs  TYPE STANDARD TABLE OF FKK_RT_BUKRS ,
wa_t_range_bukrs  LIKE LINE OF it_t_range_bukrs.


ld_i_with_simulated_items = some text here

"populate fields of struture and append to itab
append wa_t_postab to it_t_postab.
ld_i_fkkeposc = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_sel_values to it_t_sel_values.

"populate fields of struture and append to itab
append wa_t_totals to it_t_totals.

"populate fields of struture and append to itab
append wa_t_new_items to it_t_new_items.

"populate fields of struture and append to itab
append wa_t_sel_criteria to it_t_sel_criteria.

"populate fields of struture and append to itab
append wa_t_range_gpart to it_t_range_gpart.

"populate fields of struture and append to itab
append wa_t_range_vkont to it_t_range_vkont.

"populate fields of struture and append to itab
append wa_t_range_vtref to it_t_range_vtref.

"populate fields of struture and append to itab
append wa_t_range_bukrs to it_t_range_bukrs.

SAP Documentation for FM FKK_SAMPLE_1211


The function module called up in event 1211 exports all selected items before the items selected in the account balance display are output and ...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_1211 or its description.