About PDF file

Dear All,
             IN HR I am able to get the payslip into PDF file, I am able to create PDF file but Unable to know where it is stored , it is displaying the messgae that PDF of 4320 bytes are created. in 4.7 version.
            Now my concern is how to find that PDF file and how to send it as mail
if SO_NEW_DOCUMENT_ATT_SEND_ALI1 fM is to be used for mailing then can anyone please explain me about the parameters to be passed.
Thanks in Advance,
Regards,
Satya.

Thanks for your Swift Response ...
C I am pasting the other kind of code which I have developed
But it is saying File cannot be sent.
Mr.Sreenivas thank you very much for the code you have given but the thing is I need to work on Payslip which is not Smartform.
So I request you to please let me know where to specify PDF and mail details.
I am pasting that code please check it.
REPORT  ZHR_PAYSLIP_PDF                         .
TABLES: PERNR,
        PCL1,
        PCL2,
        PA0105.
INFOTYPES : 0105.
*INTERNATIONAL INCLUDE
INCLUDE RPC2CD09.  "Cluster CD data definition
INCLUDE RPC2CA00.  "Cluster CA Data-Definition
INCLUDE RPPPXD00.  "Data Definition buffer PCL1/PCL2 Buffer
INCLUDE RPPPXD10.  "Common part buffer PCL1/PCL2
INCLUDE RPPPXM00.  "Buffer Handling routine
*COUNTRY SPECIFIC INCLUDE
INCLUDE PC2RXIN0.  "Cluster IN data definition
INCLUDE RPC2RX09.
*INCLUDE RPC2R1X9.
DATA:   SEQNR LIKE PC261-SEQNR,
        it_rgdir  LIKE pc261 OCCURS 0 WITH HEADER LINE,
        PAYSLIP LIKE BAPI7004_PAYSLIP OCCURS 0 WITH HEADER
                                     LINE,
        RETURN LIKE  BAPIRETURN1.
Data:  docdata    like sodocchgi1,
       objpack    like sopcklsti1 occurs  1 with header line,
       objhead    like solisti1   occurs  1 with header line,
       objtxt     like solisti1   occurs 10 with header line,
       objbin     like solisti1   occurs 10 with header line,
       objhex     like solix      occurs 10 with header line,
       reclist    like somlreci1  occurs  1 with header line,
       listobject like abaplist   occurs  1 with header line,
       tab_lines  type i,
       doc_size   type i,
       att_type   like SOODK-OBJTP.
START-OF-SELECTION .
GET PERNR.
    PERFORM GET_IT0105_DATA.
    PERFORM GET_PAYROLL_DATA.
    PERFORM PAYSLIP_DATA.
form GET_PAYROLL_DATA .
   CALL FUNCTION 'CU_READ_RGDIR'
    EXPORTING
      persnr          = pernr-pernr
    TABLES
      in_rgdir        = it_rgdir
    EXCEPTIONS
      no_record_found = 1
      OTHERS          = 2.
   IF sy-subrc = 0 .
    SORT IT_RGDIR BY SEQNR.
    LOOP AT it_rgdir WHERE fpbeg BETWEEN pnpbegda AND pnpendda .
      IF ( it_rgdir-fpper = it_rgdir-inper
          AND    IT_RGDIR-SRTZA = 'A' ).
            SEQNR = IT_RGDIR-SEQNR.
      ENDIF .                        " end of Strza
   ENDLOOP.
  ENDIF.
endform.     
form PAYSLIP_DATA .
DATA:
    FUNAME      TYPE SYREPID,
    LINES       TYPE I,
    P_FORM      LIKE PC408 OCCURS 0 WITH HEADER LINE,
    P_INFO      LIKE PC407.
DATA : PACKING_LIST LIKE  SOPCKLSTI1.
init
  CLEAR:   P_FORM, P_INFO, PAYSLIP, FUNAME.
  REFRESH: P_FORM, PAYSLIP.
determine name of function module
depending on CE or non CE
  CALL FUNCTION 'HRO1_GET_FUNAME'
    EXPORTING
      pernr           = PERNR-PERNR
   IMPORTING
     FUNAME           = funame.
