HR: Need to Send the Paysilp as a PDF file through Mail to Employees

Dear All ,
       Need to Send the Paysilp as a PDF file through Mail to Employees.
       can anyone please suggest any Standard Function Modules which takes the Payslip Form as input and convert it into PDF and can send it through mail to the concern employees.
      Can anyone please explain the procedure in detail.
Thanks in Advance,
Regards.

venu,
below is code which helps to generate pdf ,,,,hope u know how to use the mail sending function
data:
fm_name TYPE RS38L_FNAM, "Smart Forms: FM Name
sf_name TYPE TDSFNAME
value 'YOUR_FORM_NAME', "Smart Forms: Form Name
P_OUTPUT_OPTIONS TYPE SSFCOMPOP,
P_JOB_OUTPUT_INFO TYPE SSFCRESCL,
P_CONTROL_PARAMETERS TYPE SSFCTRLOP,
P_LANGUAGE TYPE SFLANGU value 'E',
P_E_DEVTYPE TYPE RSPOPTYPE.
data:
P_BIN_FILESIZE TYPE I,
P_BIN_FILE TYPE XSTRING,
P_OTF type table of ITCOO,
P_DOCS type table of DOCS,
P_LINES type table of TLINE,
name type string,
path type string,
fullpath type string,
filter type string,
guiobj type ref to cl_gui_frontend_services,
uact type i,
filename(128).
GET SMARTFORM FUNCTION MODULE NAME ---
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = sf_name
IMPORTING
FM_NAME = fm_name
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
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 FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
I_LANGUAGE = P_LANGUAGE
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
E_DEVTYPE = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
P_OUTPUT_OPTIONS-XSF = SPACE.
P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
P_OUTPUT_OPTIONS-XDF = SPACE.
P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
P_CONTROL_PARAMETERS-GETOTF = 'X'.
****...................................PRINTING.........................
CALL FUNCTION fm_name
EXPORTING
CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
(....) <--- your form import parameters
IMPORTING
JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
****...................................CONVERT TO PDF...............
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = P_BIN_FILESIZE
TABLES
OTF = P_OTF
DOCTAB_ARCHIVE = P_DOCS
LINES = P_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
now you can mail the pdf.
Reward points if helpful
Regards,
jinesh

