Regarding Sending an email by using SO_NEW_DOCUMENT_ATT_SEND_API1

Hi Experts,
I have tow internal tables like ...ITAB1 AND ITAB2.
Is it possible to send an email with these two internal tables as attachments..like Attachment1...Itab1 and Attachment2...Itab2..
Is it possible by using the FM SO_NEW_DOCUMENT_ATT_SEND_API1??
Rgds,
Sruthi.

Hi Shruthi,
You can use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send internal tables as attachment in mail.
Plz check this link:
https://wiki.sdn.sap.com/wiki/display/ABAP/Tosend2inttablesdataastwoattachmentstomailidoutsidesapsystem
It will guide you in solving your problem.
Thanks & regards,
Sarita Singh

Similar Messages

  • Send an email  by using FM SO_NEW_DOCUMENT_SEND_APII

    hi ,
    I am able to send an email by using this FM.SO_NEW_DOCUMENT_SEND_API.
    But now the requirement chnaged for to default the sender ID default.
    I found that this is not possible by the current fm.
    I sthere any other way to send an email with content in Body of email with sender address default.
    Regards,
    Esh

    > I sthere any other way to send an email with content in Body of email with sender address default.
    Hi Eswar.,
    i didnt get you.,
    Suppose if you looged in to user id E00593 and Send Mail ., From address will be  the email Id corresponding to E00593 ( you can see the Email Id for the user in SU01 Tcode )
    When You send the Email using so_new_document_send_api1  the default sender address will come based on the logged In user Id.,
    revert if you are asking about some other issue.,
    hope this helps u.,
    Thanks & Regards,
    kiran

  • Help needed from manojpj regarding sending automatic emails

    HI manojpj,
    I saw your post in this forum regarding sending automatic emails.
    In my project also i want to send automatic emails and also want to retrieve emails automatically.
    i did retrieving and sending emails with user interaction.But i want to do automatically.In your post you told that your having code for sending automatic emails.
    can u please send me that code?
    Thanx a lot

    Dont hold your breath, there is a thread with hundreds of people asking for such code and no-one ever posted it.
    The easiest way is to use a cron job
    If you want to use Java instead of cron have a look at
    http://www.opensymphony.com/quartz/wikidocs/FAQ.html
    Its a java based job scheduler, you can use this to shedule your mails, or, as its open source, you can just take the code you need and add it to your esisting mailing code.

  • When sending an email I used to be able to add a distribution list from my contacts, I now have to add each email address individually, does anyone know how I can add the whole list?

    When sending an email I used to be able to click on a distribution list in my contacts and it would add all the email addresses, I now have to add each email address individually and this takes a lot of time.  Could someone tell me how I can add a distibution list/group to my emails?

    Barney,
    I have four groups.
    I just typed the name of one of those groups in the To field on the iPhone's email, and received:
    Invalid Address
    "<group name>" does not appear to be a valid email address.  Do you want to send it anyway?
    I clicked continue and it remains in my outbox.
    Help is appreciated.
    Thanks,
    Michael

  • I want to build a website that can send out email automatically using c#

    I want to build a website that can send out email automatically using c# and sql server when a date has reached. I have googled but nothing works.
    http://www.quartz-scheduler.net/documentation/quartz-2.x/tutorial/using-quartz.html
    I came across this, but I am still unsure what to do. 

    I came across this, but I am still unsure what to do
    http://forums.asp.net/

  • Send multiple email attachments using FM SO_NEW_DOCUMENT_ATT_SEND_API1.How?

    Hi All,
    I have a requirement to send email to an external ID for which I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1.Can anyone give a sample code to send multiple excel attachments using this function module.
    Points would be rewarded.
    Thanks
    Archana.

    Check the Thread,,
    Re: more than 1 attachements/sheets in SO_DOCUMENT_SEND_API1

  • 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

  • Sending Formated email content using Mail Adapter !

    Hi,
    I would like to send email notification to customer using mail adapter, could you please to advise how to prepared the content of the email with little bit formated like sample below :
    Dear Madam / Sir
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx :
    yyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
    Best Regards,
    Since the constant function only can accept single line, how i can add change line.
    thank you and Best Regards
    Fernand

    Hi Fernand,
    There are a couple of blogs in SDN regarding sending formatted mail using Mail adapter. I guess there is one written by Prakash Arunachalam. Just do a search and it will give you some idea on using XSLT to achieve the result.
    If all you need is multi line in the content, use a UDF and use \n when ever you need a new line and \t for tab space.
    Regards,
    Jaishankar

  • 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

  • How to send the email without using SOST

    Hiiiiii Every1,
    What i m usiing is SO_NEW_DOCUMENT_SEND_API1 FM to send the email to internet add. as well as SAP User.
    The Problem is that i have to go to SOST to send the  Pending mails. and send the jobs manually.
    Then it works all right.
    What i want that i don't wnat to send this jobs/ emails mannually by going to SOST..
    Is it possible to do it without using SOST.

    hi
    i am not sure but give this code a try
    REPORT YEMAIL.
    TABLES: USR02.
    DATA: C(15).
    DATA: SENT LIKE SONV-FLAG.
    DATA: EMAIL_ID LIKE SOFOLENTI1-OBJECT_ID.
    DATA: BEGIN OF EMAIL_DATA.
            INCLUDE STRUCTURE SODOCCHGI1.
    DATA: END OF EMAIL_DATA.
    DATA: BEGIN OF EMAIL_SEND OCCURS 10.
            INCLUDE STRUCTURE SOMLRECI1.
    DATA: END OF EMAIL_SEND.
    DATA: BEGIN OF EMAIL_TEXT OCCURS 10.
            INCLUDE STRUCTURE SOLISTI1.
    DATA: END OF EMAIL_TEXT.
    PARAMETERS: ALL__CLI RADIOBUTTON GROUP RADI.
    PARAMETERS: THIS_CLI RADIOBUTTON GROUP RADI.
    PARAMETERS: SELECT__ RADIOBUTTON GROUP RADI.
    SELECT-OPTIONS SEND_TO FOR C NO INTERVALS.
    SELECTION-SCREEN SKIP.
    PARAMETERS: SUBJECT(30).
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(20) TEXT-999.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L1(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L2(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L3(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L4(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L5(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L6(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L7(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L8(84).
    SELECTION-SCREEN END OF LINE.SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: L9(84).
    SELECTION-SCREEN END OF LINE.
    EMAIL_TEXT-LINE = L1.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L2.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L3.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L4.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L5.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L6.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L7.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L8.
    APPEND EMAIL_TEXT.
    EMAIL_TEXT-LINE = L9.
    APPEND EMAIL_TEXT.
    EMAIL_DATA-OBJ_NAME = 'MESSAGE'.
    EMAIL_DATA-OBJ_DESCR = SUBJECT.
    EMAIL_DATA-OBJ_LANGU = 'E'.
    EMAIL_DATA-SENSITIVTY = 'P'.
    EMAIL_DATA-OBJ_PRIO =  '1'.
    EMAIL_DATA-NO_CHANGE = 'X'.
    EMAIL_DATA-PRIORITY = '1'.
    BREAK-POINT.
    IF SELECT__ = 'X'.
      LOOP AT SEND_TO.
        EMAIL_SEND-RECEIVER = SEND_TO-LOW.
        EMAIL_SEND-REC_TYPE = 'U'.
        EMAIL_SEND-EXPRESS = 'X'.
        APPEND EMAIL_SEND.
      ENDLOOP.
    ELSEIF THIS_CLI = 'X'.
      SELECT * FROM USR02.
        IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
        AND USR02-BNAME NE 'DDIC'.
          EMAIL_SEND-RECEIVER = USR02-BNAME.
          EMAIL_SEND-REC_TYPE = 'U'.
          EMAIL_SEND-EXPRESS = 'X'.
          APPEND EMAIL_SEND.
        ENDIF.
      ENDSELECT.
    ELSEIF ALL__CLI = 'X'.
      SELECT * FROM USR02 CLIENT SPECIFIED.
        IF USR02-USTYP = 'A' AND USR02-BNAME NE 'SAP*'
        AND USR02-BNAME NE 'DDIC'.
          EMAIL_SEND-RECEIVER = USR02-BNAME.
          EMAIL_SEND-REC_TYPE = 'U'.
          EMAIL_SEND-EXPRESS = 'X'.
          APPEND EMAIL_SEND.
        ENDIF.
      ENDSELECT.
    ENDIF.
    BREAK-POINT.
    EXIT.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = EMAIL_DATA
              DOCUMENT_TYPE              = 'RAW'
              PUT_IN_OUTBOX              = 'X'
         IMPORTING
              SENT_TO_ALL                = SENT
              NEW_OBJECT_ID              = EMAIL_ID
         TABLES
              OBJECT_CONTENT             = EMAIL_TEXT
              RECEIVERS                  = EMAIL_SEND
         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.
    regs
    Arun

  • How to send the email without using server side (Php, java)

    How to send the (Run time image or file) Email & Attachment in Flex web application. without using php, java.

    Well, at some point your email needs to be handed over to an SMTP server. It's a fair amount of work, but if you want to just send an email you could open a socket to a mail server's SMTP port and follow the SMTP protocols to send your email.
    ActionScript sockets: http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7cf7.html
    SMTP protocol: http://tools.ietf.org/html/rfc821
    -- Tom

  • Sending Chinese email uisng FM SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi Experts,
    I attempt to send chinese language character using chinese logon using the above function module in 4.6C hotpack 50.
    The chinese character are in the content_txt table of the FM and for the rest of the table for this function module, I had set the language to sy-langu where ever possible.
    But when the email is received, it's still not display in chinese language.
    Anybody can advice?
    Thanks.

    Hey Darren,
    This sound interesting. I didn't do this.
    Anyway.. I am just sending a normal mail out and not touching or retrieving anything via NAST table. Is this statement still required? Where should I put this statement?
    Just more details, my program is suppose to upload a text field, break it into multiple emails to send to supplier based on the PIR for the material number. There's not retrieval via NAST nor anything related to PO.
    Thanks.

  • My N9 can't send a email via using icloud smtp ser...

    I follow the guideline from iCloud mail server information to setup email account, but every time i was trying to send an email, a pop-up message show : 'Can't connect to SMTP server :" smtp.mail.me.com" or it doesn't exist '. Everyone can help me to configure out why? Thank you so much!

    N9 imap mail sending does not work with .mac/.me (iCloud) mail. I have these settings (automatic and also manually set from Apple page).
    Mails stays at outbox with smtp server error (lates N9 update)
    SMTP (outgoing mail server) information:
    Server name: smtp.mail.me.com
    SSL Required: Yes
    Port: 587
    SMTP Authentication Required: Yes
    Username: [email protected] (use your @me.com address from your iCloud account)
    Password: Your iCloud password
    http://support.apple.com/kb/HT4864

  • HELP. Using iCal to send timed emails - I used to be able to do this...

    Ok - there's a chance I've gone completly mad - or I just dreamt this - but: Once upon a time I used iCal to send timed emails (with Mail) to outside addresses without the emails looking like they came from iCal.
    I did this for things like 'calling' in sick to work (therefor looking like I was up at 8:15 being ill, instead of sleeping comfortably in hung over splendor) or sending out parts of work throughout the workday (instead of when I'd actually completed them at three in the morning).
    This was very useful.
    I just can't now figure out how I did this.
    Has one of the iCal updates removed this function? Is there something obvious I've forgotten?
    I seem to remember using iCal to trigger a file that in turn sent the email - but again I can't trust my memory.
    Anyone have any hints or ideas? I'm driving my self mad on this one.

    Neal,
    I am in the same predicament. I would essentially like to accomplish the same deal, as seen below. . . (from another forum that went unanswered.)
    I use iCal (1.5.5/ 2.0.3) currently but own Entourage (11.2.1) as well. I have clients that I service on a weekly or biweekly basis whose appointments are in my iCal; I call and remind them the day before. The majority of these people are great about checking email. I would like to set up an automated email reminder which is sent to them for each appointment, two days in advance that does not contain an .ics file. Many times my clients' email app has junked the message due to the small attachment. Others don't want to open a file when they don't know what it is.
    Predetermined timed stamped/Automated iCal events are possible aren't they?! If not, do I have to move over to :dreaded Entourage?

  • Is it possible to send encrypted email messages using cfmail ?

    Does anyone know of a way to send an encrypted email message
    using CF?

    Sending an encrypted message is easy. The hard part is
    enabling the recipient to decrypt it.

Maybe you are looking for

  • Missing files - iTunes using wrong path, how can I change it?

    Hi, I store my itunes library on an external hard drive and I have over 1000 music files which itunes cannot locate even though they are there. Having done a bit of research I've discovered that the path for these files is incorrect. The path in "Get

  • Web Page not rendering in IE 6 and 7

    I've created a web page and validated the HTML/CSS both within DW and using the W3C CSS validator. Both returned no errors but when I try to view the page using IE 6 or 7 the page is blank. I'm guessing it has to do with the CSS. Does anyone know thi

  • Material Stock revision no wise

    Hi, I need to maintain a part no. with revision in SAP. Stock for these part nos. with revision to be maintained in SAP. I will take an example and explain, say for a part no: 5213066 Part No.         PartDesc.         Revision   Stock 5213066       

  • Framework Settings for map in Endeca studio for getting started application

    Hi All, Can anybody tell me,what is the default framework setting for below fields when we installed endeca studio to make getting started application work especially map settings, df.mapviewer:??? df.mapTileLayer:    ??? df.mapViewer:     ??? Due to

  • Can xMII sense an event being triggered in SAP?

    Hi xMII Gurus, I have a requirement where, when some event is triggered in SAP, I have to fetch some data from SAP to xMII and do some procesing and post the data back to SAP. Is there any way by which xMII can sense the event being triggered in SAP?