Email Attachment

Hi,
I have to change the prog to send email as attachment. I did some changes. Looks it needs some more changes. Can some one help me on this. I am not using ALV.
Thanks
Veni.
REPORT ZSDRSHIP LINE-SIZE 248 LINE-COUNT 65 MESSAGE-ID ZV
                      NO STANDARD PAGE HEADING.
Data Declaration
*Tables
TABLES: VBRK,                          "Billing: Header Data
        ITCPO,                         "Sapscript Output Interface
        T001,                          "Company Codes
        SADR,                          "Address Management: Company Data
        VBPA,                          "Sales Document: Partner
        KNA1,                          "General Data in Customer Master
        LFA1,                          "Vendor master (general section)
        VBRP,                          "Billing: Item Data
        DNAST,                         "Output status, display fields
        T005T,                         "Country Names
        EIKP,                          "Export/Import header data
        T618T,                         "Modes of Transport: Descriptions
        ZMAT,       "Classification of Material Numbers
        T001W,                         "Plants/Branches
        T005U,                         "Taxes: Region Key: Texts
        NAST.                          "Message status
selection screen for the program RSNAST00 run.
RANGES: R_KAPPL FOR DNAST-KAPPL,
        R_OBJKY FOR NAST-OBJKY,
        R_KSCHL FOR NAST-KSCHL,
        R_NACHA FOR NAST-NACHA,
        R_LDEST FOR NAST-LDEST.
Internal tables.
DATA: BEGIN OF ITAB_VBRK OCCURS 100,
      VBELN LIKE VBRK-VBELN,
      NETWR LIKE VBRK-NETWR,
      BUKRS LIKE VBRK-BUKRS,
      EXNUM LIKE VBRK-EXNUM,
      END OF ITAB_VBRK.
DATA: BEGIN OF ITAB_VBRP OCCURS 50,
      MATNR LIKE VBRP-MATNR,
      FKIMG LIKE VBRP-FKIMG,
      NETWR LIKE VBRP-NETWR,
      WERKS LIKE VBRP-WERKS,
      END OF ITAB_VBRP.
DATA: BEGIN OF ITAB_ZMAT OCCURS 10,
      ZMATNR LIKE ZMAT-ZMATNR,
      FKIMG LIKE VBRP-FKIMG,
      NETWR LIKE VBRP-NETWR,
      END OF ITAB_ZMAT.
DATA: BEGIN OF FTAB OCCURS 100,
      IND TYPE C,
      VBELN(10) TYPE N,
      NETWR LIKE VBRK-NETWR,
      BUKRS LIKE VBRK-BUKRS,
      EXNUM LIKE VBRK-EXNUM,
      END OF FTAB.
DATA: IND TYPE C,
      CNT1 TYPE I,
      IPAGE TYPE I,
      I_WERKS LIKE VBRP-WERKS VALUE ' '.
Program Selections
SELECT-OPTIONS: SDATE FOR VBRK-FKDAT.
Initialization
INITIALIZATION.
Initialization for the program RSNAST00 run.
  R_KAPPL-SIGN = 'I'.
  R_KAPPL-OPTION = 'EQ'.
  R_KAPPL-LOW = 'V3'.
  R_KAPPL-HIGH = ' '.
  APPEND R_KAPPL.
  CLEAR R_KAPPL.
  R_KSCHL-SIGN = 'I'.
  R_KSCHL-OPTION = 'EQ'.
  R_KSCHL-LOW = 'ZCOM'.
  R_KSCHL-HIGH = ' '.
  APPEND R_KSCHL.
  CLEAR R_KSCHL.
  R_NACHA-SIGN = 'I'.
  R_NACHA-OPTION = 'EQ'.
  R_NACHA-LOW = '1'.
  R_NACHA-HIGH = ' '.
  APPEND R_NACHA.
  CLEAR R_NACHA.
Start-of-selection
START-OF-SELECTION.
  SELECT VBELN NETWR BUKRS EXNUM FROM VBRK INTO TABLE ITAB_VBRK
                             WHERE FKART EQ 'F8'
                               AND FKDAT IN SDATE.
  COMMIT WORK.
  PERFORM OUTPUT.
AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'PRIN'.
      PERFORM READ_DATA.
      PERFORM PRINT_DATA.
    WHEN 'SELE'.
      PERFORM SELECT_DATA.
    WHEN 'DETA'.
      PERFORM READ_DATA.
      PERFORM DISPLAY_DATA.
   WHEN 'EMAIL'.                   
     PERFORM READ_DATA.
     PERFORM EMAIL_DATA.
  ENDCASE.
TOP-OF-PAGE
TOP-OF-PAGE.
  PERFORM HEADINGS.
TOP-OF-PAGE DURING LINE-SELECTION.
  CASE SY-UCOMM.
    WHEN 'SELE'.
      PERFORM HEADINGS.
    WHEN 'DETA'.
      PERFORM HEADINGS1.
  ENDCASE.
perform get_file_name.
perform sub_call_file.
PERFORM EMAIL_DATA.
*&      Form  OUTPUT
      text
-->  p1        text
<--  p2        text
FORM OUTPUT.
  SET PF-STATUS 'NORM'.
  LOOP AT ITAB_VBRK.
    WRITE: /01 SY-VLINE,
            02 IND AS CHECKBOX,
            03 SY-VLINE,
            04 ITAB_VBRK-VBELN,
            15 SY-VLINE,
            16 ITAB_VBRK-NETWR,
            51 SY-VLINE.
  ENDLOOP.
  ULINE /(51).
ENDFORM.                               " OUTPUT
*&      Form  READ_DATA
      text
-->  p1        text
<--  p2        text
FORM READ_DATA.
  CNT1 = 6.
  IPAGE = 1.
  REFRESH FTAB.
  LOOP AT ITAB_VBRK.
    READ LINE CNT1 OF PAGE IPAGE FIELD VALUE IND INTO FTAB-IND.
    READ LINE CNT1 OF PAGE IPAGE FIELD VALUE
                               ITAB_VBRK-VBELN INTO FTAB-VBELN.
    FTAB-BUKRS = ITAB_VBRK-BUKRS.
    FTAB-NETWR = ITAB_VBRK-NETWR.
    FTAB-EXNUM = ITAB_VBRK-EXNUM.
    APPEND FTAB.
    CLEAR FTAB.
    CNT1 = CNT1 + 1.
    IF CNT1 > 65.
      IPAGE = IPAGE + 1.
      CNT1 = 6.                       
    ENDIF.
  ENDLOOP.
ENDFORM.                               " READ_DATA
*&      Form  PRINT_DATA
      text
-->  p1        text
<--  p2        text
FORM PRINT_DATA.
  LOOP AT FTAB.
    IF FTAB-IND = 'X'.
      REFRESH R_OBJKY.
      R_OBJKY-SIGN = 'I'.
      R_OBJKY-OPTION = 'EQ'.
      R_OBJKY-LOW = FTAB-VBELN.
      R_OBJKY-HIGH = ' '.
      APPEND R_OBJKY.
      CLEAR R_OBJKY.
      SUBMIT RSNAST00 VIA SELECTION-SCREEN WITH S_KAPPL IN R_KAPPL
                                           WITH S_OBJKY IN R_OBJKY
                                           WITH S_KSCHL IN R_KSCHL
                                           WITH S_NACHA IN R_NACHA
                                           WITH P_AGAIN EQ ' '
                                           WITH P_PRINT EQ '4_A1'
                                               AND RETURN.
      IF FTAB-NETWR GE 2500.
        PERFORM GET_DATA.
        PERFORM PRINT_FORM.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDFORM.                               " PRINT_DATA
*&      Form  PRINT_FORM
      text
-->  p1        text
<--  p2        text
FORM PRINT_FORM.
  ITCPO-TDIMMED = 'X'.
  ITCPO-TDDELETE = 'X'.
  ITCPO-TDPROGRAM = SY-REPID.
  ITCPO-TDDEST = '5_A1'.
  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            FORM     = 'Z_SHIPPERS'
            LANGUAGE = SY-LANGU
            OPTIONS  = ITCPO
       EXCEPTIONS
            CANCELED = 1
            DEVICE   = 2
            FORM     = 3
            OPTIONS  = 4
            UNCLOSED = 5
            OTHERS   = 6.
  LOOP AT ITAB_ZMAT.
    CALL FUNCTION 'WRITE_FORM'
        EXPORTING
             ELEMENT       = 'ITEM_DATA'
             FUNCTION      = 'SET'
             TYPE          = 'BODY'
             WINDOW        = 'MAIN'
   IMPORTING
        PENDING_LINES =
         EXCEPTIONS
              ELEMENT       = 1
              FUNCTION      = 2
              TYPE          = 3
              UNOPENED      = 4
              UNSTARTED     = 5
              WINDOW        = 6
              OTHERS        = 7.
  ENDLOOP.
  CALL FUNCTION 'CLOSE_FORM'
       EXCEPTIONS
            UNOPENED = 1
            OTHERS   = 2.
  IF SY-SUBRC EQ 0.
    MESSAGE I355 WITH FTAB-VBELN.
  ENDIF.
