SAP FMBAS_READ_ACT_LDNR_WITH_TEXT Function Module for Get all activated ledgers with keys and texts









FMBAS_READ_ACT_LDNR_WITH_TEXT is a standard fmbas read act ldnr with text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get all activated ledgers with keys and texts 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 fmbas read act ldnr with text FM, simply by entering the name FMBAS_READ_ACT_LDNR_WITH_TEXT into the relevant SAP transaction such as SE37 or SE38.

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



Function FMBAS_READ_ACT_LDNR_WITH_TEXT 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 'FMBAS_READ_ACT_LDNR_WITH_TEXT'"Get all activated ledgers with keys and texts
EXPORTING
I_FIKRS = "Financial Management Area
* I_FLG_CHECK_CE = CON_OFF "ON := check AVC ledger for Cover Eligibilty
* I_BLDNR_FOR_AVC = "Budget Ledger Number (Budget Category)
* I_FLG_USE_FIN_BDG = CON_ON "ON := can use budget category 9J

IMPORTING
E_FLG_SINGLE_PLDNR = "Checkbox
E_FLG_SINGLE_BLDNR = "Checkbox
E_FLG_SINGLE_ALDNR = "Checkbox
E_FLG_SINGLE_RLDNR = "Checkbox
E_T_PLDNR_TXT = "Posting Ledger Number and text
E_T_BLDNR_TXT = "Budget Ledger Number (Budget Category) and text
E_T_ALDNR_TXT = "Availability Control Ledger and text
E_T_RLDNR_TXT = "Receiver ledger number and text

EXCEPTIONS
NO_LEDGER = 1
.



IMPORTING Parameters details for FMBAS_READ_ACT_LDNR_WITH_TEXT

I_FIKRS - Financial Management Area

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

I_FLG_CHECK_CE - ON := check AVC ledger for Cover Eligibilty

Data type: XFELD
Default: CON_OFF
Optional: Yes
Call by Reference: Yes

I_BLDNR_FOR_AVC - Budget Ledger Number (Budget Category)

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

I_FLG_USE_FIN_BDG - ON := can use budget category 9J

Data type: XFELD
Default: CON_ON
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FMBAS_READ_ACT_LDNR_WITH_TEXT

E_FLG_SINGLE_PLDNR - Checkbox

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

E_FLG_SINGLE_BLDNR - Checkbox

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

E_FLG_SINGLE_ALDNR - Checkbox

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

E_FLG_SINGLE_RLDNR - Checkbox

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

E_T_PLDNR_TXT - Posting Ledger Number and text

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

E_T_BLDNR_TXT - Budget Ledger Number (Budget Category) and text

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

E_T_ALDNR_TXT - Availability Control Ledger and text

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

E_T_RLDNR_TXT - Receiver ledger number and text

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

EXCEPTIONS details

NO_LEDGER - No budget category is defined for FM area

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FMBAS_READ_ACT_LDNR_WITH_TEXT 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 FIKRS, "   
lv_no_ledger  TYPE FIKRS, "   
lv_e_flg_single_pldnr  TYPE XFELD, "   
lv_i_flg_check_ce  TYPE XFELD, "   CON_OFF
lv_e_flg_single_bldnr  TYPE XFELD, "   
lv_i_bldnr_for_avc  TYPE BUBAS_BLDNR, "   
lv_e_flg_single_aldnr  TYPE XFELD, "   
lv_i_flg_use_fin_bdg  TYPE XFELD, "   CON_ON
lv_e_flg_single_rldnr  TYPE XFELD, "   
lv_e_t_pldnr_txt  TYPE BUBAS_T_LDNR_TXT, "   
lv_e_t_bldnr_txt  TYPE BUBAS_T_LDNR_TXT, "   
lv_e_t_aldnr_txt  TYPE BUBAS_T_LDNR_TXT, "   
lv_e_t_rldnr_txt  TYPE BUBAS_T_LDNR_TXT. "   

  CALL FUNCTION 'FMBAS_READ_ACT_LDNR_WITH_TEXT'  "Get all activated ledgers with keys and texts
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_FLG_CHECK_CE = lv_i_flg_check_ce
         I_BLDNR_FOR_AVC = lv_i_bldnr_for_avc
         I_FLG_USE_FIN_BDG = lv_i_flg_use_fin_bdg
    IMPORTING
         E_FLG_SINGLE_PLDNR = lv_e_flg_single_pldnr
         E_FLG_SINGLE_BLDNR = lv_e_flg_single_bldnr
         E_FLG_SINGLE_ALDNR = lv_e_flg_single_aldnr
         E_FLG_SINGLE_RLDNR = lv_e_flg_single_rldnr
         E_T_PLDNR_TXT = lv_e_t_pldnr_txt
         E_T_BLDNR_TXT = lv_e_t_bldnr_txt
         E_T_ALDNR_TXT = lv_e_t_aldnr_txt
         E_T_RLDNR_TXT = lv_e_t_rldnr_txt
    EXCEPTIONS
        NO_LEDGER = 1
. " FMBAS_READ_ACT_LDNR_WITH_TEXT




ABAP code using 7.40 inline data declarations to call FM FMBAS_READ_ACT_LDNR_WITH_TEXT

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.

 
 
 
DATA(ld_i_flg_check_ce) = CON_OFF.
 
 
 
 
DATA(ld_i_flg_use_fin_bdg) = CON_ON.
 
 
 
 
 
 


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!