SAP Function Modules

BDT_SCREEN_ATTRIBUTES_GET SAP Function module







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

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


Pattern for FM BDT_SCREEN_ATTRIBUTES_GET - BDT SCREEN ATTRIBUTES GET





CALL FUNCTION 'BDT_SCREEN_ATTRIBUTES_GET' "
* EXPORTING
*   iv_handle =                 " bdt_instance_id  Handle
  IMPORTING
    ev_xhas_cursor =            " boole_d
    ev_cursorfield =            " bu_tbfld      Cursor Field
    ev_cursorline =             " sylilli       Cursor Line
    ev_vartp =                  " bu_vartp      Screen Sequence Category
    ev_varnr =                  " bu_varnr      BDT: Screen Sequence
    ev_xsequ =                  " boole_d
    ev_dynid =                  " bu_dynid      Screen
    ev_title_object =           " sytitle
    ev_title_activity =         " sytitle
    ev_title_screen =           " sytitle
    ev_title_total =            " sytitle
    ev_pfstat =                 " sypfkey
    ev_pfstat_fm =              " rs38l_fnam
    ev_xscin =                  " boole_d
    ev_xscdt =                  " boole_d
    ev_xscfs =                  " boole_d
    ev_xscpp =                  " boole_d
    ev_posnr =                  " bu_posnr
    ev_trdyn =                  " bu_trdyn      Subscreen Container
    ev_calls =                  " integer1
    ev_sityp =                  " bu_sityp
    ev_screen_type =            " char1
    ev_posnr_rel =              " bu_posnr
    ev_spall =                  " bu_spall      Coordinates of left column (dialog box)
    ev_zeilo =                  " bu_zeilo      Coordinates of top line (dialog box)
    ev_spalr =                  " bu_spalr      Coordinates of right column (dialog box)
    ev_zeilu =                  " bu_zeilu      Coordinates of bottom line (dialog box)
    ev_other_screen =           " boole_d
    ev_pop =                    " boole_d
    el_header_section =         " tbz3d
    ev_top_fldgr =              " bu_fldgr      Field Group
* TABLES
*   et_screens =                " bdt_tbz3a_ext
*   et_screen_sequences =       " bdt_tbz3_ext
*   et_scrn_sequ_types =        " tbz3l
*   et_sicht =                  " bus0sicht
*   et_sicht_details =          " bus_sicht
  EXCEPTIONS
    HANDLE_NOT_FOUND = 1        "
    SCREEN_NOT_FOUND = 2        "
    .  "  BDT_SCREEN_ATTRIBUTES_GET

ABAP code example for Function Module BDT_SCREEN_ATTRIBUTES_GET





The ABAP code below is a full code listing to execute function module BDT_SCREEN_ATTRIBUTES_GET 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_ev_xhas_cursor  TYPE BOOLE_D ,
ld_ev_cursorfield  TYPE BU_TBFLD ,
ld_ev_cursorline  TYPE SYLILLI ,
ld_ev_vartp  TYPE BU_VARTP ,
ld_ev_varnr  TYPE BU_VARNR ,
ld_ev_xsequ  TYPE BOOLE_D ,
ld_ev_dynid  TYPE BU_DYNID ,
ld_ev_title_object  TYPE SYTITLE ,
ld_ev_title_activity  TYPE SYTITLE ,
ld_ev_title_screen  TYPE SYTITLE ,
ld_ev_title_total  TYPE SYTITLE ,
ld_ev_pfstat  TYPE SYPFKEY ,
ld_ev_pfstat_fm  TYPE RS38L_FNAM ,
ld_ev_xscin  TYPE BOOLE_D ,
ld_ev_xscdt  TYPE BOOLE_D ,
ld_ev_xscfs  TYPE BOOLE_D ,
ld_ev_xscpp  TYPE BOOLE_D ,
ld_ev_posnr  TYPE BU_POSNR ,
ld_ev_trdyn  TYPE BU_TRDYN ,
ld_ev_calls  TYPE INTEGER1 ,
ld_ev_sityp  TYPE BU_SITYP ,
ld_ev_screen_type  TYPE CHAR1 ,
ld_ev_posnr_rel  TYPE BU_POSNR ,
ld_ev_spall  TYPE BU_SPALL ,
ld_ev_zeilo  TYPE BU_ZEILO ,
ld_ev_spalr  TYPE BU_SPALR ,
ld_ev_zeilu  TYPE BU_ZEILU ,
ld_ev_other_screen  TYPE BOOLE_D ,
ld_ev_pop  TYPE BOOLE_D ,
ld_el_header_section  TYPE TBZ3D ,
ld_ev_top_fldgr  TYPE BU_FLDGR ,
it_et_screens  TYPE STANDARD TABLE OF BDT_TBZ3A_EXT,"TABLES PARAM
wa_et_screens  LIKE LINE OF it_et_screens ,
it_et_screen_sequences  TYPE STANDARD TABLE OF BDT_TBZ3_EXT,"TABLES PARAM
wa_et_screen_sequences  LIKE LINE OF it_et_screen_sequences ,
it_et_scrn_sequ_types  TYPE STANDARD TABLE OF TBZ3L,"TABLES PARAM
wa_et_scrn_sequ_types  LIKE LINE OF it_et_scrn_sequ_types ,
it_et_sicht  TYPE STANDARD TABLE OF BUS0SICHT,"TABLES PARAM
wa_et_sicht  LIKE LINE OF it_et_sicht ,
it_et_sicht_details  TYPE STANDARD TABLE OF BUS_SICHT,"TABLES PARAM
wa_et_sicht_details  LIKE LINE OF it_et_sicht_details .

