SAP Function Modules

FMCA_SAMPLE_P124 SAP Function module - BP Overview - Event P124: Tree Structure Column Description







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

Associated Function Group: FMCA_COV0
Released Date: 18.07.2002
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FMCA_SAMPLE_P124 - FMCA SAMPLE P124





CALL FUNCTION 'FMCA_SAMPLE_P124' "BP Overview - Event P124: Tree Structure Column Description
  EXPORTING
*   i_bus000_ext =              " bus000_ext    CBP: Read general data plus standard address
*   i_description_name =        " bus000flds-descrip  Short name of business partner
*   i_description_long =        " bus000flds-descrip_long  Description of a Business Partner
*   i_vkont_struc =             " fmca_cov_acc  Structure for the Contract Account Attribute
*   i_vtref_struc =             " dpsob         Contract Object in IS-PS-CA
*   i_psob_bp_acc =             " dpsob_bp_acc  Data for Contract Object for Each Partner & Cont. Acct Cat.
*   i_vk_owner =                " xfeld         Business Partner is the Account Holder
    i_account_level =           " vkont_kk      Contract Account that is Filtered
    i_vtref_level =             " vtref_kk      Contract Object that is Filtered
*   i_vtref_tab =               " fmca_cov_vtref  Business Partner Overview: Attributes for Contracts
*   it_md_filter =              " fkk_masterdata_t  Table with Business Partners, Contract Accounts, Contracts
  IMPORTING
    text =                      " text50        Text Field
    e_n_image =                 " treev_node-n_image  Icons / Embedded Bitmap / User-Defined Bitmap
    e_exp_image =               " treev_node-exp_image  Icons / Embedded Bitmap / User-Defined Bitmap
    .  "  FMCA_SAMPLE_P124

ABAP code example for Function Module FMCA_SAMPLE_P124





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

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

DATA(ld_i_description_name) = some text here

DATA(ld_i_description_long) = some text here
DATA(ld_i_vkont_struc) = 'Check type of data required'.
DATA(ld_i_vtref_struc) = 'Check type of data required'.
DATA(ld_i_psob_bp_acc) = 'Check type of data required'.
DATA(ld_i_vk_owner) = 'Check type of data required'.
DATA(ld_i_account_level) = 'Check type of data required'.
DATA(ld_i_vtref_level) = 'Check type of data required'.
DATA(ld_i_vtref_tab) = 'Check type of data required'.
DATA(ld_it_md_filter) = 'Check type of data required'. . CALL FUNCTION 'FMCA_SAMPLE_P124' EXPORTING * i_bus000_ext = ld_i_bus000_ext * i_description_name = ld_i_description_name * i_description_long = ld_i_description_long * i_vkont_struc = ld_i_vkont_struc * i_vtref_struc = ld_i_vtref_struc * i_psob_bp_acc = ld_i_psob_bp_acc * i_vk_owner = ld_i_vk_owner i_account_level = ld_i_account_level i_vtref_level = ld_i_vtref_level * i_vtref_tab = ld_i_vtref_tab * it_md_filter = ld_it_md_filter IMPORTING text = ld_text e_n_image = ld_e_n_image e_exp_image = ld_e_exp_image . " FMCA_SAMPLE_P124
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 TEXT50 ,
ld_i_bus000_ext  TYPE BUS000_EXT ,
ld_e_n_image  TYPE TREEV_NODE-N_IMAGE ,
ld_i_description_name  TYPE BUS000FLDS-DESCRIP ,
ld_e_exp_image  TYPE TREEV_NODE-EXP_IMAGE ,
ld_i_description_long  TYPE BUS000FLDS-DESCRIP_LONG ,
ld_i_vkont_struc  TYPE FMCA_COV_ACC ,
ld_i_vtref_struc  TYPE DPSOB ,
ld_i_psob_bp_acc  TYPE DPSOB_BP_ACC ,
ld_i_vk_owner  TYPE XFELD ,
ld_i_account_level  TYPE VKONT_KK ,
ld_i_vtref_level  TYPE VTREF_KK ,
ld_i_vtref_tab  TYPE FMCA_COV_VTREF ,
ld_it_md_filter  TYPE FKK_MASTERDATA_T .

ld_i_bus000_ext = 'Check type of data required'.

ld_i_description_name = some text here

ld_i_description_long = some text here
ld_i_vkont_struc = 'Check type of data required'.
ld_i_vtref_struc = 'Check type of data required'.
ld_i_psob_bp_acc = 'Check type of data required'.
ld_i_vk_owner = 'Check type of data required'.
ld_i_account_level = 'Check type of data required'.
ld_i_vtref_level = 'Check type of data required'.
ld_i_vtref_tab = 'Check type of data required'.
ld_it_md_filter = 'Check type of data required'.

SAP Documentation for FM FMCA_SAMPLE_P124


Event P124 is used for the business partner overview and is run during the set up of the tree structure. ...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 FMCA_SAMPLE_P124 or its description.