Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display Payslip in PDF format on Screen

Former Member
0 Kudos

Hi SAP Gurus...

I have done the below to generate the SAP HR Reminaration statement in PDF.

CALL FUNCTION 'BAPI_GET_PAYSLIP_PDF'

EXPORTING

employeenumber = p_pernr

sequencenumber = it_rgdir-seqnr

payslipvariant = p_forml

IMPORTING

return = i_return

payslip = x_payslip

pdf_fsize = v_pdf_size.

Now, I want to display it in PDF on the Screen.

Please tell us how to proceed further.

thanks in advance.

regards,

R R Suthar

2 REPLIES 2

venkat_o
Active Contributor
0 Kudos

Once you get PDF data, <li> Use GUI_DOWNLOAD function module, filetype BIN to download. <li> Use GUI_RUN function module to run or open that PDF file <li> For two function modules use same file path. Thanks Venkat.O

Former Member
0 Kudos

Dear Gurus...

Thanks for help.

I have already done this,but I want to do it without using the FMs GUI_DOWNLOAD and GUI_RUN(which is obsolute).

Instead I want to display PDF data using any other method.

Can any body suggest how to do using class / method.

thanks in advance.

regards,

R R Suthar