User Decision with Secondary Method

Dear All,
I have created a user decision step for Leave Request workflow (ie. to approve or reject ).
This is done for multiple approvals of leave request through UWL i.e. user can select multiple requests & take decisions(approve/reject).
In the user decision step, i want to use a method other than standard task TS00008267.
In the methods tab i have used Secondary Method,
Object Category as Class
Obj.Type as CL_PT_REQ_WF_ATTRIBS
Method DUMMY.( as per the standard workflow - WS12300111).
But no value is returned by this method. How can binding be done here so as to use the values in further steps??
Please help.
Regards,
Vidya

Hey it is very easy to know whetehr the leave is approved or not. and even you can get this decision into the workflow container
No need of using any secondary methods SURE
See the step Approval in the Leave workflow will use Dummy method of that class that you have mentioned.
Your staus is updated in the REQ container element of the workflow , it is the that you mentioned, in that class you have a attribute with name Status whe you approve it will be changed to Approved when the leave is created it will be Sent , so by using a Condition step check this attribute value if it is approved then in update one conatiner element  by using Container operation step.

Similar Messages

  • UWL - Default buttons on User decision with note

    Hello!!
    I have configured a decision item from a decision task to set the user decision with note.
    My decision task has 2 decision options (accept is"Validar gasto" and reject is "Devolver gasto para correccion"), but when an item for this task comes, only is displayed two buttons with the text "Decision".
    This is the configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'
      >
    <UWLConfiguration version="1.0">
      <ItemTypes>
        <ItemType name="uwl.task.webflow.decision.TS99701053.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="viewDetail" executionMode="default">
          <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType="TS99701053" connector="WebFlowConnector"/>
           <Actions>
            <Action name="accept" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no" referenceBundle="Validar_gasto">
              <Properties>
                <Property name="decisionKey" value="1"/>
                <Property name="UserDecisionNote" value="true"/>
              </Properties>
              <Descriptions default="Aceptar"/>     
             </Action>
            <Action name="reject" groupAction="yes" handler="UserDecisionHandler" returnToDetailViewAllowed="yes" launchInNewWindow="no" referenceBundle="Devolver_gasto_para_correccion">
              <Properties>     
                <Property name="decisionKey" value="2"/>
                <Property name="UserDecisionNote" value="mandatory"/>
              </Properties>
              <Descriptions default="Rechazar"/>
             </Action>
           </Actions>
        </ItemType>
      </ItemTypes>
    </UWLConfiguration>
    Somebody knows how can I change the text of the buttons?
    Is very urgent, please.
    Helpful answers will be rewarded.
    Thanks and regards,
    Manuel.

    I think what Karri means (or should mean ,-) is that there could be a translation issue here - and I agree with that. The texts are most likely generated in the language of the user who creates the work item. If this is not Spanish (I assume that's your logon and development language) you will not get the correct texts. So you will either need to change the logon language of the user, or translate the workflow's texts. I would recommend translation, because you never know when someone might log on in a different language than the system default. It has been known to happen.

  • Problems with secondary methods in workflow

    Hi experts.
    I am starting my WF through the SAP_WAPI_START_WORKFLOW in SE37.
    My WF consistst of a decision step with a secondary method, amodal method, which calls a custom method (call_url).
    The method call_url has been tested in SE80 and in WF with synchronous dialog chain(BMWP) where it works fine.
    Since UWL doesn`t support Synchronous dialog chain, I need to make a workaround.
    Problem:
    When I start the WF and enter MSS to open the workitem, I can see the attachment (call_url method). However, when I try to click on the link for the attachment (which is going to execute my custom method) I only get an errormessage.
    The errormessage says:
    "An error has occured during calling attachment. Try again and inform the system administrator about this problem".
    I have been checkin SU53, it is not an authorization issue.
    I have been reading Gatlings blog about secondary methods and searching the web about the issue with no luck.
    Any ideas how to solve it?
    <<text removed>>
    Thanks in advance.
    Best regards,
    Tor
    Edited by: Matt on Feb 10, 2009 5:06 PM - please do not offer rewards.  Please do read the Terms of Engagement of these forums

    Ok, now i'm a little bit closer to the solution.
    I've run thru the programm in debugging mode...
    the reason is: function module SWO_INVOKE give me the return message OL850: You do not have authorization to execute method EDIT
    But when the user calls the transaction ME52n everything is ok.
    So what is the missing authorization object?
    Thank you very much in advance
    Andrey

  • Custom User Decision for Class Method in Task

    Hi Expert,
    I have a screen for user decision(Approve/Reject with some comments field). When i execute the process it works fine for all cases, but when i don't click any decision and come back from the screen, then also this task gets completed and workflow starts executing next step. Here in this case, i want workitem to remain in inbox same as what happen in case of user decision step.
    Do i need to put this task in loop till i get a decision or some other way i can solve it? I have tried putting this method as Synchronous and non-Synchronous method. I am not sure if this issue is, because i am using Class method. Please help.
    Regards,
    Pritam
    Edited by: Pritam Kunal on Feb 11, 2011 4:28 PM

    Hi Mike,
    I have got a solution for this. If we make the task as Asynchronous task with a terminating event. Till the time event is not triggered process workitem will remain in inbox. This event can we triggered at any user decision only.
    Is there any flow in this logic? I have tried it for few cases and it worked, but not sure if there will be any case where it will not work? any suggestion?
    Regards,
    Pritam

  • User Decision with Note - Where are comments stored?

    We are interested in using the "UserDecisionNote" property in our XML file for a User Decision workitem.  (This allows a comments text box when a user clicks accept/reject for example)
    How and where are these commens stored?  As an attachment?
    Thanks,
    Matt

    Sorry, I should have stated what our goals were.  We currently capture comments with an activity step right after a user decision step.  This happens as an immediate popup/dialog because of synchronous dialog chains in SBWP.  We may then put the comments in a subsequent email step, subsequent workitem text, or custom table. 
    You cannot do synchronous dialog in Universal Worklist.  So, we were investigating UserDecisionWithNote property of XML file for task.  However, it appears the comments are stored as an attachment and not passed as text back to Task/WF (which I'm hoping someone on this forum can confirm).  If they cannot be passed back as text and are indeed stored as an attachment, then in theory we need a way to get the comments out of the attachment.   I'm not aware if anything allows us to parse attachments, etc.
    Matt

  • Proces chain decision with formula method: which proces chain is performing

    I want to know which chain is processing while i am in a decision. I made a decision in a proces chain. From that decision i call a formula. In that formula i call a method which i defined myself (client specific fomula/method). Now i want to know from which proces chain this method has been called. I tried the following ABAP statements in this method:
    IMPORT instance TO l_instance
    log_id TO l_logid
    chain_id TO l_chainid
    FROM DATABASE rspc_buffer(ab)
    ID i_chain.
    I found this statements in another SDN thread and from experience i know it works fine when you process normal ABAP in your proces chain.
    Unfortunately this does not work in a method from a decision. Maybe i need to access another table?
    Any suggestions?

    Ok, if you worry about that, let's do it in series...
    you create a local chain per IP/DTP (with link "if succesfull")...so you will have 10 local chains
    then create a big chain with these 10 local chain (with link "always")
    so, if a IP (eg of loacl chain 1) fails the DTP will not be triggered, the local chain 1 will go to status red, but as you put between the local chain option "always", the local chain 2 will start...and so on
    For inforamtion, I would put the attribute change run for the specific attribute in the local chain...this way you will only activate data of succesfull IP/DTP's...
    this way you should achieve what you aim for...
    M.

  • How to use secondary method in workflow?

    Hi friends,
    can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
    thanks and regards,
    Arun.S

    Hi Arun Kumar,
    The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
    For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
    In order to execute a method along with user decision step execution use secondary methods (amodal call.)
    Let me know if you have any queries.
    Regards,
    Raj

  • Long list of user decisions

    Hi all,
    I need to send a work item for choosing one of a long list of purchasing groups (about 90) and I don't know if
    the only solution is a user decision with the same number of buttons or it's possible to use a dropdown list or something similar. I need to save the corresponding code of PG and use it after in a function module.
    Any help? Thanks in advance.
    Kind regards,
    Angelo

    Hi,
    Definitely don't do this with a user decision.
    It's much better to let an ABAP person create a simple screen in which you select a purchasing group (like in search helps), then create a method for this abap in appropriate Business Object and then create a task for that method.
    Before you make this, isn't there an existing method to use for selecting purchasing groups?
    Kind regards, Rob Dielemans

  • Email notification - User decision - Deadline monitoring

    Hi Experts,
    My requirement is to forward workitem if there is no response from an approver for 6 days. I did this using deadline monitoring for 6 days in Latest End tab for user decision. But, daily i need to send reminder email notification if the workitem is pending for approver's response. Please suggest me in doing this.
    Thanks in Advance,
    Siva Sankar.

    Hi Gurprit,
    I've created a user decision with 6 days deadline in Latest End tab. When deadline occurs, i'm obsoleting the workitem from approver's inbox and in deadline outcome, i'm just reading next level manager's details. at the end i'm checking whether decision received from approver or not. if not, i'm sending the workoitem to next manager using loop step. This is working fine. But where to implement the logic to send reminder emails.
    Thanks,
    Siva Sankar.

  • A Method betweeen two User Decision Activity

    Hi,
    Is it Possible to execute a method in between two user Decision Activites which advances with Dialog.The method that has to be executed is just a simple code based on the result of the user decision activity.
    By placing an ordinary activty between these two user decision activity it fails to advance with dialog.
    Also,it has been impossible to use this as a Modal Call after work item execution because this method requires standard Elements like WIActual_Agent which couldnt be passed as parameter also there is not separate binding for secondary methods.
    Please suggest a way to do that.
    Regards
    Imman

    I tried that.I dunno where I'm missing.
    The method which I need to call in between has a piece of code for table updation and is actually not a dialog.
    But this has to be executed between two dialogs.
    A notification is sent to User's inbox with 2 options(1st decision Activity) and on choosing one from that again 4 options(2nd decision Activity) will come.Between this a method has to get executed.
    Ideas pls.
    Regards
    Imman

  • Sending Mail with attachment like User Decision

    Hi,
    Is there any way to send the document attached with the send mail step ? In User Decision, we can use binding between the workflow and task and document is attached. Like wise, is there any method ??
    I know we can send the attachment using the FM SO_****. So don give that answers. I want to know without using the FM, is it possible or not ?
    And i don want to use BO SOFM.
    For example, in Project Definition, one person creates a milestone. WF is triggered and goes for attachment of concorrence note. One attaches the concorrence note and mail is send to initiator. In that mail, can he able to see the attachment ??

    As far as I know the answer is "probably". You aren't saying how the mail is sent to initiator, you just say you don't want to use the FM or the BOR object type SOFM. I assume you are using the standard sendmail step type, i.e. BOR object type SELFITEM with method SendTaskDescription.
    As I am sure you can imagine, an attachment doesn't magically appear. If you send a workflow step (task) to someone, you can bind attachments to make them available in work item display. If you send a message you can construct it with attachments, but that doesn't happen without any effort. If you look at the parameters for SendTaskDescription you will see that there is a parameter for attachments. Try passing (binding) a value to it. If your SendMail task doesn't include that parameter as importing parameter you will of course have to fix your task (TS object) first.

  • Work flow in error when executed with a user decision.

    Hi,
    I am executing a workflow for notification of absence. It has a user decision step to Revise the request or to withdraw it when the absence request is rejected by the approver. When I am executing this the workflow is going into error state. User decision step is not starting at all. The first two steps create notification of absence and check notification are getting completed successfully.
    Please let me know where I am going wrong.
    Thanks & Regards,
    Soumya.

    Hi,
    I believe the orginal poster is following the workflow tutorial in the sap help.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fb/135962457311d189440000e829fbbd/frameset.htm
    I'm following the instructions and pretty sure it's been followed exactly on each step but am hitting the same issue - see 'Unit 10 - third step'.
    The log is reporting two errors
    Work item 000000014093: Object FLOWITEM method EXECUTE cannot be executed
    and
    Error when processing node '0000000039' (ParForEach index 000000)
    You reject the notification and then the work flow errors.
    Can anyone help?

  • Create Condtition with Step User Decision

    Hello All,
    I create a workflow for the approval of Purchase Order using the step user decision which works fine. But in my configuration, i have 2 release strategies, one is for approval of Purchase Order with sum lesser than 250,000 while the other strategy is for approval of Purchase Order with sum greater than 250,000. Due to this release strategy, i created a condition step (Using container of net price)  before the user decision step, which has a false and a true branch. But for every time i create a Purchase Order, only the false branch gets triggered.
    How do i create this condition and where should it fall, bearing in mind that my start event is the creation of release step of BUS2012
    Thanks for anticipated help.

    Hi,
    I think along with the condition check on Net price ,you should also do a condition check on the release code triggered from T16FS and place this combined check correctly before the user decision step.I think it should work.
    SELECT SINGLE FRGGR FRGSX FRGZU FROM EKKO INTO WA_EKKO WHERE EBELN EQ PONUMBER.
      IF SY-SUBRC = 0.
    *Get the Release code FRGC1 and FRGC2 as maintained in T16FS
        SELECT SINGLE FRGC1
                      FRGC2
               FROM   T16FS
               INTO   WA_T16FS
               WHERE  FRGGR = WA_EKKO-FRGGR
               AND    FRGSX = WA_EKKO-FRGSX.
        IF SY-SUBRC = 0.
          CASE WA_EKKO-FRGZU.
            WHEN ' '.
              RELCODE = WA_T16FS-FRGC1.
            WHEN 'X'.
              RELCODE = WA_T16FS-FRGC2.
          ENDCASE.
        ENDIF.
      ENDIF.

  • Workflow user-decision mail with Approve & Reject button to Outlook.

    Hi All,
    Requirement: To send a mail with Approve & Reject buttons to outlook inbox.
    Approach: I have used the user-decision step in the workflow and the approve, reject buttons are displayed . As far as solution in SAP inbox is concerned, it is solved.
    However the requirement is to show the mail with the buttons in the outlook mail.
    Resolution Required For: to show the mail with the buttons in the outlook mail. I am new to workflows sending mail to outlook inbox. Is there any way to do this using ABAP developments.
    Thanks for your time.
    Best Regards,
    Goutham.

    Hi,
    If you are on ECC 5.0 or above, you can use the Extended Notif. for achieving this.
    How are you getting the Outlook mail ?. If you already have Extn.Notif, then do the following :
    1. In Transaction SWNCONFIG,for your Scenario and Category,
    in the Subscription Basis Data -->Subscription Settings,
    Set the parameter SHOW_ACTION_DECISION_AS as "LINK"
    This will give you the options of your user decision as LInks in Outlook mail.
    There is lot of material in this forum for Extended Notif. if you search.
    Hope this helps.
    venu

  • How to integrate outlook with notification in user decision

    Hi experts,
       there are notification/latest end/requested start... tabs in step type 'user decision' of workflow.
       But these messages are sent to workflow inbox and now i want to sent these messages to outlook.
       For notification i could use function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to achieve this.
       But how could i achieve latest end/requested start with 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
      After some research i find that 'extented notification' seems could reach this.
    Any advice on this requirement and is  'extented notification' ok for this requirement  ?

    Hi Gang LI,
    Using 'SO_NEW_DOCUMENT_ATT_SEND_API1' you can send notification amisl to a user. But user decisions are used to send workitems to user to take action on. These have deadline monitoring activated to take care of missed deadlines for the task.
    Please explain if you need to send workitems to the users.
    Regards,
    Saumya

Maybe you are looking for

  • SMTP Portlet - OID lookup error

    We are using Portal 9.0.2.2.22 and PDK July 2003. I have deployed the SMTP Portlet (9.0.4.0) and added the portlet to a page. The portlet is picking up the 'From' field from OID. When I click on the icon to choose a recipient address from the Address

  • How to clear/send the failed notifications?

    Hi When i query and checked the wf_notifications table, is shows around 300 notifications that are with failed status. How to fix and send these notifications to the users? The query that i have used is as follows: select notification_id, status, mai

  • Uniflow deployment returns 0x800704ec

    We're trying to deploy a uniflow printqueue (It's configured with a NUL; port), but doing so with a GPO (shared printer) returns: Group Policy object did not apply because it failed with error code 0x800704ec. This program is blocked by group policy.

  • Unable to Use Google Maps

    I have recently upgraded to Mac OSX 10.8.4 and use the latest Safari browser (v6.0.5) all the time.  At some point, since I use iGoogle as my homepage, my maps changed to the Google Maps version now in place.  I am unable to use it, as it never chang

  • FCP 7 compatibility with newer OS?

    I am an editor who has not made the jump to FCP X. Everything I have been reading in my research for answers was posted between 2011 and the present. I read where Final Cut Studio will work with Lion. I am unclear if it will work with Mountain Lion.