SAP Function Modules

BTFR_CHECK SAP Function module







BTFR_CHECK 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 BTFR_CHECK into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM BTFR_CHECK - BTFR CHECK





CALL FUNCTION 'BTFR_CHECK' "
  EXPORTING
*   langu = SY-LANGU            " sprsl
*   alias =                     " sotr_alias    Unique Alias Name for OTR Concept
    check =                     " btfr_check    Internal Checks
*   text =                      " btfr_text-text  Text Field in the OTR
*   string =                    " btfr_string-text  Text Field
*   flag_string =               " btfr_f_string  Indicator: 'X': Long Text (String), ' ': Short Text
*   message_type = 'E'          " symsgty
*   object_type =               " trobjtype
*   object_name =               " trobj_name
  IMPORTING
    alias_new =                 " sotr_alias    Unique Alias Name for OTR Concept
    check_result =              " btfr_check_result_tt  Check Texts, Error Table
  CHANGING
    btfr_head =                 " btfr_head     Structure for Header Fields
  EXCEPTIONS
    INVALID_PACKAGE = 1         "
    .  "  BTFR_CHECK

ABAP code example for Function Module BTFR_CHECK





The ABAP code below is a full code listing to execute function module BTFR_CHECK 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_alias_new  TYPE SOTR_ALIAS ,
ld_check_result  TYPE BTFR_CHECK_RESULT_TT .

DATA(ld_btfr_head) = 'Check type of data required'.
DATA(ld_langu) = 'Check type of data required'.
DATA(ld_alias) = 'Check type of data required'.
DATA(ld_check) = 'Check type of data required'.

DATA(ld_text) = some text here

DATA(ld_string) = Check type of data required
DATA(ld_flag_string) = 'Check type of data required'.
DATA(ld_message_type) = 'some text here'.
DATA(ld_object_type) = 'some text here'.
DATA(ld_object_name) = 'some text here'. . CALL FUNCTION 'BTFR_CHECK' EXPORTING * langu = ld_langu * alias = ld_alias check = ld_check * text = ld_text * string = ld_string * flag_string = ld_flag_string * message_type = ld_message_type * object_type = ld_object_type * object_name = ld_object_name IMPORTING alias_new = ld_alias_new check_result = ld_check_result CHANGING btfr_head = ld_btfr_head EXCEPTIONS INVALID_PACKAGE = 1 . " BTFR_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_btfr_head  TYPE BTFR_HEAD ,
ld_alias_new  TYPE SOTR_ALIAS ,
ld_langu  TYPE SPRSL ,
ld_check_result  TYPE BTFR_CHECK_RESULT_TT ,
ld_alias  TYPE SOTR_ALIAS ,
ld_check  TYPE BTFR_CHECK ,
ld_text  TYPE BTFR_TEXT-TEXT ,
ld_string  TYPE BTFR_STRING-TEXT ,
ld_flag_string  TYPE BTFR_F_STRING ,
ld_message_type  TYPE SYMSGTY ,
ld_object_type  TYPE TROBJTYPE ,
ld_object_name  TYPE TROBJ_NAME .

ld_btfr_head = 'some text here'.
ld_langu = 'some text here'.
ld_alias = 'some text here'.
ld_check = 'some text here'.

ld_text = some text here

ld_string = Check type of data required
ld_flag_string = 'some text here'.
ld_message_type = 'some text here'.
ld_object_type = 'some text here'.
ld_object_name = 'some text here'.

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 BTFR_CHECK or its description.