SAP READ_ACTUALS_FMCB_WITH_RANGES Function Module for









READ_ACTUALS_FMCB_WITH_RANGES is a standard read actuals fmcb with ranges SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 read actuals fmcb with ranges FM, simply by entering the name READ_ACTUALS_FMCB_WITH_RANGES into the relevant SAP transaction such as SE37 or SE38.

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



Function READ_ACTUALS_FMCB_WITH_RANGES 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 'READ_ACTUALS_FMCB_WITH_RANGES'"
EXPORTING
I_FIKRS = "Financial management area
* I_KOKRS = "Controlling area
* I_ACTUALS = 'X' "
* I_BALANCES = ' ' "

TABLES
* T_FIPOS = "Commitment item
* T_KOKRS = "
* T_KOSTL = "Cost center
* T_AUFNR = "Order
* T_POSID = "WBS element
* T_ACTUALS = "Actual/commitment records
* T_BALANCES = "
* T_GJAHR = "
* T_PERIO = "Period
* T_PERIO7 = "
* T_WRTTP = "Value type
* T_VORGA = "
* T_TWAER = "Transaction currency
* T_BUKRS = "Company code
* T_GSBER = "Business area
.



IMPORTING Parameters details for READ_ACTUALS_FMCB_WITH_RANGES

I_FIKRS - Financial management area

Data type: FM01-FIKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_KOKRS - Controlling area

Data type: TKA01-KOKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTUALS -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BALANCES -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for READ_ACTUALS_FMCB_WITH_RANGES

T_FIPOS - Commitment item

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

T_KOKRS -

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

T_KOSTL - Cost center

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

T_AUFNR - Order

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

T_POSID - WBS element

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

T_ACTUALS - Actual/commitment records

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

T_BALANCES -

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

T_GJAHR -

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

T_PERIO - Period

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

T_PERIO7 -

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

T_WRTTP - Value type

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

T_VORGA -

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

T_TWAER - Transaction currency

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

T_BUKRS - Company code

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

T_GSBER - Business area

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

Copy and paste ABAP code example for READ_ACTUALS_FMCB_WITH_RANGES 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_i_fikrs  TYPE FM01-FIKRS, "   
lt_t_fipos  TYPE STANDARD TABLE OF RANGE_C14, "   
lt_t_kokrs  TYPE STANDARD TABLE OF RANGE_C4, "   
lt_t_kostl  TYPE STANDARD TABLE OF RANGE_C10, "   
lt_t_aufnr  TYPE STANDARD TABLE OF RANGE_C12, "   
lt_t_posid  TYPE STANDARD TABLE OF RANGE_C24, "   
lt_t_actuals  TYPE STANDARD TABLE OF FMFMSU1, "   
lt_t_balances  TYPE STANDARD TABLE OF FMFMBE1, "   
lv_i_kokrs  TYPE TKA01-KOKRS, "   
lt_t_gjahr  TYPE STANDARD TABLE OF RANGE_N4, "   
lt_t_perio  TYPE STANDARD TABLE OF RANGE_N3, "   
lv_i_actuals  TYPE RANGE_N3, "   'X'
lt_t_perio7  TYPE STANDARD TABLE OF RANGE_N7, "   
lv_i_balances  TYPE RANGE_N7, "   SPACE
lt_t_wrttp  TYPE STANDARD TABLE OF RSN2RANGE, "   
lt_t_vorga  TYPE STANDARD TABLE OF RANGE_C4, "   
lt_t_twaer  TYPE STANDARD TABLE OF RANGE_CUKY, "   
lt_t_bukrs  TYPE STANDARD TABLE OF RANGE_C4, "   
lt_t_gsber  TYPE STANDARD TABLE OF RANGE_C4. "   

  CALL FUNCTION 'READ_ACTUALS_FMCB_WITH_RANGES'  "
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_KOKRS = lv_i_kokrs
         I_ACTUALS = lv_i_actuals
         I_BALANCES = lv_i_balances
    TABLES
         T_FIPOS = lt_t_fipos
         T_KOKRS = lt_t_kokrs
         T_KOSTL = lt_t_kostl
         T_AUFNR = lt_t_aufnr
         T_POSID = lt_t_posid
         T_ACTUALS = lt_t_actuals
         T_BALANCES = lt_t_balances
         T_GJAHR = lt_t_gjahr
         T_PERIO = lt_t_perio
         T_PERIO7 = lt_t_perio7
         T_WRTTP = lt_t_wrttp
         T_VORGA = lt_t_vorga
         T_TWAER = lt_t_twaer
         T_BUKRS = lt_t_bukrs
         T_GSBER = lt_t_gsber
. " READ_ACTUALS_FMCB_WITH_RANGES




ABAP code using 7.40 inline data declarations to call FM READ_ACTUALS_FMCB_WITH_RANGES

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 FIKRS FROM FM01 INTO @DATA(ld_i_fikrs).
 
 
 
 
 
 
 
 
"SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs).
 
 
 
DATA(ld_i_actuals) = 'X'.
 
 
DATA(ld_i_balances) = ' '.
 
 
 
 
 
 


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!