Email Excel attachement showing dollar amount instead of date.

Hi,
I emailed an Excel (.xlsx) file from my pc to two people.  They both opened the attachment on their iPads from mail.  One person is seing the only date column as a dollar amount with a dollar sign.  The other person is showing the column correctly.  I looked for any setting that could cause this, but I cannot see anything.
Any suggestions would greatly be appreciated.
Thank you.

Hi SZ,
you can configure what properties are showed for resources within the collection or the resource renderer. Check this out and around: http://help.sap.com/saphelp_ep50sp5/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm (especially "Visible Properties"). Take some time to understand the mechanisms...
> We are using EP5
Ah, <i>you</i> are the last one
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

Similar Messages

  • Email Excel attachment with a BOLD row

    hi!
    My requirement is that data in an internal table should be sent as an attachment in an email. There are a few records in the internal table which needs to be in bold(i have the logic to figure out whichones). I am using the below FM  .
    CALL FUNCTION 'SO_OBJECT_SEND'
       EXPORTING
         object_hd_change                 = wa_object_hd
         object_type                       = 'RAW'
       TABLES
         objcont                          = i_text
         receivers                        = i_recv
         packing_list                     = i_packing_list
         att_cont                         = i_att
    Does any body have any idea how to bold a few records in the excel attachment?
    I appreciate your suggestions.
    Thanks,
    manasa
    Message was edited by:
            manasa

    Hi Manasa,
    The Code below is for sending Excel attachment in email. Not sure for BOLD...
    You can copy and paste the following codes and execute..
    Hope this will help you..
    TYPE-POOLS: truxs.
    DATA t5 LIKE t005t OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
    SELECT * INTO TABLE t5
    FROM t005t
    WHERE spras = sy-langu.
    DATA wa_data TYPE truxs_t_text_data.
    CALL FUNCTION 'SAP_CONVERT_TO_TXT_FORMAT'
    EXPORTING
    i_line_header = 'X'
    TABLES
    i_tab_sap_data = t5
    CHANGING
    i_tab_converted_data = wa_data
    EXCEPTIONS
    conversion_failed = 1
    OTHERS = 2.
    DATA stmp(4096) TYPE c.
    DATA itmp TYPE i.
    LOOP AT wa_data INTO stmp.
    itmp = STRLEN( stmp ).
    stmp+itmp = cl_abap_char_utilities=>cr_lf.
    MODIFY wa_data FROM stmp.
    ENDLOOP.
    PERFORM send_email.
    *& Form send_email
    FORM send_email .
    DATA docs LIKE docs OCCURS 0 WITH HEADER LINE.
    DATA excelsize TYPE i.
    DATA excel LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA doc LIKE sodocchgi1.
    DATA excelln TYPE i.
    DATA int_objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA int_objhead LIKE solisti1 OCCURS 2 WITH HEADER LINE.
    DATA int_objtext LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    DATA int_reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA bodyln LIKE sy-tabix.
    DATA output_data TYPE ssfcrescl.
    excel[] = wa_data[].
    excel table sizes
    DESCRIBE TABLE excel LINES excelln.
    Body Email
    int_objtext-line = 'Test Body'.
    APPEND int_objtext.
    DESCRIBE TABLE int_objtext LINES bodyln.
    READ TABLE int_objtext INDEX bodyln.
    CLEAR doc.
    doc-doc_size = ( bodyln - 1 ) * 255 + STRLEN( int_objtext ).
    doc-obj_name = ' '.
    doc-sensitivty = 'P'.
    doc-proc_syst = sy-sysid.
    doc-proc_clint = sy-mandt.
    CLEAR: int_objpack, int_objpack[].
    int_objpack-transf_bin = ' '.
    int_objpack-head_start = 1.
    int_objpack-head_num = 0.
    int_objpack-body_start = 1.
    int_objpack-body_num = bodyln.
    int_objpack-doc_type = 'RAW'.
    int_objpack-obj_descr = 'Test'.
    APPEND int_objpack.
    CLEAR: int_objhead, int_objhead[].
    int_objhead = 'Attachment'.
    APPEND int_objhead.
    int_objpack-transf_bin = 'X'.
    int_objpack-head_start = 1.
    int_objpack-head_num = 0.
    int_objpack-body_start = 1.
    int_objpack-body_num = excelln.
    int_objpack-doc_size = excelsize.
    int_objpack-doc_type = 'XLS'.
    int_objpack-obj_name = 'excel'.
    int_objpack-obj_descr = 'test.xls'. "File name
    APPEND int_objpack.
    Set Receiver
    int_reclist-receiver = 'SAPUSER'.
    int_reclist-rec_type = 'B'.
    int_reclist-notif_del = 'X'.
    int_reclist-notif_read = 'X'.
    int_reclist-notif_ndel = 'X'.
    int_reclist-express = 'X'.
    APPEND int_reclist.
    doc-obj_descr = 'Report in Excel'.
    Sending Email
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc
    put_in_outbox = 'X'
    commit_work = 'X'
    TABLES
    packing_list = int_objpack
    object_header = int_objhead
    contents_bin = excel
    contents_txt = int_objtext "Body
    receivers = int_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.
    ENDFORM. " send_email
    Note:
    - If you are using FM SAP_CONVERT_TO_TXT_FORMAT you will not be able to execute this program in the background.
    - dont forget to change 'SAPUSER' to your SAP user ID
    - you can check the email by using tcode 'SBWP'.
    Reward points if this Helps.
    Manish

  • Email excel attachment

    I am sending an email with an excel attachment using fm SO_NEW_DOCUMENT_ATT_SEND_API1. All is well except that the first column of the excel document displys a load of blank spaces in front of the data item. Is there any way of cutting out the blank spaces?
    Code is as follows:
    Populate the email header
      CONCATENATE text-m09 l_pltxt INTO docdata-obj_descr.
      docdata-obj_name = text-m11.
    Populate the body of the mail
      MOVE text-m10 TO objtxt.
      APPEND objtxt.
      DESCRIBE TABLE objtxt LINES tab_lines.
      READ TABLE objtxt INDEX tab_lines.
    Size of the document in bytes. The calculation is
    Length of last line + number of remaining lines * 255
      docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
      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.
    Get end of line character
      l_eol = cl_abap_char_utilities=>newline.
    Set up attachment
    Column headers
      CONCATENATE 'Requested by'
                  'Serial Number'
                  'Part Number'
                  'Inst.or Dism.'
                  'Mvmnt.To(Sup.Equip.)'
                  'Mvmnt.To(Func.Loc.)'
                  'Mvmnt.Date'
                  'Posn'
                  'Start Date'
                  l_eol
      INTO objbin SEPARATED BY ','.
      APPEND objbin.
      CLEAR objbin.
    Lines
      LOOP AT it_equipment.
        CONCATENATE sy-uname
                    it_equipment-sernr
                    zdbmatl-matnr
                    it_equipment-iord
                    it_equipment-equnr
                    it_equipment-tplnr
                    it_equipment-move_date
                    it_equipment-pors
                    it_equipment-start_date
                    l_eol
        INTO objbin SEPARATED BY ','.
        APPEND objbin.
        CLEAR objbin.
      ENDLOOP.
      att_type = 'CSV'.
      DESCRIBE TABLE objbin LINES tab_lines.
      READ TABLE objbin INDEX tab_lines.
    Size of the document in bytes.The calculation is
    Length of last line + number of remaining lines * 255
      objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
      objpack-transf_bin = 'X'.
      objpack-head_start = 1.
      objpack-head_num = 0.
      objpack-body_start = 1.
      objpack-body_num = tab_lines.
      objpack-doc_type = att_type.
      objpack-obj_name = 'ATTACHMENT'.
      CONCATENATE text-m09
                 l_pltxt
      INTO objpack-obj_descr SEPARATED BY space.
      APPEND objpack.
      CLEAR objpack.
      reclist-receiver = '[email protected]'.
      reclist-rec_type = 'U'.
      APPEND reclist.
    Send mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          contents_txt               = objtxt
          receivers                  = 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.
      COMMIT WORK.

    Hi
    Please see the link below
    It will definately satisfy your requirement.
    Re: FI docu
    <b>Mark if helpful</b>
    Regards
    Tushar
    Message was edited by:
            Tushar Mundlik

  • Keynote data labels, can I show category names instead of data values?

    I'd like to recreate the chart below in Keynote. The chart below is an excel line chart with the lines removed. In excel I can opt to show category names instead of values for the data labels. Can I do this in Keynote?

    You can select member name or alias or both in the Dimension property while creating the form.
    It is in the same window as explained earlier, you need to just select both the Member and its Aliase to be displayed on the form.
    Thanks,
    Ravi

  • Email excel attachment issues

    Hi All,
    My requirement is to convert the alv output to an excel and send it to email in background processing.
    Am creating the headers through the field cat headings as the headings are dynamic.
    And the item data through the output internal table of ALV.
    My issue is always the second row's first column is taking spaces in the start because of this the data starts getting truncated.
    Am using a tab delimter to seprate 2 fields and at the end of a row am using line breaker cl_abap_char_utilities=>cr_lf.
    the below is how am filling the packing lists.
    Fill Packing List For body
      lw_packing_list-transf_bin = space.
      lw_packing_list-head_start = 1.
      lw_packing_list-head_num = 0.
      lw_packing_list-body_start = 1.
      DESCRIBE TABLE lt_message LINES  lw_packing_list-body_num.
      lw_packing_list-doc_type = 'RAW'.
      APPEND lw_packing_list TO lt_packing_list.
      clear lw_packing_list.
    Fill the fields of the packing_list for creating the attachment:
      lw_packing_list-transf_bin = lc_x.
      lw_packing_list-head_start = 1.
      lw_packing_list-head_num = 1.
      lw_packing_list-body_start = 1.
      DESCRIBE TABLE t_attach LINES lw_packing_list-body_num.
       lw_packing_list-doc_type =  lv_format.
       lw_packing_list-obj_descr = lv_attdesc.
      lw_packing_list-doc_size = lw_packing_list-body_num * 255.
      APPEND lw_packing_list TO lt_packing_list.
    Fill the mail recipient list
      lw_reclist-rec_type = 'U'.
      lw_reclist-com_type = 'INT'.
      LOOP AT t_recipient_list INTO w_recipient_list.
        lw_reclist-receiver = w_recipient_list-ZSMTP_ADR.
        APPEND lw_reclist TO lt_reclist.
      ENDLOOP.
    I have surfed the google and SDN but could not find any solution to my problem Please help guys..

    Hi,
    go to se38-->enter program name BCS_EXAMPLE_7
      and see the sample code to send XLS attachment...
    in this program it shows how to send the internal table or ALV report data into excel mail attachment
    Prabhudas

  • Email messages now show "To: me" instead of the name or email address and I want to know how to change back to the way it was.

    I use several yahoo email addresses and it has always been very convienent to see if it is a personal or business related message by simply seeing the To: line. Now all of sudden all I see is "me" and it is not at all helpful. I didn't make the change nor authorize it to be done. I am not even sure if this is a Firefox issue or a Yahoo issue. I would like to know how to change back to show the full email name or address.

    hello shackiraq, you'd have to contact yahoo's support about this issue - firefox doesn't handle your emails but just renders a website like it is provided to you by the server of a webmail service.
    https://help.yahoo.com/kb/mail-for-desktop

  • Excel attachment showing incorrect value

    I have started seeing problems in any excel attachments in columns where dates are clearly being used and instead money is represented. This started happening after upgrading to IOS 6. I currently have an Iphone4. Thanks

    I have been able to replicate this after it was brought to my attention today.  Hope this is fixed..

  • How to send an email without attaching the form or the form data?

    I'm creating a form that will have an email button to send an allert that the form was filled out. So far I got it to work based on another example on this forum, but it is attaching the file to the email. I don't want that, all I need is to send an email with a predefined Subject line. Here is the test form I'm trying to tweek:
    http://dl.dropbox.com/u/5098048/Forum.pdf
    Thanks a lot!

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • How to send email with attachment

    Hi friends,
    I am using soa 11.1.1.7.0
    Jdev 11.1.1.7.0
    WebLogic:- 10.3
    I want to generated email with attachment in BPEL 11g. Below is what i did in my bpel process
    Create simple hello world bpel process.
    In email activity below details are given
    <scope name="Email1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
       <variables>
       <variable name="varNotificationReq"
                              messageType="ns1:EmailNotificationRequest"/>
                    <variable name="varNotificationResponse"
                              messageType="ns1:ArrayOfResponse"/>
                    <variable name="NotificationServiceFaultVariable"
                              messageType="ns1:NotificationServiceErrorMessage"/>
                </variables>
                <sequence name="Sequence1">
                    <assign name="EmailParamsAssign">
                        <copy>
                            <from expression="string('Default')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:FromAccountName"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:FromUserName"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Bcc"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Cc"/>
                        </copy>
                        <copy>
                            <from expression="string('')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:ReplyToAddress"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:subject')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Subject"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:to')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:To"/>
                        </copy>
                        <copy>
                            <from><Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/mixed</MimeType><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"> <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/></BodyPart> <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"><MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/><BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/></BodyPart></MultiPart></ContentBody></Content></from>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content"/>
                        </copy>
                        <copy>
                            <from expression="string('text/html; charset=UTF-8')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:MimeType"/>
                        </copy>
                        <copy>
                            <from expression="bpws:getVariableData('inputVariable','payload','/client:process/client:body')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:ContentBody"/>
                        </copy>
                        <copy>
                            <from expression="string('text/plain')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:MimeType"/>
                        </copy>
                        <copy>
                            <from expression="string('SampleStudent.txt')"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:BodyPartName"/>
                        </copy>
                        <copy>
                            <from expression="concat('file:///', bpws:getVariableData('inputVariable','payload','/client:process/client:attachmentURI'))"/>
                            <to variable="varNotificationReq" part="EmailPayload"
                                query="/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[2]/ns1:ContentBody"/>
                        </copy>                
                    </assign>
                    <invoke name="InvokeNotificationService"
                            portType="ns1:NotificationService"
                            partnerLink="NotificationService1"
                            inputVariable="varNotificationReq"
                            outputVariable="varNotificationResponse"
                            operation="sendEmailNotification"/>
                </sequence>
            </scope>
            <!--
              Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
            -->
            <invoke name="callbackClient"
                    partnerLink="sendingemailwithattachmentsprcs_client"
                    portType="client:SendingEmailWithAttachmentsPrcsCallback"
                    operation="processResponse" inputVariable="outputVariable"/>
        </sequence>
    </process>
    I am able to generate Email with attachment but i cant see the data in the attached file.
    I think i need to convert the data before sending as a attachment. Could someone please help me in generating the txt files.
    Regards,
    Rajireddy.

    Re: sending fax

  • Facing problem in excel attachment in the Email

    Hi,
    I am facing one issue while sending an email with an excel attachment . In the excel attachment the actual number of line items are not displaying . For example if i have 4 rows in my internal table the excel shows only the first row of the internal table.
    Can anybody suggest what is the issue.
    Regards,
    Ratheesh BS

    Hi ,
    Please find the code used.
       WRITE: sy-datum TO l_date MM/DD/YY.
        CONCATENATE  text-014   "Enterprise workflow(s) are in ERROR status
                     l_date
                     INTO l_text
                     SEPARATED BY c_colon.
        wa_doc_data-obj_langu  = sy-langu.
        wa_doc_data-obj_name   = text-013.  "SAPRPT
        wa_doc_data-obj_descr  = l_text.
        wa_doc_data-sensitivty = c_false.
    Fill the document data and get size of attachment
         DESCRIBE TABLE i_attach LINES l_cnt.
         READ TABLE i_attach INTO wa_attach INDEX l_cnt.
        IF sy-subrc EQ 0.
          l_size = STRLEN( wa_attach ).
          l_docsize =   ( ( l_cnt - 1 ) * c_length255 + l_size ).
          wa_doc_data-doc_size   = l_docsize.
          wa_doc_data-obj_langu  = sy-langu.
          wa_doc_data-obj_name   = text-013.  "SAPRPT
          wa_doc_data-obj_descr  = l_text.
          wa_doc_data-sensitivty = c_false.
        ENDIF.
        lt_attachment[] = i_attach[]." XLS attachment details
    Describe the body of the message
        CLEAR wa_packing_list.
        REFRESH lt_packing_list.
        wa_packing_list-transf_bin = space.
        wa_packing_list-head_start = 1.
        wa_packing_list-head_num   = 0.
        wa_packing_list-body_start = 1.
       DESCRIBE TABLE lt_message LINES wa_packing_list-body_num .
        wa_packing_list-doc_type   = c_raw.
        APPEND wa_packing_list TO lt_packing_list.
        CLEAR wa_packing_list.
    *l_docsize = 5000.
    Create attachment notification
        wa_packing_list-transf_bin = c_active.
        wa_packing_list-head_start = 1.
        wa_packing_list-head_num   = 1.
        wa_packing_list-body_start = 1.
        DESCRIBE TABLE lt_attachment LINES wa_packing_list-body_num.
        wa_packing_list-doc_type   =  c_xls.
        wa_packing_list-obj_descr  =  text-022.
        wa_packing_list-doc_size  =  wa_packing_list-body_num * c_length255.
        APPEND wa_packing_list TO lt_packing_list.
        CLEAR: wa_packing_list,l_cnt.
    Email to be sent for multiple receivers
    Add the recipients email address
        LOOP AT s_receiv INTO wa_email.
          l_email = wa_email-low.
          wa_receivers-rec_type   = c_rectyp.
          wa_receivers-receiver   = l_email.
          wa_receivers-com_type   = c_internet.
          wa_receivers-notif_del  = c_true.
          wa_receivers-notif_ndel = c_true.
          APPEND wa_receivers  TO lt_receivers.
          CLEAR : wa_receivers, wa_email, l_email.
        ENDLOOP.
        IF lt_receivers[] IS NOT INITIAL AND
           i_itemrecord[] IS NOT INITIAL.
    email sender
          l_sender_address = sy-uname.   " Stores the sender's address
    *Function  module to handel mail sending.
          CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
            EXPORTING
              document_data                    = wa_doc_data
              put_in_outbox                    = c_true
              sender_address                   = l_sender_address
              sender_address_type              = c_sender_address_type
              commit_work                      = c_true
        IMPORTING
          SENT_TO_ALL                      =
            TABLES
              packing_list                     = lt_packing_list
              contents_bin                     = lt_attachment
             contents_hex                     = lt_attachment1
              contents_txt                     = lt_message
              receivers                        = lt_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

  • Issue in Sending email with EXCEL attachment

    Hi,
    Im using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 for sending emails to a list of recipients with an excel attachment. In the attachment data, as the field length is 255 for the structure SOLISTI1, for the records having more than 255 characters, data is being truncated. I did a search in this forum and done some changes , still it is not working properly.
    I have used SCMS_TEXT_TO_XSTRING, SCMS_XSTRING_TO_BINARY FMs for converting the data to hexa format. This case, records having more than 255 are displayed properly in the attachment, but there are blank lines inserted between two records.
    Please suggest me to resolve this isssue.
    Thanks in advance.
    Jayashree

    Hi Jayashree,
    you might want to check out the example link by Saso in his post Send external email from within ABAP program to xls.
    For the rest I can only guess that there might be some issues with the format you use for Excel. In case of empty lines and using a text format for Excel the issue is in most cases that there are too many carriage return line feeds in the text fiel (cl_abap_char_utilities=>cr_lf).
    Hope that helps.
    Best Regards
    Michael

  • How to send pdf or excel attachment as saved alv layout in email

    Hi Guru,
    I am developing a report in which, i am sending report as excel attachment after clicking a button on top of alv grid, and pdf attachment after clicking another button on top of alv grid. I am sending mail by two ways they are:
    1) I am populating my internal table value in separate internal table and converting that to string and sending email as excel attachment.
    2) And am converting report as spooljob, and using abapspool 2 pdf function module i am converting spool to pdf, after that am send that pdf as mail attachment.
    Now my requirement is i need to send email attachment as layout which is displayed in the alv screen, even i hide a column and  change the  layout  it is going with all the columns. What should i do for this problem.
    Regards,
    Rithika

    Hi,
    Check if the below steps will solve the problem.
    * Get the run time ALV layout (field catalog) using the below method.
         data: r_grid TYPE REF TO cl_gui_alv_grid.
         CALL METHOD r_grid->get_frontend_fieldcatalog
              IMPORTING
                   et_fieldcatalog = t_fcat.
    * Adjust the download table according to t_fcat.

  • Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
    Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

  • EXCEL attachment as EMAIL to USER - When USER executes REPORT in BACKGROUND

    Hi Friends,
    I have 10 records in Internal Table. In BACK GROUND execution, I have to send this 10 records as EXCEL attachment through EMAIL to the USER who executed in background.
    How to do this? Thanks in advance.
    Regards,
    Viji.

    hi,
    the following excerpt converts to excel:
    REPORT ZEX_DATATOEXCEL .
    Parameters: P_file like RLGRAP-FILENAME.
    data : begin of int_head occurs 0,
    Filed1(20) type c,                     " Header Data
    end of int_head.
    data : begin of int_data occurs 0,
    Field1(20) type c,                     " Data
    Field2(20) type c,
    Field3(20) type c,
    Field4(20) type c,
    end of int_data.
    int_head-Filed1 = 'Sales Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Sold-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Purchase Ord'.
    APPEND int_head.
    CLEAR  int_head.
    int_head-Filed1 = 'Ship-to-Party'.
    APPEND int_head.
    CLEAR  int_head.
    int_data-field1 = '1JOHN'.
    int_data-field2 = '2TOM'.
    int_data-field3 = '3BRAD'.
    int_data-field4 = '4PETER'.
    Append int_data.
    Clear int_data.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    file_name = p_file " path offile where u need to download
    * CREATE_PIVOT = 0
    * DATA_SHEET_NAME = ' '
    * PIVOT_SHEET_NAME = ' '
    * PASSWORD = ' '
    * PASSWORD_OPTION = 0
    TABLES
    * PIVOT_FIELD_TAB =
    data_tab = int_data "internal table with data
    fieldnames = int_head "internal table with header
    EXCEPTIONS
    file_not_exist = 1
    filename_expected = 2
    communication_error = 3
    ole_object_method_error = 4
    ole_object_property_error = 5
    invalid_filename = 6
    invalid_pivot_fields = 7
    download_problem = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    got it from
    http://abaplovers.blogspot.com/2008/05/abap-internal-table-to-excel-sheet.html.
    then you can export to spool and mail it.
    ags.

  • Send Email with Excel attachment with formatting(bold, color) in Background

    Hi,
    I have requirement wherein I have to send an email with excel attachment with proper formatting of certain fields in the excel sheet like making it bold or setting different color. The data is available in an internal table. Just to to format it and send an email when the program is executed in background mode.
    Any pointers on this would be highly appreciated!
    Thanks,
    Anil.

    I  resolved my own problem using the BCS_EXAMPLE_7 program as sample.

Maybe you are looking for

  • How can I control the layout?

    There are some table and text data.When the page can't contain all table data,They can express in next page.but the following text info also express in next page.Then white space leaves.I want to control the display style,table\text\table\text......,

  • Closing of Assets

    HI all, can anyone guide me how to do the closing of assets, along with the method and t-code. thanks, n i will assign points.

  • How/where can I download Indesign 7?

    How/where can I download Indesign 7? I have CS6 I need to download 7 to open client's files.

  • Dragging songs?

    i recently have had trouble dragging songs from my library to my iPod. The iPod is formatted for Windows, so i thought that might be problem since I purchased a new iMac. Now i realize that I can't drag songs to playlists either. All I can do is sele

  • REQUIREMENTS FOR PHOTOSHOP ELEMENTS 11

    WHAT BASE SCORE IS REQUIRED TO RUN PHOTOSHOP ELEMENTS 11? MY COMPUTER'S BASE SCORE IS 3.3.