SAP BAL_FILTER_CREATE Function Module for









BAL_FILTER_CREATE is a standard bal filter create 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 bal filter create FM, simply by entering the name BAL_FILTER_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function BAL_FILTER_CREATE 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 'BAL_FILTER_CREATE'"
EXPORTING
* I_OBJECT = "
* I_ALPROG = "Program
* I_ALTCODE = "Transaction Code
* I_ALUSER = "User
* I_ALMODE = "
* I_T_LOGNUMBER = "
* I_SUBOBJECT = "
* I_EXTNUMBER = "External Number
* I_ALDATE_FROM = "
* I_ALDATE_TO = "
* I_ALTIME_FROM = "
* I_ALTIME_TO = "
* I_PROBCLASS_FROM = "
* I_PROBCLASS_TO = "

IMPORTING
E_S_LOG_FILTER = "Log header data filter
.



IMPORTING Parameters details for BAL_FILTER_CREATE

I_OBJECT -

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

I_ALPROG - Program

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

I_ALTCODE - Transaction Code

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

I_ALUSER - User

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

I_ALMODE -

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

I_T_LOGNUMBER -

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

I_SUBOBJECT -

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

I_EXTNUMBER - External Number

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

I_ALDATE_FROM -

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

I_ALDATE_TO -

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

I_ALTIME_FROM -

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

I_ALTIME_TO -

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

I_PROBCLASS_FROM -

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

I_PROBCLASS_TO -

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

EXPORTING Parameters details for BAL_FILTER_CREATE

E_S_LOG_FILTER - Log header data filter

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

Copy and paste ABAP code example for BAL_FILTER_CREATE 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_object  TYPE BALHDR-OBJECT, "   
lv_e_s_log_filter  TYPE BAL_S_LFIL, "   
lv_i_alprog  TYPE BALHDR-ALPROG, "   
lv_i_altcode  TYPE BALHDR-ALTCODE, "   
lv_i_aluser  TYPE BALHDR-ALUSER, "   
lv_i_almode  TYPE BALHDR-ALMODE, "   
lv_i_t_lognumber  TYPE BAL_T_LOGN, "   
lv_i_subobject  TYPE BALHDR-SUBOBJECT, "   
lv_i_extnumber  TYPE BALHDR-EXTNUMBER, "   
lv_i_aldate_from  TYPE BALHDR-ALDATE, "   
lv_i_aldate_to  TYPE BALHDR-ALDATE, "   
lv_i_altime_from  TYPE BALHDR-ALTIME, "   
lv_i_altime_to  TYPE BALHDR-ALTIME, "   
lv_i_probclass_from  TYPE BALHDR-PROBCLASS, "   
lv_i_probclass_to  TYPE BALHDR-PROBCLASS. "   

  CALL FUNCTION 'BAL_FILTER_CREATE'  "
    EXPORTING
         I_OBJECT = lv_i_object
         I_ALPROG = lv_i_alprog
         I_ALTCODE = lv_i_altcode
         I_ALUSER = lv_i_aluser
         I_ALMODE = lv_i_almode
         I_T_LOGNUMBER = lv_i_t_lognumber
         I_SUBOBJECT = lv_i_subobject
         I_EXTNUMBER = lv_i_extnumber
         I_ALDATE_FROM = lv_i_aldate_from
         I_ALDATE_TO = lv_i_aldate_to
         I_ALTIME_FROM = lv_i_altime_from
         I_ALTIME_TO = lv_i_altime_to
         I_PROBCLASS_FROM = lv_i_probclass_from
         I_PROBCLASS_TO = lv_i_probclass_to
    IMPORTING
         E_S_LOG_FILTER = lv_e_s_log_filter
. " BAL_FILTER_CREATE




ABAP code using 7.40 inline data declarations to call FM BAL_FILTER_CREATE

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 OBJECT FROM BALHDR INTO @DATA(ld_i_object).
 
 
"SELECT single ALPROG FROM BALHDR INTO @DATA(ld_i_alprog).
 
"SELECT single ALTCODE FROM BALHDR INTO @DATA(ld_i_altcode).
 
"SELECT single ALUSER FROM BALHDR INTO @DATA(ld_i_aluser).
 
"SELECT single ALMODE FROM BALHDR INTO @DATA(ld_i_almode).
 
 
"SELECT single SUBOBJECT FROM BALHDR INTO @DATA(ld_i_subobject).
 
"SELECT single EXTNUMBER FROM BALHDR INTO @DATA(ld_i_extnumber).
 
"SELECT single ALDATE FROM BALHDR INTO @DATA(ld_i_aldate_from).
 
"SELECT single ALDATE FROM BALHDR INTO @DATA(ld_i_aldate_to).
 
"SELECT single ALTIME FROM BALHDR INTO @DATA(ld_i_altime_from).
 
"SELECT single ALTIME FROM BALHDR INTO @DATA(ld_i_altime_to).
 
"SELECT single PROBCLASS FROM BALHDR INTO @DATA(ld_i_probclass_from).
 
"SELECT single PROBCLASS FROM BALHDR INTO @DATA(ld_i_probclass_to).
 


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!