Executing/accessing workitem(approv./rejects on BSPage ) from Outlook

Hi
Could you plz guide me on the following requirement.
A request should be approved by manager. And its a BSP application. Both request creation and approval is through BSP pages. I understand we have to generate(from WF_EXTSRV) a WF Task with reference to Approval BSP page. And include the same task in the workflow. So whenever a request is created, a workitem will be sent to manager's SAP-inbox. so when workitem is executed approval BSP page will be opned in a browser where manager will either approvr/rejects[he will also provide reason on the page].
But the business process is such a way that manager will execute the workitems only from outlook.
So now my question is, workitem should be availble in outlook for manager's access. How a mail can be sent to manager's inbox with links to workitem, whenever a request is created. So that when clicked on the link, work item should be executed & approval BSP page should be open in browser. Manager will either approv/reject the request which is in process. And then manger's action should be sent back to workflow.
Please let me know what configuration is required in order to achive this requirement. let me know where can i find the help(URL) for this configuration.
Regards,
KR
Message was edited by: K R
Message was edited by: K R

So if i get this right, you want to send a mail from the System to the Manager. The Manager should receive a link to the correct BSP Page. OK i use something like that...
A function module with this code:
function z_tpaf_send_14days_mail.
""Lokale Schnittstelle:
*"  IMPORTING
*"     REFERENCE(IWA_DATA) TYPE  >(DDIC TABLE)<
*"  EXCEPTIONS
*"      CONTACT_ERROR
*"      NO_MAIL_ADRESS
*"      MESSAGE_NOT_SENT
*"      SAP_CONTACT_NOT_EXIST
  class cl_abap_char_utilities definition load.
  data: lwa_sadrpx  type sadrpx,
        lwa_sadr10  type sadr10,
        lt_mail     type table of solisti1,
        lwa_mail    type solisti1,
        ls_doc      like sodocchgi1,
        lt_rec      type table of somlreci1,
        wa_rec      type somlreci1,
        lv_int      type i,
        lwa_rfc     type ztpa_customize,
        lwa_link    type ztpa_customize,
        lt_text     type table of solisti1,
        lt_vsadrp   type table of v_sadrp,
        lwa_vsadrp  type v_sadrp.
  select single adrnr from sadrpx into corresponding fields of lwa_sadrpx
  where susid = iwa_data-userid.
  if sy-subrc ne 0.
    raise contact_error.
  endif.
  select single * from sadr10 into lwa_sadr10
    where adrnr = lwa_sadrpx-adrnr
    and   lfdnr = '001'.
  if lwa_sadr10-smtp_adr is initial.
    raise no_mail_adress.
  endif.
  select single * from ztpa_customize into lwa_rfc
    where sysid = sy-sysid
    and   type  = 'RFC_MAIL'.
  select single * from ztpa_customize into lwa_link
    where sysid = sy-sysid
    and   type  = 'LINK_NOTI'.
  wa_rec-receiver = lwa_sadr10-smtp_adr.
  wa_rec-rec_type = 'U'.
  append wa_rec to lt_rec.
    call function 'BN_USER_FETCH'
    exporting
      input                 = iwa_data-userid
      LEFT_COMPANY          = ' '
      MULTIPLE              = ' '
    no_dialog             = 'X'
      SEND_EXTERN           = ' '
      SEND_INTERN           = 'X'
      SEND_PRIVAT           = ' '
    IMPORTING
      ADDRESS               =
      VOLLNAME              =
    tables
      user                  = lt_vsadrp
   exceptions
     entry_incorrect       = 1
     id_not_exist          = 2
     no_entry              = 3
     user_locked           = 4
     user_not_exist        = 5
     others                = 6.
  read table lt_vsadrp into lwa_vsadrp index 1.
  if lwa_vsadrp is initial.
    raise sap_contact_not_exist.
  endif.
