SAP BM_CALCADMIN_READ Function Module for Eintrag in AFWBM_CALCADMIN anlegen









BM_CALCADMIN_READ is a standard bm calcadmin read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Eintrag in AFWBM_CALCADMIN anlegen 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 bm calcadmin read FM, simply by entering the name BM_CALCADMIN_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: AFWBM_MARKET
Program Name: SAPLAFWBM_MARKET
Main Program: SAPLAFWBM_MARKET
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BM_CALCADMIN_READ 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 'BM_CALCADMIN_READ'"Eintrag in AFWBM_CALCADMIN anlegen
EXPORTING
I_KEYFIGURE = "Key Figure
I_BMID = "Benchmark ID
* I_START_DATE = "Evaluation Date
* I_END_DATE = "Evaluation Date
* I_MODUS = "Operating Mode of Final Results Procedure

IMPORTING
ET_BM_CALCADMIN = "calcadmin
ET_BM_CALC_PROT = "Table for Status Entry
ET_BM_CALC_EXIST = "Key Figure Calculations that Exist

EXCEPTIONS
ERROR_READ = 1 NO_ENTRY_FOUND = 2 ENTRY_INTERVAL_FOUND = 3
.



IMPORTING Parameters details for BM_CALCADMIN_READ

I_KEYFIGURE - Key Figure

Data type: AFWBM_KEYFIGURE
Optional: No
Call by Reference: Yes

I_BMID - Benchmark ID

Data type: AFWBM_BMID
Optional: No
Call by Reference: Yes

I_START_DATE - Evaluation Date

Data type: AFW_KEYDATE
Optional: Yes
Call by Reference: Yes

I_END_DATE - Evaluation Date

Data type: AFW_KEYDATE
Optional: Yes
Call by Reference: Yes

I_MODUS - Operating Mode of Final Results Procedure

Data type: AFWGO_MODUS2
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for BM_CALCADMIN_READ

ET_BM_CALCADMIN - calcadmin

Data type: AFWBM_CALCADMIN_WORK_T
Optional: No
Call by Reference: Yes

ET_BM_CALC_PROT - Table for Status Entry

Data type: AFWBM_CALC_PROT_T
Optional: No
Call by Reference: Yes

ET_BM_CALC_EXIST - Key Figure Calculations that Exist

Data type: AFWBM_CALCADMIN_WORK_T
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ERROR_READ - Read error

Data type:
Optional: No
Call by Reference: Yes

NO_ENTRY_FOUND - No entries exist (for deletion)

Data type:
Optional: No
Call by Reference: Yes

ENTRY_INTERVAL_FOUND - Entries for interval exist

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BM_CALCADMIN_READ 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_error_read  TYPE STRING, "   
lv_i_keyfigure  TYPE AFWBM_KEYFIGURE, "   
lv_et_bm_calcadmin  TYPE AFWBM_CALCADMIN_WORK_T, "   
lv_i_bmid  TYPE AFWBM_BMID, "   
lv_no_entry_found  TYPE AFWBM_BMID, "   
lv_et_bm_calc_prot  TYPE AFWBM_CALC_PROT_T, "   
lv_i_start_date  TYPE AFW_KEYDATE, "   
lv_et_bm_calc_exist  TYPE AFWBM_CALCADMIN_WORK_T, "   
lv_entry_interval_found  TYPE AFWBM_CALCADMIN_WORK_T, "   
lv_i_end_date  TYPE AFW_KEYDATE, "   
lv_i_modus  TYPE AFWGO_MODUS2. "   

  CALL FUNCTION 'BM_CALCADMIN_READ'  "Eintrag in AFWBM_CALCADMIN anlegen
    EXPORTING
         I_KEYFIGURE = lv_i_keyfigure
         I_BMID = lv_i_bmid
         I_START_DATE = lv_i_start_date
         I_END_DATE = lv_i_end_date
         I_MODUS = lv_i_modus
    IMPORTING
         ET_BM_CALCADMIN = lv_et_bm_calcadmin
         ET_BM_CALC_PROT = lv_et_bm_calc_prot
         ET_BM_CALC_EXIST = lv_et_bm_calc_exist
    EXCEPTIONS
        ERROR_READ = 1
        NO_ENTRY_FOUND = 2
        ENTRY_INTERVAL_FOUND = 3
. " BM_CALCADMIN_READ




ABAP code using 7.40 inline data declarations to call FM BM_CALCADMIN_READ

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!