ENDFORM.                               " PRINT_FORM
*&      Form  SELECT_DATA
      text
-->  p1        text
<--  p2        text
FORM SELECT_DATA.
  SY-LSIND = 0.
  IF IND = 'X'.
    IND = ' '.
  ELSEIF IND = ' '.
    IND = 'X'.
  ENDIF.
  PERFORM OUTPUT.
ENDFORM.                               " SELECT_DATA
*&      Form  GET_DATA
      text
-->  p1        text
<--  p2        text
FORM GET_DATA.
  CLEAR: T001, SADR, VBPA, LFA1, KNA1, T005T, EIKP, T618T, I_WERKS.
  REFRESH: ITAB_VBRP, ITAB_ZMAT.
  SELECT SINGLE ADRNR BUTXT FROM T001 INTO (T001-ADRNR, T001-BUTXT)
                      WHERE BUKRS EQ FTAB-BUKRS.
  SELECT SINGLE * FROM SADR WHERE ADRNR EQ T001-ADRNR
                              AND NATIO EQ SPACE.
  SELECT SINGLE LIFNR FROM VBPA INTO VBPA-LIFNR
                          WHERE VBELN EQ FTAB-VBELN
                              AND POSNR = '000000'
                              AND PARVW = 'SP'.
  SELECT SINGLE * FROM LFA1 WHERE LIFNR = VBPA-LIFNR.
  SELECT SINGLE KUNNR FROM VBPA INTO VBPA-KUNNR
                          WHERE VBELN EQ FTAB-VBELN
                              AND POSNR = '000000'
                              AND PARVW = 'WE'.
  SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
  SELECT SINGLE * FROM T005T WHERE SPRAS = 'E'
                               AND LAND1 = KNA1-LAND1.
  SELECT SINGLE * FROM EIKP WHERE EXNUM = FTAB-EXNUM.
  SELECT SINGLE * FROM T618T WHERE SPRAS = 'E'
                               AND LAND1 = EIKP-ALAND
                               AND EXPVZ = EIKP-EXPVZ.
  SELECT MATNR FKIMG NETWR WERKS FROM VBRP INTO TABLE ITAB_VBRP
                               WHERE VBELN = FTAB-VBELN.
  LOOP AT ITAB_VBRP.
    IF I_WERKS EQ ' '.
      I_WERKS = ITAB_VBRP-WERKS.
      SELECT SINGLE * FROM T001W WHERE WERKS = I_WERKS.
      SELECT SINGLE * FROM T005U WHERE SPRAS = 'E'
                                   AND LAND1 = T001W-LAND1
                                   AND BLAND = T001W-REGIO.
    ENDIF.
    SELECT SINGLE ZMATNR FROM ZMAT INTO ZMAT-ZMATNR
                                   WHERE MATNR = ITAB_VBRP-MATNR.
    IF SY-SUBRC EQ 0.
      MOVE ZMAT-ZMATNR TO ITAB_ZMAT-ZMATNR.
      MOVE ITAB_VBRP-FKIMG TO ITAB_ZMAT-FKIMG.
      MOVE ITAB_VBRP-NETWR TO ITAB_ZMAT-NETWR.
      COLLECT ITAB_ZMAT.
      CLEAR ITAB_ZMAT.
    ELSE.
      MESSAGE I356 WITH ITAB_VBRP-MATNR.
    ENDIF.
  ENDLOOP.
ENDFORM.                               " GET_DATA
*&      Form  HEADINGS
      text
