Code: Alles auswählen.
cl_http_server=>if_http_server~get_location(
IMPORTING
host = host port = port out_protocol = out_protocol
).
DATA(window_manager) = wd_comp_controller->wd_get_api( )->get_window_manager( ).
DATA(url) = |{ out_protocol }://{ host }:{ port }/sap/bc/gui/sap/its/webgui?~TRANSACTION=PC00_M01_CTXM|.
DATA(window) = window_manager->create_external_window( url ).
window->open( ).
Code: Alles auswählen.
CALL FUNCTION 'CLOSE_FORM'
TABLES
otfdata = otf_data.
Code: Alles auswählen.
* Submit the report program into the spool
SUBMIT RPCTXMD1 TO SAP-SPOOL
SPOOL PARAMETERS ls_pri_params
with PNPPERNR-LOW = '93'
with P_TEST = 'X'
WITH P_STATUS = '99 beliebig'
WITH PNPPABRP = '12'
WITH PNPPABRJ = '2016'
WITH PNPTIMR9 = ' '
WITH PNPTIMRA = 'X'
WITH PNPXABKR = '01'
WITHOUT SPOOL DYNPRO
AND RETURN.