Send spool as PDF, error in opening PDF- Could not find the XObject '00014'

Hi
I am sendind a spool as PDF and when opening the PDF I am getting error saying Could not find the XObject named ‘00014’.
Please let me know how I can see the PDF contents proerly.
Regards
Bala

Hi Bala
Check the sample which can be useful for you.
Pseudo code for sending PDF attachment:
TABLES: tsp01.
  TYPES: BEGIN OF t_spool,
                      Rqident TYPE tsp01-rqident,
                END OF t_spool.
  DATA: i_spool TYPE STANDARD TABLE OF t_spool,
            Wa_spool TYPE t_spool.
  SELECT rqident FROM tsp01
  INTO TABLE i_spool
WHERE rqowner = sy-uname.
  SORT i_spool DESCENDING BY rqident.
  LOOP AT i_spool INTO wa_spool.
  ENDLOOP.
YPES: l_ty_tab_pdf TYPE tline OCCURS 0.
  DATA: l_pdf TYPE l_ty_tab_pdf,
            l_spool TYPE tsp01-rqident.
Type for binary attachment table.
  TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.
  DATA: l_objbin TYPE l_ty_tab_objbin.
            l_spool = wa_spool-rqident.
  CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'            
      EXPORTING
        src_spoolid                    = l_spool
        no_dialog                      = ' '
      TABLES
        pdf                            = l_pdf
      EXCEPTIONS
        err_no_abap_spooljob           = 1
        err_no_spooljob                = 2
        err_no_permission              = 3
        err_conv_not_possible          = 4
        err_bad_destdevice             = 5
        user_cancelled                 = 6
        err_spoolerror                 = 7
        err_temseerror                 = 8
        err_btcjob_open_failed         = 9
        err_btcjob_submit_failed       = 10
        err_btcjob_close_failed        = 11
        OTHERS                         = 12.
  IF sy-subrc <> 0.
    WRITE: / 'error', sy-subrc.
  ENDIF.
**/ Convert the PDF format to the table type required for the attachment.
CALL FUNCTION 'QCE1_CONVERT'
    TABLES
      t_source_tab         = l_pdf
      t_target_tab          = l_objbin
    EXCEPTIONS
      convert_not_possible = 1
      OTHERS               = 2.
  IF sy-subrc <> 0.
    WRITE: / 'error', sy-subrc.
  ENDIF.
TABLES: soli.
  DATA: v_email TYPE soli-line.  “Manager’s Email
  DATA: l_adrnr LIKE kna1-adrnr. “Address Number
  DATA: l_objky TYPE nast-objky. “Object Key
  DATA: l_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
  DATA: l_objtxt    LIKE solisti1 OCCURS   0 WITH HEADER LINE.
  DATA: l_objpack   LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
  DATA: l_doc_chng  LIKE sodocchgi1.
  DATA: l_objhead   LIKE solisti1 OCCURS   0 WITH HEADER LINE.
  DATA: l_tab_lines LIKE sy-tabix.
  CONSTANTS: k_true TYPE boolean_flg VALUE 'X'.
  DATA: l_mail TYPE somlreci1-receiver.
  l_mail = v_email.
Creation of the document to be sent as File Name
  l_doc_chng-obj_name = 'SENDFILE'.
Mail Subject
  l_doc_chng-obj_descr =l_text-001.
“Here text-001 will contains “Compensation Review Statement for Employee Name”
Here we can concatenate employee first name and last name to l_text-001.
Completing the recipient list
  l_reclist-receiver = l_mail. “Manager Email Address
  l_reclist-rec_type = 'U'.
  APPEND l_reclist.
Mail Contents
  l_objtxt = text-002.
  APPEND l_objtxt.
Calculate email size in bytes
  DESCRIBE TABLE l_objtxt LINES l_tab_lines.
  READ TABLE l_objtxt INDEX l_tab_lines.
  l_doc_chng-doc_size = (l_tab_lines - 1 ) * 255 + STRLEN( l_objtxt ).