get raw version of payslip
  CALL FUNCTION funame
       EXPORTING
            EMPLOYEE_NUMBER = PERNR-PERNR
            SEQUENCE_NUMBER = SEQNR
            PAYSLIP_VARIANT = 'AMP3'
       IMPORTING
            P_INFO          = P_INFO
            RETURN          = RETURN
       TABLES
            P_FORM          = P_FORM.
any errors occured
  CHECK RETURN IS INITIAL.
  DESCRIBE TABLE P_FORM LINES LINES.
  IF LINES LE 0.
   PERFORM FILL_RETURN USING 'I' '3G' 824 RETURN.
   ERROR MESSAGE.
    EXIT.
  ENDIF.
  CALL FUNCTION 'CONVERT_PAYSLIP_TO_SAPSCRIPT'
       EXPORTING
            P_INFO     = p_info
       TABLES
            payslip    = payslip
            p_form     = p_form
       EXCEPTIONS
            EMPTY_FORM = 1
            OTHERS     = 2
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Way for Mailing ***************************
     OBJPACK-HEAD_START = 1.
     OBJBIN = '  |  '. APPEND OBJBIN.
     OBJPACK-HEAD_START = 1.
submit SHOWCOLO exporting list to memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject       = listobject
      EXCEPTIONS
        OTHERS           = 1
    IF sy-subrc <> 0.
      message ID '61' TYPE 'E' NUMBER '731'
      with 'LIST_FROM_MEMORY'.
    ENDIF.
    PACKING_LIST = OBJPACK.
    docdata-obj_name  = 'TEST_ALI'.
    docdata-obj_descr = 'Test including ALI/HTML Attachment'.
CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
     COMPRESSED_SIZE       =
      TABLES
         IN                    = listobject
         OUT                   = objbin
      EXCEPTIONS
         OTHERS                = 1
    if sy-subrc <> 0.
      message ID '61' TYPE 'E' NUMBER '731'
      with 'TABLE_COMPRESS'.
    endif.
  describe table objtxt lines tab_lines.
  read     table objtxt index tab_lines.
  docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
    clear objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'OTF'.
    append objpack.
    att_type = 'OTF'.