-->  p1        text
<--  p2        text
FORM HEADINGS.
  FORMAT COLOR COL_HEADING.
  WRITE: 'SEGA OF AMERICA, INC.',
         / 'List of Commercial Invoices'.
  ULINE /(51).
  FORMAT COLOR 2.
  WRITE: /01 SY-VLINE,
          03 SY-VLINE,
          04 TEXT-001,
          15 SY-VLINE,
          16 TEXT-002,
          51 SY-VLINE,
         52 '                                               ' COLOR OFF.
  ULINE /(51).
ENDFORM.                               " HEADINGS
*&      Form  DISPLAY_DATA
      text
-->  p1        text
<--  p2        text
FORM DISPLAY_DATA.
  SET PF-STATUS 'NORM1'.
  LOOP AT FTAB.
    IF FTAB-IND = 'X'.
      REFRESH ITAB_VBRP.
      SELECT MATNR FKIMG NETWR WERKS FROM VBRP INTO TABLE ITAB_VBRP
                                   WHERE VBELN = FTAB-VBELN.
   WRITE:/ 'Details of Commercial Invoice:' COLOR 4, FTAB-VBELN COLOR 4.
      ULINE /(56).
      LOOP AT ITAB_VBRP.
        WRITE: /01 SY-VLINE,
                02 ITAB_VBRP-MATNR,
                20 SY-VLINE,
                21 ITAB_VBRP-NETWR,
                56 SY-VLINE,
         57 '                                               ' COLOR OFF.
      ENDLOOP.
      ULINE /(56).
    ENDIF.
  ENDLOOP.
ENDFORM.                               " DISPLAY_DATA
*&      Form  HEADINGS1
      text
-->  p1        text
<--  p2        text
FORM HEADINGS1.
  FORMAT COLOR COL_HEADING.
  WRITE: 'SEGA OF AMERICA, INC.',
         / 'Commercial Invoice Details.'.
  ULINE /(56).
  FORMAT COLOR 2.
  WRITE: /01 SY-VLINE,
          02 TEXT-003,
          20 SY-VLINE,
          21 TEXT-004,
          56 SY-VLINE,
         57 '                                               ' COLOR OFF.
  ULINE /(56).
ENDFORM.                               " HEADINGS1
*&      Form  get_file_name
      text
-->  p1        text
<--  p2        text
DATA:p_fp like rlgrap-filename.
FORM get_file_name .
  CALL FUNCTION 'F4_FILENAME'
    IMPORTING
      file_name = p_fp.
ENDFORM.
*&      Form  sub_call_file
      text
-->  p1        text
<--  p2        text
form sub_call_file.
  data: filename type string.
  filename = p_fp.
  call function 'GUI_DOWNLOAD'
    exporting
   BIN_FILESIZE                    =
      filename                        = filename
      filetype                        = 'DAT'
   APPEND                          = ' '
   WRITE_FIELD_SEPARATOR           = ' '
     HEADER                          = '00'
   TRUNC_TRAILING_BLANKS           = ' '
   WRITE_LF                        = 'X'
IMPORTING
   FILELENGTH                      =
   tables
    data_tab                        = ialv2
   FIELDNAMES                      =
EXCEPTIONS
   FILE_WRITE_ERROR                = 1
   NO_BATCH                        = 2
   GUI_REFUSE_FILETRANSFER         = 3
   INVALID_TYPE                    = 4
   NO_AUTHORITY                    = 5
   UNKNOWN_ERROR                   = 6
   OTHERS                          = 22
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
delete ialv2 index 1.
endform.                    " sub_call_file
*&      Form  EMAIL_DATA
      text
-->  p1        text
<--  p2        text
FORM EMAIL_DATA.
Populate details for .xls file
  PERFORM build_xls_data_table.
Populate message body
  PERFORM populate_email_message_body.
Send file by email as .xls speadsheet
  PERFORM send_file_as_email_attachment
                               TABLES i_message
                                      i_attach
                                USING p_email
                                      'Commercial Invoice'
                                      'XLS'
                                      'COMMERCIAL_INVOICE'
                             CHANGING g_error
                                      g_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
  PERFORM initiate_mail_execute_program.
ENDFORM.                    " EMAIL_DATA
*&      Form  build_xls_data_table
      text
-->  p1        text
<--  p2        text
FORM build_xls_data_table .
  CONSTANTS:
     con_tab  TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
     con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
  CONCATENATE 'MATERIAL' 'NET PRICE'