***********************************START MAIL TEXT******************************
  concatenate 'Dear ' lwa_vsadrp-name1 into lwa_mail separated by space.
  append lwa_mail to lt_mail.
  lwa_mail = '>TEXTTEXTTEXT'.
  append lwa_mail to lt_mail.
  lwa_mail = .'.
  append lwa_mail to lt_mail.
  lwa_mail = ''.
  append lwa_mail to lt_mail.
    lwa_mail = ''.
  append lwa_mail to lt_mail.
***********************************END TEXT******************************
  ls_doc-obj_name = 'Notification'.
CONCATENATE 'Notification Change Request' wa_creq-change_id INTO ls_doc-obj_descr SEPARATED BY space.
  ls_doc-obj_descr = 'Notification Third Party Access Request TIME OUT'.
  ls_doc-sensitivty = 'O'.
  describe table lt_mail lines lv_int.
  lv_int =  lv_int * 255.
  ls_doc-doc_size = lv_int.
  call function 'SO_NEW_DOCUMENT_SEND_API1'
    destination lwa_rfc-value
    exporting
      document_data                    = ls_doc
    DOCUMENT_TYPE                    = 'RAW'
    PUT_IN_OUTBOX                    = ' '
      commit_work                      = 'X'
  IMPORTING
    SENT_TO_ALL                      =
    NEW_OBJECT_ID                    =
    tables
    OBJECT_HEADER                    =
    CONTENTS_HEX                     =
    OBJECT_PARA                      =
    OBJECT_PARB                      =
      object_content                   = lt_mail
      receivers                        = lt_rec
   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.
    raise message_not_sent.
  endif.
endfunction.
I hope this helps...
Regards
Lars

