Excel save as pdf hangs when launched through a watch folder

Hi there,
I've configured a watch folder to launch a batch file which launch a .exe file I've written in C++
In this application I launch Excel which open a .XLS document which contains macros.
At the end of the computations there is a macro which save as pdf.
At this point everything hangs and I have to cancel the job I've created for the watch folder.
If I disable the watch folder and I place the starting file inside the watch folder
and I manually launch the .bat file (which usually is launched by the watch folder) everything works perfectly.
I really really hope there will be someone here coming with a solution for me.
By the way on the windows forum I've got a very disappointing answer where they stated it was probably a fault of my application.
Well fortunately that was not the problem because
I can reproduce the problem even removing my application from the equation so now we have cleared
the issue is not casued by my application.
So if you want to try it yourself just follow the steps below:
1) create an excel document so that after you open it it automatically run a save as pdf operation and close excel. (let's call this document "PRINT_TEST.xls")
2) create a batch file named "Excel_launcher.bat" and write the command
""C:\Program Files\Microsoft Office 15\root\office15\EXCEL.EXE" "C:\teststampapdf\PRINT_TEST.xls""
3) Now create a watch folder job that execute that batch file.
something like "C:\watchfolderX\Excel_launcher.bat"
4) now create a watch folder that uses that job and for file filter use "*.txt" enable it and start it
5) now launch manually the batch file and you'll see that it print the pdf and closes itself
6) drop a txt file inside the watch folder you've created and you'll see it hangs at the save as pdf operation.
This is something that have to be fixed and it's due to excel.
I can launch and save documents with all the application I want but excel so that's the problem.
Please take a look and keep me updated I badly need to find a solution for this issue.
THANK YOU in advance,
Davide

Hi Davide,
This is no the right forum for your issue. I think you can consult this issue on some Excel end-user related forum.
Best regards,
Barry
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.