INTO i_attach
SEPARATED BY con_tab.
  CONCATENATE con_cret i_attach  INTO i_attach.
  APPEND  i_attach.
LOOP AT ITAB_VBRP.
        WRITE: /01 SY-VLINE,
                02 ITAB_VBRP-MATNR,
                20 SY-VLINE,
                21 ITAB_VBRP-NETWR,
                56 SY-VLINE,
         57 '                                               ' COLOR OFF.
      ENDLOOP.
  LOOP AT ITAB_VBRP.
  CONCATENATE VBRP-MATNR
              VBRP-NETWR
        INTO i_attach SEPARATED BY con_tab.
    CONCATENATE con_cret i_attach  INTO i_attach.
    APPEND  i_attach.
  ENDLOOP.
ENDFORM.                    " build_xls_data_table
*&      Form  populate_email_message_body
      text
-->  p1        text
<--  p2        text
FORM populate_email_message_body .
  DATA: l_buffer(250).
  REFRESH i_message.
  l_buffer = 'COMMERCIAL INVOICE DATA DOWNLOAD. '.
  CONCATENATE l_buffer 'You will find an attachment in this message.'
  INTO l_buffer.
  i_message = l_buffer.
  APPEND i_message.
ENDFORM.                    " populate_email_message_body
*&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
      Send email
FORM send_file_as_email_attachment TABLES p_i_message
                                          p_i_attach
                                    USING p_email1
                                          p_mtitle
                                          p_format
                                          p_filename
                                          p_attdescription
                                          p_sender_address
                                          p_sender_addres_type
                                 CHANGING p_error
                                          p_receiver.
  DATA: l_error    TYPE sy-subrc,
        l_receiver TYPE sy-subrc,
        l_email LIKE  somlreci1-receiver,
        l_mtitle LIKE sodocchgi1-obj_descr,
        l_format TYPE  so_obj_tp,
        l_attfilename TYPE  so_obj_des ,
        l_attdescription TYPE  so_obj_nam ,
        l_sender_address LIKE  soextreci1-receiver,
        l_sender_address_type LIKE  soextreci1-adr_typ.
  l_email               = p_email1.
  l_mtitle              = p_mtitle.
  l_format              = p_format.
  l_attfilename         = p_filename.
  l_attdescription      = p_attdescription.
  l_sender_address      = p_sender_address.
  l_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 = l_mtitle .
  w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
  CLEAR w_doc_data.
  READ TABLE i_attach INDEX w_cnt.
  w_doc_data-doc_size =
     ( w_cnt - 1 ) * 255 + STRLEN( i_attach ).
  w_doc_data-obj_langu  = sy-langu.
  w_doc_data-obj_name   = 'SAPRPT'.
  w_doc_data-obj_descr  = l_mtitle.
  w_doc_data-sensitivty = 'F'.
  CLEAR i_attachment.
  REFRESH i_attachment.
  i_attachment[] = p_i_attach[].
Describe the body of the message
  CLEAR i_packing_list.
  REFRESH i_packing_list.
  i_packing_list-transf_bin = space.
  i_packing_list-head_start = 1.
  i_packing_list-head_num = 0.
  i_packing_list-body_start = 1.
  DESCRIBE TABLE i_message LINES i_packing_list-body_num.
  i_packing_list-doc_type = 'RAW'.
  APPEND i_packing_list.
Create attachment notification
  i_packing_list-transf_bin = 'X'.
  i_packing_list-head_start = 1.
  i_packing_list-head_num   = 1.
  i_packing_list-body_start = 1.
  DESCRIBE TABLE i_attachment LINES i_packing_list-body_num.
  i_packing_list-doc_type   =  l_format.
  i_packing_list-obj_descr  =  l_attdescription.
  i_packing_list-obj_name   =  l_attfilename.
  i_packing_list-doc_size   =  i_packing_list-body_num * 255.
  APPEND i_packing_list.
Add the recipients email address
  CLEAR i_receivers.
  REFRESH i_receivers.
  i_receivers-receiver = l_email.
  i_receivers-rec_type = 'U'.
  i_receivers-com_type = 'INT'.
  i_receivers-notif_del = 'X'.
  i_receivers-notif_ndel = 'X'.
  APPEND i_receivers.
