Hi Janis,
Let me clarify, I have implemented the code and it does not give me any error, even the return code is_ok but i am not able to produce the PDF output instead it is starting a new window with message ' 'The report did not produce any data for the selections.''
Can you please share the code if you have and do check my code below
CREATE OBJECT PARENT
EXPORTING
CLSID = space
EXCEPTIONS
create_error = 1
others = 2.
if sy-subrc ne 0.
exit.
endif.
CREATE OBJECT A_PDF_VIEWER
EXPORTING
PARENT = PARENT
EXCEPTIONS
CNTL_ERROR = 1
CNTL_INSTALL_ERROR = 2
DP_INSTALL_ERROR = 3
DP_ERROR = 4
others = 5.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL METHOD cl_hrge_document_services=>show_pdf
EXPORTING
pdf_data_tab = it_lines
pdf_data_size = l_pdf_len
pdf_viewer = a_pdf_viewer
mess_handler = mess_handler
display_in_place = open_inplace
IMPORTING
is_ok = is_ok.