Similar Messages

  • Submit / Approve / Reject Infopath Forms from within Outlook Email

    Hi,
    I have a requirement where I am building workflows for a client in SP2013. I am using Infopath and Nintex.  The client has a specific requirement that all end-user actions need to be handled from within the outlook email body context i.e. the Infopath
    form will be embedded within the email body from where each user within the worklfow will access the form and interact based on their actions.
    So my query is,
    1) How to control the Views for each user within the Infopath form if its to be embedded within the Outlook email.
    2) How to control the actions for the user interaction (submit, approve, reject, etc.) so as to ensure the workflow proceeds with its process cycle as expected.
    In the whole scenario, the end-user wont access the inofpath form in the web browser or the infopath client application. It will be accessed from within the Outlook email.
    Rgds,
    S
    SSP

    Hi,
    When we use SharePoint approval workflow to assign tasks for users, then the tasks will be sent together with the email, users can click Open this task button in Outlook to view the task form.
    https://support.office.com/en-nz/article/Understand-approval-workflows-in-SharePoint-2010-a24bcd14-0e3c-4449-b936-267d6c478579
    When you submit an InfoPath form as a email, then users can click Open Form button to open the forms from Outlook which needs to have InfoPath installed.
    https://support.office.com/en-us/article/Submit-form-data-in-an-e-mail-message-99a4b32c-1512-4ff2-8d3b-c7285300a931
    Best regards,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Approve / reject review activity from mail notification

    Hi SM Expert, 
    It's possible to approve or reject review activities from mail notification on Lotus Notes ?
    Thanks 

    If lotus notes can send e-mails - YES.
    Maybe this helps:
    http://blogs.technet.com/b/servicemanager/archive/2011/02/08/tricky-way-to-handle-review-activity-approvals-with-the-exchange-connector.aspx
    Patrick Wahlmüller

  • Approving sharepoint workflow task from outlook

    I want to put approve reject buttons in email body for SharePoint Online Workflow.
     any body have idea how to do it?
    Kaps

    Hi,
    check the following, if this solution didn't work then you will need to check Nintex
    https://realworldsharepoint.wordpress.com/2012/06/27/lazy-approval-with-sharepoint-part-1-approve-task-via-email/
    https://realworldsharepoint.wordpress.com/2012/06/28/lazy-approval-with-sharepoint-approve-task-via-email-part-2/
    https://realworldsharepoint.wordpress.com/2012/06/28/lazy-approval-with-sharepoint-approve-task-via-email-part-3/
    Kind Regards,
    John Naguib
    Senior Consultant
    John Naguib Blog
    John Naguib Twitter
    Please remember to mark this as answered if it helped you

  • Approve/Reject from Outlook ?

    Hi,
    I got the requirement  that Send a mail to the outlook. up to this is fine. But the user wants to take decision from Outlook itself?
    How can we maintain Approve & Reject in Outlook. How the response will come back & Effect on the BO. Please explain?

    Akash,
    There are other ways to do it but the best way is to use Extended Notifications.  If your workflow task is a User Decision (it should be) then you can make the approve/reject links show in Outlook as follows: call SWNADMIN, go to Subscriptions, select the relevant subscription, go to the Message tab, near the bottom is "Show User Decision As". Set that to "HTTP Link", save it and you should be done.
    Hope that helps!
    Margaret

  • Approval a task in Microsoft Outlook

    Hi,
      I'm facing one difficut problem.
    Our client want approval/Reject task in MS Outlook , not in UWL.
    Is there any way or technology support this function  ? 
    Thanks in advance!
    ( our envirement: NW BPM 7.3 ,
       Develop tool:  WDJ and WDA )

    Hi,
    You can write HTML page with approve/reject option, but it requires more coding. A simple solution is write a servelet using BPM API to complete the task based on URL parameter. So, the email should have the URL with parameter:
    If the servlet URL is: http://host:50000/servlet/bpmprocess, then the URL should accept parameters for the task id and approved or rejected:
    http://host:50000/servlet/bpmprocess?processId=oi90909djduj&taskId=87837jd3jd&approved=true
    http://host:50000/servlet/bpmprocess?processId=oi90909djduj&taskId=87837jd3jd&approved=false
    So based on user decision, he can click on the one of the URL to complete the task.
    Thanks
    Abhilash

  • Executing a workitem from UWL for approval process in ESS/MSS

    Hi All,
    I am working on ESS/MSS workflows...Everything is configured and also workflow is developed...When i try to execute a workitem from UWL to approve a PCR, i am getting a message in the status bar as "work item exucuted(new processing status:"in process"). But it's not launching the SAP transaction for approval.
    Can anyone tell what is the probelm....
    Thanks,
    Sunil

    Hi Sunil,
              how r u, i have also same dout i know the configuration steps of UWL but i don't know how to Configuration of Universal worklist and Timesheet application in ESS/MSS to display at manager side....i am new to this ESS and MSS Configuration side.....i request to u could u please tell me the step by step procedure or else if u have any configuration steps which u have already done please send me a mail to my id : [email protected]
    really i appreciate your help....i will be waiting for your mail.....
    Thanks and Regards,
    Abhiram.

  • Approve workitems from outlook

    Dear Experts,
    I want to approve workitems from outlook. I learnt that we can use Microsoft Duet for this. Can you please tell me whether Duet can be used for approval from outlook for both standard workflows as well as custom workflows. Also please tell me whether irrespective of workflow being standard or custom the features, content and process of approving workitems from outlook, will it be the same for both the case. Or will there be any features or functionality that will be missing or can't be incorporated in case of custom workflows. Will only a link be displayed in outlook clicking on which it will open the workitem or will the workitem similar to that displayed in SBWP be displayed. In caseof link then it will a round about way of approving from SBWP.
    I also learnt that this can be done by extended notifications. Can workitems be approved in case of using extended notifications or just notications can be sent using this. Please highlight me in this regard.
    KR,
    Bharath
    Edited by: bharath padmanabhan on Oct 27, 2009 8:44 AM

    Hi bharath ,
          You are asolutely right ,there are 2 appraoches -
    1) Microsoft Duet
    SAP provides Leave Management in Duet .
    With duet , any  SAP workflow approval step can be handled Through Microsoft outlook .
    For this the prerequisites are
    a) MS office client
    b) MS windows server
    c) SAP ERP
    d) MS exchange
    in Duet the user is logged on to windows and gets validated with SAP,
    you can search more on leave management through duet .
    2) extended notifications
    In extended notification , workflow work item would be sent in MS outlook inbox .User will be asked to provide SAP login and id and password to access the workitem .This will open SBWP for them .
    this can be checked using report RSWUWFML2.
    http://wiki.sdn.sap.com/wiki/display/ABAP/Workitemintimationintheemail
    you will find a lot on this in sdn .
    hope this helps.
    thanks,
    sahiba

  • Approve/Reject buttons in UWL workitems

    Hello,
    We are on EP7.01 SP 7 implementing ESS/MSS. We configured UWL Connector under System Admin.-> UWL Config. to pull workitems from R/3 Inbox.
    The workitems are coming fine for 'Travel and Expense' , but there are no Approve/Reject buttons there for the Manager to Approve or Reject the Travel Request.
    Please help as to why this is happening.
    Any help would be highly appreciated.
    Thanks.

    Hi,
    Did you apply 1133821?  95% of the time this will resolve the issue with the buttons.  If you are still experiencing the issue after applying this note, please also check the following:
    - Check that after applying Note 1133821 the destination names and the
    UWL connector names exactly match, even considering case-sensitiveness.
    If your portal system alias (=UWL connector name) is for example
    XYZCLNT100, then the rfc destination name should be exactly
    XYZCLNT100$WebFlowConnector. Please correct the rfc destination
    accordingly.
    - After you have checked/prepared the RFC destination for the future use
    please delete that connector in the UWL config UI (Portal->System
    Administration->System Configuration->Universal Worklist) with which you
    would like to use this RFC destination.
    After that
    - restart the portal cluster
    - recreate and reregister connector
    Now retest.  Are you still seeing the issue?
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    http://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • "Page not found or not available" error when accessing workitem from UWL

    Hi SAP Gurus,
    I encounter a perculiar problem in our portal system, was wondering if any of you guys encounter it before.
    When one of the users accesses the UWL screen and click on a particular workitem(approve trips), he gets a portal error message "Page not found or not available".
    Usually we get this message if the user does not have some form of authorization, but the things is I have setup the permissions of the UWL for "end-user" for "everyone" and all existing roles in the portal.
    heres our systems setup:
    -R/3 4.7
    -ITS 6.2
    -EP7
    -Authentication through LDAP server, the roles in the server are tied to the groups that the LDAP ID is tied to.
    The funny thing is, only this particular user has the problem, other users with the same roles didn't encounter such message. Also, the user do not have problem accessing to other UWL workitems, (eg, leave approval, claims, etc) only the Trips Approval have the problem.
    Anyone have any ideas? Could it be some roles in the R/3 side. Any suggestions?
    As usual, point will be awarded to useful answers.
    Regards,
    Jansen

    Answered for myself.  My situation related to the Credit/Dispute Management application. In my case, a standard task type was also defined for another application.  I had re-prioritize the xml configuration for Credit Manager, and modify the xml to include a system alias within the item configuration.  Now, my item is using the correct configuration and tasks are launching correctly from the UWL.
    Thanks!
    - David
    PS - Did not need to do back-end configuration.
    Message was edited by: David Karpman

  • Approve and Reject of a workflow from outlook

    Hi,
      We have a requirement in which the approval and rejection of the workflow has to be done from outlook inbox. Please let me know in what way can this be achieved.
    I have gone throuigh the SWNCONFIG documentation, However I am not sure on whether it satifies the above requirement. Kindly let me know if this is possible using SWNCONFIG.
    Regards,
              Milan Thaker

    Hi MT,
    well as our friends suggested about DUET, DUET is a separate software altogether.
    Its an Outlook synchronization with SAP, but it is limited to very few business processes.
    Now question is,
    a) what is your business process which you are looking for?
    b) Your actual requirement is to approve/reject thru Outlook, well this could be resolved in a different way, that is, say for instance your business process is for Invoice Verification, where you want user to approve or reject. In this case you can integrate Outlook with SAP for this process, where the user would get the workitem in his/her Outlook, the moment the user db-clicks on it, it would take him to SAP tcode for releasing the Invoice block. This could be done thru RSWUWFML2 for all SAP versions or thru SWNCONFIG for ECC versions.
    c) If this is not you looking for, then I doubt if such an integration is possible, because getting an Approve and Reject button in your Outlook would be difficult.
    d) Else if your organization has EP or UWL installed, then Approve/Rject buttons could be populated.
    Hope it helps.
    Aditya

  • Approval/Rejection of Access Request through email functionality not workin

    Hello Gurus,
    We have configured CUP with workflow and everything is working fine along with email notification triggers etc..
    In MSMP configuration , for task settings i have we see that there are various option and check boxes with options
    1)Approval by email
    2) Rejection by email !!
    Which i have ticked very happily but when i get a notification regarding approval . it is plain text e.g)
    Dear Approver,
    There are new workitem(s) in your work inbox . Please perform the necessary actions.
    Kind regards,
    Access Control Administrator
    Now i am wondering how can i get the approve & reject button in the email ??
    I suppose this functionality was available in GRC 5.3.
    Please correct me if i have understood this functionality wrong or something !!
    Else what settings have to be done to enable it ??
    Thanks in advance.
    Regards,
    Victor

    Hello Diego,
    Thank you for providing me a very good document.
    I checked it and i found that i had selected "default" templates for notification events
    END_OF_REQUEST & REQUEST_SUBMISSION.
    But when i went on to one more template  ID  of "GRAC_AR_APP_BY_EMAIL" i only found that i could select
    recipients (Agent Names)
    Current Approvers
    Manager Notifications
    Other Approvers
    Requester
    User
    I could not find a way through which i could select the "Custom" Agents i have created whose "Agent Purpose" was "APPROVE"
    If i am not wrong , should i add those Custom agents under step three (Maintain Agents) & assign them Agent purpose as "Notification" only then will i be able to see them ??
    Please correct me if i am wrong !!
    Thanks in advance.
    Regards,
    Victor

  • Multiple approvers and one approver execute the workitem without complete

    Hi all,
    In case of multiple approvers, if approver-A executed the workitem but cancel it without complete.  The workitem will stay only in approver-A SAP inbox and disappear from other approvers' inboxes.  Is this a standard way?
    For whatever reason, if approver-A cannot execute the workitem.  What can be done by workflow administrator to make the workitem appear again in other approver's inboxes?
    Thanks and Regards,
    Donald

    Hi Donald,
    Yes this is the standard behavior of workflow.
    If you send the work item's to the multiple approver's and one approver open the work item it will disappear from all other's inbox.
    if the approver A open's the work item, then it will disappear from other's inbox. You can use the fm SAP_WAPI_FORWARD_WORKITEM to forward the work item's to the other user.
    Thanks,
    Viji.

  • Calling ADF page Custom Listener (Ex: ActionListener) from BPM Process Task (APPROVE/REJECT)

    Hi All,
    Jdeveloper version - 11.1.1.7
    I am very new to BPM / SOA development, but I have very good development skills on ADF.
    I am not using ADF BC, using EJB for business services and also using custom ADF pages for HumanTasks.
    Usecase:
    From the BPM Process task, when process submission (APPROVE / REJECT) , I need to invoke a Custom listener (Ex.Action Listener - a EJB call) in the ADF page.
    I am trying to use BPM APIs.
    Please clarify me how this will achieve using BPM APIs. I need detail guidelines to do it. Please make to understand this process.
    Provide some useful documentation or links to understand the following:
    1. Custom Human task pages
    2. BPM APIs - 11.1.1.7
    3. Call a BPM process task from ADF Listener and Call a ADF Listener from BPM Process task - Using BPM APIs.
    Please revert more clarifications needed.
    Thanks and Regards
    Mohanraj N

    Hi Joonas.
    Plese let me explain me better for your understanding
    A big summary for what I meant it's the following:
    1- In the procces you made, when you add the HT activity, you have to implement it, this means declare the input(s) parameters you want. This implementation create the .task file.
    2- Create an application, and projects as HT you have. Each poject are based on the .task file, and automatically create a Data Control (for each project based on a .task) with all you need.
    This w'll be an empty application, so you can customize it all you want. The task selected should have all the parameters previously defined. Those parameters can change if you want.
    2- Create a page(s) in the task flow for the task implementation. You can even split the the payload of the task in differents pages, create your custom pages and any logic you need.
    3- An important aspect is how to match these application with the HT implemented in the process. It's possible, it's a configuration en the Enterprise Manager.
    4- Deploy your application
    All these are explain in the book I mentioned
    Th book you can find it here:
    https://blogs.oracle.com/soacommunity/entry/oracle_soa_suite_11g_handbook_1
    Regards Dariel.
    PS: Please, let me know if you need more details.

  • Error in SAPLogon executing a Workitem from Outlook.

    Hi everyone, I have set the communication between  SAPWorkflow and Outlook, SAP send the workitems to the Internet account for each user without any problem. The situation that I got is when Iu2019m executing the Workitem from Outlook and It try to make the logon to SAP, this is what happened:
    . In the Outlook message I make a click over the attachment to execute the Workitem.
    . The interface shows up a pop up to type the password for the user which own the Workitemu2026..Itu2019s ok so far!!
    . Once when I have type the password, thereu2019s a second window which correspond to the main and first SAP window to ask for the initial information (Client, User, Password) but in the bar below, thereu2019s an error telling me that the Client is not available on this system, and the field for the client is in blank; so I have to type the client and the password again(something wrong here!!), but the user still fine.
    . After typed all those fields (client and password), the system make a logon and brings me the right transaction and the rest works perfectly.
    I donu2019t think the error could be in field SAPLOGON_ID  in the variant for the program RSWUWFML2 because I have set this variant several times in different SAP systems  with the same information and works fine, for your information, this field goes in blank.
    Thanks any help to avoid this error in the logon system and be able to enter directly to SAP system.
    Regards
    Felipe Uribe

    Hi Aditya, I really don't understand your comment, I sent you the version as I wrote you before on this forum in this topic (see *), additionally as I wrote here, I've found the solution and It wasn't related to Windows or Internet Explorer, The problem as the note that I attached says that the problem is because the standard  SAP function to create the shortcut does not have the right parameter as We need (SY-MANDT).
    I think this is very reasonable answer and good orientation for anyone.
    Anyway, thanks a lot for all your help.
    Regards
    Felipe.
    (* Posts: 34 Registered: 12/22/07
       message Posted: Jan 13, 2009 9:19 AM    in response to: Aditya Varrier     
    Hi Aditya, I'm using Internet Explorer 7, Winsdows Vista.
    I really think Windows and my machine are not the problem because I have another Client in which It's working perfectly. So, all the fact point to the Client configuration in some place in SAP installation.
    Any idea?
    Thanks a lot. )

