SAP Function Modules

FKK_SAMPLE_5804 SAP Function module - Mass Data Transfer: Display Tree Structure (Name)







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

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


Pattern for FM FKK_SAMPLE_5804 - FKK SAMPLE 5804





CALL FUNCTION 'FKK_SAMPLE_5804' "Mass Data Transfer: Display Tree Structure (Name)
  EXPORTING
*   is_bus000_ext =             " bus000_ext    CBP: Read general data plus standard address
*   iv_description_name =       " bus000flds-descrip  Short Name of Business Partner
*   iv_description_long =       " bus000flds-descrip_long  Description of a Business Partner
*   is_vkont =                  " fica_s_mdt_account_attributes  Master Data Transfer BP Structure for Cont.Acct Attributes
*   is_vtref =                  " fica_s_mdt_object_attributes  Master Data Transf. BP Structure for Contract Object Attrib.
*   iv_vk_owner =               " xfeld         Checkbox
    iv_account_level =          " vkont_kk      Contract Account Number
*   iv_vtref_level =            " vtref_kk      Reference Specifications from Contract
*   it_vtref_tab =              " fica_t_mdt_object_attributes  Business Partner Overview: Attributes for Contracts
*   io_gpart_ref =              " cl_fica_mdt_bp_data  Master Data Transfer (FPMDT) BP Data
  IMPORTING
    text =                      " text80        Text field
    e_n_image =                 " treev_node-n_image  Tree Control: Icon / Image
    e_exp_image =               " treev_node-exp_image  Tree Control: Icon / Image
    .  "  FKK_SAMPLE_5804

ABAP code example for Function Module FKK_SAMPLE_5804





The ABAP code below is a full code listing to execute function module FKK_SAMPLE_5804 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_text  TYPE TEXT80 ,
ld_e_n_image  TYPE TREEV_NODE-N_IMAGE ,
ld_e_exp_image  TYPE TREEV_NODE-EXP_IMAGE .

DATA(ld_is_bus000_ext) = 'Check type of data required'.

DATA(ld_iv_description_name) = some text here

DATA(ld_iv_description_long) = some text here
DATA(ld_is_vkont) = 'Check type of data required'.
DATA(ld_is_vtref) = 'Check type of data required'.
DATA(ld_iv_vk_owner) = 'Check type of data required'.
DATA(ld_iv_account_level) = 'Check type of data required'.
DATA(ld_iv_vtref_level) = 'Check type of data required'.
DATA(ld_it_vtref_tab) = 'Check type of data required'.
DATA(ld_io_gpart_ref) = 'Check type of data required'. . CALL FUNCTION 'FKK_SAMPLE_5804' EXPORTING * is_bus000_ext = ld_is_bus000_ext * iv_description_name = ld_iv_description_name * iv_description_long = ld_iv_description_long * is_vkont = ld_is_vkont * is_vtref = ld_is_vtref * iv_vk_owner = ld_iv_vk_owner iv_account_level = ld_iv_account_level * iv_vtref_level = ld_iv_vtref_level * it_vtref_tab = ld_it_vtref_tab * io_gpart_ref = ld_io_gpart_ref IMPORTING text = ld_text e_n_image = ld_e_n_image e_exp_image = ld_e_exp_image . " FKK_SAMPLE_5804
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_text  TYPE TEXT80 ,
ld_is_bus000_ext  TYPE BUS000_EXT ,
ld_e_n_image  TYPE TREEV_NODE-N_IMAGE ,
ld_iv_description_name  TYPE BUS000FLDS-DESCRIP ,
ld_e_exp_image  TYPE TREEV_NODE-EXP_IMAGE ,
ld_iv_description_long  TYPE BUS000FLDS-DESCRIP_LONG ,
ld_is_vkont  TYPE FICA_S_MDT_ACCOUNT_ATTRIBUTES ,
ld_is_vtref  TYPE FICA_S_MDT_OBJECT_ATTRIBUTES ,
ld_iv_vk_owner  TYPE XFELD ,
ld_iv_account_level  TYPE VKONT_KK ,
ld_iv_vtref_level  TYPE VTREF_KK ,
ld_it_vtref_tab  TYPE FICA_T_MDT_OBJECT_ATTRIBUTES ,
ld_io_gpart_ref  TYPE CL_FICA_MDT_BP_DATA .

ld_is_bus000_ext = 'Check type of data required'.

ld_iv_description_name = some text here

ld_iv_description_long = some text here
ld_is_vkont = 'Check type of data required'.
ld_is_vtref = 'Check type of data required'.
ld_iv_vk_owner = 'Check type of data required'.
ld_iv_account_level = 'Check type of data required'.
ld_iv_vtref_level = 'Check type of data required'.
ld_it_vtref_tab = 'Check type of data required'.
ld_io_gpart_ref = 'Check type of data required'.

SAP Documentation for FM FKK_SAMPLE_5804


Using the function modules called at event 5804 you can control the icons and names for the tree display. ...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_5804 or its description.