[ABAP] Unterpakete zu einem Paket holen

TRY.
    cl_pak_package_queries=>get_all_subpackages( EXPORTING im_package                  = 'Z_PACKAGE_NAME'
                                                 IMPORTING et_subpackages              = DATA(it_sub_packages)
                                                           et_subpackages_with_details = DATA(it_sub_packages_details) ).

    cl_demo_output=>write_data( it_sub_packages ).
    cl_demo_output=>write_data( it_sub_packages_details ).

* 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       = 'Übersicht Unterpakete'
                                          html_string = lv_html
                                          container   = cl_gui_container=>default_screen ).

* cl_gui_container=>default_screen erzwingen
    WRITE: space.
  CATCH cx_root INTO DATA(e_txt).
    WRITE: / e_txt->get_text( ).
ENDTRY.