You display the PDF document or the XML data in an HTML control using function module IFP_DISPLAY_DOCUMENT.
IFP_DISPLAY_DOCUMENT