SAP CMAC_FEEHISTORY_SHOW Function Module for Show fee calculation history
CMAC_FEEHISTORY_SHOW is a standard cmac feehistory show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Show fee calculation history 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 feehistory show FM, simply by entering the name CMAC_FEEHISTORY_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMACFEE4
Program Name: SAPLCMACFEE4
Main Program: SAPLCMACFEE4
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CMAC_FEEHISTORY_SHOW 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_FEEHISTORY_SHOW'"Show fee calculation history.
EXPORTING
* IT_DOCNR = "
* IT_STUDENT = "Student Object ID
* IT_PERSL = "
* IV_FEECALC_BEGDA = "Start Date
* IV_FEECALC_ENDDA = "End Date
* IV_FEERUN_BEGDA = "Start Date
* IV_FEERUN_ENDDA = "End Date
* IV_FEECALCMODE = "Fee Calculation Processing Mode
* IV_CALC_BASE = "Fee Group
EXCEPTIONS
NO_AUTHORIZATION = 1 FEEDOC_NOT_FOUND = 2 FEEDOC_HIST_ERROR = 3
IMPORTING Parameters details for CMAC_FEEHISTORY_SHOW
IT_DOCNR -
Data type: CMAC_FEE_DOCNR_TOptional: Yes
Call by Reference: Yes
IT_STUDENT - Student Object ID
Data type: PIQST_OBJID_TOptional: Yes
Call by Reference: Yes
IT_PERSL -
Data type: CMAC_PERSL_TOptional: Yes
Call by Reference: Yes
IV_FEECALC_BEGDA - Start Date
Data type: BEGDAOptional: Yes
Call by Reference: Yes
IV_FEECALC_ENDDA - End Date
Data type: ENDDAOptional: Yes
Call by Reference: Yes
IV_FEERUN_BEGDA - Start Date
Data type: BEGDAOptional: Yes
Call by Reference: Yes
IV_FEERUN_ENDDA - End Date
Data type: ENDDAOptional: Yes
Call by Reference: Yes
IV_FEECALCMODE - Fee Calculation Processing Mode
Data type: PIQFEECALCMODEOptional: Yes
Call by Reference: Yes
IV_CALC_BASE - Fee Group
Data type: PIQ_FEE_GROUPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_AUTHORIZATION - No authorization
Data type:Optional: No
Call by Reference: Yes
FEEDOC_NOT_FOUND - No fee calculation document found
Data type:Optional: No
Call by Reference: Yes
FEEDOC_HIST_ERROR - Error when show fee calculation history
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CMAC_FEEHISTORY_SHOW 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_it_docnr | TYPE CMAC_FEE_DOCNR_T, " | |||
lv_no_authorization | TYPE CMAC_FEE_DOCNR_T, " | |||
lv_it_student | TYPE PIQST_OBJID_T, " | |||
lv_feedoc_not_found | TYPE PIQST_OBJID_T, " | |||
lv_it_persl | TYPE CMAC_PERSL_T, " | |||
lv_feedoc_hist_error | TYPE CMAC_PERSL_T, " | |||
lv_iv_feecalc_begda | TYPE BEGDA, " | |||
lv_iv_feecalc_endda | TYPE ENDDA, " | |||
lv_iv_feerun_begda | TYPE BEGDA, " | |||
lv_iv_feerun_endda | TYPE ENDDA, " | |||
lv_iv_feecalcmode | TYPE PIQFEECALCMODE, " | |||
lv_iv_calc_base | TYPE PIQ_FEE_GROUP. " |
  CALL FUNCTION 'CMAC_FEEHISTORY_SHOW' "Show fee calculation history |
EXPORTING | ||
IT_DOCNR | = lv_it_docnr | |
IT_STUDENT | = lv_it_student | |
IT_PERSL | = lv_it_persl | |
IV_FEECALC_BEGDA | = lv_iv_feecalc_begda | |
IV_FEECALC_ENDDA | = lv_iv_feecalc_endda | |
IV_FEERUN_BEGDA | = lv_iv_feerun_begda | |
IV_FEERUN_ENDDA | = lv_iv_feerun_endda | |
IV_FEECALCMODE | = lv_iv_feecalcmode | |
IV_CALC_BASE | = lv_iv_calc_base | |
EXCEPTIONS | ||
NO_AUTHORIZATION = 1 | ||
FEEDOC_NOT_FOUND = 2 | ||
FEEDOC_HIST_ERROR = 3 | ||
. " CMAC_FEEHISTORY_SHOW |
ABAP code using 7.40 inline data declarations to call FM CMAC_FEEHISTORY_SHOW
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