[ABAP] Schnittstelle zu Funktionsbaustein auslesen

* Name des Funktionsbausteins
DATA(lv_head) = VALUE header_fb( name = 'BAPI_MATERIAL_GET_ALL' ).
DATA(it_import) = VALUE rsfb_para( ).
DATA(it_export) = VALUE rsfb_para( ).
DATA(it_change) = VALUE rsfb_para( ).
DATA(it_tables) = VALUE rsfb_para( ).
DATA(it_except) = VALUE rsfb_para( ).

* Infos zum Funktionsbaustein holen
cl_fb_parameter_db=>read( IMPORTING
                            import = it_import
                            export = it_export
                            change = it_change
                            tables = it_tables
                            except = it_except
                          CHANGING
                            header = lv_head ).

* IMPORTING
LOOP AT it_import ASSIGNING FIELD-SYMBOL(<i>).
  WRITE: / '[IMPORT]', <i>-parameter, <i>-typefield, <i>-structure.
ENDLOOP.

* EXPORTING
LOOP AT it_export ASSIGNING FIELD-SYMBOL(<e>).
  WRITE: / '[EXPORT]', <e>-parameter, <e>-typefield, <e>-structure.
ENDLOOP.

* CHANGING
LOOP AT it_change ASSIGNING FIELD-SYMBOL(<c>).
  WRITE: / '[CHANGE]', <c>-parameter, <c>-typefield, <c>-structure.
ENDLOOP.

* TABLES
LOOP AT it_tables ASSIGNING FIELD-SYMBOL(<t>).
  WRITE: / '[TABLES]', <t>-parameter, <t>-typefield, <t>-structure.
ENDLOOP.

* EXCEPTIONS
LOOP AT it_except ASSIGNING FIELD-SYMBOL(<ex>).
  WRITE: / '[EXCEPTION]', <ex>-parameter, <ex>-typefield, <ex>-structure.
ENDLOOP.