Creation of the entry for the compressed document for the email text
  CLEAR l_objpack-transf_bin.
  l_objpack-head_start = 1.
  l_objpack-head_num = 0.
  l_objpack-body_start = 1.
  l_objpack-body_num = l_tab_lines.
  l_objpack-doc_type = 'RAW'.
  APPEND l_objpack.
Creation of the document attachment
(Assume that the data in OBJBIN is in BMP format)
  DESCRIBE TABLE l_objbin LINES l_tab_lines.
  l_objhead = text-001.
  APPEND l_objhead.
  CLEAR l_objpack.
Creation of the entry for the compressed/attached document
  l_objpack-transf_bin = k_true.
  l_objpack-head_start = 1.
  l_objpack-head_num = 1.
  l_objpack-body_start = 1.
  l_objpack-body_num = l_tab_lines.
  l_objpack-doc_type = 'PDF'.
  l_objpack-obj_name = text-005.
  l_objpack-obj_descr = text-001.
  l_objpack-doc_size = l_tab_lines * 255.
  APPEND l_objpack. "/ .
Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = l_doc_chng
      put_in_outbox              = 'X'
    TABLES
      packing_list               = l_objpack
      object_header              = l_objhead
      contents_bin               = l_objbin
      contents_txt               = l_objtxt
      receivers                  = l_reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.
  IF sy-subrc <> 0.
    WRITE: / 'unsuccessful', sy-subrc.
  ELSE.
    WRITE:  / 'successful'.
  ENDIF.
*Take note it is a requirement to do a commit work for the email to go into transaction   
  SOST.
COMMIT WORK.  
Regards,
Sree

