SAP CMAC_APPLICATION_FEES Function Module for Post Internet Scenario Related Document from ISR (Internal)
CMAC_APPLICATION_FEES is a standard cmac application fees SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Internet Scenario Related Document from ISR (Internal) 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 application fees FM, simply by entering the name CMAC_APPLICATION_FEES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMACISR
Program Name: SAPLCMACISR
Main Program: SAPLCMACISR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CMAC_APPLICATION_FEES 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_APPLICATION_FEES'"Post Internet Scenario Related Document from ISR (Internal).
EXPORTING
IS_APPL_FEE = "Data for Posting the Finanical Aid Document from ISR
* IS_APPL_FEE_BANK = "Bank Data for ISR Related Fee
* IS_APPL_FEE_CARD = "Credit Card Data for ISR Related Fee
* IS_APPL_AUT = "Payment Cards: Data for Authorization
* IS_ISRCVV_DATA = "Kartenverifizierungscode (Kartenprüfnummer, KPN)
* IV_COMMITWORK = "COMMIT WORK absetzen?
IMPORTING
EV_ACCOUNTDOC = "Contract Account Document Number
ET_RETURN = "Return parameter table
EXCEPTIONS
CUSTOMIZING_ERROR = 1 FAIL_TO_CREATE_DOC = 2
IMPORTING Parameters details for CMAC_APPLICATION_FEES
IS_APPL_FEE - Data for Posting the Finanical Aid Document from ISR
Data type: CMAC_APPL_FEEOptional: No
Call by Reference: No ( called with pass by value option)
IS_APPL_FEE_BANK - Bank Data for ISR Related Fee
Data type: CMAC_ISRFEEBANKOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_APPL_FEE_CARD - Credit Card Data for ISR Related Fee
Data type: CMAC_ISRFEECARDOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_APPL_AUT - Payment Cards: Data for Authorization
Data type: FKKOPKC_AUTOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_ISRCVV_DATA - Kartenverifizierungscode (Kartenprüfnummer, KPN)
Data type: CCARD_CVV_KKOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_COMMITWORK - COMMIT WORK absetzen?
Data type: COMMITWORKOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CMAC_APPLICATION_FEES
EV_ACCOUNTDOC - Contract Account Document Number
Data type: OPBEL_KKOptional: No
Call by Reference: No ( called with pass by value option)
ET_RETURN - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
CUSTOMIZING_ERROR - TFK042Z Customizing Error
Data type:Optional: No
Call by Reference: Yes
FAIL_TO_CREATE_DOC - Fail_to_create_doc
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMAC_APPLICATION_FEES 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_appl_fee | TYPE CMAC_APPL_FEE, " | |||
| lv_ev_accountdoc | TYPE OPBEL_KK, " | |||
| lv_customizing_error | TYPE OPBEL_KK, " | |||
| lv_et_return | TYPE BAPIRET2_T, " | |||
| lv_is_appl_fee_bank | TYPE CMAC_ISRFEEBANK, " | |||
| lv_fail_to_create_doc | TYPE CMAC_ISRFEEBANK, " | |||
| lv_is_appl_fee_card | TYPE CMAC_ISRFEECARD, " | |||
| lv_is_appl_aut | TYPE FKKOPKC_AUT, " | |||
| lv_is_isrcvv_data | TYPE CCARD_CVV_KK, " | |||
| lv_iv_commitwork | TYPE COMMITWORK. " |
|   CALL FUNCTION 'CMAC_APPLICATION_FEES' "Post Internet Scenario Related Document from ISR (Internal) |
| EXPORTING | ||
| IS_APPL_FEE | = lv_is_appl_fee | |
| IS_APPL_FEE_BANK | = lv_is_appl_fee_bank | |
| IS_APPL_FEE_CARD | = lv_is_appl_fee_card | |
| IS_APPL_AUT | = lv_is_appl_aut | |
| IS_ISRCVV_DATA | = lv_is_isrcvv_data | |
| IV_COMMITWORK | = lv_iv_commitwork | |
| IMPORTING | ||
| EV_ACCOUNTDOC | = lv_ev_accountdoc | |
| ET_RETURN | = lv_et_return | |
| EXCEPTIONS | ||
| CUSTOMIZING_ERROR = 1 | ||
| FAIL_TO_CREATE_DOC = 2 | ||
| . " CMAC_APPLICATION_FEES | ||
ABAP code using 7.40 inline data declarations to call FM CMAC_APPLICATION_FEES
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.Search for further information about these or an SAP related objects