I am unable to open my PDF attachment in mail.

I cannot open my PDF attachment in mail. I am able to on all of my other apple products but not my air. Is there a setting that i might have wrong?

If it is your own pdf and you are unsure of your password, you are out of luck. You will need to create a new file from the original documents. I suggest using password managers, if you need to create many different documents with different passwords.

Similar Messages

  • Error in SO_NEW_DOCUMENT_ATT_SEND_API1. Unable to open the pdf attachment

    Hi all,
    I'm currently using SO_NEW_DOCUMENT_ATT_SEND_API1 to send out the email and together with a pdf attachment. However when I tried to open the attachment, it has the decoded incorrectly error.
    What am I missing?
    Thanks.
    Below is the code, this is just testing purposes. I apologized for the messy code.
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
    DATA: OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
    DATA: OBJBIN  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    DATA: OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1  OCCURS  5 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    DATA: l_functionmodule TYPE rs38l_fnam.
        DATA: l_spoolid              TYPE  rspoid,
              l_control_parameters   TYPE  ssfctrlop,
              l_output_options       TYPE  ssfcompop,
              l_user_settings        TYPE  tdbool VALUE ' ',
              l_document_output_info TYPE  ssfcrespd,
              l_job_output_info      TYPE  ssfcrescl,
              l_job_output_options   TYPE  ssfcresop,
              l_spoolid_del          TYPE  rqident,
              l_status               TYPE  sysubrc,
              li_table01             TYPE TABLE OF YGLXX_PDF_S_TABLE,
              lw_table01             LIKE YGLXX_PDF_S_TABLE,
              bin                    TYPE xstring.
        DATA: i_otfdata   TYPE STANDARD TABLE OF itcoo INITIAL SIZE 0.
        DATA: l_otfdata   TYPE                   itcoo.
        DATA: lv_bytes    TYPE                   p,
              lv_bin_file TYPE                   xstring,
              gt_pdfdata  TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
              CONTENT_OUT TYPE TABLE OF SOLISTI1.
    data: begin of itab occurs 0,
            line(255) type c,
          end of itab.
    Creating the document to be sent
    DOC_CHNG-OBJ_NAME = 'OFFER'.
    DOC_CHNG-OBJ_DESCR = 'Auction of a Picasso jr'.
    OBJTXT = 'Reserve price : $250000'.
    APPEND OBJTXT.
    OBJTXT = 'A reproduction of the painting to be auctioned'.
    APPEND OBJTXT.
    OBJTXT = 'is enclosed as an attachment.'.
    APPEND OBJTXT.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creating the entry for the compressed document
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    Creating the document attachment (PDF)
    Get Function Module of Smartform
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'YGLPA_IDR'
         IMPORTING
           fm_name                  = l_functionmodule
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3.
      Set Print Parameters
        l_control_parameters-langu = 'EN'.
        l_control_parameters-no_dialog = 'X'.
        l_control_parameters-getotf = 'X'.
        l_output_options-tddest = 'LOCL'.
        LOOP AT li_table01 INTO lw_table01.
          lw_table01-line = '0002'.
          APPEND lw_table01 TO li_table01.
        ENDLOOP.
      Call Smartform Function Module
          CALL FUNCTION l_functionmodule
            EXPORTING
              control_parameters       = l_control_parameters
              output_options           = l_output_options
              user_settings            = l_user_settings
              pernr                    = '20'
              begda                    = sy-datum
              endda                    = '99991231'
              langu                    = sy-langu
              audience                 = ''
              data01                   = ''
              data02                   = ''
              data03                   = ''
              data04                   = ''
              data05                   = ''
           IMPORTING
             document_output_info      = l_document_output_info
             job_output_info           = l_job_output_info
             job_output_options        = l_job_output_options
           TABLES
             table01                   = li_table01
           EXCEPTIONS
             formatting_error          = 1
             internal_error            = 2
             send_error                = 3
             user_canceled             = 4
             OTHERS                    = 5.
        Populate OTF data table
          LOOP AT l_job_output_info-otfdata INTO l_otfdata.
            APPEND l_otfdata TO i_otfdata.
            CLEAR l_otfdata.
          ENDLOOP.                           " LOOP AT t_outtab-otfdata
      Convert OTF into PDF
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
                  format                = 'PDF'
             IMPORTING
                  bin_filesize          = lv_bytes
                  bin_file              = bin
             TABLES
                  otf                   = i_otfdata
                  lines                 = gt_pdfdata
             EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = bin
      TABLES
        BINARY_TAB            = itab
    objbin = itab.
    APPEND objbin.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    *OBJHEAD = 'attach.pdf'. APPEND OBJHEAD.
    Creating the entry for the compressed attachment
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'PDF'.
    OBJPACK-OBJ_NAME   = 'ATTACHMENT'.
    OBJPACK-OBJ_DESCR = 'Attachment'.
    OBJPACK-DOC_SIZE   = TAB_LINES * 255.
    APPEND OBJPACK..
    Entering names in the distribution list
    RECLIST-RECEIVER = '<emailadd>'.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    RECLIST-RECEIVER = 'DLI-NEUREICH'.
    RECLIST-REC_TYPE = 'P'.
    APPEND RECLIST.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA = DOC_CHNG
              PUT_IN_OUTBOX = 'X'
              COMMIT_WORK   = 'X'
         TABLES
              PACKING_LIST  = OBJPACK
              OBJECT_HEADER = OBJHEAD
              CONTENTS_BIN  = OBJBIN
              CONTENTS_TXT  = OBJTXT
             CONTENTS_HEX = itab
              RECEIVERS     = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS = 1
              DOCUMENT_NOT_SENT  = 2
              OPERATION_NO_AUTHORIZATION = 4
              OTHERS = 99.
    CASE SY-SUBRC.
      WHEN 0.
        WRITE: / 'Result of the send process:'.
        LOOP AT RECLIST.
          WRITE: / RECLIST-RECEIVER(48), ':'.
          IF RECLIST-RETRN_CODE = 0.
            WRITE 'sent successfully'.
          ELSE.
            WRITE 'not sent'.
          ENDIF.
        ENDLOOP.
      WHEN 1.
        WRITE: / 'no authorization to send to the specified number of recipients!'.
      WHEN 2.
        WRITE: / 'document could not be sent to any of the recipients!'.
      WHEN 4.
        WRITE: / 'no authorization to send !'.
      WHEN OTHERS.
        WRITE: / 'error occurred during sending !'.
    ENDCASE.

    Hi all,
    I'm currently using SO_NEW_DOCUMENT_ATT_SEND_API1 to send out the email and together with a pdf attachment. However when I tried to open the attachment, it has the decoded incorrectly error.
    What am I missing?
    Thanks.
    Below is the code, this is just testing purposes. I apologized for the messy code.
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
    DATA: OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
    DATA: OBJBIN  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    DATA: OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1  OCCURS  5 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    DATA: l_functionmodule TYPE rs38l_fnam.
        DATA: l_spoolid              TYPE  rspoid,
              l_control_parameters   TYPE  ssfctrlop,
              l_output_options       TYPE  ssfcompop,
              l_user_settings        TYPE  tdbool VALUE ' ',
              l_document_output_info TYPE  ssfcrespd,
              l_job_output_info      TYPE  ssfcrescl,
              l_job_output_options   TYPE  ssfcresop,
              l_spoolid_del          TYPE  rqident,
              l_status               TYPE  sysubrc,
              li_table01             TYPE TABLE OF YGLXX_PDF_S_TABLE,
              lw_table01             LIKE YGLXX_PDF_S_TABLE,
              bin                    TYPE xstring.
        DATA: i_otfdata   TYPE STANDARD TABLE OF itcoo INITIAL SIZE 0.
        DATA: l_otfdata   TYPE                   itcoo.
        DATA: lv_bytes    TYPE                   p,
              lv_bin_file TYPE                   xstring,
              gt_pdfdata  TYPE STANDARD TABLE OF tline INITIAL SIZE 0,
              CONTENT_OUT TYPE TABLE OF SOLISTI1.
    data: begin of itab occurs 0,
            line(255) type c,
          end of itab.
    Creating the document to be sent
    DOC_CHNG-OBJ_NAME = 'OFFER'.
    DOC_CHNG-OBJ_DESCR = 'Auction of a Picasso jr'.
    OBJTXT = 'Reserve price : $250000'.
    APPEND OBJTXT.
    OBJTXT = 'A reproduction of the painting to be auctioned'.
    APPEND OBJTXT.
    OBJTXT = 'is enclosed as an attachment.'.
    APPEND OBJTXT.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creating the entry for the compressed document
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    Creating the document attachment (PDF)
    Get Function Module of Smartform
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = 'YGLPA_IDR'
         IMPORTING
           fm_name                  = l_functionmodule
         EXCEPTIONS
           no_form                  = 1
           no_function_module       = 2
           OTHERS                   = 3.
      Set Print Parameters
        l_control_parameters-langu = 'EN'.
        l_control_parameters-no_dialog = 'X'.
        l_control_parameters-getotf = 'X'.
        l_output_options-tddest = 'LOCL'.
        LOOP AT li_table01 INTO lw_table01.
          lw_table01-line = '0002'.
          APPEND lw_table01 TO li_table01.
        ENDLOOP.
      Call Smartform Function Module
          CALL FUNCTION l_functionmodule
            EXPORTING
              control_parameters       = l_control_parameters
              output_options           = l_output_options
              user_settings            = l_user_settings
              pernr                    = '20'
              begda                    = sy-datum
              endda                    = '99991231'
              langu                    = sy-langu
              audience                 = ''
              data01                   = ''
              data02                   = ''
              data03                   = ''
              data04                   = ''
              data05                   = ''
           IMPORTING
             document_output_info      = l_document_output_info
             job_output_info           = l_job_output_info
             job_output_options        = l_job_output_options
           TABLES
             table01                   = li_table01
           EXCEPTIONS
             formatting_error          = 1
             internal_error            = 2
             send_error                = 3
             user_canceled             = 4
             OTHERS                    = 5.
        Populate OTF data table
          LOOP AT l_job_output_info-otfdata INTO l_otfdata.
            APPEND l_otfdata TO i_otfdata.
            CLEAR l_otfdata.
          ENDLOOP.                           " LOOP AT t_outtab-otfdata
      Convert OTF into PDF
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
                  format                = 'PDF'
             IMPORTING
                  bin_filesize          = lv_bytes
                  bin_file              = bin
             TABLES
                  otf                   = i_otfdata
                  lines                 = gt_pdfdata
             EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = bin
      TABLES
        BINARY_TAB            = itab
    objbin = itab.
    APPEND objbin.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    *OBJHEAD = 'attach.pdf'. APPEND OBJHEAD.
    Creating the entry for the compressed attachment
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'PDF'.
    OBJPACK-OBJ_NAME   = 'ATTACHMENT'.
    OBJPACK-OBJ_DESCR = 'Attachment'.
    OBJPACK-DOC_SIZE   = TAB_LINES * 255.
    APPEND OBJPACK..
    Entering names in the distribution list
    RECLIST-RECEIVER = '<emailadd>'.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    RECLIST-RECEIVER = 'DLI-NEUREICH'.
    RECLIST-REC_TYPE = 'P'.
    APPEND RECLIST.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA = DOC_CHNG
              PUT_IN_OUTBOX = 'X'
              COMMIT_WORK   = 'X'
         TABLES
              PACKING_LIST  = OBJPACK
              OBJECT_HEADER = OBJHEAD
              CONTENTS_BIN  = OBJBIN
              CONTENTS_TXT  = OBJTXT
             CONTENTS_HEX = itab
              RECEIVERS     = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS = 1
              DOCUMENT_NOT_SENT  = 2
              OPERATION_NO_AUTHORIZATION = 4
              OTHERS = 99.
    CASE SY-SUBRC.
      WHEN 0.
        WRITE: / 'Result of the send process:'.
        LOOP AT RECLIST.
          WRITE: / RECLIST-RECEIVER(48), ':'.
          IF RECLIST-RETRN_CODE = 0.
            WRITE 'sent successfully'.
          ELSE.
            WRITE 'not sent'.
          ENDIF.
        ENDLOOP.
      WHEN 1.
        WRITE: / 'no authorization to send to the specified number of recipients!'.
      WHEN 2.
        WRITE: / 'document could not be sent to any of the recipients!'.
      WHEN 4.
        WRITE: / 'no authorization to send !'.
      WHEN OTHERS.
        WRITE: / 'error occurred during sending !'.
    ENDCASE.

  • Unable to open the pdf in the mail.

    Hi Experts,
      I was sending a smartform through a mail. I am getting the mail but its not opening. it is giving an error
    "Too few operands". I am also sending my code for this program. 
    REPORT  zmaha_background_invoice LINE-SIZE 190.
    TABLES : vbrk,
             vbrp,
             vbpa,
             vbkd,
             kna1.
    DATA: BEGIN OF it_kna1 OCCURS 0,
           vbeln like kna1-vbeln,
            kunnr LIKE kna1-kunnr,
            land1 LIKE kna1-land1,
            ort01 LIKE kna1-ort01,
            pstlz LIKE kna1-pstlz,
            regio LIKE kna1-regio,
          END OF it_kna1.
    DATA: BEGIN OF it_vbrk OCCURS 0,
            kunag LIKE vbrk-kunag,
            vbeln LIKE vbrk-vbeln,
            fkdat LIKE vbrk-fkdat,
            bstnk_vf LIKE vbrk-bstnk_vf,
          END OF it_vbrk.
    DATA: BEGIN OF it_vbpa OCCURS 0,
            vbeln LIKE vbpa-vbeln,
            posnr LIKE vbpa-posnr,
            parvw LIKE vbpa-parvw,
            parnr LIKE vbpa-parnr,
            adrnr LIKE vbpa-adrnr,
            land1 LIKE vbpa-land1,
          END OF it_vbpa.
    DATA: BEGIN OF it_vbkd OCCURS 0,
            vbeln LIKE vbkd-vbeln,
           POSNR like VBKD-POSNR,
            prsdt LIKE vbkd-prsdt,
            fkdat LIKE vbkd-fkdat,
          END OF it_vbkd.
    DATA: BEGIN OF it_vbrp OCCURS 0,
            vbeln LIKE vbrp-vbeln,
            posnr LIKE vbrp-posnr,
          END OF it_vbrp.
    DATA : BEGIN OF it_final OCCURS 0.
            INCLUDE STRUCTURE zit_final_struc.
    DATA : END OF it_final.
    DATA: w_filesize TYPE string.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln.
    SELECTION-SCREEN : END OF BLOCK b1.
    SELECT kunag vbeln fkdat bstnk_vf
           FROM vbrk
           INTO TABLE it_vbrk
           WHERE vbeln IN s_vbeln.
    IF NOT it_vbrk[] IS INITIAL.
    *select  KUNNR LAND1 ORT01 PSTLZ REGIO
          from kna1
          into table it_kna1
          for all entries in it_vbrk
          where kunnr = it_vbrk-kunag.
      SELECT vbeln posnr parvw parnr adrnr land1
             FROM vbpa
             INTO TABLE it_vbpa
             FOR ALL ENTRIES IN it_vbrk
             WHERE vbeln = it_vbrk-vbeln.
      SELECT vbeln prsdt fkdat
             FROM vbkd
             INTO TABLE it_vbkd
             FOR ALL ENTRIES IN it_vbrk
             WHERE vbeln = it_vbrk-vbeln.
      SELECT vbeln posnr
             FROM vbrp
             INTO TABLE it_vbrp
             FOR ALL ENTRIES IN it_vbrk
             WHERE vbeln = it_vbrk-vbeln.
    ENDIF.
    LOOP AT it_vbrk.
      SELECT SINGLE * FROM kna1
             WHERE kunnr = it_vbrk-kunag.
      IF sy-subrc = 0.
        it_final-kunnr = kna1-kunnr.
        it_final-land1 = kna1-land1.
        it_final-ort01 = kna1-ort01.
        it_final-pstlz = kna1-pstlz.
        it_final-regio = kna1-regio.
      ENDIF.
    read table it_kna1 with key vbeln = it_vbrk-vbeln.
      READ TABLE it_vbpa WITH KEY vbeln = it_vbrk-vbeln.
      READ TABLE it_vbkd WITH KEY vbeln = it_vbrk-vbeln.
      READ TABLE it_vbrp WITH KEY vbeln = it_vbrk-vbeln.
      it_final-vbeln = it_vbrk-vbeln.
      it_final-fkdat = it_vbrk-fkdat.
      it_final-bstnk_vf = it_vbrk-bstnk_vf.
    it_final-vbeln = it_kna1-vbeln.
    it_final-KUNNR = it_kna1-kunnr.
    it_final-LAND1 = it_kna1-land1.
    it_final-ORT01 = it_kna1-ort01.
    it_final-PSTLZ = it_kna1-pstlz.
    it_final-REGIO = it_kna1-regio.
      it_final-vbeln = it_vbpa-vbeln.
    it_final-POSNR = it_vbpa-posnr.
      it_final-parvw = it_vbpa-parvw.
      it_final-parnr = it_vbpa-parnr.
      it_final-adrnr = it_vbpa-adrnr.
      it_final-land1 = it_vbpa-land1.
      it_final-vbeln = it_vbkd-vbeln.
    it_final-POSNR = it_vbkd-posnr.
      it_final-prsdt = it_vbkd-prsdt.
    it_final-FKDAT = it_vbkd-fkdat.
      it_final-vbeln = it_vbrp-vbeln.
      it_final-posnr = it_vbrp-posnr.
      APPEND it_final.
      CLEAR it_final.
    ENDLOOP.
    loop at it_final.
    write : / it_final-vbeln, it_final-posnr, it_final-parvw,
    *it_final-prsdt, it_final-kunnr.
    *endloop.
    *DATA : FM_NAME TYPE RS38L_FNAM.
    DATA: cparam TYPE ssfctrlop,
          outop TYPE ssfcompop,
          fm_name TYPE rs38l_fnam.
    DATA : tab_otf_data TYPE ssfcrescl,
         pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
          tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
          file_size TYPE i,
          bin_filesize TYPE i.
    outop-tddest = 'LP01'.
    cparam-no_dialog = 'X'.
    cparam-preview = space.
    cparam-getotf = 'X'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'ZMAHA_BACKGROUND_INVOICE'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
    IMPORTING
       fm_name                  = fm_name
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION fm_name   "'/1BCDWB/SF00000127'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       control_parameters         = cparam
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       output_options             = outop
       user_settings              = 'X'"space
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = tab_otf_data
      JOB_OUTPUT_OPTIONS         =
      TABLES
        it_final                   = it_final
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    tab_otf_final[] = tab_otf_data-otfdata.
    DATA : i_tline TYPE TABLE OF tline WITH HEADER LINE.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       format                      = 'PDF'
       max_linewidth               = 132
      ARCHIVE_INDEX               = ' '
      COPYNUMBER                  = 0
      ASCII_BIDI_VIS2LOG          = ' '
    IMPORTING
       bin_filesize                = bin_filesize
      BIN_FILE                    =
      TABLES
        otf                         = tab_otf_final
        lines                       = i_tline
    EXCEPTIONS
      ERR_MAX_LINEWIDTH           = 1
      ERR_FORMAT                  = 2
      ERR_CONV_NOT_POSSIBLE       = 3
      ERR_BAD_OTF                 = 4
      OTHERS                      = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *DATA:i_doc TYPE TABLE OF docs.
    *CALL FUNCTION 'CONVERT_OTF_2_PDF'
    EXPORTING
      use_otf_mc_cmd               = 'X'
      ARCHIVE_INDEX                =
    IMPORTING
      bin_filesize                 = bin_filesize
    TABLES
       otf                          = tab_otf_final
       doctab_archive               = i_doc
       lines                        = i_tline
    EXCEPTIONS
      ERR_CONV_NOT_POSSIBLE        = 1
      ERR_OTF_MC_NOENDMARKER       = 2
      OTHERS                       = 3
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       bin_filesize                    = bin_filesize
       filename = 'C:Documents and settingsmm0998desktopmsma.pdf'
       filetype                        = 'BIN'
      TABLES
        data_tab                        = i_tline[]
    IF sy-subrc = 0.
      WRITE : / 'Successfully downlaoded'.
    ENDIF.
    *CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      BIN_FILESIZE                    = BIN_FILESIZE
       FILENAME = 'C:Documents and settingssg0888Desktopmstest6.pdf'
      FILETYPE                        = 'BIN'
    TABLES
       DATA_TAB                        = I_TLINE[]
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    sending thru mail
    DATA: i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
          i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    DATA: wa_buffer TYPE string,
          wa_objhead TYPE soli_tab,
          wa_doc_chng TYPE sodocchgi1.
    DATA: objbin LIKE solix OCCURS 10 WITH HEADER LINE.
    Variables declarations
    DATA: v_lines_txt TYPE i,
          v_lines_bin TYPE i.
    LOOP AT i_tline.
      TRANSLATE i_tline USING '~'.
      CONCATENATE wa_buffer i_tline INTO wa_buffer.
    *translate wa_buffer using '~'.
    ENDLOOP.
    TRANSLATE wa_buffer USING '~'.
    DO.
      i_record = wa_buffer.
      APPEND i_record.
      SHIFT wa_buffer LEFT BY 255 PLACES.
      IF wa_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    Attachment
    REFRESH:
    i_reclist,
    i_objtxt,
    i_objbin,
    i_objpack.
    CLEAR wa_objhead.
    i_objbin[] = i_record[].
    Create Message Body
    Title and Description
    i_objtxt = 'Dear,Please find the document test with pdf-Attachment!'.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    READ TABLE i_objtxt INDEX v_lines_txt.
    wa_doc_chng-obj_name = 'smartform'.
    wa_doc_chng-expiry_dat = sy-datum + 10.
    wa_doc_chng-obj_descr = 'smartform for BG_INVOICE by Maha'.
    wa_doc_chng-sensitivty = 'F'.
    wa_doc_chng-doc_size = v_lines_txt * 255.
    Main Text
    wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt
    CLEAR i_objpack-transf_bin.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_txt.
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    Attachment
    (pdf-Attachment)
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 1.
    i_objpack-body_start = 1.
    Länge des Attachment ermitteln
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    READ TABLE i_objbin INDEX v_lines_bin.
    i_objpack-doc_size = v_lines_bin * 255 .
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'smart'.
    i_objpack-obj_descr = 'Background invoice'.
    APPEND i_objpack.
    CLEAR i_reclist.
    i_reclist-receiver = '[email protected]'.
    i_reclist-rec_type = 'U'.
    i_reclist-express = 'X'.
    *i_reclist-rec_type = 'U'.
    *i_reclist-notif_del = 'X'. " request delivery notification
    *i_reclist-notif_ndel = 'X'. " request not delivered notification
    *append reclist.
    APPEND i_reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data                    = wa_doc_chng
       put_in_outbox                    = 'X'
      TABLES
        packing_list                     = i_objpack
       object_header                     = wa_objhead
       contents_bin                      = i_objbin
       contents_txt                      = i_objtxt
       contents_hex                       = objbin
      OBJECT_PARA                      =
      OBJECT_PARB                      =
        receivers                        = i_reclist
    EXCEPTIONS
       too_many_receivers               = 1
       document_not_sent                = 2
       document_type_not_exist          = 3
       operation_no_authorization       = 4
       parameter_error                  = 5
       x_error                          = 6
       enqueue_error                    = 7
       OTHERS                           = 8
    IF sy-subrc = 0.
      WRITE: / 'succesfully sent '.
    ENDIF.
    Please help me.
    Regards,
    Maha.

    Hi shiva,
                No, "<b>25090 bytes passed</b>" is populating in the footer. But PDF is throughing a message "<b>too few operands</b>". I have Acrabat reader 7.0 version in my machine.
    Regards,
    Maha.

  • Can't open big PDF attachment from Mail

    hi, guys:
    We have this issue with both iPad and iPad2.
    I have setup EXchange account and be able to download and read Emails.
    However, we found when we try to open big size (more than 1MB ) PDF.
    As matter of fact, we can't even download the size of file.
    We click the attachment, then, arrow starts to spin and spin and none stop.
    Any ideas why? and how do we resolve this issue?
    Thank you very much.

    This looks like a Launch Services issue. The following article describes how to manually reset Launch Services. The notes at the bottom of the article also provide information about the side effects of deleting each of the files involved.
    Resetting Launch Services
    The following article also describes the side effects of cache cleaning:
    Side effects of System cache cleaning
    The following article provides links to some utilities that can be used for troubleshooting and cache cleaning:
    Resolving Disk, Permission, and Cache Corruption
    It seems that the most appropriate utility for solving this particular problem is Tiger Cache Cleaner.
    In addition to the utilities mentioned above, you may also consider OnyX, which is free. If you want to try OnyX, after installing it, do this (be sure to read the articles about the side effects of cache cleaning first):
    1. Quit all applications.
    2. Launch OnyX and enter your administrator password.
    3. Click Maintenance. In the Reset section, check LaunchServices database.
    4. You may uncheck any other pre-checked options if you've already done them using other utilities.
    5. Click the Execute button.
    6. Restart.
    If that doesn't solve the problem, you may try again checking the Links between documents and applications option in step 3 instead.
    And yet another free cache cleaning utility is Cache Out X.
    Please, let me know whether you were able to solve the problem, what worked for you and what didn't.

  • How to open a pdf attachment in imac mail

    I am unable to open a PDF attachment in Mac Mail. There is not a PDF Icon in the email message. Is there a setting that should be checked?
    I have a new iMac (less than a month old) with Mountain Lion.
    Help would be greatly appreciated. Thanks

    It is an actual PDF that is an attachment to an email. There is not a link to click on to open the attachment.
    The attachment is a statement that I normally open, then print..
    What I am seeing on the monitor is the heading portion of the email with the statement image, all on one page..It prints exactly as seen on the screen.
    I have checked my Mail>Preferences>Viewing Tab."Display remote images in HTML" messages is checked..
    Thanks for the help.

  • Reader X Unable to Open certain PDFs

    Ok so heres there issue..
    A client of my company is unable to open what seems to be random PDF files which are sent to them, after doing some testing I found a very strange bug.
    While running Windows XP - I am able to open any PDF file from an outlook email attachment so long as it is stored in memory (select the open option instead of save as).  This works with Reader X, Reader 9.x, and Acrobat Pro.
    While running Windows XP - After saving any PDF document to my hard drive from an outlook email attachment I am unable to open the PDF file using Reader X.  Reader 9.x and Acrobat Pro both open the files without a problem.
    This poses a major issue because we cannot control what version of Reader our clients use and if they are unable to open PDF documents that are saved to their hard drives from emails using Reader X what do you suggest we do?
    Note: I don't believe this is related to the known Reader X issue where people cannot open PDFs from a web page.
    Any help or troubleshooting would be greatly appreciated.

    i too have problems with reader x. in hotmail
    i can open any pdf but when displayed the documents
    are in computer code. only microsoft office doc
    uments are opened in a readable format.
    this problem on ly started after installing latest versio
    n of reader

  • Hi.  My new computer had Acrobat on it.  Suddenly, I was unable to open any PDF's.  and then I tried to update and was forwarded to the Adobe site that said I had to buy a monthly subscription.  I do not have the physical box with a serial number and was

    Hi.  My new computer had Acrobat on it.  Suddenly, I was unable to open any PDF's.  and then I tried to update and was forwarded to the Adobe site that said I had to buy a monthly subscription.  I do not have the physical box with a serial number and was going to buy the one advertised on the website until I discovered it's only for students and teachers, which I am not.  What should I do next as I need to use PDFs on a daily basis.  Thanks!  I would like to be able to download this and pay online.  Possible? I currently have Adobe Acrobat XI Pro.  I have a Windows 7 system.  Please help!

    As long as you know your serial number you can download PSE from here:
    Download Photoshop Elements products | 11, 10
    If you don't know your serial number:
    Find your serial number quickly

  • How do I open a PDF attachment from an email so I can edit it for reply on an iPad?

    I need to open a PDF attachment on an email, edit it and resend it back to the originator on an iPad. Help?

    A PDF is a graphics document, so you can't edit it without access to an expensive program like Adobe Acrobat.

  • Error when opening the PDF attachment

    Hi,
    We are able to successfully send the PDF attachment to external email id  from SAP SCRIPT:
    but when we are opening the PDF attachment we are getting the following error:
    "Adobe Reader could not open because it is not either a supported file type or the file has been damaged ..etc.."
    Is any logic need to write for the above or any parameters are missing .
    Can any one help...
    Thanks in advance.

    Hi Ramana,
                Just try below given example code.....In which I have just different function Module to convert from OFT to PDF....
       AT END OF VSTEL.
          IF R_EMAIL = 'X'.
    *--Opening Layout set for Printing
            PERFORM CLOSE_FORM.
           SELECT SINGLE SMTP_ADDR INTO V_EMAIL
           FROM ADR6
           WHERE ADDRNUMBER = T_ADRC-ADDRNUMBER.
            CLEAR T_LIPS.
            READ TABLE T_LIPS WITH KEY VBELN = T_LIKP-VBELN.
            CLEAR T_VBAK.
            READ TABLE T_VBAK WITH KEY VBELN = T_LIPS-VGBEL.
            CLEAR V_ADRNR.
            SELECT SINGLE ADRNR
            INTO V_ADRNR
            FROM T001
            WHERE  BUKRS = T_VBAK-BUKRS_VF.
            REFRESH T_CC_EMAIL.
            CLEAR T_CC_EMAIL.
            SELECT  SMTP_ADDR INTO TABLE T_CC_EMAIL
            FROM ADR6
            WHERE ADDRNUMBER = V_ADRNR.
         SELECT SINGLE smtp_addr
         INTO cc_email
         FROM adr6
         WHERE addrnumber = v_adrnr.
            IF T_TO_EMAIL[] IS INITIAL.
              CLEAR T_CC_EMAIL.
              REFRESH T_CC_EMAIL.
            ENDIF.
            PERFORM BUILD_PDF_DATA_TABLE.
    Populate message body text
            PERFORM POPULATE_EMAIL_MESSAGE_BODY.
            CONCATENATE  T_LIKP-VSTEL '-' 'Warehouse Release' INTO V_SUBJECT SEPARATED BY SPACE.
    Send file by email as .xls speadsheet
            PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                         TABLES IT_MESSAGE
                                                PT_CONTENTS_BIN       "LINES    "it_attach
                                          USING V_EMAIL
                                                V_SUBJECT
                                                'PDF'
                                                'Delivery'
                                                'Deliveries'
                                       CHANGING GD_ERROR
                                                GD_RECIEVER.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
            PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
          ENDIF.
        ENDAT.
    ***---/End by sagun
      ENDLOOP. "loop at t_likp.
    ***---/added by sagun 25.05.2007
      IF R_EMAIL = 'X'.
        WRITE /01 SY-ULINE(180).
        WRITE :/55 'End of Report'.
      ENDIF.
    ***---/end by sagun
    ENDFORM.                    " PRINT_DELIVERY
    *&      Form  close_form
          text
    -->  p1        text
    <--  p2        text
    FORM CLOSE_FORM .
      IF R_PRINT = 'X'.                   " added by sagun 24.05.2007
        CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
         EXCEPTIONS
           UNOPENED                       = 1
           BAD_PAGEFORMAT_FOR_PRINT       = 2
           SEND_ERROR                     = 3
           SPOOL_ERROR                    = 4
           CODEPAGE                       = 5
           OTHERS                         = 6
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.                             " added by sagun 24.05.2007
      IF R_EMAIL = 'X'.
    *otf_table  like itcoo occurs 0 with header line
        CALL FUNCTION 'CLOSE_FORM'
         IMPORTING
           RESULT   = .
             TABLES
               OTFDATA  = HOTFDATA
             EXCEPTIONS
               UNOPENED = 3.
      ENDIF.
    ENDFORM.                    " close_form
    *&      Form  BUILD_PDF_DATA_TABLE
          text
    -->  p1        text
    <--  p2        text
    FORM BUILD_PDF_DATA_TABLE .
      DATA :  LC_FORMAT(3) TYPE C VALUE 'PDF'.
    DATA: lt_tline TYPE tp_tline_standard_table,
      DATA :  L_BIN_FILESIZE TYPE I,
              PC_CONTENTS_BIN_LINES TYPE I.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          FORMAT                = LC_FORMAT
        IMPORTING
          BIN_FILESIZE          = L_BIN_FILESIZE
        TABLES
          OTF                   = HOTFDATA
          LINES                 = LINES
        EXCEPTIONS
          ERR_MAX_LINEWIDTH     = 1
          ERR_FORMAT            = 2
          ERR_CONV_NOT_POSSIBLE = 3
          OTHERS                = 4.
      IF SY-SUBRC = 0.
        CALL FUNCTION 'QCE1_CONVERT'
          TABLES
            T_SOURCE_TAB         = LINES
            T_TARGET_TAB         = PT_CONTENTS_BIN
          EXCEPTIONS
            CONVERT_NOT_POSSIBLE = 1
            OTHERS               = 2.
        IF SY-SUBRC = 0.
          DESCRIBE TABLE PT_CONTENTS_BIN LINES PC_CONTENTS_BIN_LINES.
        ELSE.
    ... -->
        ENDIF.
      ELSE.
    An OTF conversion error occured
    -->
      ENDIF.
    ENDFORM.                    " BUILD_PDF_DATA_TABLE
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
          text
    -->  p1        text
    <--  p2        text
    FORM POPULATE_EMAIL_MESSAGE_BODY .
      REFRESH IT_MESSAGE.
      IT_MESSAGE = 'Please find enclosed here with our Warehouse Release Document(s)'.
      APPEND IT_MESSAGE.
      CLEAR IT_MESSAGE.
      APPEND IT_MESSAGE.
      APPEND IT_MESSAGE.
      APPEND IT_MESSAGE.
      APPEND IT_MESSAGE.
      IT_MESSAGE = 'For United Phosphorous Inc.'.
      APPEND IT_MESSAGE.
      CLEAR IT_MESSAGE.
    APPEND it_message.
    APPEND it_message.
    APPEND it_message.
      IT_MESSAGE = 'TEST EMAIL from 520 clinet please ignore it'.
      APPEND IT_MESSAGE.
    ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          text
         -->PIT_MESSAGE  text
         -->PIT_ATTACH  text
         -->P_EMAIL  text
         -->P_MTITLE  text
         -->P_FORMAT   text
         -->P_FILENAME   text
         -->P_ATTDESCRIPTION   text
         -->P_SENDER_ADDRESS   text
         -->P_SENDER_ADDRES_TYPE   text
         <--P_ERROR  text
         <--P_RECIEVER  text
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT  TABLES    PIT_MESSAGE
                                                  PIT_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.
    p_filename  = 'INVOICE'.
      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 PIT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( PIT_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[] = PIT_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.
      LOOP AT T_TO_EMAIL WHERE EMAIL <> SPACE.
        CLEAR T_RECEIVERS.
        T_RECEIVERS-RECEIVER = T_TO_EMAIL-EMAIL.
        T_RECEIVERS-REC_TYPE = 'U'.
        T_RECEIVERS-COM_TYPE = 'INT'.
        T_RECEIVERS-NOTIF_DEL = 'X'.
        T_RECEIVERS-NOTIF_NDEL = 'X'.
        APPEND T_RECEIVERS.
        CLEAR T_RECEIVERS.
      ENDLOOP.
    copy email address
      CLEAR T_RECEIVERS.
      IF NOT T_RECEIVERS[] IS INITIAL.
        LOOP AT T_CC_EMAIL.
          T_RECEIVERS-RECEIVER = T_CC_EMAIL-EMAIL.
          T_RECEIVERS-REC_TYPE = 'U'.
          T_RECEIVERS-COM_TYPE = 'INT'.
    t_receivers-notif_del = 'X'.
    t_receivers-notif_ndel = 'X'.
          T_RECEIVERS-COPY       = 'X'.
          APPEND T_RECEIVERS.
          CLEAR T_RECEIVERS.
        ENDLOOP.
      ENDIF.
      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               = 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.
      IF SY-SUBRC = 0.
        FORMAT COLOR COL_NORMAL ON.
        LOOP AT T_LOG.
          WRITE :/03 T_LOG-VBELN,
                  19 SY-VLINE,
                  20 T_LOG-KUNNR,
                  34 SY-VLINE,
                  35 T_LOG-NAME1,
                  76 SY-VLINE,
                  77 T_LOG-EMAIL,
                  110 SY-VLINE,
                  111 'Email Sent Successfuly',
                  180 SY-VLINE.
        ENDLOOP . "t_log
        FORMAT COLOR COL_NORMAL OFF.
        CLEAR T_LOG.
        REFRESH T_LOG.
      ENDIF.
      IF SY-SUBRC NE 0.
        CASE LD_ERROR.
          WHEN   1.
            V_ERROR =  'too_many_receivers' .
          WHEN   2.
            V_ERROR =  'Email address not found in Customer Master' .
          WHEN   3.
            V_ERROR =  'document_type_not_exist'.
          WHEN   4.
            V_ERROR =  'operation_no_authorization'.
          WHEN   5.
            V_ERROR =  'Email address not found in Customer Master'.
          WHEN   6.
            V_ERROR =   'x_error'.
          WHEN   7.
            V_ERROR =   'enqueue_error'.
          WHEN   8.
            V_ERROR =   'Error in sending email' .
        ENDCASE.
        FORMAT COLOR COL_NEGATIVE ON.
        LOOP AT T_LOG.
          WRITE :/03 T_LOG-VBELN,
             19 SY-VLINE,
             20 T_LOG-KUNNR,
             34 SY-VLINE,
             35 T_LOG-NAME1,
             76 SY-VLINE,
             77 T_LOG-EMAIL,
             110 SY-VLINE,
             111 V_ERROR,
             180 SY-VLINE.
        ENDLOOP . "t_log
        FORMAT COLOR COL_NEGATIVE OFF.
        CLEAR T_LOG.
        REFRESH T_LOG.
      ENDIF.
    ENDFORM.                    " SEND_FILE_AS_EMAIL_ATTACHMENT
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          text
    -->  p1        text
    <--  p2        text
    FORM INITIATE_MAIL_EXECUTE_PROGRAM .
      WAIT UP TO 2 SECONDS.
      SUBMIT RSCONN01 WITH MODE = 'INT'
                    WITH OUTPUT = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Reward Point If it usefull....
    Cheers,
    Sagun Desai....

  • I cannot open a PDF attachment. Get message saying Preview does not recognize it. What is Preview?

    Cannot open a PDF attachment. I get a message saying Preview does not recognize it. What is Preview?

    CLICKY CLICK---> Preview - Apple Support
    Care to share which OS you are using?
    ===========
    When posting in Apple Communties/Forums/Message Boards.......It would help us to know which Mac model you have, which OS & version you're using, how much RAM, etc. You can have this info displayed on the bottom of every post by completing your system profile and filling in the information asked for.
    Click on your name Welcome "your name."
    Click on your name link
    Click on the BIO tab.  Scroll down to the bottom till you see "My Products."  This is the section where you can edit your profile.
    CLICKY CLICK-----> Help us to help you on these forums

  • Unable to open any PDF document in Windream using Adobe Reader (11.0.9)

    Our company uses a document management system for storing and archiving important documents. Since updating to the latest version of Adobe Reader (11.0.9) last week, we are unable to open any PDF document using Adobe Reader. An AcroRd32.exe*32 process is launched, but the document will not open or display. Eventually we suffer a system crash. Opening any other PDF document (not stored in the archive management system) using Adobe Reader is fine. Documents can also be opened in the archive management system using Adobe Acrobat.

    Try disabling Protected Mode (see Pat's response here: Anyone having problems with the Acrobat Reader 11.0.9 update on Win7 X64?) and see if that helps...
    -Mike

  • How Do I Open a PDF attachment in IOS 8 mail app?

    Hi all,
    I am curious how do I open a pdf attachment in IOS 8 mail app?

    Hi,
    My friend has what you stated = a square with and arrow coming out the top and works as expected
    BUT I don't
    what happens to me - is the small muti page opens and does NOT show a pdf ICON - BUT DOES show only the first page and I DO NOT GET = a square with and arrow coming out the top TO CLICK ON!
    So it seems the normal behavior is not happening - how can I fix this - to see ALL pages and or open pdf in another pdf app?

  • Unable to open in pdf files in ipad 3 using adobe reader 10.2 but able to do so in ipad 2 using adob

    Unable to open in pdf files in ipad 3 using adobe reader 10.2 but able to do so in ipad 2 using  adobe reader x 10.1 .

    Can you please share the file you are trying to open with us at [email protected]? Also, can you please confirm that you've updated the Adobe Reader on your iPad 3 to the latest version using iTunes or the AppStore app?

  • I am unable to open a PDF file in Firefox 4. I have no problem with IE8

    I am unable to open a PDF file in Firefox 4. I have no problem with IE8

    Hi Nupoorv,
    Thanks for contacting us.
    Could you please provide some details like from where you downloaded your pdf , and what happens when you click on 'Open in Adobe Reader' .
    On tap on 'Open in Adobe Reader' does Adobe Reader application come in focus .
    You can follow think link also which provide details of how you can open documents in Adobe Reader http://forums.adobe.com/docs/DOC-2532
    Let us know if you still face problem.
    Thanks
    -Satyadev

  • When I open an encryted pdf file in my Hp  Slate 7 voice Tab it was unable to open the pdf file.Tje same file was opening with other pdf reader software.Kindly Help.

    When I open an encryted pdf file in my Hp  Slate 7 voice Tab it was unable to open the pdf file.Tje same file was opening with other pdf reader software.Kindly Help.
    [spam link removed]

    Could you please send the pdf to [email protected] so that we may investigate the issue?
    Thanks,
    Adobe Reader Team

Maybe you are looking for

  • Audio problems in Flash Player and Firefox

    Hi everyone! I have a problem that has been plagueing me for nearly a year now, all audio in all videos i play in Firefox goes out of synch, the video will start ok then at around the two minute mark the audio starts to lag until it's completely left

  • IPhone 5 upgraded to ios 7 connected to wifi no internet

    I upgraded to ios 7 and ever since then I have had wifi issues.  At first I got the "unable to connect" message.  Now I'm able to connect but once I'm on nothing will update.  I can't access the internet, Facebook, Gmail nothing will work.  As soon a

  • How can I make new tabs open next to the current tab?

    New tabs are advertised in Firefox 5.0 as being set to open next the the current tab by default. Mine, however, do not do this. They open to the right of the last tab, necessitating a lot of tab-scrolling, and a minor waste of time. I have not instal

  • HTML Email in LiveCycle ES 2

         I have a form with a regular button I scripted to compose an email based on fields in the document. I use the following javascript to have an email load and be pre-filled. All the user needs to do is press "send". event.target.app.mailMsg(      

  • How to import movies in library

    after a disaster; deleting windows media player, i thought; let's have a look at that iTunes video-thing. The music works just fine but It seem I just can't play movies or episodes. the file are all .avi it doesn't work with quicktime either. what to