Maybe you are looking for

  • Thumbnails will not load in elements 12 organizer, using windows 8.1

    The thumbnails will not load (hourglass icon appears on each photo) on Elements 12 using Windows 8.1.  I have updated the Elements to Core Version 12.1.  Any ideas how to fix this?

  • Running WPA Wireless security w/ OSX 10.2

    I am running an older G3 iBook on my wireless system and it does not seem to work with WPA wireless security. I am using a Netgear G614 router, which works fine except with the iBook. The iBook has no problem with the wireless security turned off and

  • Ipod mini skips songs

    I have a 4g mini that started rapidly skipping song as soon as itunes updated to v6. I hoped v7 would fix it but not luck. I've tried restoring and it works for a little while but after about a week it starts again. It usually happens with purchased

  • Re-installing iTunes folder

    I am going to erase my hard drive and reinstall software from scratch. What is the best way to reintall all itunes data? I can think of two options: 1- Do nothing other than sync my ipod with iTunes and everything will get transferred from the ipod b

  • Illustrator CS5 crashes during startup in Mac OS Yosemite

    Hello Adobe forum, For the past few days I have been trying to fix my Illustrtator CS5 app but it keeps crashing during start up. I got a new Mac Book Pro. I transfered all of my files and I did a clean installation of my Adobe CS5 Suite Design premi