SAP FMCA_SAMPLE_ROUND_2040 Function Module for See FKK_SAMPLE_ROUND_2040
FMCA_SAMPLE_ROUND_2040 is a standard fmca sample round 2040 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for See FKK_SAMPLE_ROUND_2040 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 fmca sample round 2040 FM, simply by entering the name FMCA_SAMPLE_ROUND_2040 into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCA_INT
Program Name: SAPLFMCA_INT
Main Program: SAPLFMCA_INT
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCA_SAMPLE_ROUND_2040 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 'FMCA_SAMPLE_ROUND_2040'"See FKK_SAMPLE_ROUND_2040.
EXPORTING
I_HERKF = "Origin
I_CASHDEP = "Indicator: Cash Security Deposits
I_WARNING = "Do you want to send a warning?
* I_RULE = "Interest calculation rule
CHANGING
* E_MIN = "Mimimum Amount Check
TABLES
I_FKKOP = "Interest Item (Unchecked)
E_PFKKOP = "Interest Items that can be Posted
E_LFKKOP = "Interest Items that are not Posted
I_FKKIA = "FI-CA: Structure for inter. suppl. to state interest
EXCEPTIONS
SERIOUS_ERROR = 1
IMPORTING Parameters details for FMCA_SAMPLE_ROUND_2040
I_HERKF - Origin
Data type: RFKI1-HERKFOptional: No
Call by Reference: No ( called with pass by value option)
I_CASHDEP - Indicator: Cash Security Deposits
Data type: RFKI1-CASHDEPOptional: No
Call by Reference: No ( called with pass by value option)
I_WARNING - Do you want to send a warning?
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
I_RULE - Interest calculation rule
Data type: TFK056A-IRULEOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FMCA_SAMPLE_ROUND_2040
E_MIN - Mimimum Amount Check
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FMCA_SAMPLE_ROUND_2040
I_FKKOP - Interest Item (Unchecked)
Data type: FKKOPOptional: No
Call by Reference: No ( called with pass by value option)
E_PFKKOP - Interest Items that can be Posted
Data type: FKKOPOptional: No
Call by Reference: No ( called with pass by value option)
E_LFKKOP - Interest Items that are not Posted
Data type: FKKOPOptional: No
Call by Reference: No ( called with pass by value option)
I_FKKIA - FI-CA: Structure for inter. suppl. to state interest
Data type: FKKIAOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SERIOUS_ERROR - Serious Error Occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FMCA_SAMPLE_ROUND_2040 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_e_min | TYPE BOOLE-BOOLE, " | |||
| lt_i_fkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_i_herkf | TYPE RFKI1-HERKF, " | |||
| lv_serious_error | TYPE RFKI1, " | |||
| lt_e_pfkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_i_cashdep | TYPE RFKI1-CASHDEP, " | |||
| lt_e_lfkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_i_warning | TYPE BOOLE-BOOLE, " | |||
| lv_i_rule | TYPE TFK056A-IRULE, " | |||
| lt_i_fkkia | TYPE STANDARD TABLE OF FKKIA. " |
|   CALL FUNCTION 'FMCA_SAMPLE_ROUND_2040' "See FKK_SAMPLE_ROUND_2040 |
| EXPORTING | ||
| I_HERKF | = lv_i_herkf | |
| I_CASHDEP | = lv_i_cashdep | |
| I_WARNING | = lv_i_warning | |
| I_RULE | = lv_i_rule | |
| CHANGING | ||
| E_MIN | = lv_e_min | |
| TABLES | ||
| I_FKKOP | = lt_i_fkkop | |
| E_PFKKOP | = lt_e_pfkkop | |
| E_LFKKOP | = lt_e_lfkkop | |
| I_FKKIA | = lt_i_fkkia | |
| EXCEPTIONS | ||
| SERIOUS_ERROR = 1 | ||
| . " FMCA_SAMPLE_ROUND_2040 | ||
ABAP code using 7.40 inline data declarations to call FM FMCA_SAMPLE_ROUND_2040
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.| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_min). | ||||
| "SELECT single HERKF FROM RFKI1 INTO @DATA(ld_i_herkf). | ||||
| "SELECT single CASHDEP FROM RFKI1 INTO @DATA(ld_i_cashdep). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_warning). | ||||
| "SELECT single IRULE FROM TFK056A INTO @DATA(ld_i_rule). | ||||
Search for further information about these or an SAP related objects