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

Similar Messages

  • [svn:fx-4.0.0] 13647: this should actually fix the build - call the modified main target to call the bundle task for osmf and actually make the call from frameworks /build.xml

    Revision: 13647
    Revision: 13647
    Author:   [email protected]
    Date:     2010-01-19 17:04:22 -0800 (Tue, 19 Jan 2010)
    Log Message:
    this should actually fix the build - call the modified main target to call the bundle task for osmf and actually make the call from frameworks/build.xml
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Modified Paths:
        flex/sdk/branches/4.0.0/frameworks/build.xml

    Hi Renuka,
    The model classes get generated under gen_cmi folder at the time of model import.
    As far I know, the Web Dynpro build operation also re-generates these classes if reqd.
    That is why I asked you to delete the gen_* folder content & do a Project Rebuild operation.
    Or you can delete the model & try importing it again.
    If the problem persists with the generated classes then there is an issue/bug with the generation & I would recommend to raise an OSS message (WD Java component)
    Kind Regards,
    Nitin

  • After Settlement, Cost not transfer from one WBS to another WBS in customer project

    Hello Experts,
    I am trying to settle cost from one WBS (i.e. XYZ-000014-1) to another WBS (i.e. XYZ-00001)in customer project.
    Its a revenue type of project.
    I have added 4 internal activities in an network under one WBS (i.e. XYZ-000014-1).
    Got actual values after confirming activities, then settle that network cost on WBS (i.e. XYZ-000014-1)  through CJ88.
    Now while trying to settle that cost from WBS (i.e. XYZ-000014-1) to WBS (i.e. XYZ-00001) through CJ88, system not showing any result.
    Kindly give ur valuable inputs.
    Regards,

    Kindly tell me that is it a standard functionality of SAP that through CJ88 we can transfer cost from WBS to WBS.
    Technically ,Yes.Cost is actually transferred from one cost object to another cost object.
    I hv discuss the same with some of my frds ...some are denying the same that its not a standard functionality of SAP to transfer cost on same cost object.
    Instead of 'transfer' I would rather use the word 'settlement' . Practically, they are right as projects-WBS are temporary endeavors of companies, and cost can not reside on WBS permanently as it has to settle to some entity (organizational unit) which can be accounted during the reconciliation of their chart of accounts and balance sheets.
    SAP has provided us an option to settle our cost to WBS and hence its standard . Generally, we use it when we have 1 WBS at level 1 and all lower WBS's costs is settled to this WBS . Here, we specify Level 1 WBS as the receiver of cost of these lower WBS.
    Hope,I am clear here.
    Regards
    Saurabh

  • After getting iphone notes disappear from iPad

    Since getting a iPhone the notes keep disappearing from my iPad. I can find them in my yahoo email account but how can I prevent this from happening? It's happening daily. It is very frustrating when I go to add to or refer to the note and it's gone from both the iPad and iPhone. All I want is for the notes  to stay on the the 2 devices!!! So when I update on the iPhone, they update on the iPad and not disappear!

    It's weird, I also have the same problem starting from TODAY, on my iPhone 4 with iOS 6.0.1.
    FORTUNATELY for me, I had a backup file..!
    When I re-import them on MacOS X "Address Book", they appear again for then being removed when syncing with iCloud.
    Looks like there's no logic!!!
    Did someone figure this out?

  • Method not accessible from other classes

    Hi,
    I ve defined a class and would like to create an instance of it from another class. That works fine, I am also able to access class variables. However the class method "calcul" which is defined as following, is not accessible from other classes:
    class Server {
    static String name;
    public static void calcul (String inputS) {
    int length = inputS.length();
    for (int i = 0 ; i < length; i++) {
    System.out.println(newServer.name.charAt(i)); }
    If I create an instant of the class in the same class, the method is then available for the object.
    I am using JBuilder, so I can see, which methods and variables are available for an object. Thanks for your help

    calcul is a static method, that means you do not need an instance of server to run this method. This method is also public, but your class Server is not, your Server class is package protected. So only classes within the same package has Server can use its method. How to use the calcul method?// somewhere in the same package as the Server class
    Server.calcul( "toto" );

  • Decode-method for custom component isn't called

    Hi,
    i have writen a custom component which gets some information by command-link. To make the data from the link accessible, i wrote a decode method in my renderer and in me component. But both method are not called from the faces framework.
    Dows anybody knows what i made wrong???
    Thanks, Sebastian

    Hi,
    thank you for your reply.
    Unfortunately the processDecodes(...) of my component is also not called from the framework. Does anybody knows what i'm making wrong???
    Thanks!

  • Approved Task items are not disappearing from uwl task list

    Hi
    we have implemended Guided procedures with universal work list. For most of the users, once the any task items are approved, it suppose to disappear from the task list. But it is not disappearing from the task list. Even if i click on "refresh" under flter option. Please let me now how to get rid of this issue.
    thanks
    vijay

    Hi,
    Have a look on my reply on the thread:
    Uwl tasks status not get updated in Portal
    Regards,
    Fabio

  • 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

  • Passing event parameters to copy of DECISION task TS20000118

    Hi.
    I have made a copy of the decision task TS20000118 which is the standard approve/reject user decision step.
    In the decision step, i have a link to ME13 transaction which is done by passing object_id and giving the "display" method as default method for the ZBUS3003 object which takes Info record number as key.
    My problem is users are restrcited by PORG auth object in ME13 also and along with Info record number, i have to pass porg, plant, vendor , material to ME13 link.
    I have defined event parameters to capture this 4 fields but i dont know where to pass this parameters as TS20000118  where the link appears in using the DECISION object and not the DISPLAY method,.
    I dont want to make this 4 fields as object key because it will mean altering many other things. Also, int he DISPLAY method based on info record number i cannot retrieve 4 fields bcos there mioght be multiple records for same info record number.
    Appreciate if you can let me know how i can pass event parameters to ME12 link in DECISION step of Task TS20000118 .
    Regards
    PN.

    Hello user12628! I have the same problem. Did you solve it? I have dynamically generated size of my Event Parameter String[] mass. And some times I have Error that URL string very long :). That is why I want to use POST method instead GET. if you has found solution,please let me know.
    Message was edited by:
    kostik

  • HREF in user decision task not working in UWL?

    Hi All,
    We're on ECC6 and portal version 7.01 SP4.
    My problem is that I have defined a link in the body of a user decision task like so..
    <A HREF="http://www.google.ie/" target=_blank> GOOGLE </A>
    and while in appears as a link in the task in the UWL, clicking it does nothing. When I check the properties of the link, I see that it's actually javascript:void(0);, so hence it doing nothing.
    Can anyone give me any guidance on how to get a link working in a user decision task in the UWL?
    Thanks in advance,
    Liz.

    Hi Patrick,
    Thanks for the respnse, I've since figured out that what I was trying to do was not possible.  I have impleneted a workaround myself, where I just added an extra button action in the UWL.
    Many thanks,
    Liz.

  • Decision task not appearing in UWL

    Hi All,
    I am not able to see my decision task TS12000025 in UWL however I could see in business inbox in backend. Does anybody have any idea ?
    Appreciated.
    -Bijay

    Hi Bijay Kumar,
    In SWFVISU transaction you have to add this things.
    1. Task--Give the task id which has to be sent to the UWL
    2. Visualization--How you are going to view the screen (using java web dynpro) so give as Java web dynpro.
    3. Screen id--For which screen your are going to assign this task.
    4. Application ID--While you activate a web dynpro screen it will be providing a application id this has to be done in dynpro side and give that number in this parameter. After that if your activate the dynpro it will be giving the new application id so you have change the old id to the new one in SWFVISU transaction.
    Thanks and Regards
    Balaji K.

  • Need Help: Workflow Decision Task not visible in NWBC for customer Task

    Hello All,
    I am  new to NWBC configuration , need ur expert knowledge  for the below issue. I have checked the treat . Approve/Reject button for SRM Approval for RFx response ,but not able to get the exact steps for the configurations in NWBC.
    Requirement.
         We are working on SLM/SRM module, where we have requirement to create a custom workflow with custom Task for which we have executed below actions.
    Created the Custom Workflow.
    Created the custom Task with custom  ZCLASS and ZEVET.
    Created   Event linkages in SWE2.
    After doing this we are getting the workitem in the NWBC, currently we don’t have the Portal system in place, so we are using the NWBC for all our testing.
    What is the issue?
         When we select the workitem in the NWBC (UML) inbox  , the Decision Task ie “Approve” or “Reject” button are not visible , where as for SAP standard  Task  buttons are visible.
    What help we need?
      When we cross check the SCN/IBM portal, found that we need to do the XML file configurations. Can you any one kindly let us know the steps we need to follow to achieve our functionality.
    Thanks a lot in advance.
    Thanks and Regards
    Channa

    You need to share the details of what Inbox you are using, configuration steps depend on it. If you aren't using portal, you aren't using UWL and there is no UML inbox. You need to get your facts straight. Most likely you are using the Business Workflow Inbox (SWF_WORKPLACE) or the Lean Inbox (IBO_WDA_INBOX). Both are based on Web Dynpro ABAP and POWL but the configuration is different. Regardless, you posted this in the wrong space. Correct space is either SAP NetWeaver Business Client or Web Dynpro ABAP.

  • How to display Material in decision task?

    Hi Experts,
    I want to display a material data in a WF decision task. In the spec they ask a "link".
    I think the only way to do this - without process the workflow - is to create an attachment, with the Business Object: BUS1001, and with the material number as key. (Of course if you know something better, than it is also good for me)
    I have a program which starts the WF, and I want to fill up the WF container from this program.
    Please help me in, how should I write the code, if I know just the material number?
    Please give me code sample if it is possible.
    Thanks in advanced, Csaba.

    Hi,
    I am not sure how to the display method behaves in the BO BUS1001. You can try using that.
    Or a work around solution would be create a custom method. In that
    you set the material number field in the MM03 screen with the object-key.
    Then use call transaction 'MM03' and skip first screen.
    Hope it helps.
    Regards,
    Raj

  • How do I access classes and methods defined in a wsdl file

    I have been provided a wsdl file I need to find out how do I access classes and methods defined in a wsdl file directly instead of doing a wsdl2java...

    Several comments :
    1- is there any reason to have blank chars inserted after the path ? Seems that you already have a problem there. If possible, try to solve the problem at the source
    2- the end of line char is usually CR (Carriage Return, aka ASCII char 13 = $0D = Control-D). But LF (Line Feed = 10 = $0A = control-A) is also used (platform dependent). In LV, you can use the "Concatenate strings" function to add/insert control chars (found in the String Control Palette). However, this will not solve your problem of unwanted added blank chars at the end of your string.
    3- you can use the Trim white space.vi (in the "Additionnal string functions" sub-palette) to remove ALL the spaces in your string
    4- you can build your own "end space remover" function. :
    reverse the string, wire to a "Match pattern" function, use " +" (space + "+") to search for any number of spaces, reverse again the "after substring".
    5- there is no point 5 :-)
    You may find interesting description of ASCII chars here
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Generic decision Task and ABAP OO

    I have implemented a workflow using ABAP OO, which has a couple of user decision steps.
    Now I have made a copy of the generic decision task (8247) into my own custom task. I then copied over the code from the process method of the DECISION BO into my own custom BO. I then referenced the custom BO in my custom task. I tied this custom task to a user decision step in my workflow.
    code
    I had to this so that I could extend the functionality of the code to do something specific to my logic. This works fine.
    However when I write the same code in a method of my ABAP class and tie it to the same custom task instead of the BO, the workflow complains while activating "TASK XXXXX cannot be used as a decision task".
    Any advice would be greatly appreciated. Thanks a lot in advance.

    Hi Amlan,
    What I could figure out from your query is that, you want to use ABAP OO, functionality of classes in implementing a task. Please correct me if I am wrong.
    I would suggest you that Let your Workflow work with the BO, because there are certain tasks for which only BO works, implementation of classes might give some problem.
    check **************** - business workflows for further correspondence
    Best Regards,
    Kanika
    Edited by: kanika chopra on Dec 9, 2008 5:12 AM

