CPE_TEST_API_FOR_FE_CONVRULE 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_API_FOR_FE_CONVRULE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CPE_TEST_API_FOR_FE
Released Date:
Not Released
Processing type: Remote-Enabled JAVA Module
CALL FUNCTION 'CPE_TEST_API_FOR_FE_CONVRULE' "CPE: API for Test of (Quantity )Conversion Rule within Formula Evaluation
EXPORTING
* iv_log_priority = '5' " cpet_log_priority CPE - Priority of Log Entry
* iv_evaldate = " cpet_refdate CPE Term - Calculated Reference Date: not used anymore!
* iv_quanconvonly = " char01 Character Field Length 1
iv_rateorquanfrom = " cpet_userval1 CPE Term - Freely Usable Field
* iv_currfrom = " cpet_currfrom CPE - Currency to Be Converted During Conversion ('from')
* iv_prunfrom = " cpet_quotprun Price Unit of Quotation
iv_uomfrom = " cpet_uomfrom CPE - Unit of Measure to Be Converted During Conv. ('From')
* iv_currto = " cpet_currto CPE - Currency to Be Converted to During Conversion ('to')
* iv_prunto = " cpet_quotprun Price Unit of Quotation
iv_uomto = " cpet_uomto CPE - Unit of Measure Converted to During Conversion
* iv_fixexchrate = " cpet_fixexchrate CPE Term - Fixed Exchange Rate for Currency Conversion
* iv_factorfrom = " cpet_factorfrom CPE - From-Factor for Conversion
* iv_factorto = " cpet_factorto CPE - To-Factor for Conversion
* iv_doccat = " cpet_doccategory CPE Caller - Document Category
* iv_exchratedate = " cpet_refdate CPE Term - Calculated Reference Date: not used anymore!
* iv_roundforavgexchrate = " cpet_roundrule CPE - Rounding Rule
* is_conversion = " cpec_conversion CPE - Conversion Rule
* is_quanconv = " cpec_quanconv CPE - Quantity Conversion Rule
* it_quanconv_pair = " cpet_quanconv_if_tab CPE - Table Type for Quantity Conv. Interface in Pair Format
* it_quanconv_list = " cpet_quanconv_if2_tab CPE - Table Type for Quantity Conv. Interface in List Form
* it_rounds = " cpet_roundrule_tab CPE - Table Type for CPE Rounding Rules
* it_exchratetoavg = " cpet_tcurr_sim_tab CPE - Table type Exchange Rate Simulation
IMPORTING
ev_rateorquanto = " mssiowat MS SQL Server virtualfilestats: IOSTALLS (ms) per read
ev_usedexchrate = " mssiowat MS SQL Server virtualfilestats: IOSTALLS (ms) per read
ev_usedfactorfrom = " mssiowat MS SQL Server virtualfilestats: IOSTALLS (ms) per read
ev_usedfactorto = " mssiowat MS SQL Server virtualfilestats: IOSTALLS (ms) per read
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
FORMULA_EVALUATION_TERMINATED = 1 "
. " CPE_TEST_API_FOR_FE_CONVRULE
The ABAP code below is a full code listing to execute function module CPE_TEST_API_FOR_FE_CONVRULE 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_rateorquanto | TYPE MSSIOWAT , |
| ld_ev_usedexchrate | TYPE MSSIOWAT , |
| ld_ev_usedfactorfrom | TYPE MSSIOWAT , |
| ld_ev_usedfactorto | TYPE MSSIOWAT , |
| 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_rateorquanto | TYPE MSSIOWAT , |
| ld_iv_log_priority | TYPE CPET_LOG_PRIORITY , |
| ld_ev_usedexchrate | TYPE MSSIOWAT , |
| ld_iv_evaldate | TYPE CPET_REFDATE , |
| ld_ev_usedfactorfrom | TYPE MSSIOWAT , |
| ld_iv_quanconvonly | TYPE CHAR01 , |
| ld_ev_usedfactorto | TYPE MSSIOWAT , |
| ld_iv_rateorquanfrom | TYPE CPET_USERVAL1 , |
| ld_ev_error | TYPE CHAR100 , |
| ld_iv_currfrom | TYPE CPET_CURRFROM , |
| ld_ev_cpemsgno | TYPE MSGNR , |
| ld_iv_prunfrom | TYPE CPET_QUOTPRUN , |
| ld_et_log | TYPE CPET_LOG_TAB , |
| ld_iv_uomfrom | TYPE CPET_UOMFROM , |
| ld_iv_currto | TYPE CPET_CURRTO , |
| ld_iv_prunto | TYPE CPET_QUOTPRUN , |
| ld_iv_uomto | TYPE CPET_UOMTO , |
| ld_iv_fixexchrate | TYPE CPET_FIXEXCHRATE , |
| ld_iv_factorfrom | TYPE CPET_FACTORFROM , |
| ld_iv_factorto | TYPE CPET_FACTORTO , |
| ld_iv_doccat | TYPE CPET_DOCCATEGORY , |
| ld_iv_exchratedate | TYPE CPET_REFDATE , |
| ld_iv_roundforavgexchrate | TYPE CPET_ROUNDRULE , |
| ld_is_conversion | TYPE CPEC_CONVERSION , |
| ld_is_quanconv | TYPE CPEC_QUANCONV , |
| ld_it_quanconv_pair | TYPE CPET_QUANCONV_IF_TAB , |
| ld_it_quanconv_list | TYPE CPET_QUANCONV_IF2_TAB , |
| ld_it_rounds | TYPE CPET_ROUNDRULE_TAB , |
| ld_it_exchratetoavg | TYPE CPET_TCURR_SIM_TAB . |
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_API_FOR_FE_CONVRULE or its description.
CPE_TEST_API_FOR_FE_CONVRULE - CPE: API for Test of (Quantity )Conversion Rule within Formula Evalua CPE_TEST_API_FOR_FE_COMBROUT - CPE: API for Test of Combination Routine within Formula Evaluation CPE_TEST_API_FOR_FE_CALCRULE - CPE: API for Test of Calculation Rule within Formula Evaluation CPE_TERM_USER_FIELDNAMES_OW - CPE_D - Create Field Names for Term User Fields CPE_TERM_USEROUT_READ_OW - CPE_D - User Fields of Term Result - Read Object Work Area CPE_TERM_USERFIELDS_READ_OW - CPE_D - Term User Fields - Read Object Work Area