SAP Inbox problem

Dear All.
  I am trying to  send document from my Business Workplace New Message to SAP Logon. The document is send successfully.
  But  when I try the same sending to my SAP logonname. I am getting following error Message
Cannot process message, no route from MCL-20025 to R3P:300:MCL-20025.
If I try the same thing with other user-id.. Its working fine even sending the mesage to self.
Looking forward to hear from you all and get the answer soon...
regards,
Ranjan

Hi,
It seems to be role probelm, did you checked the relevent roles assigned for your user to recive the messages.
Regards
Kiran

Similar Messages

  • Problem in Triggering the Mail to SAP Inbox

    Dear Experts,
                     I have a problem for triggering the Mail option to SAP Inbox.
    We created a Job assigning the program RSEIDOCA,RSWUWFML2 by creating a variant for those programs. We are scheduling the job,  It is showing as
    24.11.2010 12:43:46 Job started                                                                     00           516          S
    24.11.2010 12:43:46 Step 001 started (program RSEIDOCA, variant ZRSEIDOCA, user ID__ )        00           550          S
    24.11.2010 12:43:48 Error situation found by evaluation                                             E0           596          S
    24.11.2010 12:43:48 Step 002 started (program RSWUWFML2, variant ZRSWUWFML2, user ID__)      00           550          S
    24.11.2010 12:43:49 Job finished                                                                    00           517          S
    But while checking in SOST, we are unable to see those mails. eventhough the user is unable to get those mail in SAP INBOX.
    I think, is there any authorization problem while triggering the mail for that particular user id.. Please tell me the solution, this is very high requirement for me.
    Thanks in Advance.
    Regards,
    Srini

    Hi Chandra,
              Thanks for your reply. Actually i am not workflow consultant, thats why i asking this question. Where to assign the Receipient Type and Recipient Notification.
    you give Recipient Type as position and Recipient of Notification must be position of the reciepient,
    Regards,
    Srini

  • Problem to send a mail of notify to SAP Inbox instead Outlook Inbox

    Hi all,
    I have a customer that it's already done an upgrade to SAP_HR 4.7 and SAP_BASIS 6.20.
    I haven't modify the old Workflow and I use the standard task to send the mail of notify in order to leave request.
    I'm using the method SENDTASKDESCRIPTION of object SELFITEM with type address U and the mail address (external).
    But the mails aren't sending to Outlook, they are sending to SAP Inbox.
    So the employee see the mail into the ESS portal instead to see the mail in Outlook.
    Could you suggest me if the problem is in the task of workflow, or in SCOT or in mail server, please?
    Are there a new functionality in SAP in order to search the user linked with the mail address?
    Thanks in advance for any suggestion.
    Best Regards
    Luca Moschioni

    Hi Luca, i have the same problem, did you found any solution to this?
    thanks you.

  • Problem while opening PDF in SAP Inbox

    I am trying to read the spool from SAP background job and sending to SAP inbox.
    PDF is not opening in th eSAP Inbox...
    Reading from spool using FM
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
          EXPORTING
            rqident = w_spool_no
            DESIRED_TYPE = 'RAW'
          TABLES
            buffer  = w_contents
    Converting into Hexadecimal format
    IF w_contents IS NOT INITIAL.
          CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
            EXPORTING
              ip_solitab  = w_contents
            IMPORTING
              ep_solixtab = w_contents_hex.
        ENDIF.
    Sending mail to SAP inbox using
    I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1

    No reply.

  • Displaying workitem/task execution online rather than in SAP inbox

    Hi All,
    I am using the workflow WS01000045 when implementing the ESS scenario - Employment and Salary Verification.
    The user has the option of printing or faxing these details.
    When the user clicks PRINT the step 81(Print Employment and Salary Verification,Task TS01000076) creates a workitem in the user's SAP inbox.The user can print the details by executing the workitem from the SAP inbox.My requirement is to actually execute the workitem online and show the print preview screen to the user instead of going to SAPinbox(logical because all the employees in a company can't have dialog access to SAP system).
    We are on SAP 4.7(WAS 620) : SAP_BASIS SAPKB62059
                        SAP_HR    SAPKE47055
                        EA-HR     SAPKGPHA55
    ESS is implemented on EP6.0
    Pls advice how to avoid the SAP inbox.
    Regards,
    Kiran.

    Hi Kiran,
    We have a similar requirement. Have you found a solution to your problem?
    Thanks
    Renaud

  • Error when reading a pdf attachment file in sap inbox

    Hi all,
    I have created a RFC which sends mail from an external user to my sap inbox with attachment.
    the problem is with the PDF attachment where when i received the mail in my sap inbox in sbwp, it says that there is an error that it wasnt correctly decode.
    I used the class cl_document_bcs...
    and used the method add_attachment...
    would plz help me out

    this is my code
    FUNCTION ZMAIL_READ.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SUBJECT) TYPE  SO_OBJ_DES
    *"     VALUE(TEXT) TYPE  STRING
    *"     VALUE(SENDER) TYPE  ADR6-SMTP_ADDR
    *"     VALUE(RECEIVER) TYPE  ADR6-SMTP_ADDR
    *"     VALUE(ATTACHMENTS) TYPE  Z_T_XATTACH OPTIONAL
    *"  EXPORTING
    *"     VALUE(MESSAGE) TYPE  STRING
    DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
          lo_bcs_send_request TYPE REF TO cl_bcs,
          l_send type ADR6-SMTP_ADDR ,
          l_rec type  ADR6-SMTP_ADDR .
    data: it_text type table of soli,
          wa_text type soli.
    DATA: lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
    DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    DATA: lv_recipient_uid TYPE uname,
          lv_recipient_mail TYPE adr6-smtp_addr.
    data: lo_message type ref to cx_send_req_bcs value is initial,
          text_val type string.
    data: it_userlist type table of BAPIUSNAME,
          wa_userlist type BAPIUSNAME.
    data: it_selection_range type table of BAPIUSSRGE,
          wa_selection_range type BAPIUSSRGE.
    data: wa_attachment TYPE ZXATTACH,
          attachment_sub type SO_OBJ_DES.
    DATA: xstr type xstring,
          str TYPE string,
          str1 type string,
          it_str2 type table of soli,
          wa_STR2 TYPE SOLI.
    DATA: LOC_CONV TYPE REF TO CL_ABAP_CONV_IN_CE,
          wa_solix type solix,
          it_solix type table of solix,
          wa_soli type soli,
          it_soli type table of soli.
    data result TYPE boolean.
    data: i_ext(10) type c,
          i_type type soodk-objtp.
    wa_text-line = text.
    append wa_text to it_text.
    CLASS cl_bcs DEFINITION LOAD.
    try.
    lo_send_request = cl_bcs=>create_persistent( ).
    catch cx_send_req_bcs.
    endtry.
    * Message body and subject
    data: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
    try.
    lo_document = cl_document_bcs=>create_document(
         i_type = 'RAW'
         i_text =  it_text
         i_subject = subject ).
    catch cx_send_req_bcs.
    catch cx_document_bcs.
    catch cx_address_bcs.
    endtry.
    loop at attachments into wa_attachment.
    attachment_sub = wa_attachment-file_name.
    it_str2 = wa_attachment-attach.
    loop at it_str2 into wa_str2.
      str1 = wa_str2-line.
    try.
    CALL FUNCTION 'SSFC_BASE64_DECODE'
      EXPORTING
        B64DATA                        = str1
    *   B64LENG                        =
    *   B_CHECK                        =
      IMPORTING
        BINDATA                        = xstr
    * EXCEPTIONS
    *   SSF_KRN_ERROR                  = 1
    *   SSF_KRN_NOOP                   = 2
    *   SSF_KRN_NOMEMORY               = 3
    *   SSF_KRN_OPINV                  = 4
    *   SSF_KRN_INPUT_DATA_ERROR       = 5
    *   SSF_KRN_INVALID_PAR            = 6
    *   SSF_KRN_INVALID_PARLEN         = 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.
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    CALL METHOD CL_ABAP_CONV_IN_CE=>CREATE
          EXPORTING
            INPUT       = xstr
            ENCODING    = 'UTF-8'
    *        REPLACEMENT = '?'
    *        IGNORE_CERR = ABAP_TRUE
          RECEIVING
            CONV        = loc_CONV.
    TRY.
        CALL METHOD LOC_CONV->READ
          IMPORTING
            DATA = STR.
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_PARAMETER_INVALID_RANGE.
    ENDTRY.
    wa_solix-line = xstr.
    append wa_solix to it_solix.
    wa_soli-line = str.
    append wa_soli to it_soli.
    endloop.
    try.
    CALL FUNCTION 'SA_KW_RFC_FILENAME_EXT_GET'
      EXPORTING
       AREA            = 'IWBSOLAR'
        MIMETYPE        = wa_attachment-type
    IMPORTING
       EXTENSION       = i_ext
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    i_type = i_ext.
    if i_ext <> 'pdf'.
    try.
      lo_document->add_attachment(
      EXPORTING
        i_attachment_type = i_type
        i_attachment_subject = attachment_sub
        i_att_content_hex = it_solix ).
           CATCH cx_document_bcs.
    endtry.
    clear wa_solix.
    refresh it_solix.
    else.
    TRY.
      CALL METHOD LO_DOCUMENT->ADD_ATTACHMENT
        EXPORTING
          I_ATTACHMENT_TYPE     = i_type
          I_ATTACHMENT_SUBJECT  = attachment_sub
    *      I_ATTACHMENT_SIZE     =
    *      I_ATTACHMENT_LANGUAGE = SPACE
          I_ATT_CONTENT_TEXT    = it_soli
    *      I_ATT_CONTENT_HEX     =
    *      I_ATTACHMENT_HEADER   =
       CATCH CX_DOCUMENT_BCS .
      ENDTRY.
    ENDIF.
    endloop.
    try.
    lo_send_request->set_document( lo_document ).
    CATCH cx_send_req_bcs.
    endtry.
    wa_selection_range-PARAMETER = 'address'.
    wa_selection_range-field = 'e_mail'.
    wa_selection_range-sign = 'I'.
    wa_selection_range-option = 'EQ'.
    wa_selection_range-low = receiver.
    append wa_selection_range to it_selection_range.
    try.
    CALL FUNCTION 'BAPI_USER_GETLIST'
    * EXPORTING
    *   MAX_ROWS              = 0
    *   WITH_USERNAME         = ' '
    * IMPORTING
    *   ROWS                  =
    TABLES
        SELECTION_RANGE       = it_selection_range
    *   SELECTION_EXP         =
        USERLIST              = it_userlist
    *   RETURN                =
    catch cx_sy_dyn_call_illegal_type.
    endtry.
    read table it_userlist into wa_userlist index 1.
    try.
      lo_sender = cl_cam_address_bcs=>create_internet_address( sender ).
      lo_send_request->set_sender(
         EXPORTING
         i_sender = lo_sender ).
    catch cx_send_req_bcs.
    catch cx_document_bcs.
    catch cx_address_bcs.
      return.
    endtry.
    try.
        lo_recipient = cl_sapuser_bcs=>create( wa_userlist-USERNAME ).
        lo_send_request->add_recipient(
           EXPORTING
             i_recipient = lo_recipient ).
    *         i_express = 'X' ).
      catch cx_send_req_bcs.
      catch cx_document_bcs.
      catch cx_address_bcs.
    endtry.
    try.
    ** Send email
         LO_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
         lo_send_request->send( EXPORTING
         i_with_error_screen = ' '
         RECEIVING
         result = result ).
         COMMIT WORK.
    CATCH CX_DOCUMENT_BCS.
    CATCH CX_SEND_REQ_BCS INTO lo_message.
    CATCH CX_ADDRESS_BCS.
    text_val = lo_message->IF_MESSAGE~GET_TEXT( ).
    endtry.
    if result = 'X'.
      message = 'E-Mail sent'.
    else.
      message = 'E-Mail not sent'.
    endif.
    ENDFUNCTION.

  • The work item not coming in SAP inbox ....

    Hi experts,
    I am doing PR realese workflow.It is moved to quality server from development. In quality it is activated and showing no error.When a PR is created  mail is send to approver and the workflow is waiting for his approval. But the work item is not available in his SAP inbox. Even he is getting the remainder mails.But the work item is not available in his business workplace(SBWP).I cross checked user ids of approvers. But still its not working ....the mails are sent to approvers external mail ID.....
    Is there any configurations to make for making the SBWP active ?????
    Pls anyone give me a solution for  this problem...
    Thanks & regards,
    Jayaraj

    Hello,
    The best solution would be to take your mouse, move your cusror to the top part of your screen, and click on the "Before you ask (here are many workflow answers)" thread. If you've tried everything that is proposed there then please reply to this thread explaing what you have tried.
    Cheers,
    P.

  • RE: Mail sent to SAP inbox-Urgent.

    Hi,
    I sent mail with attachment( internal table contents) to SAP inbox using the below codw.
       DATA: l_text TYPE char255.  " Text
    *DATA: l_text(280) TYPE c.  " Text
    DATA: l_lines TYPE i,
          l_size    TYPE  sood-objlen.      " Size of Attachment
    Mail related
    DATA: i_content         TYPE   soli_tab, " Mail content
          i_attach          TYPE   soli_tab. " Attachment
    DATA: l_send_request    TYPE REF TO    cl_bcs,   " E-Mail Send Request
          l_document        TYPE REF TO    cl_document_bcs,   " E-Mail Attachment
          l_recipient       TYPE REF TO    if_recipient_bcs,  " Distribution List
          l_sender          TYPE REF TO    if_sender_bcs,     " Address of Sender
          l_uname           TYPE           salrtdrcpt,        " Sender Name(SY-UNAME)
          l_bcs_exception   TYPE REF TO    cx_document_bcs,   " BCS Exception
          l_addr_exception  TYPE REF TO    cx_address_bcs,    " Address Exception
          l_send_exception  TYPE REF TO    cx_send_req_bcs.   " E-Mail sending Exception
    DATA: l_recipient_soos  TYPE           soos1.
    *data : p_uname TYPE ad_smtpadr .
    FORM send_to_sap_mail .
    Preparing body of the Mail
      MOVE 'Pending Delivery Documents List' TO l_text.
      APPEND l_text TO i_content.
    Preparing contents of attachment with Change Log
      PERFORM prepare_attachment.
    Creates persistent send request
      TRY.
          l_send_request = cl_bcs=>create_persistent( ).
    Creating Document
          l_document = cl_document_bcs=>create_document(
                                        i_type  = 'RAW'
                                        i_text  = i_content[]
                                        i_subject = 'Pending Delivery Documents' ).
         DESCRIBE TABLE i_mara LINES l_lines.
    DESCRIBE TABLE it_output LINES l_lines.
    Size to multiplied by 2 for UNICODE enabled systems
          l_size = l_lines * 2 * 255.
    Adding Attachment
          CALL METHOD l_document->add_attachment
            EXPORTING
              i_attachment_type    = c_ext
              i_attachment_size    = l_size
              i_attachment_subject = 'Pending Delivery Documents'
              i_att_content_text   = i_attach[].
    Add document to send request
          CALL METHOD l_send_request->set_document( l_document ).
    Get Sender Object
          l_uname = sy-uname.
          l_sender = cl_sapuser_bcs=>create( l_uname ).
          CALL METHOD l_send_request->set_sender
            EXPORTING
              i_sender = l_sender.
    E-Mail
          TRANSLATE p_uname TO UPPER CASE.
         l_recipient_soos-recesc = 'B'.
         l_recipient_soos-recnam = p_uname.
    Preparing recepient from SAP Logon Name
              CALL METHOD cl_send_request_bcs=>create_recipient_from_soos1
                    EXPORTING
                      i_soos1 = l_recipient_soos
                    RECEIVING
                      result = l_recipient.
    Add Recipient
          CALL METHOD l_send_request->add_recipient
            EXPORTING
              i_recipient  = l_recipient
              i_express    = 'U'
              i_copy       = ' '
              i_blind_copy = ' '
              i_no_forward = ' '.
    *Trigger E-Mail immediately
          l_send_request->set_send_immediately( 'X' ).
          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.
    Refresh it_output.
    clear l_text.
    clear I_content.
    refresh I_attach.
    ENDFORM.                    " Send_to_sap_mail
    *&      Form  prepare_attachment
          text
    -->  p1        text
    <--  p2        text
    FORM prepare_attachment .
    FIELD-SYMBOLS: <lfs_table>,    " Internal table structure
                     <lfs_con>.      " Field Content
    DATA: l_text TYPE char1024.     " Text content for mail attachment
    DATA: l_text(1280) TYPE c.     " Text content for mail attachment
      DATA: l_con(50) TYPE c.        " Field Content in character format
    Columns to be tab delimeted
      LOOP AT it_output ASSIGNING <lfs_table>.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE <lfs_table>
                 TO <lfs_con>.
          IF sy-subrc NE 0.
            CONCATENATE c_cr l_text INTO l_text.
            APPEND l_text TO i_attach.
            EXIT.
          ELSE.
            CLEAR: l_con.
            MOVE <lfs_con> TO l_con.
            CONDENSE l_con.
            IF sy-index = 1.
              CLEAR: l_text.
              MOVE l_con TO l_text.
            ELSE.
              CONCATENATE l_text l_con INTO l_text
                 SEPARATED BY c_tab.
            ENDIF.
          ENDIF.
        ENDDO.
      ENDLOOP.
    ENDFORM.                    " prepare_attachment
    Here my problem is in my internal table i have 30 columns and the row output length is more than 255 char,
    and the SOLI structure fields defined as CHAR255, thats why when i am opening the sap mail attachment in Excel sheet, last three fields data is not displaying can any one please let me know the answer.

    loop at output_table.
      concatenate g_string
                         filed1
                         filed2
                     CL_ABAP_CHAR_UTILITIES=>CR_LF
      into g_string separted by
               CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    endloop.
    now pass the filled string to
    CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
        EXPORTING
          text            = g_string
      IMPORTING
        LENGTH          = LENGTH
        TABLES
          ftext_tab       = obj_bin.
    pass this objbin to SO_NEW_DOCUMENT_ATT_SEND_API1
    now you will get the desired excel sheet.
    NOte: dont put urgent in your subject.it is arule that people should not ans question which have urgent.
    Edited by: S.r.v.r.Kumar on Jun 18, 2008 10:25 PM

  • 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

  • Open transaction when click in the link in sap inbox body text

    Hi all,
    Requirement :
    Have to send mail through program (not workflow) and in the mail body one link should go to the sap inbox. when user click that link it should open the transaction with passing some values to the transaction.
    Solution :
    Can we use the java script in the mail sending FM body so that we can raise a event when clicking the link in sap inbox.
    Please suggest some method to solve the problem.
    Regards,

    Hi,
    Here is the sample code:
    DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
    -ASB

  • Work item stucked on SAP inbox

    Hi Gurus,
    I have a problem on workflow items that are stucked on our approver's SAP inbox even after the PR or PO has already been approved/released. When I check the log, the status is still "In Process". This does not happen always and not for all our PR/PO docs.
    Can you help/guide me on where to look for the root cause so i'll know where to correct.
    Thanks,
    Marianne

    Hi MM,
    how is the PR/PO done for these workitems that are stuck?
    I mean was it sent to users SAP Inbox and he released it from his Inbox, or is it that though he got a workitem in his SAP Inbox, he released it thru ME54N/ME28N.
    Because in the later case, you have to define your WF such that if user directly releases them from the T-codes, it should terminate that WF so that it deletes from users SAP Inbox.
    Hope it helps.
    Aditya

  • Purchase Requisition Work -item disappering from SAP inbox

    Hi,
    My users are forwarding  Purchase requisition work item from SAP inbox which is disappearing from agent inbox as well from forwarded inbox also.Please guide me
    Abhijit Bagade

    Hi Abhijit
    Please refer to SAP not 1308276 .Which tell about the work items.
    1308276 - WF: Forwarded work items are not displayed in the inbox
    Hope this will solve your problem
    Regards,
    Nitin Amritkar

  • PR Workflow delay in sending a notification to SAP inbox of approver

    Hi All,
    We are experiencing a problem in PROD regarding the time delay of workflow in sending the PR to the approver in his SAP inbox.
    The current set-up is expected to be operating in runtime. However, we experience delays in the notification.
    In runtime graphics, the workflow stays in the background activity. The workflow is expected to just swiftly run the background activity and move to the next activity.
    May I know the steps on solving this error?
    Thanks in advance.
    Regards,
    Reymar

    Hi
    i think background job sheduled timelimit, how much time is taking time to get workitem into ur inbox/ check with basis gut how theysheduled background jo running or check SOST transaction transmission r processing or not.

  • Workitem exists in SAP Inbox But does not appear in UWL for some users

    Hi,
    We have a peculiar problem with a standard workflow. This workflow is working fine in SAP Inbox and UWL in portal for most of the users. But sometimes, it does not send workitem to UWL for some users.
    Any input of as why this happens?

    Hi All,
    I had experienced this type of problem as well, just to share it could be that the Identity of the Portal user misses a role which can be solved by any user assigning the identity in their identity management or it could also be the connection status of the UWL to the backend, there should be at least two connection statuses for workflow items to get into the UWL I could not recall it but I would post it here once I have the access to our system again.
    Cheers,

  • MRP Exception report to send to SAP inbox

    Hello friends,
    The MRP exception report comes to my outlook and these reports are huge in size. I want them to go to my SAP inbox instead of outlook. I have changed the communication method of my user setting from "INT E-MAIL" to "E-Mail" but it didn't solve the problem.
    Could you please help me?
    Thanks,
    Rana

    Hi Amit,
    The issue is, when the MRP exception reports are generated, the reports come to my outlook. I want these reports to go directly to my SAP inbox without any manual intervention and I also do not want them to come to my MS outlook.
    This works for other users and after doing a comparision with their user setting, I changed my communication method to 'E-Mail' but this didn't help me.
    I think I could make myself clear. Please help me out if you have the solution.
    Thanks again,
    Rana.

Maybe you are looking for

  • Files will not open in photoshop

    Photshop Elements 8 ... opens fine... but when i go to open a file in it will go to the photoshop screen but file will not come up ... no errors etc it just wont open .. Help please

  • Condition on Mapping in Repeating Records

    Hi, This is my map file : My input file is as follows: <ns0:Root xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema">   <InputMessagePart_0>     <ns1:Response xmlns:ns1="http://Interplx_ndPhase.SourceSchema">       <Employees>         <Em

  • No response When I clicked Bex Broadcaster

    Hi All, In BW Development system I am able to Broadcast my query into Internet Explorer. Where as BW Quality system not able to do it, when I clicked Bex Broadcaster option In query designer, No response. FYI..I have authorizations as like BW Develop

  • AIR 3.4 Bug?

    When I had AIR 3.3 and compiled my project to put onto my iphone for testing, everything worked. However, with AIR 3.4, there's just a blank screen, my backround color. Anyone else experience the same thing, or have a solution?

  • Possible typo in Beginner's Guide

    While going through the Beginner's Guide (https://wiki.archlinux.org/index.php/Beginners%27_Guide), I noticed a word "thw" in "Swap partition" section. There is only 1 occurrence, so it's easy to find. Perhaps it's a typo for "the". sol