Sending Carbon Copy using SO_NEW_DOCUMENT_ATT_SEND_API1

Hello,
I am using SO_NEW_DOCUMENT_ATT_SEND_API1' to send out email letting people know a direct deposit has been posted to their bank.  My problem is that the Acct department wants a carbon copy sent to their email address for each email that is sent.  Looking at this function, there is a line called
RECEIVERS = IT_RECLIST.  When I take this thru debug, I see IT_RECLIST  defined as TYPE TABLE OF SOMLRECI1.  When I see the fields in IT_RECLIST, there is a field called copy, I assume I set this flag = 'X' to let the function know I want a carbon copy, correct?  Also, I am confused as to where the carbon copy email address would go, because all I see is a field called RECEIVER that is holding the recipients email.  Can you guys set me straight here?

u can't send a carbon copy...instead while sending the email, the same can be sent to 2 or more people at a time. Add the email address to the existing list and it will trigger same email to the department.

Similar Messages

  • Unable to send Carbon Copy mail

    Hi,
    I authenticate to my SMTP server using java mail api,
    I called msg.saveChanges() then
    trans.sendMessage(msg, addrs),
    but unable to send Carbon copy or BCC using javamail api,
    Any suggestions ................?

    I have the same problem.
    This works:
    try {
    message.addRecipient(Message.RecipientType.TO, new InternetAddress("[email protected]", "xxx") );
    catch (java.io.UnsupportedEncodingException e) {}
    This does not:
    try {
    message.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]", "xxx") );
    catch (java.io.UnsupportedEncodingException e) {}
    Nor does this:
    try {
    message.addRecipient(Message.RecipientType.BCC, new InternetAddress("[email protected]", "xxx") );
    catch (java.io.UnsupportedEncodingException e) {}

  • Problems with sending carbon copy and blind copy with gmail

    I recently started using Safari and would like to continue as it is fast. But have problems with it when I use Gmail that I don't have in Firefox or Internet Explorer. For example when I want to forward and email to several people using the blind copy or carbon copy feature - each time I click a name i have to move the cursor back into the box manually because each time you add a name the cursor jumps to the subject line automatically. I forward a lot of email, How can I make using these features work with Safari? Any help is appreciated. Thanks.

    I would delete the account on the iPod an recreate the account. It is easy to make an error or enter the setting and hard to find the error.

  • Error getting while sending the Mails using 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    Hi ALL,
       I HAVE THE REQUIREMENT AS SEND A REPORT AS A MAIL. IAM USING FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' WHILE EXECUTING ITS NOT SHOWING ANY ERROR. BUT IAM NOT GETTING ANY MAIL. I CHECKED IN 'SOST' TCODE. THERE I SEE A MESSAGE LIKE 'CANNOT PROCESS THE MSG TYPE IN SAP SYSTEM'. PLS TELL ME THE WHAT IS THE PROBLE.

    Hi
    Please dont write in Capital letters, it considered as shouting. Hope you are aware of the forum rules.
    You can check if you have made anything wrong in coding by referring wiki link.
    [Sending Mails |http://wiki.sdn.sap.com/wiki/display/ABAP/SendingMails-HomePage]
    Regards
    Abhii

  • Lines Display when sending E-Mail using SO_NEW_DOCUMENT_ATT_SEND_API1

    Good Afternoon,
    I'm using the following code to send e-Mails:
      LOOP AT t_z3emailusr INTO w_z3emailusr.
        t_receivers-receiver = w_z3emailusr-email.
        t_receivers-rec_type = 'U'.
        t_receivers-express  = 'X'.
        APPEND t_receivers.
      ENDLOOP.
      MOVE text-003 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-001 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      LOOP AT t_apqi INTO w_apqi.
        MOVE w_apqi-groupid TO t_mailtxt-line.
        APPEND t_mailtxt.
      ENDLOOP.
      MOVE text-002 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-003 TO t_mailtxt-line.
      APPEND t_mailtxt.
      MOVE text-004 TO t_mailtxt-line.
      APPEND t_mailtxt.
      CLEAR t_mailtxt.
      DESCRIBE TABLE t_mailtxt LINES mailtxt_size.
      MOVE text-000 TO t_doc_att-obj_descr.
      MOVE sy-langu TO t_doc_att-obj_langu.
      MOVE 'O'      TO t_doc_att-sensitivty.
      t_doc_att-doc_size = mailtxt_size * 255.
      CLEAR t_mailpack-transf_bin.
      MOVE 1 TO t_mailpack-head_start.
      CLEAR t_mailpack-head_num.
      MOVE 1            TO t_mailpack-body_start.
      MOVE mailtxt_size TO t_mailpack-body_num.
      MOVE 'HTM'        TO t_mailpack-doc_type.
      MOVE sy-langu     TO t_mailpack-obj_langu.
      APPEND t_mailpack.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = t_doc_att
          put_in_outbox              = 'X'
        TABLES
          packing_list               = t_mailpack
          contents_txt               = t_mailtxt
          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.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Everything is ok except for the text...
    Although i'm appending lines in t_mailtxt the text of the e-mail is continuous...
    How to display text with "line breaks"? Do i need to change the doc_type of t_mailpack?
    Regards,
    Pedro Gaspar

    Yes .. change the doc_type.

  • Problem in sending the attachment using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi,
    I have a requirement to send the details of an internal table to External mail as an attachment. I have used fn.module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to do so. I am getting the attachment but the data is stored in only one row when we checked it in SAP outbox. This is irrespective of TXT, XLS etc. I can not check the exact file in my external mail inbox as the connection is not established in dev & Quality systems. This question was raised earlier by other guys and there was no correct answer provided. If any of you encountered this type of problem & got the solution please help.
    Thanks,
    Ashok

    Hi Buddy,
        Hope this piece of code will definately help you out, Its working at my end.
    Thanks,
    Krishna..
    FORM p_send_email .
      FIELD-SYMBOLS: <field> TYPE ANY.
      DATA : BEGIN OF i_dload OCCURS 0 ,
             dload(1000) ,
           END OF i_dload .
      DATA: it_receivers LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
              w_object_content LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: w_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
      DATA :w_records TYPE zres_records.
      DATA: w_rsnum(10),
            w_bdmng(14),
            w_meins(4).
      DATA: ws_email LIKE adr6-smtp_addr.  "for internal e_mail address
      DATA: ws_email1 LIKE adr6-smtp_addr. "for external e_mail address
    *--Internal table declaration
      DATA: it_objpack   LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: it_objhead   LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: it_objbin    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: it_objtxt    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: it_reclist   LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
      DATA: doc_chng  LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
      DATA: w_longtext(500) TYPE c.
      DATA: v_date(10) TYPE c.
      DATA: text(200)  TYPE c.
      DATA: w_text(50) TYPE c.
    *--Get receipient address
      CLEAR it_reclist.
    *--To send error to internal mail
      ws_email = p_email.
    *--To send error to external mail
      ws_email1 = p_email1.
    *---setting name of file for csv
      CONCATENATE text-003 p_bdoc text-004 INTO w_filename.
      CONDENSE w_filename NO-GAPS.
      IF flag <> 1.
        IF p_email1 IS NOT INITIAL.
    build body of message
          CONCATENATE 'disply message ' ' ' INTO it_objtxt
           SEPARATED BY space.
          APPEND it_objtxt.
          CLEAR it_objtxt.
          it_reclist-receiver = ws_email1.
          it_reclist-rec_type = c_u.
          it_reclist-express  = ' '.
          it_reclist-com_type = 'INT'.
          APPEND it_reclist.
    Set title of object and email
          CLEAR: w_text.
         CONCATENATE 'Greenheck Packing List Data'
                            INTO w_text SEPARATED BY space.
          doc_chng-obj_descr = text-005. "w_text.
          doc_chng-obj_name  = 'Inbound EDI'.
          DESCRIBE TABLE it_objtxt LINES tab_lines.
          READ TABLE it_objtxt INDEX tab_lines.
          doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_objtxt ).
    *--Move the Report Name as the Heading line for email file
          CLEAR: w_longtext.
    MOVE: text-012 TO w_longtext.
          w_longtext = 'name of report for testing'.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append Blank Lines
          APPEND it_objbin. CLEAR it_objbin.
          APPEND it_objbin. CLEAR it_objbin.
    *User name
          CLEAR text.
          MOVE: 'User:' TO text,
                 sy-uname TO text+6.
          it_objbin = text.
          APPEND it_objbin. CLEAR it_objbin.
    ---appending heading to Internal table of Email
          CLEAR: w_longtext, w_xblnr_1 , w_aubel_1,   w_vemng_1,
                 w_matnr_1,  w_harmdesc_1, w_hc_1, w_cooland1_1,
                 w_brgew_1,  w_tknum_1,   w_vbeln_1,  w_vbeln1_1,
                 w_exidv_1,  w_vhilm_1,   w_pack_no_1,
                 w_brgew1_1, w_laeng_1,   w_breit_1,
                 w_hoehe_1,   w_vol_1.
          w_xblnr_1 = 'Cust PO No.'.
          w_aubel_1 = 'Sal Order'.
          w_vemng_1 = 'Pack Qty'.
          w_matnr_1 = 'Model no.'.
          w_harmdesc_1 = 'Hrm Desc'.
          w_hc_1 = 'Hrm Code'.
          w_cooland1_1 = 'Country of Origin'.
          w_brgew_1 = 'Net Wt.'.
          w_tknum_1 = 'Shipment'.
          w_vbeln_1 = 'Billing Doc'.
          w_vbeln1_1 = 'Delivery'.
          w_exidv_1 = 'Pkg ID'.
          w_vhilm_1 = 'Pkg Desc'.
          w_pack_no_1 = 'Pkg No.'.
          w_brgew1_1 = 'Gross Wt'.
          w_laeng_1 = 'Length'.
          w_breit_1 = 'Width'.
          w_hoehe_1 = 'Height'.
          w_vol_1 = 'Cubic Mtr'.
          CONCATENATE w_xblnr_1  w_aubel_1   w_vemng_1
                      w_matnr_1  w_harmdesc_1 w_hc_1   w_cooland1_1
                      w_brgew_1  w_tknum_1   w_vbeln_1  w_vbeln1_1
                      w_exidv_1  w_vhilm_1   w_pack_no_1
                      w_brgew1_1 w_laeng_1   w_breit_1
                      w_hoehe_1   w_vol_1
          INTO w_longtext SEPARATED BY ','.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
          LOOP AT it_tab.
            DO.
              ASSIGN COMPONENT sy-index OF STRUCTURE it_tab TO <field>.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
    Look for Commas in the field value.  If it exists, put quotes around
    value so that the file opens correctly with all the columns aligned
    in Excel.
              SEARCH <field> FOR ',' IN CHARACTER MODE.
    If search for commas was successful.
              IF sy-subrc = 0.
                CONCATENATE '"' <field> '"' INTO <field> IN CHARACTER MODE.
              ENDIF.
              IF sy-index = 1.
                i_dload-dload = <field>.
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
              ELSE.
    Put Comma as a separator for values in IT_DLOAD internal table
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
                CONCATENATE i_dload-dload <field> INTO i_dload-dload
                            SEPARATED BY ',' IN CHARACTER MODE.
              ENDIF.
            ENDDO.
            it_objbin = i_dload-dload.
            APPEND it_objbin. CLEAR it_objbin.
          ENDLOOP.
              flag = 1.
            endif.
        ENDIF.
    ---if to send error file.
        IF p_email IS NOT INITIAL.
    build body of message
          CONCATENATE 'Errors in file ' ' ' INTO it_objtxt
           SEPARATED BY space.
          APPEND it_objtxt.
          CLEAR it_objtxt.
          it_reclist-receiver = ws_email.
          it_reclist-rec_type = c_u.
          it_reclist-express  = ' '.
          it_reclist-com_type = 'INT'.
          APPEND it_reclist.
    Set title of object and email
          CLEAR: w_text.
       CONCATENATE 'Greenheck Packing List Data'
                          INTO w_text SEPARATED BY space.
          doc_chng-obj_descr = text-005.
          doc_chng-obj_name  = 'Inbound EDI'.
          DESCRIBE TABLE it_objtxt LINES tab_lines.
          READ TABLE it_objtxt INDEX tab_lines.
          doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_objtxt ).
    *--Move the Report Name as the Heading line for email file
          CLEAR: w_longtext.
    MOVE: text-012 TO w_longtext.
          w_longtext = 'name of report for testing'.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append Blank Lines
          APPEND it_objbin. CLEAR it_objbin.
          APPEND it_objbin. CLEAR it_objbin.
    *User name
          CLEAR text.
          MOVE: 'User:' TO text,
                 sy-uname TO text+6.
          it_objbin = text.
          APPEND it_objbin. CLEAR it_objbin.
    ---appending heading to Internal table of Email
          CLEAR: w_longtext, w_xblnr_1 , w_aubel_1,   w_vemng_1,
                 w_matnr_1,  w_harmdesc_1, w_hc_1,  w_cooland1_1,
                 w_brgew_1,  w_tknum_1,   w_vbeln_1,  w_vbeln1_1,
                 w_exidv_1,  w_vhilm_1,   w_pack_no_1,
                 w_brgew1_1, w_laeng_1,   w_breit_1,
                 w_hoehe_1,   w_vol_1, w_error.
          w_xblnr_1 = 'Cust PO No.'.
          w_aubel_1 = 'Sal Order'.
          w_vemng_1 = 'Pack Qty'.
          w_matnr_1 = 'Model no.'.
          w_harmdesc_1 = 'Hrm Desc'.
          w_hc_1 = 'Hrm Code'.
          w_cooland1_1 = 'Counrty of Origin'.
          w_brgew_1 = 'Net Wt.'.
          w_tknum_1 = 'Shipment'.
          w_vbeln_1 = 'Billing doc'.
          w_vbeln1_1 = 'Delivery'.
          w_exidv_1 = 'Pkg ID'.
          w_vhilm_1 = 'Pkg Desc'.
          w_pack_no_1 = 'Pkg No.'.
          w_brgew1_1 = 'Gross Wt'.
          w_laeng_1 = 'Length'.
          w_breit_1 = 'Width'.
          w_hoehe_1 = 'Height'.
          w_vol_1 = 'Cubic Mtr'.
          w_error = 'Error'.
          CONCATENATE w_xblnr_1  w_aubel_1   w_vemng_1
                      w_matnr_1  w_harmdesc_1 w_hc_1  w_cooland1_1
                      w_brgew_1  w_tknum_1   w_vbeln_1  w_vbeln1_1
                      w_exidv_1  w_vhilm_1   w_pack_no_1
                      w_brgew1_1 w_laeng_1   w_breit_1
                      w_hoehe_1   w_vol_1 w_error
          INTO w_longtext SEPARATED BY ','.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append the details to Internal table of Email
          LOOP AT it_tab.
            DO.
              ASSIGN COMPONENT sy-index OF STRUCTURE it_tab TO <field>.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
    Look for Commas in the field value.  If it exists, put quotes around
    value so that the file opens correctly with all the columns aligned
    in Excel.
              SEARCH <field> FOR ',' IN CHARACTER MODE.
    If search for commas was successful.
              IF sy-subrc = 0.
                CONCATENATE '"' <field> '"' INTO <field> IN CHARACTER MODE.
              ENDIF.
              IF sy-index = 1.
                i_dload-dload = <field>.
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
              ELSE.
    Put Comma as a separator for values in IT_DLOAD internal table
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
                CONCATENATE i_dload-dload <field> INTO i_dload-dload
                            SEPARATED BY ',' IN CHARACTER MODE.
              ENDIF.
            ENDDO.
            it_objbin = i_dload-dload.
            APPEND it_objbin. CLEAR it_objbin.
          ENDLOOP.
           flag = 0.
          endif.
    -Convert to correct format----
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = it_objbin
          objcont_new = it_objbin.
    create the control table entry for the main email
      DESCRIBE TABLE it_objtxt LINES tab_lines.
      CLEAR it_objpack-transf_bin.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num   = tab_lines.
      it_objpack-doc_type   = 'RAW'.
      APPEND it_objpack.
      DESCRIBE TABLE it_objbin LINES tab_lines.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num   = tab_lines.
      it_objpack-transf_bin = c_x.
      it_objpack-doc_type   = 'CSV'.
      it_objpack-obj_descr  = w_filename. "'billing doc no.csv'.
      it_objpack-obj_name   = 'Billing Doc'.
      it_objpack-doc_size   = tab_lines * 255.
      APPEND it_objpack.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
         PUT_IN_OUTBOX              = c_x
          commit_work                = c_x
        TABLES
          packing_list               = it_objpack
         object_header              = it_objhead
          contents_bin               = it_objbin
          contents_txt               = it_objtxt
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      IF sy-subrc <> 0.
        WRITE: / 'failure in sending mail'.
      ELSE.
         if flag = 0.
           MESSAGE s999(pp) WITH text-007.
         endif.
         if flag = 1.
           MESSAGE s999(pp) WITH text-006.
         endif.
       WRITE: / 'success in sending mail'.
      ENDIF.
        ENDFORM.                    " p_send_email

  • Sending external mail using SO_NEW_DOCUMENT_ATT_SEND_API1

    When i use this RFC by appending the internal table receiver with receiver: sapuser name and rec_type  B it triggers mail to the sap user login .But when i give external email address for receiver with rec_type 'U' it is not triggering any mail.Can anyone please tell me how to use this RFC in sending external mails??

    I went back and you are right "INT" was not the REC_TYPE it was the COM_TYPE.
    Sorry for any confusion caused.
    However,
    I suggest 2 more tests and then I give up and can not think about anything else.
    Try:
    #1
    REC_TYPE = 'X'.
    if it does not work.
    #2
    REC_TYPE = 'R'.
    Hope that will do the trick. I was trying a lot when I had to get that working some time ago.
    And surely the other colleagues point to something which must be setup as well. Transaction SCOT the SMTP settings.
    Furthermore there could be another issue. I remember that I worked at a client who had turned off the send settings on their email server. So SAP finished everything and handed the emails on to a mail server. The mail server had a setting to block any emails from the development environment.
    So that might be another cause of your issue.

  • Unable to send Carbon Copy[cc,bcc] mail after autentication of smtp

    Hi,
    I authenticated to smtp,
    but unable to send mails to both "to" address and
    "cc" address using javamail api.
    Thanks in advance

    More details, please. What exactly is happening?
    Did you read the FAQ?

  • Can I update an iMac from another iMac using Carbon Copy Cloner?

    I change office locations every 6 months and move to a similar iMac setup. At each move, using external hard drives, I update the "older" iMac HD with the current Mail, Addressbook, work files, etc. Currently, I am using Snow Leopard; the machine I am transitioning to is behind, using Leopard.
    This time something new is before me, I purchased (honestly) the Snow Leopard upgrade for the iMac that I am transitioning to. So I have an OS upgrade plus a file plus a lot of application additions/upgrades.
    The question is, can I use *Carbon Copy Cloner* to make an image of my current iMac and upgrade the 2nd iMac with all my recent applications in one fell swoop? I would

    Arthur Levy wrote:
    I change office locations every 6 months and move to a similar iMac setup. At each move, using external hard drives, I update the "older" iMac HD with the current Mail, Addressbook, work files, etc. Currently, I am using Snow Leopard; the machine I am transitioning to is behind, using Leopard.
    This time something new is before me, I purchased (honestly) the Snow Leopard upgrade for the iMac that I am transitioning to. So I have an OS upgrade plus a file plus a lot of application additions/upgrades.
    The question is, can I use Carbon Copy Cloner to make an image of my current iMac and upgrade the 2nd iMac with all my recent applications in one fell swoop?
    Yes. Noondaywitch is correct. As long as the version of OSX is no older than the one the newest Mac came with, and the older Mac is compatible (enough RAM, etc), and the drives are formatted properly, you should be able to clone from one Mac to an external HD, then clone that back to the other one.
    When you make the clone, boot up from it and run several apps, make sure your internet connection and browser work, etc.
    Before cloning back to the other Mac, boot it up from the clone and do the same.
    You may have to change a few settings for your internet connection, of course.

  • Send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi ABAPers,
    I managed to send excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    Let say I send it to my own email account.
    But, when try to open the excel document, from lotus notes, there is warning message produced by the microsoft excel saying:
    "The file is not in a recognizable format.
    and so on....."
    Anyway, when I click button 'OK', excel sheet will be opened and no information lost.
    How can we code the abap program so that the message will not come each time I open the attachment from my lotus notes?
    Or this is just the tab delimited issue?
    Thank you.
    Regards,
    Edward.

    Hi Shan,
    Thank you for replying.
    I have the same as follows:
      DESCRIBE TABLE lt_contents_hex LINES lv_lines.
      lt_packing_list-transf_bin = 'X'.
      lt_packing_list-head_start = 1.
      lt_packing_list-head_num   = 1.
      lt_packing_list-body_start = 1.
      lt_packing_list-body_num   = lv_lines.
      lt_packing_list-doc_type   = 'XLS'.
      lt_packing_list-obj_name   = 'ATTACHMENT'.
      lt_packing_list-obj_descr  = 'Attachment'.
      lt_packing_list-doc_size   = lv_lines * 255.
      APPEND lt_packing_list.
    I'm using lt_contents_hex instead of lt_contents_bin.
    Still the problem is there.
    Is there any other way to calculate the doc size correctly?
    Regards,
    Edward.

  • Can you send encrypted e-mails using SO_NEW_DOCUMENT_ATT_SEND_API1

    We use SO_NEW_DOCUMENT_ATT_SEND_API1 to send e-mails to employees for various notifications.  The e-mails go out through SCOT and are sent to our lotus notes.
    We have a project being implemented, where the data we are sending in the note is kind of sensitive, so we'd like to see if we could send the e-mail as encrypted.   Does anyone know if there is some parameter we can set upon sending that would encrypt the text in the e-mail for sending?

    FORM pssword_prot_encryptpdf .
      DATA: BEGIN OF command_list OCCURS 0.
              INCLUDE STRUCTURE sxpgcolist.
      DATA: END OF command_list .
      DATA: BEGIN OF exec_protocol OCCURS 0.
              INCLUDE STRUCTURE btcxpm.
      DATA: END OF exec_protocol.
      DATA: status LIKE btcxp3-exitstat,
      commandname LIKE sxpgcolist-name VALUE 'ZTEST',
      sel_no LIKE sy-tabix.
    * GET LIST OF EXTERNAL COMMANDS
      CALL FUNCTION 'SXPG_COMMAND_LIST_GET'
        EXPORTING
          commandname     = commandname
          operatingsystem = sy-opsys
        TABLES
          command_list    = command_list
        EXCEPTIONS
          OTHERS          = 1.
      CALL FUNCTION 'SXPG_COMMAND_CHECK'
        EXPORTING
          commandname                = command_list-name
          operatingsystem            = sy-opsys
        EXCEPTIONS
          no_permission              = 1
          command_not_found          = 2
          parameters_too_long        = 3
          security_risk              = 4
          wrong_check_call_interface = 5
          x_error                    = 6
          too_many_parameters        = 7
          parameter_expected         = 8
          illegal_command            = 9
          communication_failure      = 10
          system_failure             = 11
          OTHERS                     = 12.
      CLEAR command_list.
      REFRESH command_list.
      DATA: v_dir_input      TYPE sxpgcolist-parameters.
      DATA: v_dir_input1      TYPE sxpgcolist-parameters.
      break developer.
      command_list-name = 'ZTEST'.
      command_list-opsystem = 'Windows NT'.
      CONCATENATE   'd:\pdf\' main_dtl-vbeln '.PDF' INTO name.
      CONCATENATE 'cmd /c d:\pdf\encryptpdf.exe' '-i' name  '-o ' name  '-u'  hdr-password INTO v_dir_input SEPARATED BY space .
      READ TABLE command_list INDEX sel_no.
      break developer.
      CONCATENATE command_list-opcommand v_dir_input INTO command_list-opcommand SEPARATED BY space.
    * CHECK AUTHORIZATION
      command_list-addpar = 'X'.
      APPEND command_list.
      CONSTANTS: c_extcom    TYPE sxpgcolist-name VALUE 'ZTEST',
                 c_oper      TYPE syopsys VALUE 'Windows NT'.
      DATA: t_result         TYPE STANDARD TABLE OF btcxpm.
      v_dir_input  =  command_list-opcommand.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname                   = c_extcom
          additional_parameters         = v_dir_input
          operatingsystem               = c_oper
        TABLES
          exec_protocol                 = t_result
        EXCEPTIONS
          no_permission                 = 1
          command_not_found             = 2
          parameters_too_long           = 3
          security_risk                 = 4
          wrong_check_call_interface    = 5
          program_start_error           = 6
          program_termination_error     = 7
          x_error                       = 8
          parameter_expected            = 9
          too_many_parameters           = 10
          illegal_command               = 11
          wrong_asynchronous_parameters = 12
          cant_enq_tbtco_entry          = 13
          jobcount_generation_error     = 14
          OTHERS                        = 15.
    ENDFORM.                    " PSSWORD_PROT

  • Status of the mail sending option using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi experts,
    I m using SO_NEW_DOCUMENT_ATT_SEND_API1 function moduel for sending mails to dealers. That is, whenver i execute a Z transaction, the customer invoice details are getting displayed in report output. At the same time, the same output data is sent as mail to the respective dealers.
    Now teh user is asking whether there is any possiblity for the end users to have a proof of the mail which is being sent from the Z transaction. If the mail is sent, the end user who executes the Z transaction (mail sending transaction) should have that mail in his/her SENT ITEMS. If the mail not reaches the dealer, then the user must identify the mail bounce identification.
    Pls tell me how to achve the same..
    Regards,
    Shanthi

    Hi,
    Yes it is possible..
    Just pass 'X' to the exporting parameter 'put_in_outbox'. The user can check the send mail in 'sost'. All the details of the mail will be there. This will be the proof that the mail was sent.
    Reg the 2nd part of your query, if the mail is not delivered to any reciepent or to particular recipient, the details will be there in the SAP outbox, that also you can see through transaction 'sost'.
    Thanks & Regards
    Rocky

  • Sending mails to UWL using SO_NEW_DOCUMENT_ATT_SEND_API1 function module

    Hi all,
    is it possible to view mails send using SO_NEW_DOCUMENT_ATT_SEND_API1 function module to UWL?
    I am receving emails in my SAP Inbox.
    Please guide.
    thanks.

    Hi,
    You can only get the SAP mails into UWL notification tab with the Sonic connector (well of course with some custom development everything is possible).
    One trick to get the workflow for sending "mails" to UWL is to NOT use email sending step, but instead use a decision step in the workflow and send this work item to the user. The decision step can include the same message as the email, and have onl one option "Confirm" (or whatever). These you can easily display in UWL since they are normal work items.
    Regards,
    Karri

  • How can we disassociate an Apple ID from a set of computers formated from a single computer using Carbon Copy Cloner and a single image and then Migration Assistant to install their old profile? The original ID is the Apple ID for all the stores.

    Here is a bit more detail.
    We were replacing old teacher machines and wanted to do it as efficiently as possible. Therefore, we set up one computer, through the OS installation and ran all updates, and then made a disk image so that we can use Carbon Copy Cloner to image all the other computers without having to run all the other updates. Once they were set up to a base level and assigned to a teacher we used Migration Assistant to import all their old files and items. Everything has been fine until recently the computers became aware of needing an update for one or two apps. The machine asks for the original computer's Apple ID for all updates. We have logged out of the apple id and back in with another to test if running the updates will work with that Apple ID and even after a refresh it still asks for the other Apple ID. How can we disassociate the Apple ID from those other computers so that the individual who owns the original is not needed each time there is an update or has to give out their Apple ID password?

    There are two parts to this:
    1) It may be that you should have an Apple Education Support person helping you with this. If you have enough computers for this to be a problem, you may benefit from a Server, a site license, and an occasional visit from an Education Support Specialist.
    2) The brief answer, if you want Individual Apple_IDs to control each computer, is to buy new copies of Mac OS X under those new Apple_IDs and re-download and re-Install. Mac OS X is customized to the Apple_ID before it is downloaded.

  • Can I Use Time Machine With Carbon Copy Cloner?

    As of today, I upgraded my iMac (and eventually my Macbook) to Snow Leopard. I used Carbon Copy Cloner to create a clone of my drive to my external (I did a clean install) and now that Snow Leopard is installed, I only want to put back on to my computer just certain files, such as a select selection of my documents, some of my iTunes library, etc. Given that I couldn't find that option in Migration Assistant, I just manually copied over what I wanted from the clone on my external.
    Still, I would like to keep a daily backup for my iMac's HD and that's where Time Machine comes in, but there's some questions I have before I do it:
    Given that my iMac's HD now has significant free space (as I only brought back, say, 10% of the stuff to my iMac from my external when I cloned on CCC), if I enabled Time Machine to back up my iMac's HD stuff, it wouldn't overwrite the 90% of stuff on my external with the 10% that's on my iMac's HD, would it? For instance, I have about 20,000 songs on my external drive, but maybe have brought back only, say, 5,000 to my iMac (for now). Given that my iMac's iTunes Music folder shows 5,000 songs on it, when TM backs that up to my external drive, it won't overwrite the other iTunes Music folder which has the other 15,000, right? The same thing could be applied for documents, photos, etc. If not, how would TM deal with that? I would hope to avoid the other extreme, which are duplicate files/folders.
    I guess I just want to be able to have the ability to get into that cloned drive on my external if I need to add more stuff to the iMac or if I need it one day to boot up the machine. But I also want to be able to have Time Machine at hand to back up daily the little that is on my iMac right now. So I suppose I'm wondering how can I achieve this without the two conflicting or screwing up?
    Thanks!

    MM1010 wrote:
    when TM backs that up to my external drive, it won't overwrite the other iTunes Music folder which has the other 15,000, right?
    Correct. Time Machine won't delete anything else on the same volume.
    But as Barry says, it will use all the empty space available, before it starts deleting its oldest backups, so there will eventually be a conflict. See #3 in Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum). Also see #1 there, to be sure you have enough space for Time Machine to keep a reasonable "depth" of backups.
    A better bet, however, would be to use a separate external HD. If you have the Time Machine backups on the same physical HD, when it fails (and they all do, sooner or later), you risk losing both.

Maybe you are looking for