[ABAP] Infos zu Funktionsbausteinen auflisten

* Funktionsbausteine, die mit 'BAPI_MAT' beginnen
DATA(lv_fb_name) = |BAPI_MAT%|.

* Funktionsbaustein
DATA: it_tfdir TYPE STANDARD TABLE OF tfdir WITH DEFAULT KEY.

SELECT * FROM tfdir INTO TABLE @it_tfdir WHERE funcname LIKE @lv_fb_name.

LOOP AT it_tfdir ASSIGNING FIELD-SYMBOL(<fs_tfdir>).
  WRITE: / <fs_tfdir>-funcname, <fs_tfdir>-freedate, <fs_tfdir>-appl.
ENDLOOP.

ULINE.

* Kurztext eines Funktionsbausteins
DATA: it_tftit TYPE STANDARD TABLE OF tftit WITH DEFAULT KEY.

SELECT * FROM tftit INTO TABLE @it_tftit WHERE funcname LIKE @lv_fb_name.

LOOP AT it_tftit ASSIGNING FIELD-SYMBOL(<fs_tftit>).
  WRITE: / <fs_tftit>-funcname, <fs_tftit>-spras, <fs_tftit>-stext.
ENDLOOP.

ULINE.

* Verzeichnis freigegebener Objekte
DATA: it_rodir TYPE STANDARD TABLE OF rodir WITH DEFAULT KEY.

SELECT * FROM rodir INTO TABLE @it_rodir WHERE object LIKE @lv_fb_name.

LOOP AT it_rodir ASSIGNING FIELD-SYMBOL(<fs_rodir>).
  WRITE: / <fs_rodir>-object, <fs_rodir>-objecttype, <fs_rodir>-released, <fs_rodir>-reworked, <fs_rodir>-obsolete.
ENDLOOP.