Decision step with method before workitem execution

I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
When i see the information of the error -
"At least one submethod could not be processed.
See the technical Workflow log to determine the error cause."
When i check technical log of workitem, 2 steps are in error mode.
1.  Dialog work item executed - Error when starting submethod
2. EXECUTE_METHODS  - System error in asynchronous method start
This is happening in Quality system, not in DEV system.
Any inputs to resolve this.

Hi,
@Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
@Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
Best wishes,
   Florin

Similar Messages

  • Decision step with attachment

    hi
    my issue is i have kept a decision step where , i need to send decision step with attachment , i have done binding in the control tab ,of decision step like this
    & absence& --> &_ATTACH_OBJECTS&
    my attachemnet should be absence object.
    when i execute , i 'm getting the decision workitem but with
    no attachment , would u help on this .

    Hi,
    Make sure you have &ABSENCE& object is instantiated in any one of the steps before to youe decision step.
    In Workflow Log, check the container elements and see if Adhoc_Objects container element value getting filled or not on your user decision step? If it is not having any values and if your binding is correct, then i am sure &ABSENCE& object is not instantiated before. Check !!
    Regards
    Krishna Mohan

  • Fill the 'Objects and Attachments ' in Decision step with milestone detils

    My requirement is to fill the 'Objects and Attachments ' in Decision step with a display milestone details as seen in cj20n transactiobn.
    I am using business object MLST_NETW but display method does not show detsils of milestone .
    is there any other way i could  possibly show th emilestone detsils as seen in cj20n transction.

    Yes th ebinding is correctly done when I chcek in SBWP for that item it displays the link with the milestone no and when i cleck on the link it asks me the milstone no also but it does not display any detils of milestone or does not navigate to th emilestone page.
    I tried testing the display method of the stnadard business object MLST_NETW independly but i see even here the milestone detils page not appearing .Is there some other bO which has to be used or some way through which i colud navigate to the milestone detsils page transaction is CJ20n

  • Workflow - User decision step with checkboxes

    Is it possible in standard steps to give the user step of decision, but with options with checkboxes, for example 3, so that he can check or uncheck any of them?

    Thanks, I started making on my own the method of custom business object with screen and so on.
    thanks

  • Displaying report using decision step

    Hi ,
    in the decision step .i am calling the custom report in the methods before workitem execution. when i execute the workitem from the inbox first it is displaying the report after i click back button ( or cancel) button the report is displaying again. I am not getting  why program is displaying the report again.
    this is code :
    BEGIN_METHOD REPORT CHANGING CONTAINER.
    SET  PARAMETER ID 'BES' FIELD OBJECT-KEY-PURCHASEORDER.
    CALL TRANSACTION 'Y0024' and skip first screen.
    END_METHOD.
    please can any one help in solving the problem.
    advance thanks
    paveee

    Hi Paveee,
    Search this forum. I think this problem has been addressed before.
    By the way, you have a question similar to this still open if that question is answered, please close the thread by marking it answered.
    Regards,
    Martin

  • In Decision task, Method defined after execution is not called from Portal

    Dear All,
    In one of my scenarios, I am using a decision task for approval.
    In that after the approval action is taken i am calling a BAPI to update business function.
    I have called this BAPI in the Methods ( After Workitem Execution ) .
    When I execute this task from the SAP Inbox ,  the method is getting called successfully and the BAPI is also executed successfully. But when I approve the task from portal this method is not getting called at all, and BAPI also fails.
    Actually in the workitem display , I am using the standard FM SWU2_INPLACE_DECISION_PROCESS, will it have any impact when its used from Portal ?
    Is there any common place that will be called from both SAP Inbox and Portal after the task execution , so that based on the decision taken , I can process the action at the same place.
    Advance thanks for your response.
    regards,
    Sabari Prabhu.

    Hello,
    Unfortunately, that I know, there is no way to call your BAPI if you're using the standard decision JavaWD. In fact all that WD does is calling a WAPI to read the decision alternatives and then once the user has taken his decision it calls another WAPI to feedback the decision into the backend.
    The blog mentionned by Pavan concerns only the secondary methods with amodal call, this is different from the before and after methods which are not supported and cannot help you for calling your BAPI. The so-called "Program exits" are not supported either.
    The only alternatives I can see for you are:
    - Develop your own decision screen specific for your workflow and integrate there your BAPI call. This would also give you more flexibility to show your agents the information they need to take their decision. This is the way I usually go for now.
    - Change your UWL settings so that decisions are processed in a GUI screen instead of the JAVA WD screen. The main disadvantage is that you can do this either for all decision or for none of them. You can't just set that up for the decision in your specific workflow (or at least I haven't found how to do it).
    To change the way decisons are processed in UWL you must first change the parameter "List of preview sections to hide" in your UWL iView to add value USERDECISION.
    Then you must create a custom XML config file (or modify an existing one) in which you must customize each decision task used in your company individualy. To do that just take a standard config file and find the Item type entry for a standard decision task as an example. All you have to do is to recreate the same entry for each of the decision tasks you actually use and replace the defaultAction="viewDetail" parameter by defaultAction="launchSAPAction".
    Cheers,
    Patrick

  • How can i include  'Objects and Attachments' in the Decision Step ?

    i found some relevant threads for this particular topic but not able to solve my problem , so i thought of openeing new thread.
    My requirement is to fill the 'Objects and Attachments ' in Decision step with a  display method of purchase order number.
    From SAP Inbox , when i click on Objects and Attachments , it should navigate to Display method of my BOR object with the Purchase order number.

    Hi Sanju , i did exact the same way  ,
    &_EVT_OBJECT& --> &BUS2012&  ( This is done at the start of workflow )
    Now go to you task of the user decesion and make the following binding....
    &BUS2012& --->&_ATTACH_OBJECTS&  in the biding step between decession task and workflow container.
    I am getting this error message paul,
    The Object Types '[BO.ZIPARI]'  (source) and  '[BO.SOFM]' (target) are not compatible.
    i am trying to create a method in BOR and passing back the attachment back to task container but not succeeded yet .
    My requirement is , from SAP inbox before taking decision , approver wants to review for that i need to link the PO number clickble at 'Objects and Attachments'.

  • Methods of Workitem execute twice

    hello experts,
    in my workitem (activity  methods Tab), before work item execution there is a method to  display image, after the work item execution there is a method to close window.
    after our systerm imported new support packages,the methods execute twice. i can not find the reason and solution.
    i guess there is an inconsistent in systerm's time zone management, which is causing the time to execute display image and window close methods before workitem creation time.
    please give me your suggestions?
    Thanks in advance!

    What's worse is that it seems now your messages have started posting thrice
    Just a small note to remind you that version can be important, especially in this case where you have a problem related to packages. So you should include version information (release, support package level) in your description of the problem.
    Sorry I can't be of more help with respect to the problem itself.

  • Need Help on User decision step in BPM

    Hi All,
    I have a requirement to design the user to to system interaction in a partiular scenario.  I am trying to use the User decision step in BPM available in PI 7.1 server. I have used the User decision step and filled all the parametes as given in the sap documentation. When I am trying to execute the scenario, The outbound process is succesful but stops at the BPM workflow at the User decision step with the message (No Agent ready) .
    Can anybody help me in solving this issue.
    Thanks in advance,
    Kalpana

    Hi Shabarish and Swarup,
    I have defined the relevant user in  the Integration directory , also made sure that the user entered is defined on the integration server and there are not restrictions on the defined user. The workflow log is as follows:
    Workflow              File2File_BPM1
    Workflow instance     File2File_BPM1 http://File2File_BPMdemo
    Instance number       000000001046
    Start date            30.12.2008     Started by            WF-BATCH
    Start time            11:33:36       Current status        In Process
    View: Workflow chronicle
    Error       St Task                                          Result                                   Date       Time     Processing time
    Error Agent                     Executed Action                          Date       Time     Object               Object Name                    Object 2             Object name 2                  User Context
    File2File_BPM1 http://File2File_BPMdemo       Workflow started                         30.12.2008 11:33:36               -1s
    WF-BATCH                  Start message received                   30.12.2008 11:33:36 MIAB_BPM_OB2 / http: C532A7AB4D284B9011C0B0C7F8AFB                                                      WF-BATCH
    WF-BATCH                  Workflow started                         30.12.2008 11:33:36                                                                                WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:36 MIAB_BPM_OB2 / http: 597B946347C148AD03988B5D8BE2C                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:37 MIAB_BPM_OB1 / http: 6E0E09EE977E4F333D02DDDAE9A52                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB2 / http: 9F5491FD9BC642E50486A6FED89DA                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB1 / http: 1AE5BB06D72341AD01F8C45E6AA7E                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:58 MIAB_BPM_OB2 / http: CD698CDE5606436811BAB330011AF                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:59 MIAB_BPM_OB1 / http: 2D82C00C16E0447F1DF3B133470AD                                                      WF-BATCH
    'Good'{TYPE=SWFXST_STRING}'BAD'{TYPE=SWFXST                                           30.12.2008 11:33:37                0s         1046
    WF-BATCH                  Dialog work item created                 30.12.2008 11:33:37                                                                                WF-BATCH
    WF-BATCH                    EVALUATE_AGENT_VIA_EXPESSION           30.12.2008 11:33:37                                                                                WF-BATCH
    I hope this can help you in identifying the error.
    Thank you,
    Kalpana

  • Problem with Decision step execution

    Hi Friends,
    I have a problem with executing a decision step. When I execute the decision using SAP_WAPI_DECISION_COMPLETE the workitem goes to completed state and doesn't do anything after that. But when I execute the same step from SBWP the subsequent steps gets executed and rest all works fine. I am sure there is a problem with Decision step . The task I am using is TS00008267. Is there a replacement for this step or is there something to do with feature ADVANCE WITH DIALOG or agents .I have agents in place. Please help.
    -Rajesh

    when I write the decision using FM , the WI is set to completed but
    I am not sending any status to workflow container from the task container
    . Is this the issue for workflow not able to continue !
    There is no necessity of sending any result back to the workitem container. In the decision step container , it contains a standard container element WIResult it will populated based, on the decision you took on the workitem (IF it is a Decisionworkitem).
    when I execute the FM to write the decision, the task ( generic decision task)
    is not getting executed.
    Can you pelase  let us know what is the return code, th function module is retruning back, once you try to execute the workitem  by using the FM, if it is other than zero then can you please let us know what is the message.
    , Before trying to execute the workitem can you please check whether the workitem is stored in the standard workitem header table SWWWIHEAD. as the above function module will validate the workitem from the header table.....

  • Cancel and keep workitem in ready state in user decision step

    Hi,
    In a user decision step,there is a default option 'Cancel and keep the work item'.
    Now clicking on this option, the workitem goes into "Inprogress state"
    whereas i want to keep the workitem in "ready state"  after i click on the option 'Cancel and keep the work item'.
    I am trying to modify the Process method of Decision Object type to incorporate this funcationality by using FM "SAP_WAPI_PUT_BACK_WORKITEM.
    but im getting the error that this FM cannot be used at runtime.
    Place where im trying to call this FM:
    After the FM'SWU_PROCESS_MANUEL_DECISION'
    I am getting the value of RESULT.
    If result is SPACE or sy-subrc is not 00 then i am calling this Fm which takes Wi_id of the userdecision as input.
    Kindly help
    Regards

    Hi,
    Let me ask you this. Why you need to have this in "Ready" state, Not in "IN PROCESS" state. Anyway, the witem is still there in the user's inbox, and if you have any deadline monitoring, then this is also taken care with "Cancel and keep xxxx". So, i think, functionally you'll still be better with the existing functionality.
    And, with all this, if you are still trying to change, then i think it's NOT possible. If i understand correctly, you are trying to use the FM "SAP_WAPI_PUT_BACK_WORKITEM" within the PROCESS method. And, if you understood the functionality of how this works, you are trying to set the status of the SAME witem for which you are executing the PROCESS method.
    THe way i understand the behind-the-scenes process, once you make a decision and save, this method is the one which in turn sets the witem status. And within that, you CANNOT capture the status as it is yet to be posted to the Witem tables.
    Probably, after this decision step, use a different background task with the above FM to set the witem status to "Ready", BUT NOT IN THE SAME METHOD of PROCESS.
    Also, it's not advisable to change this std. method.
    Hope this helps you. Reply,if you need more info.
    venu

  • Decision Step Workitem Layout

    Hello,
    can anybody provide me with a solution how to change the design of an decision step?
    I have to different decisions available, when I am opening the workitem in my SAP inbox, I want them to have different background colors, so that it is easier for the users to get the right decision.
    Thanks a lot for your help,
    Christoph

    Hi Christopher,
    There is a solution for this.
    I think better to create your own decision box rather than to go for the standard one.
    In that case you have create you own DECISION layout with the buttons and other layout that you want in a module pool program and attach that module pool program in the ACTIVITY (dummy one) that you have created.
    There go to the display tab and give the name of the Module pool program at the Display tab and at the timje of execution there wuill be another tab with the page that you have created.
    If you liem to have this solution, then please reply me, I would know you kore about this topic.
    Award points if useful.
    Regards.
    Abhijit.
    [email protected]

  • Terminating Event with Decision Step

    Hi,
    In our purchase requisition approval workflow, I need to have a decision step in which to prompt approver to either approve the req. or reject the requisition.  In this decision step, I need for it to have terminating events for "SIGNIFICANTLYCHANGED", "RELEASE", "REJECT" and "RESET".
    First, I copy the generic decision task 8267 to my my own custom decision task.  Then I added a BUS2009 in the container, releasecode and other needed elements.  In this custom decision task, I was able to add these terminating events that has been defined in the BUS2009.  I was able to setup binding, except the one binding
    Terminating Event  ->   Task
    &_EVT_OBJECT&      ->   &_WI_OBJECT_ID&
    Since the &_EVT_OBJECT& for the terminating event is BUS2009.  And the custom decision task &_WI_OBJECT_ID& is DECISION business object. They're incompatable business object.  So I replaced that binding with
    Terminating Event     ->  Task
    &_EVT_OBJECT&    ->   &PURCHASE_REQ&
    After all the configuration has been setup.  I created a new purchase requisition.  Upon the RELEASESTEPCREATED event, it create a custom decision workitem in my agent's inbox.  When I triggered the "RELEASE" event, it is however not terminating my custom decision workitem.  The workitem still sits in the agent's inbox waiting to be execute.
    Is it possible to setup terminating events for decision step?  Any kind of suggestions or inputs would be greatly appreciated.
    Thank you.
    Jennifer Tran
    System Analyst

    I will suggest you to create a fork with 2 parallel branch and 1 necessary branch. Put the approval step in 1 branch and the wait for Release step event in another branch in this way you can suffice your requirment.
    Thanks
    Arghadip

  • Probelm with decision step type

    Hi,
    I am using the decision step type to display release and reject the options to the approver . i am using the latest end tab to escalate( forward) the workitem to next available approver .( deadline monitoring 30 min) .
    workitem is generating in the 2nd available approver inbox after 30 min  . but the same workitem is still available in the 1st approver  inbox ( of course it display the message the following deadline was missed and latest end reached) .
    But even after the 2nd approver gets the workitem in his inbox  ,the  1st approver is able to execute the same workitem by ignoring the message .
    Please can any one explain me what is reason behind this.
    Please can any one helping me how can i delete the workitem in the 1st approver  inbox once the workitem is created in the 2nd approver inbox  .

    Just follow the steps
    1)You can use Latest End Tab in a Step which is attached to a task. Use Modelled deadline. Using this another branch is created from the step.
    2)Activate the Outcome Processing obsolete for the Step that needs to be sent to the Manager.
    3) Now put a process control in the branch that has been created due to modelled deadline. Use "Set Workitem to Obsolete" in the Function and provide the Step number in which the deadline step is incorporated.
    4) Now create another step at the branch Processing obsolete of the step that has the deadline and copy the above step with deadline removing the deadline part. This step is only for 2nd approver.
    <b>Reward points if useful</b>
    Thanks
    Arghadip

  • Decision step workitem is not created

    Hi Friends,
    I have created one simple custom workflow , it contains two steps
    Decision and maill step , once decision step is executed mail should have to go.
    In decision step , user1 is used and in mail step user2  is  used. I am exeuting the workflow from user1 Now it is working fine.
    But the problem is No decision step workitem is created in user2. In  the case , in decision step, user2 is used and in mail step user2  is  used. I am exeuting the workflow from user1
    Please give suggestion.
    Regards ,
    Krishnan R.

    Hi,
    The possibilities might be,
    1. Check in the decision step that what type recipient type u selected.. If WFINITIATOR is choosen then in this case all the time the workitem...will jst go to the initiator who ever tryies to execute the workflow.
    2. If you are using user then just make sure that the user you are using is a dialog user. you can check this in su01 txn.
    3. If you are using expression in the step then make sure that you concatenate US to the user name you are trying to user in your case it should be 'USUSER2'.
    4. Also makse sure that the in SWU3 the task generalization is customized with respect to decision task.
    5. Also make sure that the user has right authorizations to receive the workitem.. Authorizations issue can also be one of the factors.
    By the way if the workitem is not going to user2 then to whom it is actually sent... check in the wf log from swi1 txn.
    Regards
    Pavan

Maybe you are looking for