Issue with SODIS and email with attachment

Hello all,
I am using CL_BCS classes in report to send the PDF output as an attachment to the email ids.
I also have a standard disclosure template active in the SODIS with some text paragraphs.
When it is active, the BODY of the email which is generated through the programs gets appended in a text (.txt) file and in the email I get this as an additional attachment along with the attachment.
If i deactivate the SODI disclosure, then there is only 1 attachment and that is of PDF file . The body prepared from the email program appears on the email body whcih is correct.
So it seems, the SODIS is forcing the content of the email to be appended in a .txt file which comes as an attachment in the email and what is strange is this is happening in only 1 system. If i run the same pgm on another system, everything works fine.
Does any body have an idea what could be wrong ?
BR
Nilesh

Hello,
this is the normal behaviour, if you use the disclosure option.
In this case the mailbody will only contain the disclosure text, and
all the other informations will be added as an attachment.
This behaviour cannot be changed.
Regards,
Wen Peng

Similar Messages

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • Issue with attachment in OAF

    Hi All,
    I have a issue with attachment functionality in OAF,
    I have a custom OAF page, in the header part of the page i have one attachment button there i am attaching a file, so i am able to attach the file the issue is.
    when the page loads for the first time it will populate a sequence in one of the field in the page , but when i am clicking the add attachment button i am able to aatched a file but the sequence getting chnaging, but i need the same sequence wht it was displayed during first page loads, so how i can restict page refreshing in attachment functionaly so that i can store the attachment file in the same sequence number what it was populared first time, please help me on this.
    Thnaks

    I could able to solve the issue by using the above code in an if else statement, in process request i kept
    like below:
    if (aFlag.equals("attachment")) {
    am=(OAApplicationModule)pageContext.getSessionValueDirect("xxretainAM");
    else
    rest of my code in process request
    Thnaks

  • Convert the spool to xls format and email through attachment to the user

    Hi all,
    When I execute a report in background, I get spool. I need to convert the spool to xls format and email through attachment to the user.The xls file should not be saved on local system.
    If I use the Spool Recepient tab in SM37 it mails the spool list as .txt file to the mail receipient. But I need to send it as an .xls file.
    Can any one help me on this

    Did you get the solution? i have the same problem.

  • Issue with Attachment download from Mail?

    I am having an issue with an attachment. I opened the attachment from an email account on my iPad2 and the screen has just gone black. Mail will not let me out of trying to view the attachment. I tap on the screen and nothing happens. It has frozen my mail accounts. Any one have an idea how to cancel the attachment if the mail is not responding?

    Do a hard reset: Press and hold on the Home button and the On/Off button at the same time. Continue to hold even after you see the "Slide to Power off" screen. Hold until the Apple logo comes up.

  • Issues with attaching an Adobe Story File to a clip in PPCC

    Hi,
    I read through a lot of stuff and watched a couple videos but still have an issue with the attachment.
    What I do is I go into the Metadata and assign my scene number (3.01). I export the script as a .astx. File/right click, attach story file-> select the file go back to metadata and it tells me nothing found. This is really frustrating what's wrong with it?

    Worked this one out, I had the bullet set on file and not staging

  • P9981 issues in BBM and email

    Hello,
    I have recently bought the P9981 through eBay. However, I am facing issues with BBM and emails. 
    After I have received the phone and I updated the BBM and the software I recognized that the BBM wasn't working although I have a BlackBerry plan with At&t that is working just fine with my old bold blackberry 9900. 
    I have contacted the seller and he told me that BBM wouldn't be working because there is no BIS/ BES on this device. 
    After I updated the BBM I am not able to access the BBM because it shows a message saying
    "Cannot Set Up BBM" and other times it shows "Setting up BBM" but it doesn't set it up !
    I've searched for solutions online put I found nothing.
    I called At&t and make sure that everything is activated but still it didn't work. 
    Although when I first started the phone I was able to access the BBM however, it wasn't working when I tried adding people. 
    I am not sure if I would be able to make it work !
    Please advice !!
    Thank you,

    Hi and Welcome to the Community!
    There's nothing to add to your BB per se. Using the BB-specific services is a matter of your carrier providing those to you. And there are some things that must happen for them to do so.
    Any BB can be used on any carrier that runs the same radio frequencies that the BB is capable of (and I've no idea if your's are such). But, to bring a BB onto a carrier network that they did not sell to you, there are several hurdles to cross:
    1) The carrier must say "yes" to the fact...they own their network and have every right to say what devices will be allowed to connect to it. If they say "no", then that's the end of it.
    2) You must be sure that your BB is properly unlocked from it's originally manufactured-for carrier...see this helpful thread for details:
    http://supportforums.blackberry.com/t5/General-BlackBerry-Functions-and/Unlocking-your-BlackBerry-Gu...
    3) You must get all of your voice level services functioning on the carrier, before you even try anything about data
    4) You must subscribe, from the carrier, to an adequate data plan to enable the BB-proprietary services you desire
    5a) If the carrier directly supports your specific model BB, then you can proceed with registering the BB onto their network, generating the proper Service Book delivery to your BB, and proceeding to function.
    5b) But, if the carrier does not directly support your specific model number of BB (which, from what I can tell, the AT&T network does not automatically support the 9981), then the challenges are much greater as most carrier systems will not deliver, to the BB, the necessary service books to enable the BB-proprietary data services, even if you do subscribe to them.
    So, depending on all of that, your BB may or may not ever fully function on that carrier network. It can be quite tricky to accomplish, especially if 5b applies. So take a look at all of that and decide how you wish to proceed. Most folks wind up just buying a new BB if 5b applies.
    The official download portal is what I use to determine if a carrier network natively and automatically supports a specific BB model number:
    http://us.blackberry.com/support/apps-and-software/desktop-and-device-download-sites.html
    But, that should be validated by asking the carrier the specific question: "Does your network natively support the P9981 for automatic registration and delivery of service books?".
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Issue with attaching photos to email

    Hi, when I want to attach a photo to an email, I go to attach a file and the only choice I have to is to attach my entire iPhoto library.  Can anyone help me work out how I can send individual photos?  Thanks, Sue

    How to Access Files in iPhoto
    LN

  • Microsoft compatibility issues with attachements and formatting

    I received MacBook as a gift, along with purchased iwork software. The gift giver was told that iwork would be able to work with Microsoft users without problems. Now that a project is due, I find that Microsoft users cannot:
    open attachments from Pages or Numbers or, if on the rare ocassion that they can, they receive a very small copy.
    Most of my work is done with Microsoft users and we will be exchanging tables and spreadsheets.
    Question 1--- was the gift giver mis-informed that iwork works with Microsoft Excel and Word?
    Question 2---if not mis-informed, what am I doing wrong or what am I not doing that makes it impossible for attachments from iwork to be opened by Microsoft users?
    Question 3---if mis-informed, what have people found to interact exceedingly well with Microsoft Windows users?
    Thank you so much for any advice.

    Thank you SO much! Just tested it and it worked beautifully at the other end.....in excel, word and PDF form. I had searched a # of "help" and "support" venues with with many different search terms and never successfully found this info for some reason
    I can assure you that you have done a great deed today as some important docs involving a bunch of children needed to be delivered within a few hours.
    Have a great weekend and go into it knowing you've made a difference in a lot of lives just by taking the time to answer a simple question.
    Thank you again, Dennis!
    sjz

  • Issue with attaching pdf in work item

    Dear Friends,
      I am trying to attach Adobe form output to a work item and send it in for approval. I have converted the Adobe form output to binary format inside the program using function module 'SCMS_XSTRING_TO_BINARY and passed it to the workflow container while starting the workflow and then inside the workflow i used the below code inside a method convert the binary to xstring format and then attach it to the workitem. But when I open the attachment from business workplace I am getting an error that There was an error opening this document, the file is damaged and could not be repaired.
      I tried to debug the method and found that everything seems to be fine, even I checked the Adobe output by sending it as an email attachment and I am able to open the same Adobe form attachment in the email. So I suspect that I am doing something wrong while converting the same(binary to xstring) in the workflow. Please advise what would be wrong with the below code.
    DATA:  wid TYPE swwwihead-wi_id,
                op_len TYPE wsuser-wsuserinstanceno,
               it_solix_tab TYPE solix-line OCCURS 0.
    DATA : zswr_att_header TYPE swr_att_header,
               zswr_att_id     TYPE swr_att_id,
               lo_sofm TYPE swc_object,
               zxstring TYPE xstring.
    swc_get_element container 'WID' wid.
    swc_get_element container 'OP_LEN' op_len.
    swc_get_table container 'IT_SOLIX_TAB' it_solix_tab.
    CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
       EXPORTING
         input_length = op_len
       IMPORTING
         buffer       = zxstring
       TABLES
         binary_tab   = it_solix_tab.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.
    zswr_att_header-file_extension = 'PDF'.
    zswr_att_header-language = 'EN'.
    BREAK-POINT.
    CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
       EXPORTING
         workitem_id = wid
         att_header  = zswr_att_header
         att_bin     = zxstring
      IMPORTING
        att_id      = zswr_att_id.
    swc_create_object lo_sofm 'SOFM' zswr_att_id-doc_id.
    swc_set_element container 'SOFM' lo_sofm.

    Hi
    I feel like this part of teh code might be creating a a problem.
    zswr_att_header-file_type = 'B'.
    zswr_att_header-file_name = 'Attachment.pdf'.   "<------ Just give the name of the file , no extension needed as .pdf"
    zswr_att_header-file_extension = 'PDF'.              " <---- Since here you are already specifying the type of file.
    zswr_att_header-language = 'EN'.
    Regards
    Pavan

  • Issue with attachment

    Hi,
    I have added an attachment to a custom page and I've create a custom table for this attachment with two columns :
    1. FILE_OBJECT with BLOB type
    2. FILE_NAME with VARCHAR2
    I am able to upload successfully any file to the FILE_OBJECT column (and the file display as 'VIEW' link ) but the issue how I can display the file name into the FILE_NAME column
    Please advise.
    Regards...Ashraf

    I ran the gpupdate on some machines and it seems to work but got some feedback from 1 user sherandomly has the pdf problem. 
    What is the setting in GPO that define the attachment in outlook?

  • I have an old itunes account .  the email is attached to is no longer a valid email address. have forgotten the password used for that apple id  how do I connect my new email address and apple id to the old one

    I have an old i tunes account attached to an old email account that is no longer valid.  have forgotten the apple id attached to this acct.  so no longer can get the forgotten id sent to the email.  I have made a new apple id and email is attached but my laptop will not allow me to download again and start over.  although really dont want to start over , as have alot of music in my old account.  Please help! thanks

    Hello brjdunn,
    Thanks for using Apple Support Communities.
    You are able to change your Apple ID by following the instructions below.  That way you will still have access to all of your previous purchases:
    Change your Apple ID
    http://support.apple.com/kb/HT5621
    Take care,
    Alex H.

  • Issue in sending the email with XL attachment in ECC version

    Hi,
    I have an issue with sending the email with XL attachment. My program is sending a mail to the receiver with XLS as attachment. Recently we have migrated from 4.6B to ECC version. Same code was worked in 4.6B.But it is not working in ECC version.When i try to open the attachment, i get a Dialog Box with the following message
    "The file is not in a recognizable format.
    1. if you know the file is from another program whih is incompatible with Microsoft excel,click cancel,then open this file in its original application
    2.If you suspect the file is damaged, click help for more information about solving theproblem.
    3.if you still want to see what text is contained in the file, click OK.Then click the text import wizard. "
    when i click OK, the excel sheet is opening with all required data.
    Can anyone kindly tell me why this is happening.
    I am also attaching part of the coding related to this requirement.
    *&      Form  BUILD_XLS_DATA_TABLE
          text
    -->  p1        text
    <--  p2        text
    FORM build_xls_data_table.
      DATA: w_total(13),
      w_clabs(13),
      w_cinsm(13),
      w_ceinm(13),
      w_cretm(13),
      w_cspem(13),
      w_cumlm(13),
      w_exp_date(8),
      w_v_totalp(13),
      w_min_rem(8),
      w_ersda(10),
      w_hsdat(10),
      w_vfdat(10),
      w_ship_date(10),
      w_plnmg(13),
       w_mhdrz(4).
      CLEAR: w_total, w_clabs, w_cinsm, w_ceinm, w_cspem, w_exp_date,
      w_v_totalp, w_min_rem, w_ersda, w_hsdat, w_vfdat, w_ship_date,
      w_plnmg, w_mhdrz.
      w_total = it_batch1-total.
      w_clabs = it_batch1-clabs.
      w_cinsm = it_batch1-cinsm.
      w_ceinm = it_batch1-ceinm.
      w_cspem = it_batch1-cspem.
      w_cumlm = it_batch1-cumlm.
      w_cretm = it_batch1-cretm.
      w_exp_date = it_batch1-exp_date.
      w_v_totalp = it_batch1-v_totalp.
      w_min_rem = it_batch1-min_rem.
      w_plnmg = it_batch1-plnmg.
      w_mhdrz = it_batch1-mhdrz.
      CONCATENATE it_batch1-ersda6(2) it_batch1-ersda4(2)
                  it_batch1-ersda+0(4) INTO w_ersda SEPARATED BY '.'.
      CONCATENATE it_batch1-hsdat6(2) it_batch1-hsdat4(2)
                  it_batch1-hsdat+0(4) INTO w_hsdat SEPARATED BY '.'.
      CONCATENATE it_batch1-vfdat6(2) it_batch1-vfdat4(2)
                  it_batch1-vfdat+0(4) INTO w_vfdat SEPARATED BY '.'.
      CONCATENATE it_batch1-ship_date6(2) it_batch1-ship_date4(2)
                  it_batch1-ship_date+0(4) INTO w_ship_date SEPARATED BY '.'
      CONCATENATE
      it_batch1-werks it_batch1-mtart it_batch1-matnr it_batch1-maktg
    it_batch1-prdha it_batch1-prctr it_batch1-ktext  it_batch1-dispo
      it_batch1-charg it_batch1-lgort it_batch1-herkl w_clabs
      w_cinsm w_ceinm w_cretm w_cspem
      w_cumlm w_total  it_batch1-meins  it_batch1-v_spr_unit
      w_v_totalp it_batch1-waers w_plnmg  it_batch1-meins
      w_ersda w_hsdat w_vfdat  w_exp_date
       w_ship_date  w_mhdrz  w_min_rem it_batch1-zlifer
       it_batch1-doknr it_batch1-dokar it_batch1-doktl  it_batch1-dokvr
               INTO L_STRING SEPARATED BY CON_TAB.
                  INTO l_string SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
      WHILE l_string <> space.
        CALL FUNCTION 'TEXT_SPLIT'
          EXPORTING
            length       = 255
            text         = l_string
            as_character = 'X'
          IMPORTING
            line         = it_attach
            rest         = l_string.
        IF l_string = space.
       CONCATENATE IT_ATTACH CON_CRET INTO IT_ATTACH.
          CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
          APPEND it_attach.
          CLEAR it_attach.
        ELSE.
          APPEND it_attach.
          CLEAR it_attach.
        ENDIF.
      ENDWHILE.
    move l_string to it_attach .
    CONCATENATE it_attach cl_abap_char_utilities=>cr_lf INTO it_attach.
    APPEND it_attach.
    CLEAR it_attach.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          text
    -->  p1        text
    <--  p2        text
    FORM send_file_as_email_attachment.
      DATA:w_length TYPE i.
      DATA:  w_cnt TYPE i,
              w_sent_all(1) TYPE c,
              w_doc_data LIKE sodocchgi1,
              gd_error    TYPE sy-subrc,
              gd_reciever TYPE sy-subrc,
              t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    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 = text-034 .
    w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
    DESCRIBE TABLE it_attach LINES w_cnt.
      DESCRIBE TABLE it_message LINES w_cnt.
      READ TABLE it_message INDEX w_cnt.
    w_length = STRLEN( it_attach ).
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_message ).
      w_doc_data-obj_langu  = sy-langu.
    w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = text-034.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
    ***Start of changes by 501507008 on 29.01.2009
      t_packing_list-obj_descr  = 'MAIL BODY'.
    ***End of changes by 501507008 on 29.01.2009
      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   =  'XLS'.
      t_packing_list-obj_descr  =  text-034.
      t_packing_list-obj_name   =  'filename'.
      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 it_adr6.
        t_receivers-receiver = it_adr6-smtp_addr.
        t_receivers-rec_type = 'U'.
        t_receivers-com_type = 'INT'.
        t_receivers-notif_del = 'X'.
        t_receivers-notif_ndel = 'X'.
        APPEND t_receivers.
      ENDLOOP.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
         document_data              = w_doc_data
         put_in_outbox              = 'X'
         sender_address             = ' '
         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.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = w_doc_data
         put_in_outbox                    = 'X'
      commit_work                      = ' '
    IMPORTING
      sent_to_all                      =
      new_object_id                    =
    tables
            packing_list               = t_packing_list
            contents_bin               = t_attachment
            contents_txt               = it_message
            receivers                  = t_receivers
      contents_hex                     =
      object_para                      =
      object_parb                      =
       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.
      ENDIF.
    ENDFORM.                    " SEND_FILE_AS_EMAIL_ATTACHMENT

    Hi,
    could you tell me which opeion should i select in SCOT under INT node. I have tried with diffrent options. but no luck.
    SAPscript/Smart Forms  - No Conversion
    ABAP List                     - No Conversion
    Business Object/Link     - No Conversion
    RAW Text                     - No Conversion

  • Issue with excel email attachment after upgrade

    Hi ,
    We have recently upgraded from ECC 5.0 non-unicode to ECC 6.0 unicode version.
    An existing program converts the data in an internal table into HTML code and then sends this as an email attachment(XLS format) using the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Now if the mail attachment is sent from the non-unicode system , excel converts the HTML code and shows the data perfectly but when i open the mail attachment from the unicode system, the HTML code sits in a cell of the excel and therefore data is not visible.If i wish to see the data, i will have to cut the data from the cell and paste it .
    I anticipate that this is because of some issue with the unicode.
    Your inputs towards the issue resolution are highly appreciated.
    Thanks,
    Avanish Joshi

    I found the note 1151258 and as mentioned in it, i used the BCS class for sending excel attachments and it worked.
    My sincere apologies for not replying to those who posted queries to this question.
    Thanks.

  • Issue with Email generation using MAPI32.OCX and Outlook 2010

    Our application use MAP32 OCX to generate an email with an attachment (PDF File), but no email address. The user will select the address from their contacts.
    Right now we have an issue with some Outlook 2010 clients that after about 8 emails , Outlook has an issue and hangs.
    Now if we do a mailto://[email protected] before we create the 8th email, Outlook 2010 doesn't hang.  Is there any setting we can set in Outlook 2010 to prevent the "address checking" when the email is generated or do I have to fill
    the email address with a "bogus" address that the user must then overwrite to prevent this from happening?
    Thanks,
    Chad Newman

    Hello Chad,
    Why do you need to use MAPI instead of OOM?
    I'd suggest automating Outlook instead. See
    How to automate Outlook from another program and
    How to automate Outlook and Word by using Visual C# .NET to create a pre-populated e-mail message that can be edited for more information.
    Also you may find the
    C# app automates Outlook (CSAutomateOutlook) sample project helpful.

Maybe you are looking for