Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Remuneration statement to pdf

Hi Experts,

Pls post ur comments how to convert my PE51 Form into pdf format.

I've done my HR Remuneration Form via PE51 and it's executing fine through Tcode:PC00_M40_CEDT - Remuneration statement .

Now, the requirement is, My Client wants the same to execute as pdf format and take a print output as similar like PO/Invoice forms.

When I tried with FM:SSF_FUNCTION_MODULE_NAME is shwoing the ouput thru SF:ZHR_ESS_PAYSLIP_TO_PDF_T but the alignment and form size of PE51 form is standard and

This form is a std 132 column length size, so when i tried with FM "CONVERT_OTF", its not converting my form into pdf table format ( otf variable: tab_otf_final).

Pls advise how to resolve it.

Im asking ur help again clearly that I want to convert my PE51 HR Form to pdf convertion format.

>>>>CALL FUNCTION 'CONVERT_OTF'

>>>> EXPORTING

>>>> format = 'PDF'

>>>> max_linewidth = 132

>>>> * ARCHIVE_INDEX = ' '

>>>> * COPYNUMBER = 0

>>>> * ASCII_BIDI_VIS2LOG = ' '

>>>> IMPORTING

>>>> bin_filesize = bin_filesize

>>>> * BIN_FILE =

>>>> TABLES

>>>> otf = tab_otf_final

>>>> lines = pdf_tab

>>>> EXCEPTIONS

>>>> err_max_linewidth = 1

>>>> err_format = 2

>>>> err_conv_not_possible = 3

>>>> err_bad_otf = 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.

thanks & regards

sankar.

Edited by: sankar babu on Sep 22, 2008 10:01 AM

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question