SAP CMAC_FEE_CALC_SIMULATE_RFC Function Module for Fee Calculation Simulation
CMAC_FEE_CALC_SIMULATE_RFC is a standard cmac fee calc simulate rfc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Fee Calculation Simulation 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 cmac fee calc simulate rfc FM, simply by entering the name CMAC_FEE_CALC_SIMULATE_RFC into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMACFEE1
Program Name: SAPLCMACFEE1
Main Program: SAPLCMACFEE1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CMAC_FEE_CALC_SIMULATE_RFC 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 'CMAC_FEE_CALC_SIMULATE_RFC'"Fee Calculation Simulation.
EXPORTING
* IV_FEE_GROUP = 2 "Fee Calculation Base
* IV_FEEMODE = "Processing Mode for Fee Calculation
* IV_CALCDATE = SY-DATUM "Current Date of Application Server
IS_STINFO = "Student information
TABLES
IT_SCINFO = "Program of Study
IT_SMINFO = "Modules information
ET_LOG_TAB = "Return Parameter
ET_FEE_RESULT = "Used in Simulation of Fee Calculation
IMPORTING Parameters details for CMAC_FEE_CALC_SIMULATE_RFC
IV_FEE_GROUP - Fee Calculation Base
Data type: PIQ_FEE_GROUPDefault: 2
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_FEEMODE - Processing Mode for Fee Calculation
Data type: PIQFEECALCMODEOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CALCDATE - Current Date of Application Server
Data type: SYDATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_STINFO - Student information
Data type: CMAC_STOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CMAC_FEE_CALC_SIMULATE_RFC
IT_SCINFO - Program of Study
Data type: CMAC_SCOptional: No
Call by Reference: Yes
IT_SMINFO - Modules information
Data type: CMAC_SMOptional: No
Call by Reference: Yes
ET_LOG_TAB - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: Yes
ET_FEE_RESULT - Used in Simulation of Fee Calculation
Data type: CMAC_FEE_SIMULATE_RESULTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMAC_FEE_CALC_SIMULATE_RFC 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: | ||||
| lt_it_scinfo | TYPE STANDARD TABLE OF CMAC_SC, " | |||
| lv_iv_fee_group | TYPE PIQ_FEE_GROUP, " 2 | |||
| lt_it_sminfo | TYPE STANDARD TABLE OF CMAC_SM, " | |||
| lv_iv_feemode | TYPE PIQFEECALCMODE, " | |||
| lt_et_log_tab | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_iv_calcdate | TYPE SYDATUM, " SY-DATUM | |||
| lv_is_stinfo | TYPE CMAC_ST, " | |||
| lt_et_fee_result | TYPE STANDARD TABLE OF CMAC_FEE_SIMULATE_RESULT. " |
|   CALL FUNCTION 'CMAC_FEE_CALC_SIMULATE_RFC' "Fee Calculation Simulation |
| EXPORTING | ||
| IV_FEE_GROUP | = lv_iv_fee_group | |
| IV_FEEMODE | = lv_iv_feemode | |
| IV_CALCDATE | = lv_iv_calcdate | |
| IS_STINFO | = lv_is_stinfo | |
| TABLES | ||
| IT_SCINFO | = lt_it_scinfo | |
| IT_SMINFO | = lt_it_sminfo | |
| ET_LOG_TAB | = lt_et_log_tab | |
| ET_FEE_RESULT | = lt_et_fee_result | |
| . " CMAC_FEE_CALC_SIMULATE_RFC | ||
ABAP code using 7.40 inline data declarations to call FM CMAC_FEE_CALC_SIMULATE_RFC
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_fee_group) | = 2. | |||
| DATA(ld_iv_calcdate) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects