SAP CPE_GUI_FORMULA_ANALYSIS Function Module for CPE GUI: Formula Analysis User Interface









CPE_GUI_FORMULA_ANALYSIS is a standard cpe gui formula analysis SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CPE GUI: Formula Analysis User Interface 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 cpe gui formula analysis FM, simply by entering the name CPE_GUI_FORMULA_ANALYSIS into the relevant SAP transaction such as SE37 or SE38.

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



Function CPE_GUI_FORMULA_ANALYSIS 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 'CPE_GUI_FORMULA_ANALYSIS'"CPE GUI: Formula Analysis User Interface
EXPORTING
* IS_LOG_FILTER = "CPE Log - Filter Criteria
* IV_FE_RESULT_CHANGE = ' ' "Result of Formula Evaluation has changed
* IV_ERROR_LOG_MODE = '' "Single-character flag
* IT_ERROR_MESSAGES = "CPE - Log: Communication Table for Messages
* IT_LOG_COM = "CPE - Communication Table for Log Data in Documents
* IT_LOG = "CPE - Table for Log Data in Documents
* IS_FORMDOC_KEY = "CPE Formula - Key for Changed Input for Conversion
* IV_MAX_DEPTH = '9' "Numeric 1-character
* IV_LANGU = SY-LANGU "Language Key
* IV_LOG_PRIORITY = 4 "CPE - Priority of Log Entry
* IV_APPSERV = ' ' "Single-character flag
* IV_PRESSERV = 'X' "Single-character flag
* IV_SOURCE = 'C: CPE_TEST ' "Character 100
* IV_DISPLAYLIST = ' ' "Single-character flag
* IV_SCREEN_MODE = "

IMPORTING
EV_RETURN_FCODE = "Function code that PAI triggered
EV_KEEP_FE_RESULT_CHANGE = "Single-character flag

EXCEPTIONS
ERROR_OCCURRED = 1 TEST_ERROR_CALL_FM = 2
.



IMPORTING Parameters details for CPE_GUI_FORMULA_ANALYSIS

IS_LOG_FILTER - CPE Log - Filter Criteria

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

IV_FE_RESULT_CHANGE - Result of Formula Evaluation has changed

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_ERROR_LOG_MODE - Single-character flag

Data type: CHAR1
Default: ''
Optional: Yes
Call by Reference: Yes

IT_ERROR_MESSAGES - CPE - Log: Communication Table for Messages

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

IT_LOG_COM - CPE - Communication Table for Log Data in Documents

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

IT_LOG - CPE - Table for Log Data in Documents

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

IS_FORMDOC_KEY - CPE Formula - Key for Changed Input for Conversion

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

IV_MAX_DEPTH - Numeric 1-character

Data type: NUM1
Default: '9'
Optional: Yes
Call by Reference: Yes

IV_LANGU - Language Key

Data type: LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

IV_LOG_PRIORITY - CPE - Priority of Log Entry

Data type: CPET_LOG_PRIORITY
Default: 4
Optional: Yes
Call by Reference: Yes

IV_APPSERV - Single-character flag

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_PRESSERV - Single-character flag

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

IV_SOURCE - Character 100

Data type: CHAR100
Default: 'C: CPE_TEST '
Optional: Yes
Call by Reference: Yes

IV_DISPLAYLIST - Single-character flag

Data type: CHAR1
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_SCREEN_MODE -

Data type: SCREEN-INPUT
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CPE_GUI_FORMULA_ANALYSIS

EV_RETURN_FCODE - Function code that PAI triggered

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

EV_KEEP_FE_RESULT_CHANGE - Single-character flag

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

EXCEPTIONS details

ERROR_OCCURRED - Error has occurred

Data type:
Optional: No
Call by Reference: Yes

TEST_ERROR_CALL_FM - Error during calling other function module

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CPE_GUI_FORMULA_ANALYSIS 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_is_log_filter  TYPE CPET_LOG_FILTER, "   
lv_error_occurred  TYPE CPET_LOG_FILTER, "   
lv_ev_return_fcode  TYPE SYUCOMM, "   
lv_iv_fe_result_change  TYPE CHAR1, "   ' '
lv_iv_error_log_mode  TYPE CHAR1, "   ''
lv_it_error_messages  TYPE CPET_MSG_COM_TAB, "   
lv_it_log_com  TYPE CPET_LOG_COM_TAB, "   
lv_it_log  TYPE CPET_LOG_TAB, "   
lv_is_formdoc_key  TYPE CPET_FORMDOC_KEY, "   
lv_iv_max_depth  TYPE NUM1, "   '9'
lv_test_error_call_fm  TYPE NUM1, "   
lv_ev_keep_fe_result_change  TYPE CHAR1, "   
lv_iv_langu  TYPE LANGU, "   SY-LANGU
lv_iv_log_priority  TYPE CPET_LOG_PRIORITY, "   4
lv_iv_appserv  TYPE CHAR1, "   ' '
lv_iv_presserv  TYPE CHAR1, "   'X'
lv_iv_source  TYPE CHAR100, "   'C: CPE_TEST '
lv_iv_displaylist  TYPE CHAR1, "   ' '
lv_iv_screen_mode  TYPE SCREEN-INPUT. "   

  CALL FUNCTION 'CPE_GUI_FORMULA_ANALYSIS'  "CPE GUI: Formula Analysis User Interface
    EXPORTING
         IS_LOG_FILTER = lv_is_log_filter
         IV_FE_RESULT_CHANGE = lv_iv_fe_result_change
         IV_ERROR_LOG_MODE = lv_iv_error_log_mode
         IT_ERROR_MESSAGES = lv_it_error_messages
         IT_LOG_COM = lv_it_log_com
         IT_LOG = lv_it_log
         IS_FORMDOC_KEY = lv_is_formdoc_key
         IV_MAX_DEPTH = lv_iv_max_depth
         IV_LANGU = lv_iv_langu
         IV_LOG_PRIORITY = lv_iv_log_priority
         IV_APPSERV = lv_iv_appserv
         IV_PRESSERV = lv_iv_presserv
         IV_SOURCE = lv_iv_source
         IV_DISPLAYLIST = lv_iv_displaylist
         IV_SCREEN_MODE = lv_iv_screen_mode
    IMPORTING
         EV_RETURN_FCODE = lv_ev_return_fcode
         EV_KEEP_FE_RESULT_CHANGE = lv_ev_keep_fe_result_change
    EXCEPTIONS
        ERROR_OCCURRED = 1
        TEST_ERROR_CALL_FM = 2
. " CPE_GUI_FORMULA_ANALYSIS




ABAP code using 7.40 inline data declarations to call FM CPE_GUI_FORMULA_ANALYSIS

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_iv_fe_result_change) = ' '.
 
DATA(ld_iv_error_log_mode) = ''.
 
 
 
 
 
DATA(ld_iv_max_depth) = '9'.
 
 
 
DATA(ld_iv_langu) = SY-LANGU.
 
DATA(ld_iv_log_priority) = 4.
 
DATA(ld_iv_appserv) = ' '.
 
DATA(ld_iv_presserv) = 'X'.
 
DATA(ld_iv_source) = 'C: CPE_TEST '.
 
DATA(ld_iv_displaylist) = ' '.
 
"SELECT single INPUT FROM SCREEN INTO @DATA(ld_iv_screen_mode).
 


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!