Similar Messages

  • Could not find the main class Error

    Hi all,
    I think that JRun compiles something to jsp files if the jsp
    folder does not contain jsp files. Is that right? I started a
    server running in JRUN4. And later at some point (I don't know what
    I was doing), I got this Error Dialog that said "Could not find the
    main class. Program will exit." In addition, the title of that
    dialog was "Java Virtual Machine Launcher". What does this message
    mean? Please help me. Thank you.

    Okay, I created a simple hello jsp file in the test folder.
    Then I ran the command:
    D:\JRun4\bin\jspc at the current directory of C:\Documents
    and Settings\user\Desktop\test>
    The result that I got this:
    C:\Documents and
    Settings\user\Desktop\test>D:\JRun4\bin\jspc
    Compiling: /index.jsp
    java.io.FileNotFoundException: C:\Documents and
    Settings\user\Desktop\test\WEB-IN
    F\jsp\jrun__index2ejspa.class (The system cannot find the
    file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at
    jrunx.compiler.SMAPAttributeWriter.writeSMAP(SMAPAttributeWriter.java
    :49)
    at
    jrunx.compiler.JavaCompiler.processSMAP(JavaCompiler.java:184)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:151)
    at
    jrunx.compiler.JavaCompiler.compile(JavaCompiler.java:100)
    at jrun.jsp.Translator.compilePage(Translator.java:176)
    at jrun.jsp.Translator.translate(Translator.java:254)
    at jrun.jsp.Translator.translate(Translator.java:101)
    at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:693)
    at jrun.jsp.JSPC.compile(JSPC.java:85)
    at jrun.jsp.JSPC.main(JSPC.java:223)
    C:\Documents and Settings\user\Desktop\test>
    What is wrong?

  • Trouble creating a pdf converting Word doc ..."Could not find the application that created the file"

    Hello,
    I am working with Acrobat Pro 8 and am trying to create a pdf by converting a word doc. When I try that, I keep getting an error message, " Could not find the application that created this file...please select a file created by an application that resides on your computer." I can always convert a word into pdf first and then insert it into the pdf project that I am working on, however I have multiple files and I really would like to bypass that long step.
    I found another thread in this forum which talks about a simillar issue (http://forums.adobe.com/thread/429585).I tried the solution suggested there by Bill@vt regarding the print menu. I am not really sure if t have distiller installed, so I tried opening it in acrobat, but it failed. During the process, I got the follwing message "Check the Status column for a list of files that could not be printed".I do not have any clue how to check for AcroTray running in the background.
    I would really appreciate any help.
    Thanks!

    If Distiller failed to open, it sounds like you need to do a repair of your Acrobat installation. Have not heard that one before!

  • "An error has occurred: Could not find the document." on opening the BO report

    Hi ,
    On publishing the BO report in Portal, we get the blank screen with warning message as below screenshot and  facing the ""An error has occurred: Could not find the document."" error message when accessing the BO report using open document URL directly in browser instead of portal.
    Link: http://<host>:8080/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=ASClVc_yw55L
    We already have many BO reports successfully running in the production environment.
    But for this new report we are getting this error. The difference found in this report is from Infoviewapp the login page appears as below in to which the developer logs in.
    But for the reports coming with error the login page authentication value is changed to "Enterprise". So the system related fields disappear after that and looks like below
    Please let us know the root-cause of this error message. Is this something to do with user authorization in BO system at report level or some config changes related to SAP/Enterprise authentication.
    Multiple posts in SDN related to this error message points to check for user authorizations in BO system. Please provide details on this if this is the case.
    Regards,
    Bhaskar

    Hi ,
    The dropdown is now made visible to the users in the opendocument property as per the suggestion in the below links. The user can choose the authentication type and login into reports after that.
    http://scn.sap.com/thread/3525264
    http://scn.sap.com/thread/1417858
    My question now is after changing the visibility of the authentication true, the SSO doesn't work as before. Is there any way to make the SSO available with this setup ?
    Regards,
    Bhaskar

  • Everytime I open Firefox - error: "...Firefox could not find your Proxy configuration..." The thing is I'm not using Proxy. Then I go to settings windows, network, put No Proxy, and then everyting works ok. BUT always I open Firefox, it happens again.

    Everytime I open Firefox, it shows me a error: "...Firefox could not find your Proxy configuration..." The thing is I'm not using Proxy. Then I go to settings windows, network, put No Proxy, and then everyting works ok. BUT always I open Firefox, it happens again. Help me , Please
    Everytime I open Firefox, settings in Network appear: Manual Proxy and shows me a ip number and port

    See:
    * http://kb.mozillazine.org/Preferences_not_saved

  • After downloading software for 123Cheese Photobook (Australia), when I try to open the program, i get: "Initialization error... Could not create the application support directory 'Macintosh HD:Library:Application Support:123 Cheese:'. Please help.

    After downloading software for 123Cheese Photobook (Australia), when I try to open the program, i get: "Initialization error... Could not create the application support directory 'Macintosh HD:Library:Application Support:123 Cheese:'. Please help. The MacBook Pro is one day old.
    Thanks

    Hi, Im am also having this same problem,same message, trying to make a photobook with a non-refundable voucher. my Macbook pro is like 2 months old and im up to date with all of my updates.
    What ended up happening with this problem for you because, Ive emailed cheese123 3 times and they haven't replied???
    Can you help me? Thanx

  • Error when opening a new file: "Could not find the user documents directory"

    Why can't I create a new file and I get this error everytime: "Could not find the user documents directory"?

    Hi Team,
    Please check this forum thread with similar issue.
    Create New gives an error "Could not find the user document directory"
    Regards,
    Devendra

  • "Could not find the application that created this file" error when trying to combine files

    I am working with a user that is trying to combine a pdf & word doc (docx).  When they try to combine the files she gets the error:  "Could not find the application that created this file" & "Please select a file created by an application that resides on your computer".  The computer is running windows XP, with office 2010 SP1, & Adobe Acrobat Pro X.
    Per previous suggestions, I have already checked to see if Adobe PDFMaker is enabled as a Word plugin, and it is.
    Recentley the user was running Acrobat 6, and this error did not occur.  It is only after upgrading to Acrobat X that this is happening.  Any help with this issue would be appreciated.

    This can also be caused if the files are in a folder deep in the file system. For example C:/xxxxxxxxxxxxxxx/yyyyyyyyyyyyyyy/zzzzzzz/aaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbb /cccccccccccccccccccc/dddddddddddddddd/eeeeeeeeeeeeeeeeeeee/ffffffff/ggggggg/hhhhhhhhhhhhh hhhhhhhhhh/myPDF.pdf
    At some point Adobe PDFMaker cannot handle the path length (also, Windows can't handle the path length either eventually)
    Solution: move the files to a shorther path (perhaps the desktop) and try from there.
    I am filing a bug report with Adobe. A descriptive exception message should be thrown instead of "could not file the app.."

  • [SOLVED] mutt error "Could not find the host"

    I have been trying to set up Mutt, following the Mutt wiki page. Every time I run 'mutt' at the command line, the application opens but I get the following error message at the bottom of the window:
    Could not find the host "imap.qmul.ac.uk"
    I've tried various .muttrc variations, but no luck so far. Here is my current .muttrc file (with my username changed to 'user' but no other changes):
    set imap_user = user
    set folder = "imaps://[email protected]:993/"
    set spoolfile = +INBOX
    mailboxes +INBOX
    unset imap_passive
    (Eventually I will add smtp information, but it seems premature at this stage. I also tried putting my password in there, but it did not make a difference.)
    It may be relevant that I also cannot telnet into the imap server in question (or get in there with 'ssh'). I set up telnet using the telnet wiki page.
    The IMAP server itself seems to be working well: I can log in there and read and send emails just fine when I use a GUI-based email client.
    Any ideas, anyone, on what's going wrong?
    PaulE
    Last edited by PaulE (2013-01-05 11:23:07)

    Just in case anyone stops by and is interested in the networking question, let me add, in partial answer to skanky's questions, that I can indeed ping the server:
    $ ping imap.qmul.ac.uk
    PING imap.qmul.ac.uk (138.37.6.143) 56(84) bytes of data.
    And the telnet error message I get is as follows:
    $ telnet imap.qmul.ac.uk
    Trying 138.37.6.143...
    telnet: Unable to connect to remote host: Connection timed out
    But I've just noticed that if I include a port the telnetting works fine:
    $ telnet imap.qmul.ac.uk 993
    Trying 138.37.6.143...
    Connected to imap.qmul.ac.uk.
    Escape character is '^]'.
    I don't know why that should be, since a port number is optional in the telnet documentation I've consulted, both on my system (via 'man') and elsewhere.
    And if I include a port number in my .muttrc folder setting but keep the server name instead of the IP address...
    set imap_user = user
    # set folder = "imaps://[email protected]:993/"
    set folder = "imaps://[email protected]:993/"
    set spoolfile = +INBOX
    mailboxes +INBOX
    unset imap_passive
    ... it STILL doesn't work:
    Could not find the host "imap.qmul.ac.uk"
    Finally the GUI application that I mentioned was a webmail service. I just go to a web page and type in my username and password, so I don't know about its settings offhand. I can try to find them out if this issue is of interest to any networking expert who wanders by.
    There are deep mysteries here, but I am content for the moment that I have mutt up and running.
    PaulE

  • FF not connecting to web- This "Network Connections" message pops up: Error 623: The system could not find the phone book entry for this connection. Any ideas?

    About a month ago I could no longer connect to the internet on our PC. Every time I clicked on the Firefox icon the Netscape sign-on window would pop up. I would try to close it but it would pop up over and over again. If I tried to close it a dozen or so times eventually Firefox would open up but it would never connect. Just today I moved my Netscape file to the recycle bin. No longer does the Netscape sign-on window pop up but following Network Connection error message pops up: "Error 623: The system could not find the phone book entry for this connection".. This error window behaves the same way the Netscape sign-on window used to behave. Every time I click to close it it pops open again. After numerous clicks Firefox opens up but it never connects.

    Do you have this error message on a Mac computer or on a Windows computer?
    I've only seen this error mentioned on a Windows computer.
    *http://kb.mozillazine.org/Autoconnect

  • An error has occurred: Could not find the document.

    I get the "An error has occurred: Could not find the document." error when trying to open a URL using OpenDocument.  The URL is as follows:
    http://:<myserver>8080/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AZjCUhaL3c9Is.YxtGMc7K4&sIDType=CUID
    I am certain the value of iDocID is correct, and I am also certain that I can get an OpenDocument to work on the server.  In fact, I tried the same URL using a different iDocID for a Webi report in a different folder, and it works.  For some reason, it appears as though the report in this folder won't open though.
    Any thoughts on this would be greatly appreciated.  I've been working on this for a couple of days an am completely stumped.  Also, I'm relatively new to Business Objects.  Is there a log file that I can view that might give me more details regarding the error?
    Thanks in advance for your help!

    May be that the user who is accessing the report does not have sufficient rights to view it.
    Check whether you are able to view the document as an administrator.
    Regards,
    Niraj

  • Error: Could not find the file "flash.ocx"

    I have been receiving the error COULD NOT FIND THE FILE
    "FLASH.OCX" for the past couple of months - I have been watching
    the message boards and have seen a lot of "fixes" and beta's come
    up errors (not sure that it's this exact error though).
    I get this error continuously throughout the day - no matter
    if I have nothing running on my computer or I have 10 things open.
    This morning it occurred to me that my screen saver is not coming
    on and it seems to me that the above errror is popping up everytime
    my screen saver should start. I HAVE TIMED THIS TODAY AND CHANGED
    HOW LONG BEFORE MY SCREEN SAVER STARTS - AND IT IS DEFINITELY
    GETTING THE ERROR EVERYTIME THE SCREEN SAVER IS TRYING TO START.
    Last week, I deleted the version of Flash that I had and then
    re-installed; still getting the error.
    I was getting the error when I had IE6 so I thought maybe
    switching to IE7 would correct it - but it didn't (that was a few
    weeks ago).
    My computer does not freeze up but it is SOOO annoying to
    continually throughout the day get this error.
    IE7.0
    ADOBE 9,0,28,0
    WINDOWS XP - SP2
    PLEASE HELP!

    Ah-ah! The workaround is to map my network folder to a drive, say... M:\
    So, when I select Edit->Edit in Audition->Sequence, I can select the Browse button to alter the Path destination. Instead of seeing '\\Zeus\Projects\...', I select the mapped M: drive so the path reads 'M:\Projects\...' instead.
    Then, Audition loads and is able to find the sequence or clip.
    So... that solves my problem!

  • Create New gives an error "Could not find the user document directory"

    Fresh installed Adobe Edge Animate CC (2014). When I try to Create New, I get an Error popup "Could not find the user document directory"

    I think this worked!
    I just downloaded an example file and tried opening from outside of the program. At first it gave me some errors but then loaded it up.
    After that I've re-saved it and now I can create new files and open files.
    Before that I also uninstalled old CC programs that were not showing in the Adobe Creative Cloud apps.

  • Intermittent errors - Invoke() could not find the Service name

    Users are getting intermittent error : Invoke() could not find the Service name, when opening the Xcelsius dashboards in PRODUCTION. The dashboard has several QAAW queries .These errors are poping up intermittently.
    The dashboards are hosted utside the BO environment.
    BOXIR3.1
    Crystal Xcelsius 2008 Enterprise

    As I continue to look into it, the only thing that I see differently when I am prompted for login is that I can specify the system to log into. I am now wondering if somehow this information is being lost and that is what is causing these issues. Given that the specified name cannot be found and that it does in fact recognize the correct name, I'm not entirely sure what the problem is.
    Further information:
    If I disable the use of hard-coded logins and I am prompted, I can display results for the onLoad run. Yet the query is also set to refresh on 30 second intervals. On every subsequent interval I am getting this error.
    I think this has something to do with sessions. How do I check which sessions exist on my box? CmcApp somewhere?
    Edited by: Brian Comeau on Jun 4, 2009 12:24 AM
    Checking in CmcApp I found some sessions. Here is what happens:
    Login to CmcApp Sessions tab
    -Administrator: 1 session at 5:45pm
    Launch browser to Xcelsius .swf
    Prompted for login information: Administrator/password
    -Administrator: 2 sessions at 6:30pm
    I had previously set the timeout for sessions in QaaWS to 120 seconds
    After 2 minutes
    -Administrator: 1 session at 5:45pm
    Yet throughout this time, I am still given this "invoke() could not find the service name" error. The name provided "qaawsIncidents" is the same name that I can see if I launch QaaWS.
    Ideas?
    Edited by: Brian Comeau on Jun 4, 2009 12:30 AM

  • Error: Sorry! We could not complete the transaction using this payment method. Please contact support.

    I am everytime getting the following error
    Sorry! We could not complete the transaction using this payment method. Please contact support.
    I have put my 2 credit card information with Microsoft. I tried calling 2 times the customer support but it was a pathetic response. In a single call I talked to 4 customer support officers and everybody passed on the call to the next without resolving the
    problem, and without telling the next officer what is my issue!! they just passed on the phone call to avoid me!!
    It is really frustrating that neither Microsoft is provide a good support (it was hard for them to understand my issue, in fact one of the support guy did not even know spelling of Azure.. he/she was saying it assure!!! and One of the guy told me that I
    cannot use credit card outside US and Canada. then why you call yourself global???
    So Microsoft you have a few things to do as your homework.
    1. Your support is pathetic, frustrating and requires better people out there who know about your products, so train them first!
    2. You got my 2 credit cards information which I see at subscriptions for Windows Azure, please remove both of them if you cannot provide a good support and subscription.
    3. Learn from other cloud providers, AWS will otherwise kill your business.
    Regards
    Kajal
    Kajal Sinha

    Hi Kajal,
    Sincerely apologize for this inconvenience, for billing & account issue, usually we need to contact the support team by creating a support ticket at
    http://www.windowsazure.com/en-us/support/contact/. Or if that doesn't work because you don't have an active subscription you will need to contact general customer support to have them create
    a support ticket for you 
    http://support.microsoft.com/gp/customer-service-phone-numbers?wa=wsignin1.0).
    If above support channels don't work, at your convenient, could you please send an email to me: dxu at microsoft.com with kindly providing your:
    Name
    Email address
    Phone number 
    We will provide help via emails. Thank you.
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Saving a WORD or PDF document in the database?

    Hello, If I have a WORD document, PDF document or EXCEL document. How can I save them in the database? What type of LOB I should use. What I would like to do is have a webpage with a text box and a browse button. The user can then use the browse butt

  • Message Server

    Hi, I try create JCO destination for SAP_R3_SelfServiceGenerics_MetaData, up to step 4.2, Msg. Server Connection, I selected my Message Server but both System Name and Logon Group is empty. How to resolve this issue? I need to have System Name and Lo

  • Floating divs and scroll bar in div

    I've been searching the postings and can't find an answer to this. I'm trying to make #content a div that, when content is too much for the div, scroll bar will appear and not expand the entire design. I assigned a height to the div and added overflo

  • Changing a components values by an event of another avoiding recurse calls

    Hello assume there are two Components (e.g. an JCheckBox and a JList) placed on a JPanel. The state of the one components shall depend on the state of the other (e.g. If the user selects one or more items in the List, the checkbox has to be selected

  • About Skype for Symbian

    Is there any indication as to how long the Symbian Skype client will continue to function?Thanks.