SAP FPM_DEFBK_READ_ACTUAL_POSITION Function Module for Financial Balance Sheet Account: Output Position per Key Date









FPM_DEFBK_READ_ACTUAL_POSITION is a standard fpm defbk read actual position SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Financial Balance Sheet Account: Output Position per Key Date 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 fpm defbk read actual position FM, simply by entering the name FPM_DEFBK_READ_ACTUAL_POSITION into the relevant SAP transaction such as SE37 or SE38.

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



Function FPM_DEFBK_READ_ACTUAL_POSITION 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 'FPM_DEFBK_READ_ACTUAL_POSITION'"Financial Balance Sheet Account: Output Position per Key Date
EXPORTING
I_RANL = "ID Number
I_BUKRS = "Company Code
I_RLDEPO = "Securities Account
I_RLOT = "Lot
* I_SELECT_MODE = 0 "Selektionsmodus: Langtext beachten
* I_DELETED_FLOWS = "Zu ignorierende Bewegungen
* I_DATE = "Stichtag (bezogen auf Bestandsvaluta)

IMPORTING
E_RESULT = "Result

EXCEPTIONS
INVALID = 1
.



IMPORTING Parameters details for FPM_DEFBK_READ_ACTUAL_POSITION

I_RANL - ID Number

Data type: VVRANLW
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUKRS - Company Code

Data type: BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_RLDEPO - Securities Account

Data type: RLDEPO
Optional: No
Call by Reference: No ( called with pass by value option)

I_RLOT - Lot

Data type: TPM_RLOT
Optional: No
Call by Reference: No ( called with pass by value option)

I_SELECT_MODE - Selektionsmodus: Langtext beachten

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

I_DELETED_FLOWS - Zu ignorierende Bewegungen

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

I_DATE - Stichtag (bezogen auf Bestandsvaluta)

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

EXPORTING Parameters details for FPM_DEFBK_READ_ACTUAL_POSITION

E_RESULT - Result

Data type: TPMS_DEFBK_RESULT
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID - Invalid

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FPM_DEFBK_READ_ACTUAL_POSITION 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_ranl  TYPE VVRANLW, "   
lv_invalid  TYPE VVRANLW, "   
lv_e_result  TYPE TPMS_DEFBK_RESULT, "   
lv_i_bukrs  TYPE BUKRS, "   
lv_i_rldepo  TYPE RLDEPO, "   
lv_i_rlot  TYPE TPM_RLOT, "   
lv_i_select_mode  TYPE I, "   0
lv_i_deleted_flows  TYPE TPMY_DEDOC_LOT_FLOW, "   
lv_i_date  TYPE SY-DATUM. "   

  CALL FUNCTION 'FPM_DEFBK_READ_ACTUAL_POSITION'  "Financial Balance Sheet Account: Output Position per Key Date
    EXPORTING
         I_RANL = lv_i_ranl
         I_BUKRS = lv_i_bukrs
         I_RLDEPO = lv_i_rldepo
         I_RLOT = lv_i_rlot
         I_SELECT_MODE = lv_i_select_mode
         I_DELETED_FLOWS = lv_i_deleted_flows
         I_DATE = lv_i_date
    IMPORTING
         E_RESULT = lv_e_result
    EXCEPTIONS
        INVALID = 1
. " FPM_DEFBK_READ_ACTUAL_POSITION




ABAP code using 7.40 inline data declarations to call FM FPM_DEFBK_READ_ACTUAL_POSITION

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 DATUM FROM SY INTO @DATA(ld_i_date).
 


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!