SAP FM_CHAA_LIST_TOP_PREPARE Function Module for









FM_CHAA_LIST_TOP_PREPARE is a standard fm chaa list top prepare SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fm chaa list top prepare FM, simply by entering the name FM_CHAA_LIST_TOP_PREPARE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FMCH
Program Name: SAPLFMCH
Main Program: SAPLFMCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FM_CHAA_LIST_TOP_PREPARE 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 'FM_CHAA_LIST_TOP_PREPARE'"
EXPORTING
I_CNT_OBJ = "
I_FIKRS = "Financial Management Area
I_GJAHR = "Fiscal Year
I_FLG_TEST = "Execute Test Run
* I_DIAS = ' ' "Process with Dialog
* I_DATUM = SY-DATUM "Current Date of Application Server
* I_TIME = SY-UZEIT "Current Time of Application Server

CHANGING
* C_BACKGROUND_ID = "Business Document Service: Object Key
C_F_LH_ATTRIBUTES = "FM ALV grid lists: Attributes for object info display
C_F_ACTION_INFO = "FM ALV GRID Action Information for General List Headers
C_T_LIST_TOP = "Object and Action Information in ALV-GRID List Headers
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFMCH_001 Determine FM Account Assignment from Coding Block
EXIT_SAPLFMCH_002 Own Table Updates During Reassignment
EXIT_SAPLFMCH_003 Change of Account Assignment, Reject Reassignment

IMPORTING Parameters details for FM_CHAA_LIST_TOP_PREPARE

I_CNT_OBJ -

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

I_FIKRS - Financial Management Area

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

I_GJAHR - Fiscal Year

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

I_FLG_TEST - Execute Test Run

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

I_DIAS - Process with Dialog

Data type: FM_PROCESS_DIALOG
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_DATUM - Current Date of Application Server

Data type: SYDATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

I_TIME - Current Time of Application Server

Data type: SYUZEIT
Default: SY-UZEIT
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for FM_CHAA_LIST_TOP_PREPARE

C_BACKGROUND_ID - Business Document Service: Object Key

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

C_F_LH_ATTRIBUTES - FM ALV grid lists: Attributes for object info display

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

C_F_ACTION_INFO - FM ALV GRID Action Information for General List Headers

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

C_T_LIST_TOP - Object and Action Information in ALV-GRID List Headers

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

Copy and paste ABAP code example for FM_CHAA_LIST_TOP_PREPARE 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_i_cnt_obj  TYPE INT4, "   
lv_c_background_id  TYPE BDS_TYPEID, "   
lv_i_fikrs  TYPE FIKRS, "   
lv_c_f_lh_attributes  TYPE IFM_LH_OBJECT_ATTRIBUTES, "   
lv_i_gjahr  TYPE GJAHR, "   
lv_c_f_action_info  TYPE IFM_LISTHEADER_ACTION, "   
lv_i_flg_test  TYPE TESTLAUF, "   
lv_c_t_list_top  TYPE FM_T_LISTHEADER_DATA, "   
lv_i_dias  TYPE FM_PROCESS_DIALOG, "   SPACE
lv_i_datum  TYPE SYDATUM, "   SY-DATUM
lv_i_time  TYPE SYUZEIT. "   SY-UZEIT

  CALL FUNCTION 'FM_CHAA_LIST_TOP_PREPARE'  "
    EXPORTING
         I_CNT_OBJ = lv_i_cnt_obj
         I_FIKRS = lv_i_fikrs
         I_GJAHR = lv_i_gjahr
         I_FLG_TEST = lv_i_flg_test
         I_DIAS = lv_i_dias
         I_DATUM = lv_i_datum
         I_TIME = lv_i_time
    CHANGING
         C_BACKGROUND_ID = lv_c_background_id
         C_F_LH_ATTRIBUTES = lv_c_f_lh_attributes
         C_F_ACTION_INFO = lv_c_f_action_info
         C_T_LIST_TOP = lv_c_t_list_top
. " FM_CHAA_LIST_TOP_PREPARE




ABAP code using 7.40 inline data declarations to call FM FM_CHAA_LIST_TOP_PREPARE

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.

 
 
 
 
 
 
 
 
DATA(ld_i_dias) = ' '.
 
DATA(ld_i_datum) = SY-DATUM.
 
DATA(ld_i_time) = SY-UZEIT.
 


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!