PARAMETERS: p_bukrs TYPE bapi3006_0-comp_code.
PARAMETERS: p_acc TYPE bapi3006_0-gl_account.
DATA: lv_return TYPE bapireturn.
DATA: lv_account_detail TYPE bapi3006_2.
* Detailangaben Sachkonto
CALL FUNCTION 'BAPI_GL_ACC_GETDETAIL'
EXPORTING
companycode = p_bukrs
glacct = p_acc
* LANGUAGE =
* LANGUAGE_ISO =
* TEXT_ONLY =
IMPORTING
return = lv_return
account_detail = lv_account_detail.
cl_demo_output=>write_data( lv_return ).
cl_demo_output=>write_data( lv_account_detail ).
* HTML-Code vom Demo-Output holen
DATA(lv_html) = cl_demo_output=>get( ).
* Daten im Inline-Browser im SAP-Fenster anzeigen
cl_abap_browser=>show_html( EXPORTING
title = 'Detailangaben Sachkonto'
html_string = lv_html
container = cl_gui_container=>default_screen ).
* cl_gui_container=>default_screen erzwingen
WRITE: space.