describe table objbin lines tab_lines.
read     table objbin index tab_lines.
objpack-doc_size = ( tab_lines - 1 ) * 255 + strlen( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = att_type.
    objpack-obj_name   = 'ATTACHMENT'.
    objpack-obj_descr  = 'Attached Document'.
    append objpack.
reclist-receiver = '[email protected]'.
reclist-rec_type = 'U'.
reclist-com_type = 'INT'.
append reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data                     = docdata
      PUT_IN_OUTBOX                     = 'X'
  IMPORTING
    SENT_TO_ALL                        =
    NEW_OBJECT_ID                     =
    tables
      packing_list                      = objpack
      OBJECT_HEADER                     = objhead
      CONTENTS_BIN                      = objbin
      CONTENTS_TXT                      = objtxt
      receivers                         = reclist
   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
  IF sy-subrc <> 0.
    message ID 'SO' TYPE 'S' NUMBER '023'
            with docdata-obj_name.
  ENDIF.
I am getting the message that mail cannot be sent don't know why???
Regards,
Satya.

Similar Messages

  • What happens (or can happen) when connecting to a website from a pdf file?

    (Part of this post was copied from a question I posted earlier, to which I received two correct answers)
    I'm working with WIndows 7 Home Edition. I downloaded a pattern in pdf. One of the first times I had the document open, I saw a little message, asking me to allow the document with the website it came from. At that time I didn't want that to happen so I answered 'do not allow' (or words to that effect).
    I'm working with Windows 7 HE, Adobe Reader v.10.1.1
    I have now changed my 'do not allow' to 'allow' so the pdf file can connect with the website I downloaded it from.  But I'm curious: what is or could be the purpose of that connection? Anything I have to be worried about? And from whom does that request come? The Adobe pdf file, or the website where I downloaded it from?
    THanks!
    Ciske.

    "There are a number of things within a PDF file that can request data from a webserver, or post data back to one, but they can only be triggered by the PDF file - not the server.
    A form can submit completed fields to the server, and read a response message (e.g. to confirm the data is correct) 
    A rich media annotation (Flash, video or audio) can download content from the server instead of embedding it in the file 
    Scripts within a specially-written PDF file can communicate with a server using protocols such as SOAP, to retrieve data (e.g. to look up information in a remote database)
    There's no immediately-obvious way to tell exactly what information is being sent or received unless you inspect the PDF in some detail; but because of the security models used by Acrobat and Adobe Reader, files which communicate with a remote server cannot read or write data from your own computer without your interaction - so they cannot secretly upload files, passwords, etc."
    Thank you very much for your explanation.
    I understand the three points you explaned. It is just hard to apply them to the kind of pdf file I am referring to. But I don't know anything about adobe reader, and that may very well be the reason for my lack of understanding.
    The file is an explanation, a pattern of a craft project, with extensive drawings to help understanding the directions. The website has many patterns (all pdf files) of the very same kind available.
    I believe I understand your explanation, but again, it is hard to imagine why a simple pdf file like the one we're talking about would need to connect with the website it came from. But then again, I know NOTHING about pdf files.
    So, in my simple mind, I felt I had to deny permission to connect which I have now made possible again. It's annoying to see something like this happen and not have a CLUE what it is about
    Thank you again for your help.
    Ciske.

  • Can I use a pdf file as a website and can it be protected?

    If I create a pdf file (that will eventually end up around 600 A4 pages)
    how can I use that file alone as a website, please?
    Is it also possible to do a pdf file for my website that does not allow the visitor
    to save, print or in any way store a copy of my pdf file, please?
    Any help here is appreciated as I know only just a little about pdf files.
    Many thanks for reaidng me.
    Kevin

    The PDF can be linked on a web site, but it is not HTML and will not display as a web site. It would ALWAYS  be downloaded and opened in a PDF viewer -- Acrobat, Reader, GView, etc. You can not restrict the saving of the PDF. Once it has been opened on a client machine, it has been saved locally. Thus a user would only have to copy the file from the download location -- though many users do not know how to do this. If you want the PDF to be secure in some sense so that it can not be used if copied and such, then you have to use Digital Rights at a substantial cost (in the $1000s).

  • Using Examine Document Remove increases pdf file size !

    Hi,
    I have Adobe Acrobat Pro v9.3.0
    I've been editing a lot of scanned .pdfs - rotating and cropping pages.
    All this has previously worked fine with v8 but now I find that Acrobat 9 is increasing the .pdf file size after using Examine Document and clicking Remove
    For example:
    original file: 16,861 Kbytes
    file after cropping 74 pages (from A4 to A5): 16,879 Kbytes
    file after running Examine Document > Remove cropped metadata : 79,914 Kbytes !!!
    With Acrobat 8 this process would normally have halved the file size.
    Am I now doing something wrong ??
    Thanks in advance.

    Hello - This problem is still here !
    Acrobat 9 Pro version 9.4.2
    I've got a .pdf created by an agency (so not a scanned image) which I want to make as small as possible for emailing to hundreds of people (I'll attach it if possible somehow ?)
    I open it up when it's 331Kb
    Click Document > Examine Document
    Check the Metadata and Deleted/Cropped items
    Click Remove
    Click File > Save As and hey presto, the new file with all that stuff supposedly removed is 2,588 Kb
    Surely I'm not the only one who's bothered about .pdf file size ?

  • How to change the font and size in the fillable field of an encrypted PDF file?

    hi!
    I’d like to change the font and size in the fillable field of an encrypted PDF file I-485 from www.uscis.gov/files/form/i-485.pdf
    I’m using Adobe Acrobat Pro 9 in Windows XP. I firstly tried Adobe LiveCycle Designer, but the I-485 file requires password to be opened, which I don’t know.
    Then I tried to print it to a PDF file, and use the Typewriter tool to fill in the form. But got error message while printing it to PDF file:
    This PostScript file was created from an encrypted PDF file.
    Redistilling encrypted PDF is not permitted.
    The I-485 file can be exported to unencrypted postscript file, but got the same error message while trying to open the ps file.
    I don’t know much about pdf file, can anyone please help?
    Thanks a lot!

    Ask the creator of the file for a unprotected version.

  • 8310 PDF file reading

    I don't need to worry about opening about PDF files on Blackberry anymore.  The Blackberry is in the garbage & I have a new, better Samsung that does everything better & no issues with PDF files.  $199.00 to learn my lesson, but worth it in the long run.

    Hi stupidmistake!!
    I'm very sorry to hear that your issue is not resolved due to which you've changed to a new vendor. Its sad that you've not received desired value for $199.00. I wish if you could hang on for a bit then I guess this community would help to resolve the PDF view issue.
    Anyway I wish you a happy journey with your new device...just drop by the community whenever you have something to ask/know about BlackBerry.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • Question about reducing PDF file size on export

    I have a large file that is generates a PDF about 75MB when exported with the "[High Quality Print]" preset. However, I can reduce the size down to to under 5MG in Acrobat if I use the Tools>Flattener Preview>[Medium Resolution] setting (image attached). Is there a way to generate this smaller file directly from InDesign? I couldn't figure out how to do this with InDesign's Flattener Preview or Export options, but it is very likely that I missed something.

    Eugene Tyson wrote:
    When you choose Smallest File size, it is still using the PDF 1.6 setting.
    Change this to Acrobat 4 (PDF 1.3) this will automagically flatten the PDF - which means you shouldn't have to do it in Acrobat.
    That should get you a nice small file size, I believe.
    Flattening transparency in InDesign will not necessarily yield a smaller PDF file size. Transparency flattening will not automatically convert placed vector artwork to raster images unless that vector artwork is actually involved with transparency. And even then, whether you end up with a smaller file depends on a number of factors.
    If the reason for the very large file size is indeed very complex vector artwork and you are willing to sacrifice quality, conversion of such vector artwork to raster might yield a significantly smaller exported PDF file. To accomplish that conversion, I would personally suggest converting the most offensive (in terms of file size and complexity) of such files in Illustrator (assuming that they were .AI files) and exporting them as .TIF files (to avoid the potential imaging artifacts of JPEG compression).
              - Dov

  • Scan to PDF files too large! - Why?? Solution for Windows - How about Mac? (HP-8630)

    Scanning a document to a PDF file of reasonable size has been addressed many times - it is always an issue! My wife is a realtor and frequently needs to scan multiple page documents. I found an actual solution last night:
    27 page letter-size B&W document - Scan to PDF on my HP-8630 AIO using HP software at 300dpi, small file size, BW: 27MB! Too big to email.
    Solution (in Windows 7 at least), if you have Adobe Acrobat:
    Open Adobe Acrobat, go to File Menu -  Create - PDF from Scanner - Configure Presets. Select and configure "Black and White Document": 
    Select TWAIN device (NOT WIA) as the scanner; black and white, 300dpi, file size one notch to left (smaller) from center, check "optimize after scan". Select paper size and one- or two-sided scanning. Uncheck "make searchable". Save the preset. (The TWAIN driver was apparently installed with the HP installer, since I did not have to look for it.)
    After placing pages in the Doc Feeder,  go to File Menu, Create - PDF from Scanner - Black and White Document. Watch the magic!
    File size 768k!  Quality indistinguishable from the 27MB version, sharp and clear, all 27 pages! Really!
    Using the HP software, using a lower resolution or sliding the file size slider to smaller makes a muddy scan, and the file  is still huge compared to the Acrobat technique. MUCH worse quality than the Acrobat 768k version.
    Interestingly, using Acrobat to open the 27MB scan and "PRINT" it to the PDF Printer reduced the size to 10MB, with no change in appearance. "Save as smaller PDF" did not reduce the size further.
    What gives, HP?? What can Acrobat do  to scan from your AIO that you can't do?
    I tried on my Mac as well - we use both. No go. On Mac OSX 10.10.1 with latest HP drivers, Acrobat does not see any TWAIN or other driver from within the dialog box described above. Scanning from HP software again yields about 1MB per page.
    Anyone know how to make Acrobat see the scanner on Mac?

    Hi @JosephWit ,
    I see by your post that you are having issues with the PDF scanning size being too big. I will do my best to assist you with this issue.
    The drivers for 10.10 are installed by the Apple Updates. Did you install the 10.9 drivers or are did up run the Apple Updates to install the printer?
    Uninstall the 10.9 printer software and run the Apple Updates to install the proper drivers. Then you can scan with the Apple Software.
    Connect the printer to the Mac by a USB cable and run the Apple Updates to install the printer drivers.
    Go to the Apple, About this Mac, click on the Overview tab and select Software Updates.
    Go to the Apple, Printers and Scanners, delete the USB drivers and disconnect the USB cable.
    Then add the wireless printer as a Bonjour printer if the printer is networked.
    Click on the + sign, highlight the printer, below beside Use: make sure just the printer name is listed. (you might have to click on the drop down to select your printer from the list)
    Here is a document for Scanning in OS X v10.10 Yosemite Without HP Software.
    If you are having issues with Adobe, run the updates. Product updates.
    If you need further assistance, just let me know.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How do I go about to convert a PDF file to a Word Doc?

    How do I go about to convert a PDF file to a Word Doc?

    Hi Anita,
    You may want to consider subscribing to our ExportPDF service.  You can learn more here: https://www.acrobat.com/exportpdf/en/home.html
    -David

  • Can't open pdf. files something about patch package

    Can't open PDF files something about patch package verification.error.

    I am having the same issue.  Unable to open ANYTHING related to adobe (PDF, downloads), as well as unable to delete and reinstall or even change or correct. 

  • New Acrobat Pro installed and EVERY PDF file crashes after about 10 seconds. Any Solutions?

    I just purchased and installed Acrobat Pro v. 10.1.2 and it seemed to install fine ,but now EVERY ODF crashes after about 10 seconds. Also, I get the Windows "please wait while Windows Configures Acrobat" message every time I launch Acrobat. Does anyone have a solution or suggestion?

    Good day,
    I'm sorry to hear you're having trouble.
    Could you try the following:
    Launch Acrobat, but do not open a PDF file.
    Choose Edit > Preferences.  Click on 'Internet' on the left-hand side. 
    Uncheck 'Display PDF in Browser'
    Relaunch Acrobat - do you still get the 'Please wait while Windows configures Acrobat' message?
    If that message has stopped coming up, please try opening a PDF file.  Does Acrobat still crash?
    Do you have any other versions of Acrobat or Adobe Reader installed on this computer?
    What version of Windows do you have installed?  What version of Internet Explorer is installed?
    Kind regards,
    David
    Adobe Systems

  • How do I mass protect about 200 pdf files in a directory without opening them individually?

    How do I mass protect about 200 pdf files in a directory without opening them individually? I have Adobe Acrobat X Pro.
    They can all have the same password.
    Any ideas?

    If they can all have the same password, just make 200 copies of the protected file in your operating system...
    Edit: I think I misread your initial post. If the files are not identical, you can use an Action to encrypt all files using the same password.

  • What about my current PDF files?...

    Hi,
    A couple of questions:
    1. I've dozens of PDF books bought in O'reilly and Amazon book stores. Is there a way to dump my PDF files to my future iPad through iTunes or other apps?
    2. How the gift card works?... I mean, if the Apple store for iPad isn't available in Belgium; should I register an USA-Apple store account's in order to buy apps with my gift card?
    Thank you for your comments.

    One more vote for Goodreader. I have it and have dumped about 50 ebooks and about the same number of manuals in Pdf format on the iPad. Display quality is excellent.
    To use it, simply download and install the app from the app store, then when the iPad is connected to the system, launch iTunes, go to the apps tab, and scroll down to the window which indicates which apps can sync documents directly to the iPad. You can then click the 'add' button to navigate to the file on your system, or just drag and drop the file into the space in iTunes, and it will automatically sync to the iPad.
    Goodreader can also handle other file types, including Word documents as long as they are not too long. Well worth .99c!

  • Acrobat X crashes and stops working about every 4 weeks. I have to uninstall and reinstall the program in order to open pdf files. Can this be fixed?

    Acrobat X crashes and stops working about every 4 weeks. I have to uninstall and reinstall the program in order to open pdf files. Can this be fixed?

    Turn off the updater.
    Mylenium

Maybe you are looking for