Similar Messages

  • I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries)

    I need to reduce the size of several pdf files before transferring them onto a research database. Each file is made up of 100 images (pages of diaries) & is up to 1.36 GB in size. I have tried reducing file size in preview but the images are unreadable. Any ideas? 

    WHen I want to reduce the file size, I either use "Optimize Scanned PDF", or more often use "Reduce File Size". Both are on the Document menu. The Reduce File Size selection has some limited customization that is used, when selected.

  • Problem while sending the o/p of payslip report through mail

    Hi ,
             I am trying to mail the output of ZHINACALC0 (copy of standard program HINCALC0 for payslip display)
            In the report code of ZHINCALC0, there is a form named xform which contanis the o/p of the employee's payslip.
    CALL FUNCTION 'HR_PL_APPEND_FORM'
               EXPORTING
                    imp_pernr  = pernr-pernr
                    imp_period = rgdir-inper                "XMS note 386560
               TABLES
                    imp_form   = *xform*
               EXCEPTIONS
                    OTHERS     = 0.
    I am using the following function module to get the o/p from memory.
    SUBMIT ZHINCALC0  EXPORTING LIST TO MEMORY AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                LISTOBJECT = LISTOBJECT
           EXCEPTIONS
                NOT_FOUND  = 1
                OTHERS     = 2.
      IF SY-SUBRC <> 0.
      WRITE  'Error in list_from_memory.'.
      ENDIF.
    after this i am using SO_NEW_DOCUMENT_ATT_SEND_API1 to send the o/p through mail.
    However i am not getting the desired result as the  function module LIST_FROM_MEMORY takes an o/p list as input,but this is not the case here as xform is not an o/p list. How do i send the xform into memory and then get it back. Kindly help.
    Thanks and Regards,
    Subhabrata.

    Hi,
    Please check with the following code.
    TABLES: KNA1.
    data for send function
    DATA DOC_DATA  LIKE SODOCCHGI1.
    DATA OBJECT_ID LIKE SOODK.
    DATA OBJCONT   LIKE SOLI OCCURS 10 WITH HEADER LINE.
    DATA RECEIVER  LIKE SOMLRECI1 OCCURS 1 WITH HEADER LINE.
    SELECT * FROM KNA1 WHERE ANRED LIKE 'C%'.
      WRITE:/ KNA1-KUNNR, KNA1-ANRED.
    send data internal table
      CONCATENATE KNA1-KUNNR KNA1-ANRED
                             INTO OBJCONT-LINE SEPARATED BY SPACE.
      APPEND OBJCONT.
    ENDSELECT.
    insert receiver (sap name)
      REFRESH RECEIVER.
      CLEAR RECEIVER.
      MOVE: 'any_email'_ TO RECEIVER-RECEIVER,                " SY-UNAME
            'X'      TO RECEIVER-EXPRESS,
            'U'      TO RECEIVER-REC_TYPE.
      APPEND RECEIVER.
    insert mail description
      WRITE 'Sending a mail through abap'
                     TO DOC_DATA-OBJ_DESCR.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = DOC_DATA
         IMPORTING
              NEW_OBJECT_ID              = OBJECT_ID
         TABLES
              OBJECT_CONTENT             = OBJCONT
              RECEIVERS                  = RECEIVER
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              DOCUMENT_TYPE_NOT_EXIST    = 3
              OPERATION_NO_AUTHORIZATION = 4
              PARAMETER_ERROR            = 5
              X_ERROR                    = 6
              ENQUEUE_ERROR              = 7
              OTHERS                     = 8.

  • Mail only sends the first page of PDF files

    since I upgraded to OS 10.8.3, when I send a PDF attachment using Mail only the first page is sent.
    If I use Safari, then the entire file is sent
    Any ideas what is going wrong wi

    Select the page and go to Tools>Pages>Extract  to get the page. Then save as other>DOCX.

  • Getting the page content as pdf file

    Hi All,
    I have a use case like i need to get the page content as pdf file.
    For this i found xsl file and it's config under the following locations
    /libs/cq/config/rewriter/pdf/transformer-xslt --config of source
    /libs/wcm/core/content/pdf/page2fo.xsl -- xsl file location
    For custamising this functionality i copied both confing node and xsl file under "/apps" .In the Config file i changed source to refer xsl file under /apps.But it's not taking config changes.
    I have looked into http://cqblueprints.com/xwiki/bin/view/CQ+FAQ/How+can+I+configure+the+ PDF+rewriter
    there it's saying like we need to modify the com.day.cq.rewriter.xml.XSLTTransformer class. i am not getting how to modify it.
    I need this urgently
    Thanks,
    Chinna Yadlapalli.

    This script:
    http://indesignsecrets.com/zanelli-releases-multipageimporter-for-importing-both -pdf-and-indd-files.php
    answers all your questions.
    Peter

  • Need to send the report output in email body.

    Hi Friends,
    I need to send the report output in body of the email but not as an attachment.
    Requesting your suggestions. Please elaborated answers are expected.
    Thanks & Regards,
    S.Suresh Babu.

    If you are looking for same output to be available in the email body, i think this is not possible.
    If you are just concentrated on the data, then you can do as below.
    1. In your custom program, submit the actual report program via spool and by making use of that spool, read the spool content (We have function modules which can download the content from spool to the internal table), and by making use of this internal table, build the actual internal table as required which will be passed to email function module lets say SO_OBJECT_SEND etc..
    2. You can make use of even LIST_TO_MEMORY and LIST_FROM_MEMORY function modules as well instead of spool, if you have data in the final internal table.
    I am not sure, how can we handle in terms of logos if any.....or the data in the top of page related things......

  • Pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    pdf file is too big (7MB). Need a pdf file with max size 4MB. How to minimize the size of a pdf file?

    The other alternative is the Save As Other>Reduce File Size. The PDF Optimizer gives you more control. You might also use the audit feature in the PDF Optimizer to see where the size problem is coming from. You might find that in the WORD file you can select and image and then go to the FORMAT (pictures) menu and select compress for all of the bitmaps in the file. That will typically use 150 dpi by default that is adequate for most needs.

  • I need access to the raw completed form as submitted out by our employees on a work task.

    I need access to the raw completed form as submitted out by our employees on a work task.

    What you have access to in FormsCentral is the row in the Response Table on the View Responses tab of the form in FormsCentral.  From there you can (assuming the form is owned by a Paid level account) "Download Response as PDF Form" from the row menu, or from the File menu with the row selected.  The PDF looks like the original form filled out.
    Thanks,
    Josh

  • To get the content of a pdf file in a particular position in text format

    I am troubling with geting the content of a pdf file in a particular position.I got the code to get the content of a pdf document as whole in text format.But i only need the content at a particular area.
    i am using PDFTextStripper class in pdfBox jar to get the content as whole.
    pls send some sample code
    pls help me
    Edited by: thomas00 on Sep 21, 2007 2:55 AM
    Edited by: thomas00 on Sep 21, 2007 3:08 AM

    pls any one reply

  • Geting the content of a pdf file in a particular position

    I am troubling with geting the content of a pdf file in a particular position.I got the code to get the content of a pdf document as whole in text format.But i only need the content at a particular area.
    i am using PDFTextStripper class in pdfBox jar to get the content as whole.
    pls send some sample code
    pls help me

    pls any one reply

  • Acrobat 9 Shared Review error "Could not save the shared review-enabled pdf file. .

    I attempted to start a Shared Review of a PDF file.  I have been unable to initiate the review.  Upon completion of the setup routine (i.e., filed idenitified, server location identified, participant's email entered, send selected, I get the error message - Status"  Could not save the shared review-enabled PDF file. 

    As a workaround, don't put the source PDF at the network folder location which you have specified in Shared Review wizard. Eg. if you are initiating a review at the network location \\servername\xyz, ensure that your source PDF is not placed at \\servername\xyz.
    I have not understood your second question. Do you mean to say that Acrobat.com option is disabled for you?

  • How to send image file through mail without   any attachment

    Plz tell  me how to send image file through mail without any attachment  ( i mean not converting  that image into pdf or any format )  i want to send that text or image  through mail .

    Hi Sandeep,
    I think you can setup the type of email in Shared office Settings in transaction S016.
    There is an option called <Preset document classes>
    You choose this pushbutton to branch to the maintenance screen for the document classes that are directly displayed to users in the Business Workplace for selection when they use the Create function. The name under which the documents are displayed can also be maintained.
    http://help.sap.com/saphelp_nw70/helpdata/en/6c/69c30f418d11d1896e0000e8322d00/content.htm
    Haven't tried it though.
    Regards,
    Siddhesh

  • Why can't I send a fill in application (PDF file)?

    I can't send a fill in application (PDF file) in Adobe Reader from my Mac (version 11.0.04), but it works fine from my PC (version 11.0.05). Why?
    I get this massage (danish):
    "Der opstod en fejl under afsendelsen: Indhold af typen text/html; charset=utf-8 kan ikke behandles."
    How do I get it to work?

    It doesn't go through my emil. The PDF file just connects to the internet and "sends" is.
    On the picture, you can se the button I press (underneath the message box), and in the corner you can see it trying to send the data.  

  • Merge/append the contents of a pdf file to an MS Word document in JAVA

    Hi experts,
    I have a requirement to merge/append the contents of a pdf file to an ms word document(Not to be done by including pdf file objects in word). Please suggest some java libraries or ways to do it using java. Any pointers would be appreciated.
    Regards,
    Subin

    Odonnells52 you will still need to install Adobe Acrobat Professional prior to being able to make edits to PDF or utilize Acrobat.   By default the installation files have been saved to your download folder.
    If you continue to face difficulties with the Adobe Download Assistant then please see Troubleshoot Adobe Download Assistant.
    You can also download the installation files directly from Download Acrobat products | Standard, Pro | XI, X if you are unable to locate the downloaded installation files.

  • I Need to print a portion of a pdf file using a dos command. Can i ?

    Hello,
    I Need to print a portion of each page of a pdf file using a dos command without opening it.
    Can i do it ? if yes how ?
    Thanks in Advance for your help.

    hello,
    Thanks for your reply. If i use another printing software like ghostscript
    or foxit reader will i be able to do it ?
    Regards
    Le 14 déc. 2014 18:49, "Bernd Alheit" <[email protected]> a écrit :
        I Need to print a portion of a pdf file using a dos command. Can i ?
    created by Bernd Alheit <https://forums.adobe.com/people/Bernd+Alheit> in *Printing
    & Prepress* - View the full discussion
    <https://forums.adobe.com/message/7013717#7013717>

Maybe you are looking for

  • Can I use a copy of Windows XP?

    I burned a copy of Windows XP from my original disc... and I'm glad I did, because I lost the original. Can I use my copy to install onto Boot Camp?

  • Adding an attachment to e-mail

    We have setup e-mails to users when data has been loaded via FDM, but are looking to attach the source load file to the e-mail. Has anyone done this and if so what additions needed to be made to the generic e-mail accelarator script?

  • When i print out a color photo the colors are not accurate

    I have a new envy110 series CQ811A. I have a windows 7 64-bit laptop. There are no error messages and the Envy works great but when i print a picture off of a web site the colors are not accurate and i mean none of them. i have returned one printer a

  • Insert OLE Word doc not showing all pages

    Hi All, I'm running a test on this before I get all involved in it. I insert a multi page Word doc into my report. When I run it, it only shows the first page. That's the first problem. When I export it as a Word doc, it exports only that page and no

  • How do you add plain text?

    Hi all! I have a very simple question, which is just what it says in the subject line of this topic. How do I add plain text into iMovie? No fades, no slides, no nothing, just plain text? From what I've been searching online, no one has answered this