i_receivers-receiver = l_email.
i_receivers-rec_type = 'B'.
i_receivers-com_type = ''.
i_receivers-notif_del = 'X'.
i_receivers-notif_ndel = 'X'.
APPEND i_receivers.
  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = w_doc_data
      put_in_outbox              = 'X'
      sender_address             = l_sender_address
      sender_address_type        = l_sender_address_type
      commit_work                = 'X'
    IMPORTING
      sent_to_all                = w_sent_all
    TABLES
      packing_list               = i_packing_list
      contents_bin               = i_attachment
      contents_txt               = i_message
      receivers                  = i_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
  l_error = sy-subrc.
Populate zreceiver return code
  LOOP AT i_receivers.
    l_receiver = i_receivers-retrn_code.
  ENDLOOP.
ENDFORM.                    "send_file_as_email_attachment
*&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
      Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
  WAIT UP TO 2 SECONDS.
  SUBMIT rsconn01 WITH mode = 'INT'
                WITH output = ''
                AND RETURN.
ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM

Hi,
Check these links.
http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
Kindly reward points by clicking the star on the left of reply,if it is useful.

Similar Messages

  • I have files that have been on my computer for over a year and all of a sudden they wont open and an error message comes up saying they were improperly downloaded or came in an email attach which is not the case

    I have files that have been on my computer for over a year and I have used them several times and all of a sudden they wont open.  I received an error message saying they are improperly downloaded or came as an email attachement which is not the case.  Please advise

    They seem to be word files - they will open if I choose "open with" microsoft word, but if I double click they don't open they are appearing as PDF on my screen.  I even opened one and then tried to "save as" making sure I chose .doc and they still appear as PDF
    I just created a new document response.doc in word and when I saved to my desktop it appears as a PDF file and I absolutely did not create a PDF or save as PDF it was a simple word
    doc.
    The message says "Adobe reader could not open response.doc because it is either not a supported file type or because the file has been damaged (for example attached in an email and not properly decoded)
    The reader version is I believe the most current, I always update when prompted.  OS is Windows 8

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • I bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent !

    i bought an iphone 4 from my friend and he do not know his apple ID and we are trying to know the email attached to is apple ID so we can rest it cause he forgot them as well and the reset button in the 2 steps always says that the email is always sent ! ( even if you wrote a worng ID like ( asdasdasd ) it will say sent !! how come and now am trying to know or need a hint on that email so my freind could try to remember it !
    to those who will think that this phone is stolen , no its not and i would love to go to apple store if there is 1 in jordan so they can help us ,
    i have everything with this iphone the box the catalog its serial number , everything but the ID and the (and apple ID is everything as you know)
    so please if anyone have any suggestion to help me , and even apple it self if the can help me to get a support from them cause i tried everything to contact them by mail or any other option since as i said there is no apple store in jordan

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

  • HT5275 When I download an attachment, it doesn't open in a new window.  It goes to my finder, but I must click on an email attachment at least 3 times in order to find it there.  Is there a way to change the preferences to simply open attachment in a new

    When I download an attachment, it doesn't open in a new window.  It goes to my finder, but I must click on an email attachment at least 3 times in order to find it there.  Is there a way to change the preferences to simply open attachment in a new window?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • I have an email attachment that I would like to be able to access when NOTconnected.  I found one suggestion that I should open the attachemtn iniBooks and save it there.  Unfortunately, I have no idea how to do that.

    I am trying to store an email attachment (an Excel spreadsheet) somewhere on my iPhone 5 to be able to access it easily in the future.  I do not need the ability to work on it, just to access it, although it would be convenient if i could load updated versions over it on a regular basis.  The spreadsheet was created in Excel on a laptop with Win 7.  I read one posting that said I should save the document to iBooks and then could open it whenever I wanted.  The same posting refered to something in the upper right corner of the attachment that enabled me to save it to iBooks.  Unfortunately, there is no such option showing when I looked at the file, which I did email to myself.  I was able to open the attachment, but can't get beyond this point.  My tech ability doesn't go much beyond being able to power up my phone, so I need a really simple solution, if one exists.

    First of all, Excel file can't save to iBook.  (iBook only can view PDF files). That's why you don't see it in "open in" options.  In order for you to save excel, you will need a third party app like Numbers, Office2.  There are a few free apps that can use to view.  I used Office2 from Byte2, because I can not only store and view later, I can do some edit too.  Especially when you want to edit a few numbers and re send them to my office or clients will be very useful for me. 

  • Mac won't open some files MasterPlan.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

    I had this problem of not being able to open some files a couple of years ago and eventually was able to fix it but i can't remember how. Any help would be grateful.

    The following document should help: Error: Adobe Reader could not open '*.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and was not correctly decoded.)
    Please update this thread if your issue is resolved.
    Thanks,
    Shashi

  • Email attachment in PDF problem with Images

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

    Hi All,
    Can any one tell me how to solve the problem with Email attachment in PDF. If i remove the logo of the client in the Smartform i am getting the Email attachment fine but when i put back the image in the smartform the PDF is giving error and not opening the attachment.
    Regards,
    Lakshmikanth.

  • How to convert a workbook into PDF and broadcast as Email attachment

    Hello Gurus,
    i have installed the ADS (Adobe Document services). I would like to broadcast workbooks as a pdf file to some user.
    When i open the workbook and go to Broadcast --> Setup a broadcast setting for this workbook. The distribution type is
    Broadcast E-mail; Broadcast E-mail (Bursting); Broadcast Portal; Broadcast Multichannel and Output Format only MS Workbook and Link to current Data. Here i miss the possibility as PDF.
    Where can i set up that the workbook should be broadcast as PDF.
    Any help appreciated.
    Thanks and kind rgerads,
    Murat

    Thanks all for your answers,
    i also read that with changing the format in Report designer then broadcasting via PDF. Is there no possibility for PDFs for MS Excel Workbooks? How does it work when opening the query in Report designer? What do i have to do there but it is no solution for us because in the workbooks we use GET BEX DATA formulas and just show parts of the analyisis grid. I need a proper solution how to use broadcaster converting workbooks into PDF an send them as email attachment
    Thanks,
    Murat

  • I bought an ebook but when I  try to download it I receive a message stating 'Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wa

    Can anyone assist me? I keep receiving this message when I download my ebook ''Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't decoded).'
    Much appreciated

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • Deleted the email attached to old Apple Acc & forget password. Still registered to my iPod? How do I use a new Apple ID in App Store for my iPod?

    I have deleted the email address attached to my Apple ID. I know what the email address is but it is non-existant. I thought I remembered the password but apparently it is incorrect? When I go to the App Store on my iPod and click my account to try and sign out. It does nothing and the button is faded out. When I try to download a free app it asks for the password for the old account with a deleted email attached to it. How do I sign out of this account on my iPod so I can sign in to another Apple ID to download apps?

    - Go to settings>Store and sign out and sign into another account.
    NOTE:
    - Apps are locked to the account that purchased them.
    - To update apps you have to sign into the account that purchased the apps. If you have apps that need updating purchased from more than one account you have to update them one at a time until the remaining apps were purchased from one account.
    Try recovering access to your account by using the secret question methosd
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.
    Then
    I no longer have an email address that was also my Apple ID. Can I still use the email address as my Apple ID?
    Apple recommends you change your Apple ID to your current, working email address. This will not create another Apple ID, it will only change it to your working email address. See Changing the name you use for your Apple ID if you'd like more information.

  • How to set up link on icon to forward PDF file as email attachment

    HI,
    I need urgent help.
    I know this used to work but cant find it in Acrobat XI.
    We created a file for a client, on the last page is a twitter, facebook and linkedIn icon which are set as links in Indesign to forward to the matching social network. Works fine when I created PDF with Hyperlinks.
    We also set up an envelope symbol which shall get, now where it is set up as PDF,  a link, so the PDF itself can get forwarded as a email attachment.
    I can not find this function on a MAC nor on PC Acrobat XI.
    Hope you can help, much appreciated!!!!
    THANKS

    Have a look at this thread:
    http://forums.adobe.com/thread/1275490?tstart=0
    where there is a script for submitting the PDF by email.

  • Acrobat XI email attachment does not appear to work with Outlook 2013 64 bit

    When attempting to send email from Acrobat, the following Microsoft Office Outlook 2013 64 bit error message is received: 
    "Either there is no default mail client or the current mail client cannot fulfill the messaging request.  Please run Microsoft Outlook and set it as the default email client."
    Naturally, Outlook was set as default client and then reset for good measure.  I did both Outlook and Acrobat repairs and have the latest 11.0.2 installed.  All other internal Office 2013 email applications work as well as seemingly all other embedded Acrobat funcitions with Office 2013 work well.  Office 2010 64 bit and Acrobat X worked fine.  I upgraded to Office 2013 64 bit and had the problem with Acrobat X.  I then upgraded to Acrobat XI and the issue remained.
    Most importantly, I intalled Office 2013 64 bit on my laptop with Acrobat X.  An the email attachment function works perfectly. 
    So, is there some sort of corrupt MAPI file that I have to overwrite on my desktop that the Ofice and Acrobat repair functions do not fix?
    Thanks,
    Joe

    I am sorry.  In my haste, not only did I attach the link the wrong way, but I also did not specify which solution worked.  My problem was a Click to Run issue.  The portion of the thread that deals with the problem is:
    "HurdleRemove replied on May 16, 2013
    I created a solution for this problem for 64 bit Windows 8 where Outlook 2013 was installed as Click-To-Run.......
    ......A  registry edit will fix the problem with Outlook 2013 click to run  installations and enable Outlook to be set as the default mail client.  This registry edit will for many third party programs eliminate the error "Either  there is no default mail client or the current mail client cannot  fulfill the messaging request. Please run Microsoft Outlook and set it  as the default mail client." It  worked to resolve the problem where Adobe Acrobat was generating this  error.
    The registry edit is here for Office  2013 64 bit click to run installations that will enable Outlook 2013 to  be recognized by third party applications:
    1. Create registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook
    2. Create String value:
    Bitness
    3. Set the String value for Bitness to:
    x64
    This registry edit is an essential element  necessary to resolve the click to run problem that prevents Outlook 2013  from being set as the default mail client. Although it worked with  Adobe Acrobat, it will not completely resolve the  problem for some third party applications like Kerio Outlook Connecter  where the software developer has a web site that includes extra steps  necessary for a full resolution for the Kerio product. The Kerio web  site includes this registry edit in the context  of resolving the Office 365 problem. However, the registry edit works  with Office 2013 desktop as well. A similar register edit could likely  be made for 32 bit versions but the registry path would not include Wow6432Node. I do not have a 32 bit machine and cannot test a 32 bit solution."

  • HT201077 How do I move an email attachment to photo stream?

    I have a great photo from my daughter and would like to view it full screen on my iPad.  I understand it has to be added to the Photos app.  It is currently in an email as an attachment.  How to I get this photo from my email attachment to Photos and presumably to Photo Stream?

    Open the email, tap ad hold the image, in the window that opens tap Save Image.

  • Is there a way to paste an email attachment into a pages template?

    Can I open an email attachment and copy it to Pages to create a Pages document that I can then edit; etc.?

    That depends of what format the attachment is off.

  • How do I download a song file from an email attachment to my iPad?

    I have a song file in my email. I can hear it when I touch on it, but I want a way save it to my iPad music. I want to put it into my music so it's there on my iPad.

    Okay. This iPad is synced with my husband's iTunes. He's in California with his Mac, I'm here in New York. How do I save music from an email attachment onto the iPad.

Maybe you are looking for

  • Problem with text resizing and moving

    After much pain with this issue, I'm going to ask for help. The whole issue(s) resolves around text upsizing, changing and moving in Muse. No amount of grouping, layering and locking has stopped this issue for me. I don't have divs that are a pixel o

  • Where is "save as Adobe pdf "in backstage for word 2013

    Hi, I saw "save as adobe pdf" in the file tab in office 2013 for some users but I dont know how can I aktive it for my pc?

  • Statutory Information Tab Missing on Assignment Form

    Hello Group, I have open India, Responsibility and UK responsibility. The problem is that I am not able to see the Statutory Information Tab enable. This tab is disable Can anyone suggest me how can i Enable the filed UK Super HRMS Manager > Enter an

  • Features vs. Annoyances - template auto update

    I know one persons feature is another ones annoyance. - here's one of mine - When I update a template is there a way to have it either automatically update all the pages that are used by it? The way I work I make a change to the template then I want

  • My USB external hard disk won't work anymore after I updated to 10.4.10

    As I said in title since it's quite urgent to me. ALL of my files is in my external hard drive. It's format as FAT or FAT32 I can't remember since I use it between mac and PC. More than that IT IS WORKING FINE UNDER PC. Before updating to Mac 10.4.10