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









FMCA_SAMPLE_P124 is a standard fmca sample p124 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BP Overview - Event P124: Tree Structure Column Description processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fmca sample p124 FM, simply by entering the name FMCA_SAMPLE_P124 into the relevant SAP transaction such as SE37 or SE38.

Function Group: FMCA_COV0
Program Name: SAPLFMCA_COV0
Main Program: SAPLFMCA_COV0
Appliation area:
Release date: 18-Jul-2002
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FMCA_SAMPLE_P124 pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FMCA_SAMPLE_P124'"BP Overview - Event P124: Tree Structure Column Description
EXPORTING
* I_BUS000_EXT = "CBP: Read general data plus standard address
* I_VTREF_TAB = "Business Partner Overview: Attributes for Contracts
* IT_MD_FILTER = "Table with Business Partners, Contract Accounts, Contracts
* I_DESCRIPTION_NAME = "Short name of business partner
* I_DESCRIPTION_LONG = "Description of a Business Partner
* I_VKONT_STRUC = "Structure for the Contract Account Attribute
* I_VTREF_STRUC = "Contract Object in IS-PS-CA
* I_PSOB_BP_ACC = "Data for Contract Object for Each Partner & Cont. Acct Cat.
* I_VK_OWNER = "Business Partner is the Account Holder
I_ACCOUNT_LEVEL = "Contract Account that is Filtered
I_VTREF_LEVEL = "Contract Object that is Filtered

IMPORTING
TEXT = "Text Field
E_N_IMAGE = "Icons / Embedded Bitmap / User-Defined Bitmap
E_EXP_IMAGE = "Icons / Embedded Bitmap / User-Defined Bitmap
.



IMPORTING Parameters details for FMCA_SAMPLE_P124

I_BUS000_EXT - CBP: Read general data plus standard address

Data type: BUS000_EXT
Optional: Yes
Call by Reference: Yes

I_VTREF_TAB - Business Partner Overview: Attributes for Contracts

Data type: FMCA_COV_VTREF
Optional: Yes
Call by Reference: Yes

IT_MD_FILTER - Table with Business Partners, Contract Accounts, Contracts

Data type: FKK_MASTERDATA_T
Optional: Yes
Call by Reference: Yes

I_DESCRIPTION_NAME - Short name of business partner

Data type: BUS000FLDS-DESCRIP
Optional: Yes
Call by Reference: Yes

I_DESCRIPTION_LONG - Description of a Business Partner

Data type: BUS000FLDS-DESCRIP_LONG
Optional: Yes
Call by Reference: Yes

I_VKONT_STRUC - Structure for the Contract Account Attribute

Data type: FMCA_COV_ACC
Optional: Yes
Call by Reference: Yes

I_VTREF_STRUC - Contract Object in IS-PS-CA

Data type: DPSOB
Optional: Yes
Call by Reference: Yes

I_PSOB_BP_ACC - Data for Contract Object for Each Partner & Cont. Acct Cat.

Data type: DPSOB_BP_ACC
Optional: Yes
Call by Reference: Yes

I_VK_OWNER - Business Partner is the Account Holder

Data type: XFELD
Optional: Yes
Call by Reference: Yes

I_ACCOUNT_LEVEL - Contract Account that is Filtered

Data type: VKONT_KK
Optional: No
Call by Reference: Yes

I_VTREF_LEVEL - Contract Object that is Filtered

Data type: VTREF_KK
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FMCA_SAMPLE_P124

TEXT - Text Field

Data type: TEXT50
Optional: No
Call by Reference: Yes

E_N_IMAGE - Icons / Embedded Bitmap / User-Defined Bitmap

Data type: TREEV_NODE-N_IMAGE
Optional: No
Call by Reference: Yes

E_EXP_IMAGE - Icons / Embedded Bitmap / User-Defined Bitmap

Data type: TREEV_NODE-EXP_IMAGE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMCA_SAMPLE_P124 Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_text  TYPE TEXT50, "   
lv_i_bus000_ext  TYPE BUS000_EXT, "   
lv_i_vtref_tab  TYPE FMCA_COV_VTREF, "   
lv_it_md_filter  TYPE FKK_MASTERDATA_T, "   
lv_e_n_image  TYPE TREEV_NODE-N_IMAGE, "   
lv_i_description_name  TYPE BUS000FLDS-DESCRIP, "   
lv_e_exp_image  TYPE TREEV_NODE-EXP_IMAGE, "   
lv_i_description_long  TYPE BUS000FLDS-DESCRIP_LONG, "   
lv_i_vkont_struc  TYPE FMCA_COV_ACC, "   
lv_i_vtref_struc  TYPE DPSOB, "   
lv_i_psob_bp_acc  TYPE DPSOB_BP_ACC, "   
lv_i_vk_owner  TYPE XFELD, "   
lv_i_account_level  TYPE VKONT_KK, "   
lv_i_vtref_level  TYPE VTREF_KK. "   

  CALL FUNCTION 'FMCA_SAMPLE_P124'  "BP Overview - Event P124: Tree Structure Column Description
    EXPORTING
         I_BUS000_EXT = lv_i_bus000_ext
         I_VTREF_TAB = lv_i_vtref_tab
         IT_MD_FILTER = lv_it_md_filter
         I_DESCRIPTION_NAME = lv_i_description_name
         I_DESCRIPTION_LONG = lv_i_description_long
         I_VKONT_STRUC = lv_i_vkont_struc
         I_VTREF_STRUC = lv_i_vtref_struc
         I_PSOB_BP_ACC = lv_i_psob_bp_acc
         I_VK_OWNER = lv_i_vk_owner
         I_ACCOUNT_LEVEL = lv_i_account_level
         I_VTREF_LEVEL = lv_i_vtref_level
    IMPORTING
         TEXT = lv_text
         E_N_IMAGE = lv_e_n_image
         E_EXP_IMAGE = lv_e_exp_image
. " FMCA_SAMPLE_P124




ABAP code using 7.40 inline data declarations to call FM FMCA_SAMPLE_P124

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
"SELECT single N_IMAGE FROM TREEV_NODE INTO @DATA(ld_e_n_image).
 
"SELECT single DESCRIP FROM BUS000FLDS INTO @DATA(ld_i_description_name).
 
"SELECT single EXP_IMAGE FROM TREEV_NODE INTO @DATA(ld_e_exp_image).
 
"SELECT single DESCRIP_LONG FROM BUS000FLDS INTO @DATA(ld_i_description_long).
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!