SAP Function Modules

SAPSCRIPT_SEARCH_GRAPHIC_BDS SAP Function module







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

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


Pattern for FM SAPSCRIPT_SEARCH_GRAPHIC_BDS - SAPSCRIPT SEARCH GRAPHIC BDS





CALL FUNCTION 'SAPSCRIPT_SEARCH_GRAPHIC_BDS' "
* EXPORTING
*   selection_screen = 'X'      " c
*   select_entry = 'X'          " c
*   selection_show = 'X'        " c
  IMPORTING
    e_object =                  " stxbitmaps-tdobject
    e_id =                      " stxbitmaps-tdid
    e_name =                    " stxbitmaps-tdname
    e_btype =                   " stxbitmaps-tdbtype
* TABLES
*   t_objects =                 "
*   t_ids =                     "
*   t_names =                   "
*   t_btypes =                  "
*   t_selections =              " stxbitmaps
  EXCEPTIONS
    NOTHING_FOUND = 1           "
    SELECTION_CANCELED = 2      "
    INTERNAL_ERROR = 3          "
    .  "  SAPSCRIPT_SEARCH_GRAPHIC_BDS

ABAP code example for Function Module SAPSCRIPT_SEARCH_GRAPHIC_BDS





The ABAP code below is a full code listing to execute function module SAPSCRIPT_SEARCH_GRAPHIC_BDS 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_object  TYPE STXBITMAPS-TDOBJECT ,
ld_e_id  TYPE STXBITMAPS-TDID ,
ld_e_name  TYPE STXBITMAPS-TDNAME ,
ld_e_btype  TYPE STXBITMAPS-TDBTYPE ,
it_t_objects  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_objects  LIKE LINE OF it_t_objects ,
it_t_ids  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_ids  LIKE LINE OF it_t_ids ,
it_t_names  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_names  LIKE LINE OF it_t_names ,
it_t_btypes  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_t_btypes  LIKE LINE OF it_t_btypes ,
it_t_selections  TYPE STANDARD TABLE OF STXBITMAPS,"TABLES PARAM
wa_t_selections  LIKE LINE OF it_t_selections .

DATA(ld_selection_screen) = 'Check type of data required'.
DATA(ld_select_entry) = 'Check type of data required'.
DATA(ld_selection_show) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_objects to it_t_objects.

"populate fields of struture and append to itab
append wa_t_ids to it_t_ids.

"populate fields of struture and append to itab
append wa_t_names to it_t_names.

"populate fields of struture and append to itab
append wa_t_btypes to it_t_btypes.

"populate fields of struture and append to itab
append wa_t_selections to it_t_selections. . CALL FUNCTION 'SAPSCRIPT_SEARCH_GRAPHIC_BDS' * EXPORTING * selection_screen = ld_selection_screen * select_entry = ld_select_entry * selection_show = ld_selection_show IMPORTING e_object = ld_e_object e_id = ld_e_id e_name = ld_e_name e_btype = ld_e_btype * TABLES * t_objects = it_t_objects * t_ids = it_t_ids * t_names = it_t_names * t_btypes = it_t_btypes * t_selections = it_t_selections EXCEPTIONS NOTHING_FOUND = 1 SELECTION_CANCELED = 2 INTERNAL_ERROR = 3 . " SAPSCRIPT_SEARCH_GRAPHIC_BDS
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 ELSEIF SY-SUBRC EQ 3. "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_e_object  TYPE STXBITMAPS-TDOBJECT ,
ld_selection_screen  TYPE C ,
it_t_objects  TYPE STANDARD TABLE OF STRING ,
wa_t_objects  LIKE LINE OF it_t_objects,
ld_e_id  TYPE STXBITMAPS-TDID ,
ld_select_entry  TYPE C ,
it_t_ids  TYPE STANDARD TABLE OF STRING ,
wa_t_ids  LIKE LINE OF it_t_ids,
ld_e_name  TYPE STXBITMAPS-TDNAME ,
ld_selection_show  TYPE C ,
it_t_names  TYPE STANDARD TABLE OF STRING ,
wa_t_names  LIKE LINE OF it_t_names,
ld_e_btype  TYPE STXBITMAPS-TDBTYPE ,
it_t_btypes  TYPE STANDARD TABLE OF STRING ,
wa_t_btypes  LIKE LINE OF it_t_btypes,
it_t_selections  TYPE STANDARD TABLE OF STXBITMAPS ,
wa_t_selections  LIKE LINE OF it_t_selections.

ld_selection_screen = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_objects to it_t_objects.
ld_select_entry = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ids to it_t_ids.
ld_selection_show = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_names to it_t_names.

"populate fields of struture and append to itab
append wa_t_btypes to it_t_btypes.

"populate fields of struture and append to itab
append wa_t_selections to it_t_selections.

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