Small issue in sending mail to sap-inbox via classes

Hi All,
I am working in sending SAP mail to sap-inbox via classes..
Which i am able to work out..But got some minor struck off where when i am sending the mail from sap-report
it is sucesfully reaching the user ....
Issue is In the sap-inbox mail it is not only showing the
Created: Sender user name
it is also showing the Changed :Sender name only
How to restrict the changed  should not display ...
Waiting for your response....
*Creates persistent send request
  TRY.
      L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
* Creating Document
      L_DOCUMENT_SAS = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                                    I_TYPE  = 'HTM'
                                    I_TEXT  = I_CONTENT[]
                                    I_SUBJECT = 'Automated HRIS (SAP) Report' ).
*PERFORM PREPARE_ATTACHMENT.
* Adding Attachment
      CALL METHOD L_DOCUMENT_SAS->ADD_ATTACHMENT
        EXPORTING
          I_ATTACHMENT_TYPE    = C_EXT
*          I_ATTACHMENT_SIZE    = L_SIZE
          I_ATTACHMENT_SUBJECT = 'Hr Details r.xls'
          I_ATT_CONTENT_HEX    = L_XML_TABLE.  "i_attach.
*          I_ATT_CONTENT_TEXT   = l_XML_TABLE.
Sas
Edited by: saslove sap on Oct 22, 2009 7:05 AM
Edited by: saslove sap on Oct 22, 2009 7:07 AM

contd...
* document to send request
      CALL METHOD L_SEND_REQUEST->SET_DOCUMENT( L_DOCUMENT_SAS ).
      DATA:LR_SENDER TYPE REF TO IF_SENDER_BCS,
           LR_SEND TYPE REF TO CL_BCS.
* Preparing the sender object
*      LR_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( sy-uname ).
      DATA: L1_UNAME TYPE SY-UNAME.
      L1_UNAME = SY-UNAME.
      LR_SENDER = CL_SAPUSER_BCS=>CREATE( L1_UNAME ).
* Setting the sender
      CALL METHOD L_SEND_REQUEST->SET_SENDER
        EXPORTING
          I_SENDER = LR_SENDER.
* E-Mail
      LOOP AT P_EADDR.
        TRANSLATE P_EADDR-LOW TO UPPER CASE.
        L_RECIPIENT = CL_SAPUSER_BCS=>( P_EADDR-LOW ).
        CALL METHOD L_SEND_REQUEST->ADD_RECIPIENT
          EXPORTING
            I_RECIPIENT  = L_RECIPIENT
            I_EXPRESS    = 'X'
            I_COPY       = ' '
            I_BLIND_COPY = ' '
            I_NO_FORWARD = ' '.
        IF SY-SUBRC EQ 0.
          WRITE:/'** SUCCESS:  Email Sent to', P_EADDR-LOW COLOR COL_NORMAL.
        ELSE.
          WRITE:/'** ERROR: Failed to send Email to',P_EADDR-LOW COLOR COL_NEGATIVE .
        ENDIF.
      ENDLOOP.
*Trigger E-Mail immediately
      L_SEND_REQUEST->SET_SEND_IMMEDIATELY( ' ' ).
      CALL METHOD L_SEND_REQUEST->SEND( ).
      COMMIT WORK.
    CATCH CX_DOCUMENT_BCS INTO L_BCS_EXCEPTION.
    CATCH CX_SEND_REQ_BCS INTO L_SEND_EXCEPTION.
    CATCH CX_ADDRESS_BCS  INTO L_ADDR_EXCEPTION.
  ENDTRY.
Edited by: saslove sap on Oct 22, 2009 9:02 AM

