PARAGRAPH displayed in the PDF file

Hi,
I have a issue in the PDF file I see PARAGRAPH wriiten after the actual data is displpayed. How can I remove those  "PARAGRAPH" <-- written in the PDF file.
Thank You,
SB.

Hi SB ,
How do you generate the PDF file ( Eg - Using CONVERT_OTFSPOOLJOB_2_PDF / CONVERT_ABAPSPOOLJOB_2_PDF ) ??
Please send the PDF conversion Code segment for rectify the exact issue ..
Br,
Dilum

Similar Messages

  • Chiness bold characters in the PDF file is not apperaing

    Hi,
    facing the problem, when i went to PO Display (ME23N) - Message -> selecting the output message like NEUA , -> Edit -> Display Originals .
    This time the chiness characters are displaying in the PDF file, but not in the bold format. Define the character format like Family - CNHEI, Size 8.0 and 6.0 with Bold on, Underlined On in both the case i am not able to getting the bold characters in the PDF file.
    Please give me any suggestion on this issue.
    Regards,
    Ravisankar - 9880517373

    ricardo-sa wrote:
    I bought Adobe Reader X ...
    Where did you buy Adobe Reader?  Adobe Reader can be downloaded for free from http://get.adobe.com/reader/
    As Michael already explained, the free Adobe Reader cannot convert anything; it is just a reader.

  • Hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a

    hi,how can i change the default settings on my adobe readerX1 such that it will display all my pdf files according to their individual cover pages (as cover picture thumbnails)before i click them to open and read........i really enjoyed this feature as a default settings upon installation in previous editions of adobe reader .i use a windows 8 pc now.thank

    For sideloaded content the nook pulls the metadata from ePub file itself.  I would suggest looking at a program like Sigil or Calibre that will let you edit the metadata in the book to make it appear like you want.
    For the PDF vs ePub - No, that's the way PDFs work (think of them as graphics, not text), wheres ePubs are Web Pages - so  no you can't them to behave exactly alike without converting the files.

  • IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend's

    IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
    Has anyone come across this? Your advice/help would be most appreciated

    This happens to me all the time.
    If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
    I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
    Message was edited by: Demo

  • I am using i padmini with retina display. i was curious to know if the pdf files saved on adobe reader app are safe from any hacking

    I am using i padmini with retina display. i was curious to know if the pdf files saved on adobe reader app are safe from any hacking

    If they are saved on your iPad, they are as safe as anything else.
    Barry

  • Why do some of the pdf files I try to open just display a black screen?

    Why do some of the pdf files I try to open just display a black screen?

    Please see my current settings below Chrome PDF Viewer is Disabled and Adobe Reader is Enabled already.
    Plug-ins (11)  Details
    Adobe Flash Player - Version: 12.0.0.41
    Shockwave Flash 12.0 r0
    Name: Shockwave Flash
    Description: Shockwave Flash 12.0 r0
    Version: 12.0.0.41
    Location: C:\Users\njdp\AppData\Local\Google\Chrome\Application\32.0.1700.72\PepperFlash\pepflashpl ayer.dll
    Type: PPAPI (out-of-process)
      Disable
    MIME types: MIME type Description File extensions
    application/x-shockwave-flash Shockwave Flash .swf 
    application/futuresplash FutureSplash Player .spl  
    Disable  Always allowed?
    Widevine Content Decryption Module - Version: 1.4.1.376
    Enables Widevine licenses for playback of HTML audio/video content.
    Name: Widevine Content Decryption Module
    Description: Enables Widevine licenses for playback of HTML audio/video content.
    Version: 1.4.1.376
    Location: C:\Users\njdp\AppData\Local\Google\Chrome\User Data\WidevineCDM\1.4.1.376\_platform_specific\win_x86\widevinecdmadapter.dll
    Type: PPAPI (out-of-process)
      Disable
    MIME types: MIME type Description File extensions
    application/x-ppapi-widevine-cdm Widevine Content Decryption Module .  
    Disable  Always allowed?
    Chrome Remote Desktop Viewer
    This plugin allows you to securely access other computers that have been shared with you. To use this plugin you must first install the Chrome Remote Desktop webapp.
    Name: Chrome Remote Desktop Viewer
    Description: This plugin allows you to securely access other computers that have been shared with you. To use this plugin you must first install the Chrome Remote Desktop webapp.
    Version: 
    Location: internal-remoting-viewer
    Type: PPAPI (out-of-process)
      Disable
    MIME types: MIME type Description File extensions
    application/vnd.chromium.remoting-viewer  .  
    Disable  Always allowed?
    Microsoft Office (2 files) - Version: 14.0.4730.1010
    Office Authorization plug-in for NPAPI browsers
    Name: Microsoft Office 2010
    Description: Office Authorization plug-in for NPAPI browsers
    Version: 14.0.4730.1010
    Location: C:\PROGRA2\MICROS1\Office14\NPAUTHZ.DLL
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-msoffice14 14.0.4730.1010 .*  
    Name: Microsoft Office 2010
    Description: The plug-in allows you to open and edit files using Microsoft Office applications
    Version: 14.0.4761.1000
    Location: C:\PROGRA2\MICROS1\Office14\NPSPWRAP.DLL
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-sharepoint SharePoint Plug-in for Firefox  
    Disable  Always allowed?
    Native Client
    Name: Native Client
    Version: 
    Location: C:\Users\njdp\AppData\Local\Google\Chrome\Application\32.0.1700.72\ppGoogleNaClPluginChro me.dll
    Type: PPAPI (in-process)
      Disable
    MIME types: MIME type Description File extensions
    application/x-nacl Native Client Executable . 
    application/x-pnacl Portable Native Client Executable .  
    Disable  Always allowed?
    Chrome PDF Viewer (Disabled)
    Name: Chrome PDF Viewer
    Version: 
    Location: C:\Users\njdp\AppData\Local\Google\Chrome\Application\32.0.1700.72\pdf.dll
    Type: PPAPI (in-process)
      Enable
    MIME types: MIME type Description File extensions
    application/pdf Portable Document Format .pdf 
    application/x-google-chrome-print-preview-pdf Portable Document Format .pdf  
    Enable  Always allowed?
    Adobe Reader - Version: 11.0.05.3
    Adobe PDF Plug-In For Firefox and Netscape 11.0.05
    Name: Adobe Acrobat
    Description: Adobe PDF Plug-In For Firefox and Netscape 11.0.05
    Version: 11.0.05.3
    Location: C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AIR\nppdf32.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/pdf Acrobat Portable Document Format .pdf 
    application/vnd.adobe.pdfxml Adobe PDF in XML Format .pdfxml 
    application/vnd.adobe.x-mars Adobe PDF in XML Format .mars 
    application/vnd.fdf Acrobat Forms Data Format .fdf 
    application/vnd.adobe.xfdf XML Version of Acrobat Forms Data Format .xfdf 
    application/vnd.adobe.xdp+xml Acrobat XML Data Package .xdp 
    application/vnd.adobe.xfd+xml Adobe FormFlow99 Data File .xfd  
    Disable  Always allowed?
    Java(TM) (2 files) - Version: 10.45.2.18
    NPRuntime Script Plug-in Library for Java(TM) Deploy
    Name: Java Deployment Toolkit 7.0.450.18
    Description: NPRuntime Script Plug-in Library for Java(TM) Deploy
    Version: 10.45.2.18
    Location: C:\Program Files (x86)\Java\jre7\bin\dtplugin\npDeployJava1.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/java-deployment-toolkit   
    Name: Java(TM) Platform SE 7 U45
    Description: Next Generation Java Plug-in 10.45.2 for Mozilla browsers
    Version: 10.45.2.18
    Location: C:\Program Files (x86)\Java\jre7\bin\plugin2\npjp2.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-java-applet Java Applet 
    application/x-java-bean JavaBeans 
    application/x-java-vm  
    application/x-java-applet;version=1.1.1  
    application/x-java-bean;version=1.1.1  
    application/x-java-applet;version=1.1  
    application/x-java-bean;version=1.1  
    application/x-java-applet;version=1.2  
    application/x-java-bean;version=1.2  
    application/x-java-applet;version=1.1.3  
    application/x-java-bean;version=1.1.3  
    application/x-java-applet;version=1.1.2  
    application/x-java-bean;version=1.1.2  
    application/x-java-applet;version=1.3  
    application/x-java-bean;version=1.3  
    application/x-java-applet;version=1.2.2  
    application/x-java-bean;version=1.2.2  
    application/x-java-applet;version=1.2.1  
    application/x-java-bean;version=1.2.1  
    application/x-java-applet;version=1.3.1  
    application/x-java-bean;version=1.3.1  
    application/x-java-applet;version=1.4  
    application/x-java-bean;version=1.4  
    application/x-java-applet;version=1.4.1  
    application/x-java-bean;version=1.4.1  
    application/x-java-applet;version=1.4.2  
    application/x-java-bean;version=1.4.2  
    application/x-java-applet;version=1.5  
    application/x-java-bean;version=1.5  
    application/x-java-applet;version=1.6  
    application/x-java-bean;version=1.6  
    application/x-java-applet;version=1.7  
    application/x-java-bean;version=1.7  
    application/x-java-applet;jpi-version=1.7.0_45  
    application/x-java-bean;jpi-version=1.7.0_45  
    application/x-java-vm-npruntime  
    application/x-java-applet;deploy=10.45.2  
    application/x-java-applet;javafx=2.2.45   
    Disable  Always allowed?
    Windows Live Photo Gallery - Version: 15.4.3508.1109_ship.wlx.w4m4 (ship)
    NPWLPG
    Name: Windows Live Photo Gallery
    Description: NPWLPG
    Version: 15.4.3508.1109_ship.wlx.w4m4 (ship)
    Location: C:\Program Files (x86)\Windows Live\Photo Gallery\NPWLPG.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-wlpg3-detect Windows Live Photo Gallery .wlpg 
    application/x-wlpg-detect Windows Live Photo Gallery .wlpg  
    Disable  Always allowed?
    Google Update - Version: 1.3.22.3
    Name: Google Update
    Version: 1.3.22.3
    Location: C:\Users\njdp\AppData\Local\Google\Update\1.3.22.3\npGoogleUpdate3.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-vnd.google.update3webcontrol.3  
    application/x-vnd.google.oneclickctrl.9   
    Disable  Always allowed?
    Silverlight - Version: 5.1.20913.0
    Name: Silverlight Plug-In
    Version: 5.1.20913.0
    Location: c:\Program Files (x86)\Microsoft Silverlight\5.1.20913.0\npctrl.dll
    Type: NPAPI
      Disable
    MIME types: MIME type Description File extensions
    application/x-silverlight npctrl .scr 
    application/x-silverlight-2   
    Disable  Always allowed?

  • "The exception unknown software exception (0xc06d007e) occured in the application at location 0x7c812aeb" - error displayed when opening PDF files. What i do?

    "The exception unknown software exception (0xc06d007e) occured in the application at location 0x7c812aeb" - error displayed when opening PDF files. What i do?

    What is your Reader XI version?
    Have you tried to disable Protected Mode [Edit | Preferences | Security (Enhanced)] ?

  • Possible to have a text field display current path of the pdf file?

    Would it be possible to display the current (windows) path of the pdf file in the page footer? Something we do in Word & AutoCAD... is it possible & how in Livecycle?
    thanks

    You can get the path of the current doc by using the command:
    event.target.path
    The filename can be retrieved by using:
    event.target.filename
    You can set these in a field on the master page so that it will appear as you want at bottom of every page.

  • Displaying Report name in the PDF File.

    HI,
    I want to print the report in the PDF format.
    I executed one report and i am trying to print that report in PDF format.
    But in that PDF format it is not showing any report name.
    Can any body suggest me how can i get the report name in the PDF file.
    Thanks in Advance.
    BR
    Rajesh

    hi suri,
    chk this link..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6dd54713-0c01-0010-8691-a3576b9a95d9
    go thru these threads for more details..
    Reg converting the BW report in PDF format
    PDF Report
    assign pts if helpful..

  • Display Filename in PDF File

    Hi there, hoping for some help on what I think is quite a simple issue.
    I want to create a blank single page PDF file which has a text field automatically and dynamically completed based on the file name of the pdf document. So for example if the file is named "My Sample File.pdf", the pdf file will display "My Sample File.pdf" and that is all. If I then rename the pdf file in Windows Explorer to "My Renamed File.pdf", when I next open the file it will display "My Renamed File.pdf".
    I would then insert this one page pdf into an array of existing pdf files as their new page no1 to effectively be a title page for each created automatically based on their current filenames.
    My research suggests this is possible using Javascript in a text field, or a form field (although I would prefer text field), however, as I have no experience of Javascript or its implementation within Acrobat, is proving impossible for me to do. The nearest I have got is a script which puts the filename as a watermark; unfortunately that script keeps overlaying the new filename over the old filename watermark, rather than updating it. For information that script was:-
    this.addWatermarkFromText({
    cText: this.documentFileName,
    nTextAlign: app.constants.align.center,
    nHorizAlign: app.constants.align.center,
    nVertAlign: app.constants.align.bottom,
    nFontSize: 12,
    nVertValue: 12});
    Ideally I would like the script to strip the file extension and if possible split the output onto two lines based on the filename portion which preceeds/follows a comma in the filename (which it would also strip). For example, if a had a file which was named "My Sample File, created on Monday.pdf", it would display as:-
    My Sample File
    created on Monday
    If anyone has any ideas on this, it would be greatly appreciated.
    Regards and thanks in advance,
    Malcolm Dowers

    The easiest way to fix this problem is to edit the current javascript.
    find the line:
    var strLabel = global.FileNameStamp.strDocStamp.replace(/\n/g,"\r");
    Place this line underneath it:
    var strLabel = global.FileNameStamp.strDocStamp.replace(/\.pdf$/i, "");
    So you get:
    var strLabel = global.FileNameStamp.strDocStamp.replace(/\n/g,"\r");
    var strLabel = global.FileNameStamp.strDocStamp.replace(/\.pdf$/i, "");
    That's it!

  • While converting spool to PDF, no data is coming in the PDF file.

    Hi All,
    I am submitting a z program ZPR022_INNCOMETAX_REPORT_COPY1 (which has some output display) from Z_ITSLIP_MAIL.  I am creating a job, submitting the above program via JOB  to SAP-SPOOL.
    In program ZPR022_INNCOMETAX_REPORT_COPY1 , I am getting the run time job information and from there I am getting the spool id.  Now I am converting the spool id to a PDF.  This PDF should contain the output of the program ZPR022_INNCOMETAX_REPORT_COPY1.  This output is normal output using Write statement only.  But once the program is executed, I could find no data in the PDF file.  When I check in SM37 and SP02, both the JOB and the SPOOL are created.  What I feel is the program is not picking the spool id at the run time.  Could any one help me in this regard how to proceed.
    Please find the code below.
    Program 1.
    LOOP AT pernr.
      CLEAR p_job.
      p_stim = p_stim + 120.
      CONCATENATE'ITSlip' pernr-low p_job sy-datum INTO p_job SEPARATED BY
    space.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname   = p_job
          sdlstrtdt = p_sdat
          sdlstrttm = p_stim
        IMPORTING
          jobcount  = l_jobcount.
      SUBMIT ZPR022_INNCOMETAX_REPORT_COPY1
        WITH pnptimr6 = 'X'
        WITH pnpbegda = period-low
        WITH pnpendda = period-high
        WITH pnppernr-low = pernr-low
        WITH pnpabkrs-low = 'IN'
           VIA JOB     p_job
            NUMBER  l_jobcount
           TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS ls_params
               WITH immediately = 'X'
              KEEP IN SPOOL = 'X'
                  AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount  = l_jobcount
          jobname   = p_job
          strtimmed = 'X'
         PRDMINS = 2.
          sdlstrtdt = p_sdat
          sdlstrttm = p_stim.
    ENDLOOP.
    Program 2.
      IF sy-batch EQ 'X'.
        LOOP  AT pnppernr.
          SELECT SINGLE * FROM pa0105
            WHERE pernr EQ pnppernr-low
              AND subty EQ '0010'
              AND endda EQ '99991231'.
          p_email1 = pa0105-usrid_long..
          PERFORM get_job_details.
          PERFORM obtain_spool_id.
          PERFORM convert_spool_to_pdf.
          PERFORM process_email.
         IF sy-sysid = c_dev.
            WAIT UP TO 5 SECONDS.
            SUBMIT rsconn01 WITH mode   = 'INT'
                            WITH output = 'X'
                            AND RETURN.
         ENDIF.
        ENDLOOP.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool'
                'request to be created.'.
       EXPORT gd_spool_nr TO MEMORY ID 'SPOOLTOPDF'.
      ENDIF.
    ENDFORM.                    " SEND_MAIL
    *&      Form  get_job_details
          text
    -->  p1        text
    <--  p2        text
    FORM get_job_details .
    Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
        IMPORTING
          eventid                 = gd_eventid
          eventparm               = gd_eventparm
          external_program_active = gd_external_program_active
          jobcount                = gd_jobcount
          jobname                 = gd_jobname
          stepcount               = gd_stepcount
        EXCEPTIONS
          no_runtime_info         = 1
          OTHERS                  = 2.
    ENDFORM.                    " get_job_details
    *&      Form  obtain_spool_id
          text
    -->  p1        text
    <--  p2        text
    FORM obtain_spool_id .
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        MESSAGE s004(zdd) WITH gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.                    " obtain_spool_id
    *&      Form  convert_spool_to_pdf
          text
    -->  p1        text
    <--  p2        text
    FORM convert_spool_to_pdf .
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = gd_spool_nr
          no_dialog                = c_no
          dst_device               = c_device
        IMPORTING
          pdf_bytecount            = gd_bytecount
        TABLES
          pdf                      = it_pdf_output
        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.
      CHECK sy-subrc = 0.
    Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.                    " convert_spool_to_pdf
    *&      Form  process_email
          text
    -->  p1        text
    <--  p2        text
    FORM process_email .
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    ENDFORM.                    "process_email
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'IT Declaration'.
      CONCATENATE 'ITSLIP' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'IT FORM for this month'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   TABLES it_mess_bod
                                          it_mess_att
                                    USING p_email1
                                          'MindTree Payroll team'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 CHANGING gd_error
                                          gd_reciever.
    ENDFORM.                    " process_email
    *&      Form  send_file_as_email_attachment
          text
         -->P_IT_MESS_BOD  text
         -->P_IT_MESS_ATT  text
         -->P_P_EMAIL  text
         -->P_4422   text
         -->P_4423   text
         -->P_GD_ATTACHMENT_NAME  text
         -->P_GD_ATTACHMENT_DESC  text
         -->P_P_SENDER  text
         -->P_GD_SENDER_TYPE  text
         <--P_GD_ERROR  text
         <--P_GD_RECIEVER  text
    FORM send_file_as_email_attachment TABLES it_message
                                              it_attach
                                        USING p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     CHANGING p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
              t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
              t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
              w_cnt TYPE i,
              w_sent_all(1) TYPE c,
              w_doc_data LIKE sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_address
          sender_address_type        = ld_sender_address_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = t_attachment
         contents_txt               = it_message
          receivers                  = t_receivers
        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.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.                    "send_file_as_email_attachment
    Points will be rewarded.
    Regards,
    Balaji

    Hi,
    I think you are retrieving the spool before the entire spool is generated.
    Put the following logic to retrieve spool iD
    CHECK WHETHER STATUS OF JOB IS COMPLETED OR CANCELLED
      WHILE 1 = 1.
    GET THE JOB STEPLIST WHICH HAS THE SPOOL NUMBER
        CALL FUNCTION 'BP_JOB_READ'
          EXPORTING
            job_read_jobcount           = w_jobcount
            job_read_jobname            = w_jobname
            job_read_opcode             = '35'
      JOB_STEP_NUMBER             =
         IMPORTING
           job_read_jobhead            = wa_jobhead
         TABLES
           job_read_steplist           = i_jobsteplist
    CHANGING
      RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    BEGIN OF INSERTION U179942 E1BK928781
    IF STATUS OF JOB IS COMPLETED(F) OR CANCELLED(A)
    READ THE JOBSTEPLIST & GET THE SPOOL NUMBER
        IF wa_jobhead-status =  c_a OR wa_jobhead-status = c_f.
          READ TABLE i_jobsteplist INTO wa_jobsteplist INDEX 1.
          CHECK wa_jobsteplist-listident <> space.
          w_spool_number = wa_jobsteplist-listident.
          EXIT.
        ENDIF.
      ENDWHILE.
    Best regards,
    Prashant

  • Display of a PDF file

    Hi
    I have an application in which click of link opens a PDF File in same window. So I want to display PDF file in a View. For this I want to use a PAR file,in which i keep my PDF file in one of the folders under PORTAL-INF. and then on click of link i'm able to open the PDF file in the same window.
    Can some body tell me how to go about this.
    or somebody can tell me better approach to this.
    Thanks in advance
    Srikant

    When you have a file inside the par-file (not inside the PORTAL-INF directory), then the url to this file is http://portal:50000/irj/portalapps/par-file-name/filename
    Example:
    com.test.par contains /test/testfile.txt
    then url is http://portal:50000/irj/portalapps/com.test/test/testfile.txt
    In SAP Developer studio project, these files are located in the /dist direcotry in the project.
    If you want to have the file in the PORTAL-INF directory, you can code portal component, which returns the file as content.

  • I can't get my print widget to display certificate in PDF file, need help.

    I can get my certificate to display with all the variables on the slide, inserted my print widget which asks for a location to save the pdf file. I save it, open it and its blank.
    Any suggestions?

    Centering an entire page's worth of content is pretty simple, but not as simple as adding align:center to the css of every element.
    You likely need to remove a bunch of stuff from your css if that's what you were trying. Seeing the page is going to be the best way to tell you how to fix it.
    Many people will use a container like <div id="wrapper"> to center their page, so that's what I'll use in the example. Here is the css that would go in your page's <style> tags, or in your external .css file...
    #wrapper {
         width:950px;
         margin:0 auto;
    Then in the html...
    <body>
    <div id="wrapper">
         all of your page's content
    </div>
    </body>
    What this does is creates a 950 pixel wide wrapper around all of your content (the pixel amount isn't as important as the fact that there is a width that is less than 100%). The browser then sets the left and right margin to the same setting using all of the available horizontal space by setting the left and right margins to auto. Basically, if the browser viewport is wider than the wrapper div (anything more than 950 pixels in this example), the left and right margin will split that remaining amount between themselves and center your content.

  • How to upload the pdf file to the next view?....urgent

    Hi Experts,
    I need to upload the pdf file( a interactive form ) using the fileupload element in the A_view and the pdf file can be displayed in the b_view.
    But I don't know how to complete the function?
    Action:
    0.  Create a adobe form (c_form)in the R/3 using sfp with a inputfield.
    1.  Create a adobe interactive form (A_interactive_form)in the view(display_view) of the WDA for abap.
    2.  Create a context attribute(upload) in the display_view.
    3.  Bind the c_form to the A_interactive_form, so that the data can be transfered to the c_form.
    4.  Bind the "pdfSourth" property to context attribute "upload" in the A_interactive_form.
    4.  Type code in the WDA for abap for setting data("old") to the context.
    5.  Active the WDA and run the WDA.
    6.  In the IE, the interactive form is displayed with the value "old" in the field. Save the pdf form as "test.pdf" and close the IE.
    7.  Open the test.pdf, and type the inputfield "new" in the form, and save the test.pdf.
    8.  Create a context node(Pdfsourth) in the component controller, and create a attribute("upload") that type is xstring in the Pdfsourth.
    9.  Create a view(C_view), mapping the context node(Pdfsourth) in the component controller.
    10. Create a fileupload element in the C_view, and the "data" property is binded the "upload" attribute in the context node(Pdfsourth).
    11. Create a button(Display_form) and create the action with the outplug for upload the pdf file(test.pdf).
    12. Change the window and set the C_view as default view, and set the Navigation link from the C_view to B_view.
    13. Type code in the wddoinit method in the display_view for transfering the test.pdf file.
    method WDDOINIT .
    DATA lo_componentcontroller TYPE REF TO ig_componentcontroller .
    DATA upload                 TYPE        xstring.
    lo_componentcontroller =   wd_this->get_componentcontroller_ctr( ).
      lo_componentcontroller->getupload(
        IMPORTING
          upload = upload                         " xstring
      DATA lo_nd_pdfsourch TYPE REF TO if_wd_context_node.
      DATA lo_el_pdfsourch TYPE REF TO if_wd_context_element.
      DATA ls_pdfsourch TYPE wd_this->element_pdfsourch.
    navigate from <CONTEXT> to <PDFSOURCH> via lead selection
      lo_nd_pdfsourch = wd_context->get_child_node( name = wd_this->wdctx_pdfsourch ).
    get element via lead selection
      lo_el_pdfsourch = lo_nd_pdfsourch->get_element(  ).
    get single attribute
      lo_el_pdfsourch->set_attribute(
        EXPORTING
          name =  `UPLOAD`
          value = upload ).
    endmethod.
    15. Active the WDA and run the WDA.
    In the fileupload of the C_view, I select the test.pdf from my local machine. and click the button(Display_form), the display_view is displayed with the A_interactive_form.
    But in the A_interactive_form, the value "old" is in the field in the form rather than "new".
    I hope to display the test.pdf in the A_interactive_form. I don't know how to change my code or configuration?
    Do you give some example or some hint for this problem ?
    Thanks & Regards,
    Tao

    Now, The problem has been solved.Thanks a lot.

  • Adobe PDF printer failed to create the PDF file

    Just installed Acrobat 9 Standard on new HP Touchsmart running Vista 64 bit - tried to create a pdf from a *.pub, and got the error message above, and "please correct the error and try again".  If I knew what the error was, I'd try to correct it.

    If you check the PDF file with ctrl-D and select the font tab, you will likely find that the font you mention is not embedded. The font not being embedded will make major differences in terms of what fonts Acrobat or Reader finds to do a substitution. Also, the fonts may not display correctly if you have the Use Local Fonts check box selected incorrectly (just try changing that choice).
    Fonts can be a major issue in terms of licensing for embedding and such. Also, different job.settings file selections may cause fonts to not be properly embedded.
    Since the printer works, the issue of the other packages is the need for PDF Maker to be active in those applications that you are trying to import files from. To check PDF Maker, you need to test it in those applications, not in Acrobat. Trying things in Acrobat is the last step, not the first step. In WORD, there is a need for certain settings to be properly set to allow PDF Maker to work. These may be the issues you are having. So, go back to the applications of interst and be sure that PDF Maker works from the application -- this is the create PDF button.

Maybe you are looking for

  • Email Applet won't work after installing JSDK 1.4

    I am used to visiting my online email facility at University which contains an Applet to allow users to reply to, compose, delete messages, etc but since installing JSDK 1.4 I am now longer able to view the Applet - I am presented with the Java icon

  • Linguistic comparison - When is it required

    I have a question if linguistic comparison is required with operators like = Also lets assume that I am not interested in performing a case insensitive or accent insensitive search. My query may be something like Select * from test where name = '{Jap

  • App Store on Mac osx crash when attempting to update

    I am using a Mac mini 2011 late. OSX Mountain  lion  latest penultimate version, just prior to the release of the AFP upgrade.  Problem is: The App Store crashes! When I attempt to run the App Store it loads but as soon as I hit the Update icon, the

  • P4- Port for Dispatcher

    Hello, where can i change the p4- Port for the Dispatcher? In the ConfigTool is under  "Global Dispatcher Configuration" the P4-port 3011defined. I can see this port in the SystemInfo. I want to change this port to 50304, because i want to login in t

  • Why won't Illustrator 10 run in Windows 7?

    I thought that Windows 7 will run all programs that run under Windows XP, but I'm having a problem with Illustrator 10. I installed Illustrator 10 under Windows 7, and when I launch it, the logo appears in the center of the screen as it should, but t