Funktionsbaustein FB DISPLAY FORM

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein FB_DISPLAY_FORM zeigt ein Smart Forms-Formular als auch einen Smart Forms-Textbaustein an.

  • FORMTYPE = space (Smart Forms-Formular)
  • FORMTYPE = 'T' (Smart Forms-Textbaustein)
Data: lv_formname_in  type TDSFNAME,
      lv_formname_out type TDSFNAME.

lv_formname_in = ...

CALL FUNCTION 'FB_DISPLAY_FORM'
  EXPORTING
    i_formname           = lv_formname_in
    i_formtype           = 'T'
    i_with_dialog        = ' '
  IMPORTING
    o_formname          = lv_formname_out     "identisch mit i_formname, wenn existent
  exceptions
    no_name              = 1
    no_form              = 2
    no_access_permission = 3
    illegal_language     = 4
    illegal_formtype     = 5
    OTHERS               = 6.

if sy-subrc <> 0.
  break-Point.
endif.