SAP Function Modules

BAL_FILTER_CREATE SAP Function module







BAL_FILTER_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAL_FILTER_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SBAL_SERVICE
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BAL_FILTER_CREATE - BAL FILTER CREATE





CALL FUNCTION 'BAL_FILTER_CREATE' "
* EXPORTING
*   i_object =                  " balhdr-object
*   i_subobject =               " balhdr-subobject
*   i_extnumber =               " balhdr-extnumber  External Number
*   i_aldate_from =             " balhdr-aldate
*   i_aldate_to =               " balhdr-aldate
*   i_altime_from =             " balhdr-altime
*   i_altime_to =               " balhdr-altime
*   i_probclass_from =          " balhdr-probclass
*   i_probclass_to =            " balhdr-probclass
*   i_alprog =                  " balhdr-alprog  Program
*   i_altcode =                 " balhdr-altcode  Transaction Code
*   i_aluser =                  " balhdr-aluser  User
*   i_almode =                  " balhdr-almode
*   i_t_lognumber =             " bal_t_logn
  IMPORTING
    e_s_log_filter =            " bal_s_lfil    Log header data filter
    .  "  BAL_FILTER_CREATE

ABAP code example for Function Module BAL_FILTER_CREATE





The ABAP code below is a full code listing to execute function module BAL_FILTER_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_s_log_filter  TYPE BAL_S_LFIL .


SELECT single OBJECT
FROM BALHDR
INTO @DATA(ld_i_object).


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).


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).

DATA(ld_i_t_lognumber) = 'Check type of data required'. . CALL FUNCTION 'BAL_FILTER_CREATE' * EXPORTING * i_object = ld_i_object * i_subobject = ld_i_subobject * i_extnumber = ld_i_extnumber * i_aldate_from = ld_i_aldate_from * i_aldate_to = ld_i_aldate_to * i_altime_from = ld_i_altime_from * i_altime_to = ld_i_altime_to * i_probclass_from = ld_i_probclass_from * i_probclass_to = ld_i_probclass_to * i_alprog = ld_i_alprog * i_altcode = ld_i_altcode * i_aluser = ld_i_aluser * i_almode = ld_i_almode * i_t_lognumber = ld_i_t_lognumber IMPORTING e_s_log_filter = ld_e_s_log_filter . " BAL_FILTER_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_s_log_filter  TYPE BAL_S_LFIL ,
ld_i_object  TYPE BALHDR-OBJECT ,
ld_i_subobject  TYPE BALHDR-SUBOBJECT ,
ld_i_extnumber  TYPE BALHDR-EXTNUMBER ,
ld_i_aldate_from  TYPE BALHDR-ALDATE ,
ld_i_aldate_to  TYPE BALHDR-ALDATE ,
ld_i_altime_from  TYPE BALHDR-ALTIME ,
ld_i_altime_to  TYPE BALHDR-ALTIME ,
ld_i_probclass_from  TYPE BALHDR-PROBCLASS ,
ld_i_probclass_to  TYPE BALHDR-PROBCLASS ,
ld_i_alprog  TYPE BALHDR-ALPROG ,
ld_i_altcode  TYPE BALHDR-ALTCODE ,
ld_i_aluser  TYPE BALHDR-ALUSER ,
ld_i_almode  TYPE BALHDR-ALMODE ,
ld_i_t_lognumber  TYPE BAL_T_LOGN .


SELECT single OBJECT
FROM BALHDR
INTO ld_i_object.


SELECT single SUBOBJECT
FROM BALHDR
INTO ld_i_subobject.


SELECT single EXTNUMBER
FROM BALHDR
INTO ld_i_extnumber.


SELECT single ALDATE
FROM BALHDR
INTO ld_i_aldate_from.


SELECT single ALDATE
FROM BALHDR
INTO ld_i_aldate_to.


SELECT single ALTIME
FROM BALHDR
INTO ld_i_altime_from.


SELECT single ALTIME
FROM BALHDR
INTO ld_i_altime_to.


SELECT single PROBCLASS
FROM BALHDR
INTO ld_i_probclass_from.


SELECT single PROBCLASS
FROM BALHDR
INTO ld_i_probclass_to.


SELECT single ALPROG
FROM BALHDR
INTO ld_i_alprog.


SELECT single ALTCODE
FROM BALHDR
INTO ld_i_altcode.


SELECT single ALUSER
FROM BALHDR
INTO ld_i_aluser.


SELECT single ALMODE
FROM BALHDR
INTO ld_i_almode.

ld_i_t_lognumber = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAL_FILTER_CREATE or its description.