Similar Messages

  • Developer Server 6.0 hanging when launched from Netscape 4.6

    Hi, simple question to ask about OAS and Developer Server.
    My Developer Server 6.0 hanging when launched from Netscape 4.61,
    I am currently running...
    Pentium PII 200Mz running NT sp5
    Forms Server version 6.0.5.31.0 (Patch 3 applied)
    OAS version 4.0.7.1.0 (Patch applied)
    Jinitiator 1.1.7.18
    Netscape 4.61 browser
    I have all the latest versions of everything that is available,
    I have followed the instructions.
    I successfully connect to the OAS admin utility and have setup
    all the virtual to physical directory mappings under the default
    listener www. I successfully start all website OAS services.
    I have Forms server successfully started up as a process
    listening on port 9000.
    I have two statics html files created:
    a) with Jinititator 1.1.7.18
    The very first time I connected to this static html file it
    installed Jinitiator as expected. The Forms server splashscreen
    then appears.
    Jinitiator then starts up successfully, no errors appear in the
    Java console. This has proved I am talking to the listener and
    my virtual directory mappings are working.
    At this point there is a lot of disk activity and then all
    stops, the splashscreen remains and appears in the discussion
    area:
    FRM-9999 cannot access "koala.ilaco.gov.bo:9000" and
    a series of java exceptions
    I am pointing to the correct java directories (I think)
    b) with out Jinitiator
    When I try to call using URL with Netscape 4.61 I get a
    message on the status bar saying...
    Applet oracle.forms.engine.Main class oracle/forms/engine/Main
    got a security violation: Method verification error
    Can you help ?
    If you know the answer, please let me know as soon as
    posible.
    Thanks for the answer....
    Rgds,
    Polo
    null

    Bart LEBOEUF (guest) wrote:
    : Hi,
    : I've the same problem during this week. I've resolve the
    : problem by replace DLL's
    : in %ORACLE_HOME%\bin by the ifwcm60.dll from Developer CD-Rom
    : (\extras\sp4\ifwcm60.dll) and vgs60.dll
    (\extras\vgs\vgs60.dll).
    : At first time, it doesn't work. I remove my environnement
    : variables
    : FORMS60_MAPPING and FORMS60_TIMEOUT from my System Control in
    the
    : Config panel, then I reboot and surprise, it works !!!
    : (Look also in database registry of Windows with regedit
    utility
    : in
    : [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE] and remove the two
    : variables if you found them.)
    : I try on my two servers and it worked now perfectly.
    : : Bart.
    I respond your email, with my actual server configuration my
    problem is now: I get the splash screen and after form is hanged.
    My server configuration is:
    Compaq PC, with Pentium II, the software is:
    - Windows NT, with Service Pack 5
    - Oracle Application Server, v.4.0.7.1.0 Enterprice Edition,
    pathset 1
    - Developer Server v.6 patchset 3
    - My browser in this machine is Netscape 4.61
    - Jinitiator 1.1.7.18 is also used.
    My developer server is installed and running on the same machine
    that OAS is. I am using other browser in other machine (IE5)
    and trying to connect to the OAS on the first machine.
    My problems begin when I launch ifsrv60.exe. I copied
    ifwcm60.dll v.6.0.5.0.2, and other files required in the %
    ORACLE_HOME%\bin
    I forced listener Developer Server Port (
    c:\orant\bin\ifsrv60.exe -listen port=9000 )
    Now, I can connect with this process, with the following line:
    telnet koala 9000. The listener is working now.
    I tried to work with my (NonCartride-static html)forms60 form on
    WEB without Jinitiator, but I couldn't.
    With Netscape, in the status bar: Applet
    oracle.forms.engine.Main can3t stop ERROR
    With IE5, I get the splash screen and after the forms is hanged.
    If I use Jinitiator:
    With Netscape, in the status bar: Oracle Jinitiato: applet
    oracle.forms.engine.Main inited then form is hanged.
    With IE5, I get the splash screen and after that, the screen
    freezes and looks like the form is hanged.
    Any further suggestions on this?
    Polo
    null

  • I can not save as pdf. When I try to, the program shuts down. What shall I do?

    I can not save as pdf. When I try to, the program shuts down. What shall I do?

    Adobe Community: File Crashing on Output - printing/PDF/other

  • Applying rights management through a watched folder

    Greetings -- I'm trying to apply rights management to a PDF through a watched folder. I've created a short-lived process that invokes the Rights management Apply Policy module and created a watched folder endpoint. When I drop a PDF file into the watched folder, however, the result ends up in the failure bin (after a very, very long delay). Here's the error from the resultant log file:
    Failure Time----Tue Mar 11 11:18:30 EDT 2008
    source location ---- Reason of failure is-----Failure to invoke the job Apply Policy
    Failure to invoke the job Apply Policy
    Invocation error.
    javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
    Could not create a session: javax.resource.spi.CommException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException: Failure to invoke the job Apply Policy
    at com.adobe.idp.dsc.provider.service.file.scan.impl.FileScanJobImpl.invokeJob(FileScanJobIm pl.java:323)
    Any ideas on how to fix this?

    I believe the issue is that the user that you named in the enpoint definition as the person who will execute the service has to be named in the policy. Add that user to your policy.

  • Distiller 8 crashing when trying to add watched folder

    *** Reposted from Distiller Server forum ***
    Hi,
    I am running Distiller 8.0 and am  having issues trying to add watched folders. Adding watched folders in  the past has generally been trouble free, and nothing a quick restart  won't solve at worst.
    However, Distiller is now crashing when I try to  add a new watched folder. An empty dialog box shows and then the app  quits. It also does this when going into the watched folder dialog and  cancelling rather than attempting to add a folder.
    PDFs are  still being successfully created, so there isn't a problem on that side.  There is one oddity though - a PDF file has made it onto the watched  folder list. It obviously shouldn't be there, and won't budge when  attempting to remove it.
    Has anyone come across anything like this before.  Or, crucially, does anyone know what might be going wrong?
    Here's a  screenshot (with some blanked out business info) of the dialog that  comes up. This is just after trying to add a watched folder, and just  before it quits/crashes.
    Thanks,
    Kurt

    Please repost in the Acrobat forum. This forum is for a server based version of Distiller, not the version of Distiller that comes with Acrobat.

  • Save As dialog hangs when browsing to SharePoint library

    Version: Adobe Reader X (10.1.3)
    OS: Windows 7 Enterprise
    Description of Problem: when I use Save As > PDF and browse to a SharePoint library, I cannot browse into the library itself/access sub folders or document sets, etc. The dialog box simply hangs until you click Cancel or click to another location.
    I can access the SharePoint library easily via Windows Explorer and Internet Explorer (browser).
    I can also browse okay through the Open dialog box in Adobe Reader as it uses the same dialog as Windows Explorer.

    Ok, so I'm getting somewhere. The "Save to Online Account" button at the bottom left of the Save As dialog box in Reader provides the ability to save to Office 365 or SharePoint.
    However you need to copy and paste the URL of the SharePoint location.
    Once you do this you can happily browse through the SharePoint location, save your file and add metadata.
    The UI is pretty limited though. It looks and feels like an FTP program...
    At least I can see my online SharePoint hierarchy!
    In summary, the SharePoint integration is there and allows metadata capture and check-in/check-out, but you can't leverage existing connections in your SharePoint Sites folder C:\Users\<username>\SharePoint Sites. You need to copy and paste the URLs and create Favourites in the "Save to Online Account" UI.

  • Why PDF hang when attempting to open or saved from bank site?

    HI,
    I have a user who tried to export word file from a bank into PDF, she encountered page hang as her screen try to open/saved excel. It only happens to this particular pc.
    When she attempt to save from ERP, it hangs.
    Also to note is that this hanging of PDF is not always, it only hangs when it is my user's first time trying to save/open any document document.
    I have tried to uninstall the pdf software, and reinstalled.
    I have confirmed that the windows and PDF version is the latest as of this posting,
    Please advise. Thank you.
    Regards Joshua Tay

    Hi vanncraw
    What Product are you using ?
    What is the Exact Error Message ?
    is it happening with all PDF Files ?

  • Indesign CS3 hangs when launching - I have found a temp solution

    I upgraded to snow leopard and ran into a problem straight away with Indesign CS3 hanging when I tried to launch it.
    I have done some searching round the web and noticed a large number of posts stating the same.
    I noticed, upon starting up for the first time in 10.6, that snow leopard asked me to install rosetta to run suitcase fusion v12.0. Out of curiosity I shut suitcase fusion down and tried to launch Indesign and I got a result. It launches fine and doesn't seem to suffer any crashes. It leaves me without a decent font manager but will allow me to get through the next few weeks until an update gets released (if apple puts some pressure on adobe)!
    Hope it helps!

    Hi RebeccaWooWah,
    Please check "Applications" folder, you would see a file named "Adobe".
    Kindly delete the file, as it is corrupt.
    Create a folder "Adobe" in Applications folder, issue should be fixed.
    Thanks,
    Atul Saini

  • Why does Safari hang when launching?

    Using Safari 1.3 on 10.3.9 for a couple weeks now; everything has been running well, until today.
    Safari will launch from a Help command within an application (eg: any CS application), open it's own window, blue connection status gets halfway across the window bar, then it will hang with the spinning beach ball... until I force quit.
    Same thing happens when launched from the dock or directly from the applications folder. Explorer, Firefox all work fine. All other apps working fine.
    Tried trashing Safari prefs, no change. Deleted all Safari files and tried to install v1.2 instead (as a download from Apple), but now the Safari installer hangs as well. No problem with installing or re-installing other apps.
    Additionally, Sherlock will now no longer launch.
    Why is this happening? How can I fix it?
    John
    Message was edited by: iconophile

    re-installed Safari

  • "Save as PDF" hangs Finder

    My colleague is trying to save PDFs from Word 2011 using our office letter template, by using either Print>Save as PDF, and using Word's own Save As>PDF.
    The PDFs that this produces seem to be corrupted, as when opening them using either Adobe Acrobat or Preview, Finder uses 100% CPU power (in Activity Monitor).
    When I open the documents he has created using the template, or use the template to create a new letter from scratch, I can create PDFs just fine. If he makes a new document without the template, he can create working PDFs as well.
    We are opening the templates and documents from, and saving to, a server.
    We've tried re-installing Mac OS X to no avail.
    Anybody have a clue what could be happening?
    Computer details: Macbook Pro, Core 2 Duo 2.53ghz, Mac OS 10.6.7

    No, that didn't work either.
    I actually managed to get it working by re-saving the template as a .dot-file instead of dotx. That enabled my colleague to save as a non-corrupted PDF. Weird...
    I just hope the problem won't return... Keeping my fingers crossed
    Thanks for your reply.

  • BO Opendocument Url not giving pdf report when invoked through Java.

    Hi All,
    I'm trying to get pdf report by invoking the BO XI R3 server using the below url.
    <br>
    <br>
    <br>
    http://corpbo101d:41040/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sDocName=BankAsAgentNA_1_au&sOutputFormat=P&lsS@model_code=BANKAGENT&lsS@user_id=sv66397&lsS@gen_no=1
    <br>
    <br>
    <B>This url gives the pdf report as expected when accessed through the browser.</B>
    <br>
    <br>
    But when accessing through Java it is not giving the pdf but its giving the content of the opendocument.jsp instead.
    <br>
    <B>Please let me what am I doing wrong.</B>
    <br>
    <br>
    Thanks in advance.
    Your code was breaking the forum thread so I removed it.
    Edited by: Jason Everly on Apr 19, 2010 10:17 AM

    Thanks for the response Jason,<br>
    <br>
    The java script were part of the output that I got when I invoked the url through Java. That is not the code that I'm using but the response which I'm getting after invoking the url.<br>
    <br>
    The url that I used is the one that I already pasted in the start of the thread.<br>
    <br>
    http://<server>:<port>/OpenDocument/opendoc/openDocument.jsp?sType=rpt&sDocName=BankAsAgentNA_1_au&sOutputFormat=P&lsS@model_code=BANKAGENT&lsS@user_id=sv66397&lsS@gen_no=1<br>
    <br>
    And yes I'm passing parameters along the url. <B>But it is with opendocument only and not viewrpt.*</B><br>
    <br>
    And this is already working through browser.<br>
    <br>
    But the problem occurs only during invocation through java, where I'm expecting a pdf byte stream. <br>
    <br>
    Instead i'm getting only html content. Which when I read through it, is nothing but the opendocument.jsp's source code.<br>
    <br>
    <B>Please find the java source code below.</B><br>
    <br>
              void readContent(String url) throws Exception, Exception{<br>
                   StringBuffer sb = new StringBuffer(url);
                   sb.append("&SM_USER=").append("USERID");<br>
    <br>               sb.append("&SM_SESSION=").append("fxdjmWRRN87gWfII3Bl//tUCgivgejevT29rnSInmXS05Hy8OZrVbzfxS7zLQbsceOX1NgPjBozft6GnYtLk7acHp6bom8pbgJrRXhlrB/okouB3LBoJl6oPf7eF/jj8CEYdsX5EhG/5MoK0YWrmIdWhjlmoixt0hHAdksm7S1rWlVSBhljv8KnjcFH7GA6QtP3TIPgSW1XaGhOiyUIMZL48av3f57KqXaAaw2dc32cJY28giWja2bGwQP/DcwMpuyHosZ1fKZVreoPHCKdvcYyV7jBZx0x68wacTBJgtBD1WdqdWmLwlA720xL8627LYNsbRtBPNHzCbjHQuA07iUVpwie8KuVfUL0bNloOejBX0idhkuRSKUEyWQOyvfXWaxL2rkZ/GRTsXzfTwUrUwqdoO6rDXGOPHFaLLdGd1VjBMZs5K6KAmpEs5lNf7CqBpCe5uG1J2QrxT5E7kqLRHBF1W2BN/AmqTpzvJoK5r7TXJZQVgGCcdnnZ9KLe5Zh8TED7VsU3DZCrXVOSol6dcbFQpqHozu0RVuOe5bQ4lfzgxtP0IdpjwAH4Sv6Bthf5/jujntxx6OjCl53GmtwN04e2ptf1UiBsN/MBClWXAMXW5WrtQEAyhp9Jcat2127AAkaEwFQEtPKoYa4Jg0GrzNZGHzj4UlqrWG9UeDAvGJ0GdZK4qrbkC6uPtn3ebMr/uHO90l4anrrSjWQYnKVjYNzCO4UUISYBy1aArFo73zEHz/ofdTCPk5FYSABGPTL2WnTEzOhvbHjI/y5ZZRAQVFgO38HhzhJvKr8TvF4sc/276UaMrjHf1UGL6ebB89UqKfLBrgzjvLLD3jZfX9R3N12fK0Z50rVFY/czb2Mui5s6VGnuEMcmoDAsUEjccmO4FhwswMW0KeBAPvc/2u6QJurxMPctBrDovV8FQSVhOLLGkzpeCUp4GlwDVEYYVRZY494xPi2hUmP4hsPafJ1s6HSTI/HmrH+I4oj90es4xjUBvTfALtWt5fSJbnF96Yes0vSGos4FuM908Bn/EK6CuOE8wAqLvmZvVVGZG12dvd");<br>
    <br>
               InputStream in = new BufferedInputStream(connection.getInputStream());<br>
    <br>
                   Reader r = new InputStreamReader(in);<br>
                   int c;<br>
                   while ((c = r.read()) != -1) {<br>
                     System.out.print((char) c);<br>
                   }<br>
         }<br>
    Edited by: Naaveen M on Apr 20, 2010 2:21 PM

  • Lightroom locks up when using auto import / watch folder

    Hello All
    Has anyone ran into a problem with Lightroom locking up when you are using the auto import / watch folder feature. Everytime i try to even drop one file in the watched folder, I get a lightroom is not responding message. This really suck...........Everything else seems to be working so far.
    Thanks
    Bill

    I had the same problem. When i would auto import, it would stuck after one photo was imported. I have a separate partition on my harddisk for photo's (F:\) when i made an extra subdirectory (F:\Photo) and auto imported the photo's to that place the problem was solved. Why ? I don't know
    greetz J.

  • Unable to open PDF document when run through task/workflow

    Hi all,
    I am currently usign a background method to send a smartform as a PDF document to all the agents who approve.
    When i send the smartform in mail as a PDF documetn throught the task i get an error message when opening the PDF document which says that 'The file could nto be opened because it was either not a supported file type or because the file was damaged(for example, it was sent as an email attachment and wasn't decoded correectly'.
    The below is the code i am using to send the smartform
    { CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZFI_ASSET_PDA_NOTIF'
        IMPORTING
          fm_name            = lv_form_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.}
    { ls_ctrlop-getotf    = 'X'.
      ls_ctrlop-no_dialog = ''.
      ls_compop-tdnoprev  = 'X'.
    ls_ctrlop-DEVICE = 'LOCL'.
      ls_ctrlop-preview   = 'X'.
      ls_ctrlop-no_dialog = 'X'.}
      CALL FUNCTION lv_form_name
        EXPORTING
          control_parameters = ls_ctrlop
          output_options     = ls_compop
          user_settings      = 'X'
          gv_prctr_txt       = gv_prctr_txt
          gv_cc_text         = gv_cc_text
          gv_class_txt       = gv_class_txt
          gv_lname           = gv_lname
          gv_fname           = gv_fname
          gv_position        = gv_position
          gv_initiator       = gv_initiator
          gv_bookcost        = gv_bookcost
          gv_bookvalue       = gv_bookvalue
          gv_date            = gv_date
          gv_prctr           = gv_prctr
          gs_anla            = gs_anla
          gv_emv             = gv_emv
          gv_cond            = gv_cond
          gv_operable        = gv_operable
          gv_action          = gv_action
          gv_justify         = gv_justify
          gv_replace         = gv_replace
          gv_replace_comment = gv_replace_comment
          gv_process         = gv_process
        IMPORTING
          job_output_info    = lt_job_output
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE 'S'  NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT lt_job_output-otfdata INTO ls_otf.
        lt_otf = ls_otf.
        APPEND lt_otf.
        CLEAR lt_otf.
      ENDLOOP.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_len_in
        TABLES
          otf                   = lt_otf
          lines                 = lt_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
    Fehlerhandling
      IF sy-subrc EQ 0.
      ENDIF.
      LOOP AT lt_tline.
        TRANSLATE lt_tline USING '~'.
        CONCATENATE ls_buffer lt_tline INTO ls_buffer.
      ENDLOOP.
      TRANSLATE ls_buffer USING '~'.
      append ls_buffer TO lt_objbin.
    DATA  lv_counter         TYPE i.
      DO.
        lt_record = ls_buffer.
        APPEND lt_record.
        SHIFT ls_buffer LEFT BY 255 PLACES.
        IF ls_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Attachment
      REFRESH:
      lt_reclist,
      lt_objtxt,
      lt_objbin,
      lt_objpack.
      CLEAR ls_objhead.
      lt_objbin[] = lt_record[].
    lt_objhex[] = lt_record[].
      CLEAR lv_descp.
      CONCATENATE 'Asset'
                  gs_anla-anln1
                  'Approval details'
             INTO lv_descp
    SEPARATED BY space.
    Create Message Body
    Title and Description
      CONCATENATE  'Please find attached the approval details of asset : '
                   gs_anla-anln1
              INTO lv_mail_descp
             SEPARATED BY space .
      lt_objtxt = lv_mail_descp.
      APPEND lt_objtxt.
      CLEAR  lv_mail_descp .
    appending space lines into text of mail.
    DO 3 times.
      CLEAR lt_objtxt.
      APPEND lt_objtxt .
    ENDDo.
    CONCATENATE 'This is an automatically generated message.'
                 'Please do not reply to this mail.'
           INTO lv_mail_descp
         SEPARATED BY space .
    lt_objtxt = lv_mail_descp.
    APPEND lt_objtxt.
      DESCRIBE TABLE lt_objtxt LINES lv_lines_txt.
      READ     TABLE lt_objtxt INDEX lv_lines_txt.
      ls_doc_chng-obj_name = 'smartform'.
      ls_doc_chng-expiry_dat = sy-datum + 10.
      ls_doc_chng-obj_descr = lv_descp.
      ls_doc_chng-sensitivty = 'F'.
      ls_doc_chng-doc_size = ( lv_lines_txt - 1 ) * 255  + STRLEN( lt_objtxt ) .
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt ).
      CLEAR lt_objpack-transf_bin.
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = lv_lines_txt.
    lt_objpack-doc_type = 'RAW'.
        lt_objpack-doc_type = 'TXT'.
      APPEND lt_objpack.
    Attachment
    (pdf-Attachment)
      lt_objpack-transf_bin = 'X'.
      lt_objpack-head_start = 1.
      lt_objpack-head_num   = 0.
      lt_objpack-body_start = 1.
      DESCRIBE TABLE lt_objbin LINES lv_lines_bin.
      READ TABLE lt_objbin INDEX lv_lines_bin.
      lt_objpack-doc_size = ( lv_lines_bin - 1 ) * 255 + STRLEN( lt_objbin ) .
      lt_objpack-body_num = lv_lines_bin.
      lt_objpack-doc_type = 'PDF'.
      lt_objpack-obj_name = 'ATTACHMENT'.
      lt_objpack-obj_descr = lv_descp.
      APPEND lt_objpack.
      LOOP AT t_mail_addr.
        CLEAR lt_reclist.
        lt_reclist-receiver = t_mail_addr-mailid.
        lt_reclist-rec_type = 'U'.
        APPEND lt_reclist.
      ENDLOOP.
      IF t_mail_addr[] IS INITIAL.
        CLEAR lt_reclist.
        lt_reclist-receiver = mail id.
        lt_reclist-rec_type = 'U'.
        APPEND lt_reclist.
      ENDIF.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = lt_objpack
          object_header              = ls_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
         CONTENTS_HEX                = lt_objbin
        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.
      DATA: l TYPE sy-subrc.
      l = sy-subrc.
    When i run the above code in Se38, I get an email with a attachment that i am able to open. The problem seems to be with user WF_BATCH.
    I have already checked all the existing threads on this. I did this coding as per one of the SDN threads itself.
    I am able to open the PDF attachment even when i test the method. The problem is only when it is run through a task/workflow.
    Please advice.
    Thanks and Regards,
    Soumya Gayatri.
    Edited by: Soumya Gayatri on Apr 14, 2009 8:40 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:44 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:45 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM
    Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM

    Hello,
    You should see an "Edit" in the top right of your post, you can use that to edit it.
    As I said, use  before and after the coding, but without the spaces (after "{" and before "}" ).
    Try it!
    Testing:
    this is code
    regards
    Rick Bakker
    Hanabi Technology

  • Web Form Hangs When Scrolling through Multi-Record Block

    Hello!
    I have a web-deployed form that uses the Sun Java JVM and utilizes WebUtil.
    We are using JDK v1.4.2.
    When I open this form using the Java plug-in and try to scroll through a multi-record block ... it will hang at various points and eventually I have to close the form because it won't respond.
    This does not happen if I simply access the form through the Microsoft JVM.
    Any suggestions?

    That's a know solved bug. You must install AS10g patchset 9.0.4.2.
    For me it solved the problem.
    Bug 3557904: Forms hangs (deadlocks) when scrolling on XP under some circumstances
    Joao Oliveira

  • Macintosh Adobe Media Encoder CS5 Hangs When Launching

    I have a Mac Pro with OS 10.6.6, 20 Gb of RAM and plenty of hard drive space.
    I have been using Media Encoder with no problems, but now when I launch the application, it hangs and crashes. Anyone have any idea on what I can do to fix it? I haven't installed anything new on my system, I have repaired permissions, but the app just started crashing out of the blue.
    Suggestions are most welcome!

    Have you installed the
    recent updates?