Maybe you are looking for

  • Tax code determination when a PO is created from SRM

    Hi Experts I am using extended classic SRM 7.0 When a PO is transferred to the SAP backend system, sometimes the TAX code is different from what was supplied in FM BBP_PO_INBOUND. It looks like; tax code determination in backend system determines a d

  • External hard drive problem

    I was trying to copy an imovie project (about 23 GB) to my external hard drive, but it stopped when it said that "The finder cannot complete the operation because some data in 'Clip 04.dv" could not be read or written. (Error code -36)." Does anyone

  • How to change screen refresh rate in windows 7sp1 and windows 8.1 iso image using dism

    sir when i install windows 7sp1 and windows 8.1 then after the completion of setup when first time windows boots up then task bar is not shown and display is not clear and when i check under monitor settings the screen refresh rate is 60 Hertz and wh

  • Passing View accessor parameter using a bean.

    Hi i am working on LOV's I am passing parameter value as mentioned by this article Decompiling ADF Binaries: Initializing the bind variables used for an LOV query I tried this.. when i am testing using application module tester, it is working fine...

  • OWB 10.2 - deploying to Discoverer 10g - HELP with cryptic error message

    Hi all, Does anyone know what the helpful message below is trying to tell me about my deployment to Discoverer? The validations all pass. The generation is error free. The execution gives the following as "INFORMATIONAL" - however, the EUL is not gen