CPE_TEST_FE_ROUNDRULE 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 CPE_TEST_FE_ROUNDRULE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CPE_TEST_FORMULA_EVAL
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'CPE_TEST_FE_ROUNDRULE' "CPE: Test of Rounding Rule within Formula Evaluation
EXPORTING
* iv_log_priority = '5' " cpet_log_priority CPE - Priority of Log Entry
* iv_vmc_rfc_dest = '' " rfcdest Logical Destination (Specified in Function Call)
iv_value = " cpet_userval1 CPE Term - Freely Usable Field
* iv_roundrule = " cpet_roundrule CPE - Rounding Rule
* iv_roundrout = " cpet_roundrout CPE - Rounding Routine
* iv_numdecs = " cpet_numdecs CPE - Number of Decimals to Be Rounded to
* iv_numtens = " cpet_numtens CPE - Number of Predecimal Places to Be Rounded to
iv_evaldate = SY-DATUM " cpet_refdate CPE Term - Calculated Reference Date: not used anymore!
IMPORTING
ev_value = " mssiowat MS SQL Server virtualfilestats: IOSTALLS (ms) per read
ev_test_error_occurred = " char1 Single-Character Flag
ev_error = " char100 Java Exception Message
ev_cpemsgno = " msgnr T100 Message Number
et_log = " cpet_log_tab CPE - Table for Log Data in Documents
EXCEPTIONS
JAVA_API_ERROR = 1 " Error occurred during call of Java API
. " CPE_TEST_FE_ROUNDRULE
The ABAP code below is a full code listing to execute function module CPE_TEST_FE_ROUNDRULE 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).
| ld_ev_value | TYPE MSSIOWAT , |
| ld_ev_test_error_occurred | TYPE CHAR1 , |
| ld_ev_error | TYPE CHAR100 , |
| ld_ev_cpemsgno | TYPE MSGNR , |
| ld_et_log | TYPE CPET_LOG_TAB . |
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_ev_value | TYPE MSSIOWAT , |
| ld_iv_log_priority | TYPE CPET_LOG_PRIORITY , |
| ld_ev_test_error_occurred | TYPE CHAR1 , |
| ld_iv_vmc_rfc_dest | TYPE RFCDEST , |
| ld_ev_error | TYPE CHAR100 , |
| ld_iv_value | TYPE CPET_USERVAL1 , |
| ld_ev_cpemsgno | TYPE MSGNR , |
| ld_iv_roundrule | TYPE CPET_ROUNDRULE , |
| ld_et_log | TYPE CPET_LOG_TAB , |
| ld_iv_roundrout | TYPE CPET_ROUNDROUT , |
| ld_iv_numdecs | TYPE CPET_NUMDECS , |
| ld_iv_numtens | TYPE CPET_NUMTENS , |
| ld_iv_evaldate | TYPE CPET_REFDATE . |
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 CPE_TEST_FE_ROUNDRULE or its description.
CPE_TEST_FE_ROUNDRULE - CPE: Test of Rounding Rule within Formula Evaluation CPE_TEST_FE_QUANSPLIT - CPE: Test of Quantity Split Routine within Formula Evaluation CPE_TEST_FE_PERDETRULE - CPE: Test of Period Determination Rule within Formula Evaluation CPE_TEST_FE_CONVRULE - CPE: Test of (Quantity )Conversion Rule within Formula Evaluation CPE_TEST_FE_COMBROUT - CPE: Test of Combination Routine within Formula Evaluation CPE_TEST_FE_CALCRULE - CPE: Test of Calculation Rule within Formula Evaluation