DATA(ld_iv_handle) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_screens to it_et_screens.

"populate fields of struture and append to itab
append wa_et_screen_sequences to it_et_screen_sequences.

"populate fields of struture and append to itab
append wa_et_scrn_sequ_types to it_et_scrn_sequ_types.

"populate fields of struture and append to itab
append wa_et_sicht to it_et_sicht.

"populate fields of struture and append to itab
append wa_et_sicht_details to it_et_sicht_details. . CALL FUNCTION 'BDT_SCREEN_ATTRIBUTES_GET' * EXPORTING * iv_handle = ld_iv_handle IMPORTING ev_xhas_cursor = ld_ev_xhas_cursor ev_cursorfield = ld_ev_cursorfield ev_cursorline = ld_ev_cursorline ev_vartp = ld_ev_vartp ev_varnr = ld_ev_varnr ev_xsequ = ld_ev_xsequ ev_dynid = ld_ev_dynid ev_title_object = ld_ev_title_object ev_title_activity = ld_ev_title_activity ev_title_screen = ld_ev_title_screen ev_title_total = ld_ev_title_total ev_pfstat = ld_ev_pfstat ev_pfstat_fm = ld_ev_pfstat_fm ev_xscin = ld_ev_xscin ev_xscdt = ld_ev_xscdt ev_xscfs = ld_ev_xscfs ev_xscpp = ld_ev_xscpp ev_posnr = ld_ev_posnr ev_trdyn = ld_ev_trdyn ev_calls = ld_ev_calls ev_sityp = ld_ev_sityp ev_screen_type = ld_ev_screen_type ev_posnr_rel = ld_ev_posnr_rel ev_spall = ld_ev_spall ev_zeilo = ld_ev_zeilo ev_spalr = ld_ev_spalr ev_zeilu = ld_ev_zeilu ev_other_screen = ld_ev_other_screen ev_pop = ld_ev_pop el_header_section = ld_el_header_section ev_top_fldgr = ld_ev_top_fldgr * TABLES * et_screens = it_et_screens * et_screen_sequences = it_et_screen_sequences * et_scrn_sequ_types = it_et_scrn_sequ_types * et_sicht = it_et_sicht * et_sicht_details = it_et_sicht_details EXCEPTIONS HANDLE_NOT_FOUND = 1 SCREEN_NOT_FOUND = 2 . " BDT_SCREEN_ATTRIBUTES_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_ev_xhas_cursor  TYPE BOOLE_D ,
ld_iv_handle  TYPE BDT_INSTANCE_ID ,
it_et_screens  TYPE STANDARD TABLE OF BDT_TBZ3A_EXT ,
wa_et_screens  LIKE LINE OF it_et_screens,
ld_ev_cursorfield  TYPE BU_TBFLD ,
it_et_screen_sequences  TYPE STANDARD TABLE OF BDT_TBZ3_EXT ,
wa_et_screen_sequences  LIKE LINE OF it_et_screen_sequences,
ld_ev_cursorline  TYPE SYLILLI ,
it_et_scrn_sequ_types  TYPE STANDARD TABLE OF TBZ3L ,
wa_et_scrn_sequ_types  LIKE LINE OF it_et_scrn_sequ_types,
ld_ev_vartp  TYPE BU_VARTP ,
it_et_sicht  TYPE STANDARD TABLE OF BUS0SICHT ,
wa_et_sicht  LIKE LINE OF it_et_sicht,
ld_ev_varnr  TYPE BU_VARNR ,
it_et_sicht_details  TYPE STANDARD TABLE OF BUS_SICHT ,
wa_et_sicht_details  LIKE LINE OF it_et_sicht_details,
ld_ev_xsequ  TYPE BOOLE_D ,
ld_ev_dynid  TYPE BU_DYNID ,
ld_ev_title_object  TYPE SYTITLE ,
ld_ev_title_activity  TYPE SYTITLE ,
ld_ev_title_screen  TYPE SYTITLE ,
ld_ev_title_total  TYPE SYTITLE ,
ld_ev_pfstat  TYPE SYPFKEY ,
ld_ev_pfstat_fm  TYPE RS38L_FNAM ,
ld_ev_xscin  TYPE BOOLE_D ,
ld_ev_xscdt  TYPE BOOLE_D ,
ld_ev_xscfs  TYPE BOOLE_D ,
ld_ev_xscpp  TYPE BOOLE_D ,
ld_ev_posnr  TYPE BU_POSNR ,
ld_ev_trdyn  TYPE BU_TRDYN ,
ld_ev_calls  TYPE INTEGER1 ,
ld_ev_sityp  TYPE BU_SITYP ,
ld_ev_screen_type  TYPE CHAR1 ,
ld_ev_posnr_rel  TYPE BU_POSNR ,
ld_ev_spall  TYPE BU_SPALL ,
ld_ev_zeilo  TYPE BU_ZEILO ,
ld_ev_spalr  TYPE BU_SPALR ,
ld_ev_zeilu  TYPE BU_ZEILU ,
ld_ev_other_screen  TYPE BOOLE_D ,
ld_ev_pop  TYPE BOOLE_D ,
ld_el_header_section  TYPE TBZ3D ,
ld_ev_top_fldgr  TYPE BU_FLDGR .

ld_iv_handle = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_screens to it_et_screens.

"populate fields of struture and append to itab
append wa_et_screen_sequences to it_et_screen_sequences.

"populate fields of struture and append to itab
append wa_et_scrn_sequ_types to it_et_scrn_sequ_types.

"populate fields of struture and append to itab
append wa_et_sicht to it_et_sicht.

"populate fields of struture and append to itab
append wa_et_sicht_details to it_et_sicht_details.

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