Maybe you are looking for

  • Row position in alv report

    Hi experts.... I want to put data in first row in alv report. I am using reuse_alv_list_display for alv report output. I used "FIELDCAT_LN-ROW_POS = '1'. ' but it doesn't make any effect in output. please help me. thank you.

  • Problem Please help me.....Let me know the area to look for it I am a DBA..

    Problem Please help me.....Let me know the area to look for it I am a DBA..Thanks in advance to let me know the cause and the area to look and fix it... Server Error in '/' Application. Problem with SAP/BAPI. SAP.Connector.RfcCommunicationException:

  • What is a data group and what use is it for?

    CAn some one explain me the concept of data group in EBS. What is it used for ? How does it enhance the security of Oracle Apps data ? I know that Data groups are used while defining a responsibility and are meant for data security purpose. But I wan

  • SA PASSWORD from SQL Server Reports in TMG Threat Forefront Gateway

    Dear friends. I have a question and the technical support did not resolve it. I need to know which is the SA password when you install the Forefront TMG because i need to made querys into the SQL Server management studio installed in the server. Than

  • Help finding the SQL agent job status messages

    I am building a report in SSRS which will show the status of all the SQL agent jobs ran on a particular day. IMHO, the status messages created in the job history are not that useful. So, I would like to show the status message which can found by foll