Similar Messages

  • Issue in sending mail to SAP Inbox from Workflow

    Hi All,
    I need to send the mail to the creator of the document about the user decision. If i am executing the workflow through the event ( ouput type) , the workflow processing in SWIA is complete but the mail is not sent in the SAP Inbox. But If i try to manually execute the workflow, mail is sent to the SAP Inbox.
    I've used WF_INITIAITOR in the Expression. I need to send the mail not to the approver but to the creator of the workflow.
    Thanks,
    Neha

    Hi,
    the event is also triggered from my Id but in that case I do not recieve any e-mail. None of the users recieve the e-mail in the SAP Inbox for the mail step after the decision.
    In workflow Log the last step shows the details as
    name of the manager and the workflow background for mail sent step as shown below
    Sumit Vij     Background work item created     10.01.2012     12:08:43     
    Sumit Vij     Execution started automatically     10.01.2012     12:08:43     
    Workflow Hintergrund     Work item processing complete     10.01.2012     12:08:44     
    Thanks

  • Sending mail to  SAP Inbox thru actions

    Hi Friends,
    I am having a requirement as below:
    Need to send one mail to SAP Inbox to the BP in one specific partner functions in an activity based upon the below conditions:
    1) Status of the transaction is open
    2) The Todays' Date -Created date =45
    I believe this can be done using actions. Please let me know if this is possible. If yes let me know the simplest way and if know let me know the alternative way.
    Thanks,
    Jai

    hi
    yes you can do this using actions
    just create your action profiel and there you give processing type as smartforms
    and then select your parameters\
    there are some standard actions available in the system for that you can refer to them
    then you inside the conditions give your conditions
    attach your action profile to your transaction and then you have what u wanted
    alternate way to achieve this is using FMs or workflows
    best regards
    ashish

  • Not able to send mail to SAP Inbox(SBWP)

    When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox.  When I resubmit this mail , then it move to  SAP Inbox. Please Help me to solve this problem.

    Hi,
    When i create a new message in SBWP and send it to SAP Inbox, It is moving to outbox.
    When ever you send a new message (mail) from the SAP Inbox, Outbox will have a copy, Like sent items in the Outlook.
    When I resubmit this mail , then it move to SAP Inbox. Please Help me to solve this problem. code}
    When creating a new message, If you give the correct User Id in the recipient  it will go correctly. Click Refresh  in the SAP Inbox and check it.
    Regards,
    Surjith

  • Sending mail from sap Inbox to outlook

    Hi All,
    Iam new to SAP workflow. Here I need to send the mail from SAP Inbox to Outlook for high priority keeping red flag as icon.
    can anyone tell me how to set up this and go ahead to start.
    Thanks
    Kumar

    IF I understand you correctly, you want to send a mail to Outlook (external email address) as a step in Workflow.
    If you are on Release 6.20 or above the following solution will work. I do not remember what is available in earlier releases.
    1) Define a multiline element based on SOXNA-FULLNAME to hold the email addresses. How you populate this element with the addresses depends on your requirements.
    2) Insert a Send Mail step in the workflow.
    3) In the Mail Tab, Select 'U' as Recipient Type.
    Assign the Multi Line element defined in Step 1 to E-Mail Address.
    4) Define the Subject and the body as needed.
    Please note that you should have External mail sending from SAP enabled and a batch job that runs periodically to push the mail.
    Cheers,
    Ramki Maley.

  • Alv result send mail to sap inbox internally

    Hi,
        How to send a e-mail alv results to the sap inbox internally. Please povide me meterial or suggest me, if anybody have an idea about this requirement. It is my short time requirement. Please help me.
    Thanks.
    Regards,
    prasad.

    hi,
      Thank you for ur reply.
    Now I am able to send email from local sap to sap inbox with an attachement as excel sheet, but the all the records would be having in the first row only.
    actually, I need to get each record in separate row , how to get it. please help me.
    really thank you very much for ur help.
    prasad.

  • Sending mails from SAP inbox to Outlook

    Hi,
    I am able to send mails to the SAP user's inbox in the SAP workplace thru my abap program but i would like send it to their outlook mail box. I'm able to get mails if i configure outlook to receive emails from SAP mail box but i would like to do it vice versa. I got the user's SMTP address.how do i do it? Is there any configurations are necessary or anything to do with my exchange server? give me some valid sugesstions.

    Hi,
    Check this link
    http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm
    http://www.sapdevelopment.co.uk/reporting/email/emailhome.htm
    Thanks & Regards,
    Judith.

  • How to send mail to SAP inbox

    Hello,
      Could any body tell me how to attach a report output to a mail which need to be send to SAP Inbox.
    The report is ALV report. Is there any Function Module to do so.
    Regards,
    Satya

    email to SAP Inbox
    Send mail to User's SAP Inbox also
      RECLIST-RECEIVER = IT_ZMMTACCUID-ACCTUSRID.
      RECLIST-REC_TYPE = 'B'.
      APPEND RECLIST.
      CLEAR RECLIST.
    SEND THE DOCUMENT BY CALLING THE SAPOFFICE API1 MODULE FOR SENDING
    DOCUMENTS WITH ATTACHMENTS
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
              DOCUMENT_DATA              = DOC_CHNG
              PUT_IN_OUTBOX              = 'X'
           IMPORTING
              SENT_TO_ALL                = SENT_TO_ALL
            NEW_OBJECT_ID              =
           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.
    following options are available for field
    RECLIST-REC_TYPE
         Name
    P     Private distribution list
    C     Shared distribution list
         O     SAPoffice user
         B     SAP user
         U     Internet address
    X     X.400 address
    R     SAP user in another SAP System
    A     External address
         F     Fax number
         D     X.500 Address
         L     Telex number
    H     Organizational unit/position
    J     SAP object
    G     Organization object/ID
    Regards
    amole

  • Issues when sending mail from sap to outlook in .csv FORMAT

    hI all,
    Im using 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    FM TO send a mail from SAP to user with attachment in .csv format but the data isnot getting displayed correctly ...
    I thnk it is competely displayed in ASCII format ..
    Can anybody give me suggestionson the same
    thanks

    Hi.
    How is the user opening the .csv attachment?
    I'm guessing that it should be opened with Excel.
    Are you using an attachment document type of 'XLS'?
    If not, then the attachment won't be opened with Excel unless the user right-clicks on it and does 'Open with'.
    Even then, the user will have to use the Excel import wizard.
    Is a .csv file what you want?
    You can use the ABAP OLE stuff to write a native Excel file that can be attached to an email.
    Or you can (at the cost of more work) write the Excel file (still type XLS) using XML, which gives you more control, and still works when your program is run in the background.
    John

  • External Mail To SAP Inbox

    Hi,
    Can one explain me How To send mail to SAP Inbox through externall mail id like abc( at )y a hoo.com  to SAP inbox ETC,
    IF POSSIBLE PLEASE EXPLAIN in detail. . .
    THANKS & REGARDS
    Priyanka M Jain

    Hi .
       Try this it might help you
    https://wiki.sdn.sap.com/wiki/display/Basis/SAP%20to%20send%20external%20mails
    Re: Unable to send mails from SCOT

  • Sending a Mail to SAP inbox

    Hi all,
        I am using the following code to send the mail to SAP inbox,
      DATA : it_reclist TYPE TABLE OF somlreci1,
             wa_reclist TYPE somlreci1.
      DATA : wa_docdata TYPE sodocchgi1.
      DATA : it_message TYPE TABLE OF solisti1,
             wa_message TYPE solisti1,
             it_attach  TYPE TABLE OF sopcklsti1.
      LOOP AT it_super_uid INTO wa_super_uid.
        wa_reclist-receiver = wa_super_uid-usid.
        wa_reclist-rec_type = 'B'.
        APPEND wa_reclist TO it_reclist.
      ENDLOOP.
      wa_docdata-obj_langu  = sy-langu.
      wa_docdata-obj_name   = text-005.
      wa_docdata-obj_descr  = text-006.
      wa_docdata-sensitivty = 'F'.
      wa_message-line = text-007.
      APPEND wa_message TO it_message.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data                    = wa_docdata
          put_in_outbox                    = 'X'
        COMMIT_WORK                      = ' '
        IMPORTING
        SENT_TO_ALL                      =
        NEW_OBJECT_ID                    =
        TABLES
          packing_list                     = it_attach
        OBJECT_HEADER                    =
        CONTENTS_BIN                     =
        CONTENTS_TXT                     =
        CONTENTS_HEX                     =
        OBJECT_PARA                      =
        OBJECT_PARB                      =
          receivers                        = it_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.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF sy-subrc = 0.
        MESSAGE text-008 TYPE 'S'.
      ENDIF.
    Still i am not able to send the mail , its giving me exception 5. Please let me know how could i modify the code.
    Thanx,
    Girish.

    HI,
    The code below demonstrates how to send an SAP mail to a users inbox (SBWP)
    : Report  ZSAPTALK                                                   :
    : Author  SAPdev.co.uk                                               :
    : Description :                                                      :
    : Send mail message to SAP mail inbox.                               :
    :                     Please visit www.sapdev.co.uk for further info :
    REPORT ZSAPMAIL NO STANDARD PAGE HEADING.
    TABLES: DRAD,
            QINF,
            DRAW,
            SOUC,
            SOFD,
            DRAP.
    DATA: P_RETURN_CODE LIKE SY-SUBRC.
    data: d_username LIKE DRAP-PRNAM.
    mail declarations
    DATA : BEGIN OF NEW_OBJECT_ID.         " the newly created email object
            INCLUDE STRUCTURE SOODK.
    DATA : END OF NEW_OBJECT_ID.
    DATA : BEGIN OF FOLDER_ID.             " the folder id of the outbox
            INCLUDE STRUCTURE SOODK.
    DATA : END OF FOLDER_ID.
    DATA : BEGIN OF REC_TAB OCCURS 5.     " the table which will contain the
            INCLUDE STRUCTURE SOOS1.       " information on the destination
    DATA : END OF REC_TAB.
    DATA : BEGIN OF OBJECT_HD_CHANGE.      " the table which contains the
            INCLUDE STRUCTURE SOOD1.       " info for the object we will be
    DATA : END OF OBJECT_HD_CHANGE.        " creating
    DATA : OBJECT_TYPE LIKE SOOD-OBJTP.    " the type of object
    DATA : BEGIN OF OBJHEAD OCCURS 5.      " the header of the object
            INCLUDE STRUCTURE SOLI.
    DATA : END OF OBJHEAD.
    DATA : BEGIN OF OBJCONT OCCURS 0.      " the contents of the object
            INCLUDE STRUCTURE SOLI.        " i.e. the text etc
    DATA : END OF OBJCONT.
    DATA : BEGIN OF OBJPARA OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SELC.
    DATA : END OF OBJPARA.
    DATA : BEGIN OF OBJPARB OCCURS 5.      " formatting options
            INCLUDE STRUCTURE SOOP1.
    DATA : END OF OBJPARB.
    DATA : BEGIN OF T_MAIL_TEXT OCCURS 0,  "Message table for messages to
            STRING(255),                   "user via mailbox
           END OF T_MAIL_TEXT.
    Parameter: p_uname like sy-uname.
    **START-OF-SELECTION
    START-OF-SELECTION.
        d_username = p_uname.
        PERFORM POPULATE_EMAIL_TEXT.
        PERFORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
        PERFORM CREATE_AND_SEND_MAIL_OBJECT.
          FORM POPULATE_EMAIL_TEXT                                      *
          Inserts text for email message                                *
    FORM POPULATE_EMAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      APPEND T_MAIL_TEXT.
    adds failed list  on to end of success list.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Test email message line 1'.
      APPEND T_MAIL_TEXT.
      CLEAR T_MAIL_TEXT-STRING.            "puts a blank line in
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = 'Header1    Header2    Header3'.
      APPEND T_MAIL_TEXT.
      T_MAIL_TEXT-STRING = '----
      APPEND T_MAIL_TEXT.
    ENDFORM.
    *&      Form  SETUP_TRX_&_RTX_MAILBOXES
      Ensure that the mailboxes of the sender (INTMGR) are set up OK
    FORM SETUP_TRX_AND_RTX_MAILBOXES USING P_RETURN_CODE.
    get the user no of the sender in order to add the mail to the
    user name's outbox for future reference
      SELECT SINGLE * FROM SOUC
               WHERE SAPNAM = SY-UNAME.    "SAP name of a SAPoffice user
      IF SY-SUBRC NE 0.
        "Error finding the SAPoffice user info for the user
        MESSAGE E064(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    *Get the outbox No for the sender from the user No where the folder
                                           " type is an outbox
      SELECT * FROM SOFD WHERE OWNTP = SOUC-USRTP   "Owner type from ID
                           AND OWNYR = SOUC-USRYR   "Owner year from the ID
                           AND OWNNO = SOUC-USRNO   "Owner number from the I
                           AND FOLRG = 'O'."Output box
      ENDSELECT.
      IF SY-SUBRC NE 0.
        " Error getting folder information for the user
        MESSAGE E065(ZR53) WITH SY-UNAME.
        P_RETURN_CODE = 1.
        EXIT.
      ENDIF.
    ENDFORM.                               " SETUP_TRX_&_RTX_MAILBOXES
    *&      Form  CREATE_AND_SEND_MAIL_OBJECT
    FORM CREATE_AND_SEND_MAIL_OBJECT.
      FOLDER_ID-OBJTP = SOFD-FOLTP.        " the folder type ( usually FOL )
      FOLDER_ID-OBJYR = SOFD-FOLYR.        " the folder year ( usually 22 )
      FOLDER_ID-OBJNO = SOFD-FOLNO.        " the folder no.
      OBJECT_TYPE     = 'RAW'.             " the type of object being added
    build up the object information for creating the object
      OBJECT_HD_CHANGE-OBJLA  = SY-LANGU.  " the language of the email
      OBJECT_HD_CHANGE-OBJNAM = 'PS to DM Interface'. " the object name
    mail subject 'Mass Linking of QA, pass/fail'
      MOVE TEXT-002 TO OBJECT_HD_CHANGE-OBJDES.
      OBJECT_HD_CHANGE-DLDAT = SY-DATUM.   " the date of the email
      OBJECT_HD_CHANGE-DLTIM = SY-UZEIT.   " the time of the email
      OBJECT_HD_CHANGE-OBJPRI = '1'.       " the priority ( highest )
      OBJECT_HD_CHANGE-OBJSNS = 'F'.       " the object sensitivity
    F is functional, C - company sensitive
    object_hd_change-skips  = ' '.       " Skip first screen
    object_hd_change-acnam  = 'SM35'.    " Batch imput transaction
    object_hd_change-vmtyp  = 'T'.       " Transaction type
    add the text lines into the contents of the email
      CLEAR OBJCONT.
      REFRESH OBJCONT.
    free objcont.      " added this to delete the mail contents records
      LOOP AT T_MAIL_TEXT.
        OBJCONT-LINE = T_MAIL_TEXT-STRING.
        APPEND OBJCONT.
      ENDLOOP.
      CLEAR OBJCONT.
    build up the table of receivers for the email
      REC_TAB-RCDAT = SY-DATUM.            " the date to send the email
      REC_TAB-RCTIM = SY-UZEIT.            " the time to send the email
    the SAP username of the person who will receive the email
      REC_TAB-RECNAM = D_USERNAME.
    the user type of the person who will send the email ( USR )
      REC_TAB-SNDTP = SOUC-USRTP.
    the user year of the person who will send the email ( 22 )
      REC_TAB-SNDYR = SOUC-USRYR.
    the user number of the person who will send the email
      REC_TAB-SNDNO = SOUC-USRNO.
    the sap username of the person who will send the email
      REC_TAB-SNDNAM = SY-UNAME.
    get the user info for the receiver of the document
      SELECT SINGLE * FROM SOUC WHERE SAPNAM = D_USERNAME.
      IF SY-SUBRC NE 0.
        WRITE : / TEXT-001, D_USERNAME.    "usnam.
        EXIT.
      ENDIF.
    the user number of the person who will receive the email ( USR )
      REC_TAB-RECNO = SOUC-USRNO.
    the user type of the person who will receive the email ( USR )
      REC_TAB-RECTP = SOUC-USRTP.
    the user year of the person who will receive the email ( USR )
      REC_TAB-RECYR = SOUC-USRYR.
    the priority of the email ( highest )
      REC_TAB-SNDPRI = '1'.
    check for delivery on the email
      REC_TAB-DELIVER = 'X'.
    send express so recipient knows there is a problem
      REC_TAB-SNDEX = 'X'.
    check for a return receipt
      REC_TAB-READ = 'X'.
    the sap username of the person receiving the email
      REC_TAB-ADR_NAME = D_USERNAME.       "usnam.
    add this receiver to the internal table
      APPEND REC_TAB.
      CLEAR REC_TAB.
    call the function to create the object in the outbox of the sender
      CALL FUNCTION 'SO_OBJECT_INSERT'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
                OWNER                      = SY-UNAME
           IMPORTING
                OBJECT_ID                  = NEW_OBJECT_ID
           TABLES
                OBJCONT                    = OBJCONT
                OBJHEAD                    = OBJHEAD
                OBJPARA                    = OBJPARA
                OBJPARB                    = OBJPARB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                DL_NAME_EXIST              = 4
                FOLDER_NOT_EXIST           = 5
                FOLDER_NO_AUTHORIZATION    = 6
                OBJECT_TYPE_NOT_EXIST      = 7
                OPERATION_NO_AUTHORIZATION = 8
                OWNER_NOT_EXIST            = 9
                PARAMETER_ERROR            = 10
                SUBSTITUTE_NOT_ACTIVE      = 11
                SUBSTITUTE_NOT_DEFINED     = 12
                SYSTEM_FAILURE             = 13
                X_ERROR                    = 14
                OTHERS                     = 15.
      IF SY-SUBRC NE 0.
        MESSAGE A063(ZR53) WITH SY-SUBRC.
        EXIT.
      ENDIF.
    call the function to send the already created email to the receivers
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                FOLDER_ID                  = FOLDER_ID
                OBJECT_ID                  = NEW_OBJECT_ID
                OUTBOX_FLAG                = 'X'
                OWNER                      = SY-UNAME
           TABLES
                RECEIVERS                  = REC_TAB
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC EQ 0.
        MESSAGE I035(ZR53) WITH NEW_OBJECT_ID D_USERNAME. "usnam.
      ELSE.
        MESSAGE I036(ZR53) WITH D_USERNAME."      sy-subrc.
      ENDIF.
    ENDFORM.                               " CREATE_AND_SEND_MAIL_OBJECT
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • Sending mail from workflow inbox to outlook,when idoc error occurs

    Hi All,
    I tried to send a mail to outlook from workflow by giving the email address in the step mail, but it was not working.
    i am getting the workitem in the sap inbox so tried setting the automating forward which we can forward from the sap inbox to outlook.
    Searched in SDN , but my issue was not solved..
    Could you please help me out with this issue to get the mail from workflow to outlook inbox.
    Thanks,
    Praveena

    Hi Praveena,
    Please check if the necessary SCOT settings have been made in your system to send mails outside SAP box. Check with your basis team if the SMTP connection between external system (Outlook, Lotus, etc) has been maintained or not.
    Then check in t-code SOST if you are getting the mail here when sent from workflow.
    Hope this helps!
    Regards,
    Saumya

  • Error while sending mail from SAP

    Hello All,
    Recently we are facing an error while sending mail from SAP. When we try to compose a message ,it is moving to a dump error RAISE_EXCEPTION.
    The details from ST22,
    Short text
        Exception condition "FOLDER_NOT_EXIST" raised.
    Error analysis
        A RAISE statement in the program "SA
        condition "FOLDER_NOT_EXIST".
        Since the exception was not intercep
        program, processing was terminated.
    Kindly suggest..
    Thank You,
    Regards,
    Hasan

    Hello Priyanka,
    Actually, I performed the following two steps in order to solve the issue:
    - In transaction SICF, the node for SAPConnect must be active. In our system, this node was in inactive state. Hence I activated it.
    - Then In transaction SCOT-> Settings menu--> default domain should be 'xyz.com' if the email addresses in your company are maintained with a suffix  xyz.com.
    But for me the problem didnt get solved here..
    The problem that i am facing now is that if in my user profile, I have the email address maintained, then i get an error saying 'Sender address rejected'. However, if i goto transaction SU01 and clear the email id, the mail is successfully sent to outer world.
    You can try the above mentioned two steps using SICF and SCOT. If the problem does not get solved then try clearing the mail id in ur user profile.
    Hope this helps. If you find an answer to the problem of the mail id getting cleared, then please let me know..
    Regards,
    Himanshu

  • Error in sending mail from SAP to microsoft outlook

    Hi all.
    Greetings.
    I have a requirement to send mail from SAP to Outlook.
    SMTP is configured here....i have checked the steps.
    I am using FM "SO_NEW_DOCUMENT_SEND_API1" to send the mail text.
    when i check the SOST Tcode i got message "Wait for communications service".
    after evry 10 minutes the sap connect all process runs..as it is configured in SCOT transaction, but even after 30 minutes the mail is not sent.
    I don't know how should i check the error message?
    tell me the checking stepls plz?...how should i step through in checking this?
    what are the prerequsites for sending mails from SAP to Microsoft outlook?
    regards
    Prashant Tiwari
    Edited by: prashant tiwari on Feb 6, 2009 10:26 AM

    Hi prashant,
    Pls refer to the link below:
    Re: Inbound Email- SAP Connect
    or
    check your userid .
    If not correct  no mail will go from u r id.
    Try it with another user id.
    or try using the following function module
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    I Hope this helps you with the issue.
    Thanks
    Ravi Aswani

  • Classes and methods to send email to SAP inbox

    Hi,
    I want an appropriate class and method to send emails to SAP Inbox.
    My objective is that i convert spool to PDF and send it to SAP inbox as an attachment.
    I've used  'CONVERT_ABAPSPOOLJOB_2_PDF' and 'SX_TABLE_LINE_WIDTH_CHANGE' to generate PDF attachment.
    I tried Function modules 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' to send email.
    It was working fine till now (for last 4 months). Now the Basis team has run some patches due to which the PDFs are getting damaged.
    Now the FMs 'SO_DOCUMENT_SEND_API1'/'SO_NEW_DOCUMENT_ATT_SEND_API1' seems to be useless.
    So i tried some methods in classes cl_document_bcs and cl_bcs. These are working fine for Internet mails but not SAP mails.
    Please suggest me some Classes and methods to send the PDF atachments to SAP inbox.

    to have all SAP inbox messages into lotus notes inbox you have to sync the same with the use of connectors rather than resending them
    check out this link
    http://www-128.ibm.com/developerworks/lotus/library/lei-sap/
    for outlook its done using MAPI
    http://www.sapgenie.com/faq/exchange.htm
    Regards
    Raja

Maybe you are looking for

  • Getting filter condition values from a table within the mapping

    I have a table say mytable with columns as name, age and maritalstatus. I have another table paramtable with the following structure parametername, parametervalue. The data in this would be like say Age >= 24 Maritalstatus F Now from the table mytabl

  • XMLSocket "Failed to load policy file" error

    I am trying to use an XMLSocket.swf file, and it is not connecting.  Do I need to open up a port on my server?  I am trying to run this on a dedicated remote Windows 2008 server. Here is the error from FlashFirebug:      OK: Root-level SWF loaded: fi

  • Refresh subtotal in ALV OO for an editable field

    Hi friends, i have 3 editable quantity fields with subtotal on them.I need to refresh these subtotals when the user gives a new value and press' ENTER' ? I tried REFRESH_TABLE_DISPLAY but it doesn't work... Any ideas ? Regards, Soufiane

  • Flash MX 2004 & QT 7.1.5

    I know you had to use Flash Player 5 for previous QT export from Flash, but does the latest QT support Flash at all? There isn't even a place to check Flash support in QT 7.1.5's advanced settings that I can see. Is there any way around this? It work

  • Moving child node's parent in JTree

    hi guys. What i have is a Jtree dynamically generated, im trying to re-arrange the nodes inside. each nodes and their parents have their own values and been built with DefaultMutableTreeNode. So im thinking, to do so i first need to analyse which chi