SAP AIS_DEFLAY_KEYFIG_CLASS_GET Function Module for Reading of Key Figures of Individual Areas of Default Layout
AIS_DEFLAY_KEYFIG_CLASS_GET is a standard ais deflay keyfig class get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Reading of Key Figures of Individual Areas of Default Layout 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 ais deflay keyfig class get FM, simply by entering the name AIS_DEFLAY_KEYFIG_CLASS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIS_DEFAULT_LAYOUT
Program Name: SAPLAIS_DEFAULT_LAYOUT
Main Program: SAPLAIS_DEFAULT_LAYOUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function AIS_DEFLAY_KEYFIG_CLASS_GET 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 'AIS_DEFLAY_KEYFIG_CLASS_GET'"Reading of Key Figures of Individual Areas of Default Layout.
EXPORTING
I_LAYOUTID = "Layout ID for Standard Reporting for Results Database
IMPORTING
E_TAB_KEYFIG_PHFRM = "Table of Key Figures
E_TAB_KEYFIG_SSTAB = "Table of Key Figures
E_TAB_KEYFIG_RHTAB = "Table of Key Figures
E_TAB_KEYFIG_FLTAB = "Table of Key Figures
E_TAB_KEYFIG_MATAB = "Table of Key Figures
E_TAB_KEYFIG_BTTAB = "Table of Key Figures
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for AIS_DEFLAY_KEYFIG_CLASS_GET
I_LAYOUTID - Layout ID for Standard Reporting for Results Database
Data type: AIS_LAYOUT_ADM-LAYOUTIDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for AIS_DEFLAY_KEYFIG_CLASS_GET
E_TAB_KEYFIG_PHFRM - Table of Key Figures
Data type: AIS_KEYFIGURE_TOptional: No
Call by Reference: Yes
E_TAB_KEYFIG_SSTAB - Table of Key Figures
Data type: AIS_KEYFIGURE_TOptional: No
Call by Reference: Yes
E_TAB_KEYFIG_RHTAB - Table of Key Figures
Data type: AIS_KEYFIGURE_TOptional: No
Call by Reference: Yes
E_TAB_KEYFIG_FLTAB - Table of Key Figures
Data type: AIS_KEYFIGURE_TOptional: No
Call by Reference: Yes
E_TAB_KEYFIG_MATAB - Table of Key Figures
Data type: AIS_KEYFIGURE_TOptional: No
Call by Reference: Yes
E_TAB_KEYFIG_BTTAB - Table of Key Figures
Data type: AIS_BT_KEYFIGURE_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIS_DEFLAY_KEYFIG_CLASS_GET 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_error | TYPE STRING, " | |||
lv_i_layoutid | TYPE AIS_LAYOUT_ADM-LAYOUTID, " | |||
lv_e_tab_keyfig_phfrm | TYPE AIS_KEYFIGURE_T, " | |||
lv_e_tab_keyfig_sstab | TYPE AIS_KEYFIGURE_T, " | |||
lv_e_tab_keyfig_rhtab | TYPE AIS_KEYFIGURE_T, " | |||
lv_e_tab_keyfig_fltab | TYPE AIS_KEYFIGURE_T, " | |||
lv_e_tab_keyfig_matab | TYPE AIS_KEYFIGURE_T, " | |||
lv_e_tab_keyfig_bttab | TYPE AIS_BT_KEYFIGURE_T. " |
  CALL FUNCTION 'AIS_DEFLAY_KEYFIG_CLASS_GET' "Reading of Key Figures of Individual Areas of Default Layout |
EXPORTING | ||
I_LAYOUTID | = lv_i_layoutid | |
IMPORTING | ||
E_TAB_KEYFIG_PHFRM | = lv_e_tab_keyfig_phfrm | |
E_TAB_KEYFIG_SSTAB | = lv_e_tab_keyfig_sstab | |
E_TAB_KEYFIG_RHTAB | = lv_e_tab_keyfig_rhtab | |
E_TAB_KEYFIG_FLTAB | = lv_e_tab_keyfig_fltab | |
E_TAB_KEYFIG_MATAB | = lv_e_tab_keyfig_matab | |
E_TAB_KEYFIG_BTTAB | = lv_e_tab_keyfig_bttab | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " AIS_DEFLAY_KEYFIG_CLASS_GET |
ABAP code using 7.40 inline data declarations to call FM AIS_DEFLAY_KEYFIG_CLASS_GET
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 LAYOUTID FROM AIS_LAYOUT_ADM INTO @DATA(ld_i_layoutid). | ||||
Search for further information about these or an SAP related objects