SAP FM3R_GET_POSIT_FROM_ACCOUNT Function Module for
FM3R_GET_POSIT_FROM_ACCOUNT is a standard fm3r get posit from account 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 fm3r get posit from account FM, simply by entering the name FM3R_GET_POSIT_FROM_ACCOUNT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FM3R
Program Name: SAPLFM3R
Main Program: SAPLFM3R
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function FM3R_GET_POSIT_FROM_ACCOUNT 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 'FM3R_GET_POSIT_FROM_ACCOUNT'".
EXPORTING
I_BUKRS = "Company code
* I_FIKRS = ' ' "Company code FM area (if available)
* I_FLG_BUFFER_ALL = ' ' "
I_SAKNR = "G/L account
* I_GJAHR = ' ' "
IMPORTING
E_FIPOS = "Commitment item for G/L account
E_POSIT = "Item for G/L account
EXCEPTIONS
FIPOS_DATA_NOT_FOUND = 1 NO_ACCOUNT_FOUND = 2 NO_FIPOS_FOUND = 3
IMPORTING Parameters details for FM3R_GET_POSIT_FROM_ACCOUNT
I_BUKRS - Company code
Data type: SKB1-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_FIKRS - Company code FM area (if available)
Data type: T001-FIKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_BUFFER_ALL -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SAKNR - G/L account
Data type: SKB1-SAKNROptional: No
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: FMPG-GJAHRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FM3R_GET_POSIT_FROM_ACCOUNT
E_FIPOS - Commitment item for G/L account
Data type: FMFPO-FIPOSOptional: No
Call by Reference: No ( called with pass by value option)
E_POSIT - Item for G/L account
Data type: FMFPO-POSITOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FIPOS_DATA_NOT_FOUND - Commitment item data not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ACCOUNT_FOUND - Account not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FIPOS_FOUND - No commitment item defined in account
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FM3R_GET_POSIT_FROM_ACCOUNT 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_fipos | TYPE FMFPO-FIPOS, " | |||
lv_i_bukrs | TYPE SKB1-BUKRS, " | |||
lv_fipos_data_not_found | TYPE SKB1, " | |||
lv_e_posit | TYPE FMFPO-POSIT, " | |||
lv_i_fikrs | TYPE T001-FIKRS, " SPACE | |||
lv_no_account_found | TYPE T001, " | |||
lv_no_fipos_found | TYPE T001, " | |||
lv_i_flg_buffer_all | TYPE FMDY-XFELD, " SPACE | |||
lv_i_saknr | TYPE SKB1-SAKNR, " | |||
lv_i_gjahr | TYPE FMPG-GJAHR. " SPACE |
  CALL FUNCTION 'FM3R_GET_POSIT_FROM_ACCOUNT' " |
EXPORTING | ||
I_BUKRS | = lv_i_bukrs | |
I_FIKRS | = lv_i_fikrs | |
I_FLG_BUFFER_ALL | = lv_i_flg_buffer_all | |
I_SAKNR | = lv_i_saknr | |
I_GJAHR | = lv_i_gjahr | |
IMPORTING | ||
E_FIPOS | = lv_e_fipos | |
E_POSIT | = lv_e_posit | |
EXCEPTIONS | ||
FIPOS_DATA_NOT_FOUND = 1 | ||
NO_ACCOUNT_FOUND = 2 | ||
NO_FIPOS_FOUND = 3 | ||
. " FM3R_GET_POSIT_FROM_ACCOUNT |
ABAP code using 7.40 inline data declarations to call FM FM3R_GET_POSIT_FROM_ACCOUNT
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 FIPOS FROM FMFPO INTO @DATA(ld_e_fipos). | ||||
"SELECT single BUKRS FROM SKB1 INTO @DATA(ld_i_bukrs). | ||||
"SELECT single POSIT FROM FMFPO INTO @DATA(ld_e_posit). | ||||
"SELECT single FIKRS FROM T001 INTO @DATA(ld_i_fikrs). | ||||
DATA(ld_i_fikrs) | = ' '. | |||
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_buffer_all). | ||||
DATA(ld_i_flg_buffer_all) | = ' '. | |||
"SELECT single SAKNR FROM SKB1 INTO @DATA(ld_i_saknr). | ||||
"SELECT single GJAHR FROM FMPG INTO @DATA(ld_i_gjahr). | ||||
DATA(ld_i_gjahr) | = ' '. | |||
Search for further information about these or an SAP related objects