SAP Inbox mail message

Dear all,
I am configuring static check with just warning message "Static credit check: credit limit exceeded" for information to credit rep & credit manager & no block at any level as per requirement initially (and delivery block after three months-later activity).this message that the credit limit has been exceeded should go to SAP Inbox of credit representative & a credit manager.
  Earlier the message was going to their SAP Inbox while testing but at that time i had configured static check with delivery block & used the routine 9 'credit check block' with source text
'Requirement: Sales order is blocked due to credit'
'If the credit block is set, a mail message should be created'
    Now since i am not using routine 9 (because the sales order is not blocked at any level), shall i create a new routine with my abaper to allow me to send a mail message if credit limit has been exceeded or some standard routine is available for the same.
please advise how to proceed.
regards
vikas chhabra

Hello Vikas,
Yes, you need to create your own routine for that.
In Standard there exist only routines 9 and 10 for that purpose.
You can find additional helpful information on that topic in note # 677377, which you find on the SAP Service Marketplace.
Best regards
Martin

Similar Messages

  • SAP Inbox mail not working

    When I am sending mail from my SAP Inbox to other User SAP inbox, mail is not going into other user sap inbox.
    Let say User A is send SAP inbox email to User B sap inbox, User B does not get email in his SAP Inbox even we selected Receipent type "SAP Logon Name". Instead mail is going to email address mentioned in SU01. I removed email address from SU01 even mail is not coming to SAP User Inbox.
    I think this is defualt configuration sap has provided in all SAP system but some how it is not working.
    anybody has any idea.
    Thanks
    Manish Patel

    Dear Manish Patel!
    Please check whether you have activated the mail system group in your system. In this case the received mails will go automatically to user's home mail address, defined in tr. SU01 for user.
    To check the mail system group:
    -Tr. SO16 >> Tab "Mail sy. grp." >> check the checkbox "Send to home Addresses of Users"
    If this is set, please uncheck it (check the checkbox "No Mail System Group") and test the behaviour again.
    Regards
    Gergely

  • Send message to SAP inbox - change message CREATOR

    Hi,
    I'm sending a message to a user's SAP inbox using function module SO_OBJECT_SEND. By default, the message creator is set to sy-uname. I need to change this to a generic user e.g. 'SYSTEMUSER'. This is not the same as the SENDER/Author/Owner. I managed to change the sender by setting the parameter ORIGINATOR.
    I referred to other forums but couldn't find any references to changing the creator. I tried passing the username via parameters SENDER and OWNER  - in the Sap Inbox "document overview" the Author is set to SYSTEMUSER but the document creator in "document contents" still reflects my name.
    Example code:
    ALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          OBJECT_HD_CHANGE = w_object_hd_change
          OBJECT_TYPE      = 'HTM'
          SENDER           = 'SYSTEMUSER'
          OWNER            = 'SYSTEMUSER'
          ORIGINATOR       = 'SYSTEMUSER'
          ORIGINATOR_TYPE  = 'B'
        TABLES
          OBJCONT          = text_nom
          RECEIVERS        = receiver_list.
    Is it at all possible to change the message creator without modifying the SAP standard code? Examples will be much appreciated.
    Kind regards
    Liza-Marie

    Thanks!!
    I'm creating a background job (from within the dialog program) that calls function module SO_OBJECT_SEND with the specified user. This works perfectly!
    Regards
    Liza-Marie

  • TS3276 i can't open any links in my inbox mail message, says no associated application could be flung

    in all my email messages that i recieve, after i click on the link, a message comes back saying "no associated application exists".  what is the problem?

    Safari > Preferences > General > Default web browser: Safari (or whatever you want.)

  • DELETING INBOX MAIL MESSAGE PROBLEM

    I am getting a dialogue pop up box that tells me that the message hat I am trying to move to the trash can't be copied to "messages" because an item with the same name already exists. I completely emptied my trash and that didn't help. Needlwaa to say, this is extremely annoying.

    Back up all data. Rebuild the mailbox. Try to delete the message again.

  • How can I retrieve deleted Mail inbox mail messages and sent messages?

    I moved location and found (once again) that I could not send messages. In the past I have moved between Apple support and BT support to fix the problem. This time the BT IT technical support guy took over the screen, created a new account, made sure I could send messages and said goodbye.
    In fixing the problem he deleted my existing BT Email Account and along with it 8 months worth of email history. I had backups to 5th April and hose are now restored but missing form 5th April to yesterday. With my old PC I could always retrieve stuff I'd deleted (as it never really disappeared from the computer)
    Does anyone know if my deleted email box contents are still siting hidden somewhere on my laptop and if so how I can get them back? (I've only just started using Macs so still very green!)
    Cheers
    ZoeG

    Zoe,
    Welcome to the Discussions, and to Macs.
    Each time you remove an email account there is a warning that the mailboxes associated with that account will be lost -- that is a very accurate message, and they no longer exist. The BT tech was simply clueless, but ought not to have been so cavalier!
    Any messages that remain on the server, however, can again be downloaded -- are you able to view the POP server to see what remains on it? The Sent messages would not be there, of course.
    Ernie

  • 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

  • Regarding Autoforwarding of Notifications from SAP Inbox to Externam Mail ids

    Hi Experts,
       In Our Project we are forwarding SAP INBOX Notifications to External email ids using
       below settings from SBWP .
    SBWP->Settings->Office Settings.
    Here in the Automatic Forwarding Tab we are maintaing the Emaid Adresses .
    With this setting , IT forwards all the SAP INBOX mails to the email ids which we maintained in settings.
    But we want to Filter the Notifications.
    How to get this?
    Regards
    Rama

    In your call don't pass put_in_outbox = 'X'.
    Don't pass the Transmission Medium in the Receiver
    Like:
    wa_receivers-receiver = 'mahesh.bagel at the rate cadi.com'.
    wa_receivers-rec_type = 'U'.
    wa_receivers-notif_del = 'X'.
    wa_receivers-notif_ndel = 'X'.
    APPEND wa_receivers TO gt_receivers.
    CLEAR wa_receivers.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = wa_doc_data
    put_in_outbox = space   " <<
    IMPORTING
    sent_to_all = v_sent_all
    TABLES
    packing_list = gt_packing_list
    contents_txt = gt_message
    receivers = gt_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 EQ 0.
    COMMIT WORK.
    ENDIF.
    Regards,
    Naimesh Patel
    Edited by: Naimesh Patel on Oct 9, 2008 4:54 PM

  • Credit block SAP inbox message

    Hello All,
    This is my actual requirement:
    When the sales order goes into a credit block, KRML output triggers SAP inbox message to the credit manager/credit representative as per the output records maintained.
    In standard SAP, the inbox message is read as
    "Order for customer XXXX blocked due to credit limit being
    exceeded."
    where XXXX denotes the customer number.
    My requirement is to bring out sales order number, Sales order value, Ship to party name, Reason for Credit block (Like Oldest open item, dynamic check etc) etc in this SAP inbox message.
    I checked KRML output mails and titles and i added the above fields as eg. &VBAK-VBELN&, &VBAK-NETWR& etc but this is not getting reflected in the SAP inbox message.
    I am unable to figure out from where the standard mail message "Order for customer XXXX blocked due to credit limit being exceeded." is coming from. If the source of this message can be found, other fields can be added to it as per my requirement.
    Please let me know if anyone has any idea how to achieve this.

    did u checked tcode NACE--->processing routines -->program + form names.
    regards
    Prabhu

  • SAP Inbox to My Mail Account

    Hi
    I need to send the mail from the SAP Inbox (i.e. from Tcode SO01) to my personal mail account.
    In Tcode SO01, I am creating a new message and under recipient I am providing my mail ID (for eg [email protected]), and I am selecting Recp. Type as Internet Mail.
    I am checking the status in SOST, It is showing error messge 806 and 817.
    So How to proceed future and is there any thing else to configure in my system.
    If so, Please send me the relavant document which explains the step to step solution.
    U can reach me at [email protected] or [email protected]
    Thanks and Regards
    Vijay Kumar Varma

    Hi Amit
    As you told that some configuration should be wrong in SCOT. In my company, I need to take care of  basis job also. So can u please help me out what should be configured in SCOT.
    If any suitable document from yourside will be a great help for me.
    Thanks and Regards
    Vijay Kumar Varma

  • 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

  • How to read a mail from sap inbox thru abap code?

    how to read a mail from sap INBOX thru abap code? can anyone tell me the technical approach? I NEED TO READ A MAIL and then need to pass the parameters to a bapi.
    Message was edited by:
            shahid mohammed syed

    Hi SSM,
    Did you manage to have your program working? I also have same requirement. I tried standard FM and BAPI but I always encounter authorization error when I tried accessing other user's mail. Thanks.
    Regards,
    Ryan

  • 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

  • Mail to Buyers SAP inbox once PR is released

    Hi All,
    How to configure the system so that a mail will be triggered to buyers SAP inbox once PR is released.
    Thanks in Advance
    Pavan H S

    Hi,
    Found this in SAP Note 365604 for release strategies in purchasing:
    "3. User exit
    During the individual release for purchase requisitions, the user exit
    is called in function module ME_REL_STRATEGIE_EBAN, in the overall
    release, it is called in function module ME_REL_GENERAL_STRATEGY_EBAN.
    (Enhancement M06B0002, EXIT_SAPLEBND_001, ZXM06U13)"
    You may be able to get a programmer to insert some code in this customer exit to initiate the mail message.
    Regards

  • Forwarding mails from SAP inbox to Microsoft Outlook

    I need to forward notifications in SAP workplace to Microsoft outlook...anybody worked upon,,??
    any function module which will capture the mails in mailbox...how to do??
    Thanks in advance....

    Hi sap technical
    Procedure:
    Go to the Business workflow ...then follow the below steps ...!
    its kind of configuration needed in the SAP System no coding required.
    Step1..go to the Business Workplace
    Step2..
    Access the settings by choosing SETTINGS - OFFICE SETTINGS.
    Choose the automatic forwarding tab.
    Here you can create new forwarding rule using the create button.you will get new window then..
    Step3...
    Insert your email address into the forward to field and choose External address from the drop down box.
    Choose the time period of this forwarding rule. In this example want to keep this forwarding for a long time.
    Step4....
    If you don’t want to keep copies of received SAP office mails remove the option.
    Choose copy to save the values
    If your email address is already maintained in your user profile you will receive a following pop up
    Step5...
    Now you can save the new forwarding rule and all of your SAP Office mails will be forwarded to you outlook inbox.
    You can also remove the forwarding rule anytime you want.
    Sample Code :
    Find the below code.
    DATA : RECEIVER TYPE SOMLRECI1 OCCURS 1 WITH HEADER LINE,
    S_DOC_CHNG TYPE SODOCCHGI1,
    S_OBJECT_ID TYPE SO_OBJ_ID.
    need to fill up the following compulsory
    1. S_DOC_CHNG-OBJ_DESCR = 'Mail subject line here'.
    2. RECEIVER-RECEIVER = '[email protected]'.( or as per ur requirement ).
    3. RECEIVER-REC_TYPE = 'U'. "Internet address
    4. S_OBJCONT contains the content of the mail.
    you have to append it.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = S_DOC_CHNG
    DOCUMENT_TYPE = 'RAW'
    COMMIT_WORK = 'X'
    IMPORTING
    NEW_OBJECT_ID = S_OBJECT_ID
    TABLES
    OBJECT_CONTENT = S_OBJCONT
    RECEIVERS = RECEIVER
    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 'I' NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if found helpfull,
    Cheers,
    Chaitanya.

Maybe you are looking for

  • Excise point of view Clarification required

    HI Once we delivered the goods to the Customer , some of the material are damaged in transporation I received the Customer compliant but we didn't take the return back those materials , just we are sending material with free of cost what sales docume

  • JSP:Include directive - can I access data?

    Hi, I am using the 'include' directive (either jsp:include method or <%@ include.... /> ) to include another jsp page. I want the included file to access variables that have been set up in the main page (the one with the include directive in it). I'v

  • GETTING UPSET

    I cant get a single jar to work on my computer!! They ALL get the error: Could not find the main class, the manifest file looks like this: Manifest-Version: 1.0 Created-By: 1.4.0_01 (Sun Microsystems Inc.) Main-Class: hello

  • Connection to Web Services

    On diagnostics results my printer pass wireless, connectivity, network, settings.  Configuration show name, ip, etc but internet not connected.  I have tried everything and it will not connect so I cannot use my web services.  Any suggestion other th

  • Can't update from 10.7.5 to 10.9

    I tried updating my mac the other day form 10.7.5 to 10.9. I checked form software updates, I installed them and then it tells me I need to restart my mac. So it restarts, starts installing them, gets to the end and then the loading bar changes and a