ABAP OO & Custom made user decisions...

Hi,
I've been playing with ABAP OO for a little while now, but  keep encountering the following problem. I tried to look for the answer here, but could find it.
Often I make a copy of the standard user decision task TS00008267. Then I can create my own text in there. However, normally I can use an attribute of a BOR-object as a variable here via the 'Expression' button, but I can't use the attribute of a class here!
I get the message: "Variable &ZEMPLOYEE.GET.NUMBER& exists in description text Task description, but does not exist in the container."
Has anyone encountered this problem too and maybe has some tips for me? The workaround I use now is by defining container elements in the task for every variable I want to use and pass the value via the binding. This is not really desirable of course.
Any tips of help are welcome!
Regards,
Erik

Hi Erik,
Is the attribute you want to use in the text a public one? I think it needs to be if you want to use it.
Regards,
Martin

Similar Messages

  • How to Including custom text in the step "User Decision"

    Hi All
    Please help me in this regards I got problem
    How to Including custom text in the step "User Decision"
    Regards
    Poonam
    Edited by: Julius Bussche on Feb 2, 2009 1:59 PM
    Please use the corect forum, meaningfull subject titles and use the search before asking questions

    Hi Poonam,
    If I understood your problem correctly...
    When you create a user decision a screen will appear.
    In the decision tab under Title you can give your custom text.
    Even if you want to give some variable (value of which will be determined at runtime) you can give that as well.
    Like you have created a container for BOR objects MAT_DETAIL, in that object there is a field MATERIAL.
    You can define your custom text as below:
    Title: Would you like to create new material or display material &
    Parameter 1:  &MAT_DETAIL.MATERIAL&;
    In Title you can give as max. as 4 &(ampersand). And each & will be replaced by each Parameter at runtime in same sequence.
    In parameters you use to select the container defined by you earlier.
    Hope this will help.

  • Can we display custom error message in user decision step screen.

    Hi,
    My requirement is to display error message when approver selects reject button in user decision step.
    based on some condition i need to display error message in user decision screen when approver tries to
    reject .
    Please help
    Thanks,
    Phani

    Hi ibrahim,
    Thanks for your Replay.
    steps
    1. cretae global class with interface  IF_SWF_IFS_WORKITEM_EXIT.
    2. cretae Event with importing parameter.
    where i need to call EVENT_RAISED method ,do inned to call that method in
    IF_SWF_IFS_WORKITEM_EXIT ?
    how  SWRCO_EVENT_AFTER_EXECUTION value is passed to method EVENT_RAISED ?
    Thanks,
    phani

  • 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

  • Step for User Decision

    Hi All,
    I have a scenario and two solutions for it.
    Please give me the input for which is a better solution and why.
    Scenario - Approver have to either Approve/ Reject a particular request made.
    The user decision has to come from Java front end  and the workitem created has to be executed externally
    ( not by opening sap inbox)
    Soln 1 : Create an asynchronous task and custom terminating events for the workitem and trigger terminating event for any user decision Approve or Reject.
    Soln 2 : Send an normal decision task and programatically execute one of the decision using the WAPI* FM when user clicks Approve/Reject.
    Both of them I think uses the WAPI * FM.
    Thanks
    Chandran

    Sorry I was not clear in my question before.
    I still refered to the first solution which uses a Aysn Task and a method which does not have any code (just a placeholder)
    IA is absolutely right but I dont have the flexibilty to use an ivew.
    Thanks a lot for your reply. I would close up this thread.
    Just some additional clarification if you can bring up
    What additional code that would be required for the second solution (both uses a sap WAPI FM )
    Both can be tracked by WF tools by finding out the agent and the person who have completed the Workitem so which tools you were mentioning about
    Actually I did not get which is a better solution but realized both can be used atleast no worry on the performance load. My be this topic can go for a long time to figure out
    Regards,
    Chandran.

  • SOFM in user decision step - provide reason in UWL

    Hello Everyone,
    I'm working with a customer who wants to use a user decision step and add a reason for the rejection only.  This step will be executed in UWL - since UWL doesn't support syncrhonous dialog chains, it can't be implemented by adding another step with SOFM.  I have seen the 'template with attachment' in the user decision step, and have tried binding SOFM to the Reference in the container, but the user doesn't have the option.
    Perhaps this could be implemented with a secondard amodal method - which checks the user decision code and only implements if the decision was rejected.  I'd like to be able to put a condition on the secondary methods.
    If you've done something like this, please let me know!
    Regards
    Ginger

    Hi Ginger,
    Unfortunately it is not only synchronous dialog chains, but also secondary methods that are not supported in the UWL, so you're stuck both ways.
    Though, I have been told that the latest SP does support some kind of advance with dialog functionality (SP15 I think?).
    At one customer we used a custom ABAP-based decision step which executed in a wingui session - thus synchronous dialog chains worked as long as every subsequent step was wingui based (which SOFM.CREATE obviously is) - worked quite well.
    Let me know if you need more info.
    Cheers,
    Mike

  • User decision title reads: "Decision"

    Hi all,
    I am having a weird problem. I made  a custom user decision step so I could add some container elements in the description. This all works very nicely. But when the decision is executed the title at the top of the screen reads: "Decision" instead of the title of the work item which also uses some container elements. The title is shown correctly in the BWP. Does anybody know what I did wrong here? It is working correctly for another task I created similarly.
    I am on SAP ECC 6.0.
    Thanks in advance for the help!
    Gert.

    Hi Dheepak,
    thanks for the reply. You seem to be pointing in the right direction. Even though the bindings are all correct, the title comes up correctly in the BWP, there is a problem with them.
    The decision step is called inside a parallel part of the workflow and I am using a field from the table entry that this step is looping on. In debugging I now found that it breaks on this container element: &_LT_DIFFERENCES_LINE.FIELDNAME&. The problem is that the method that builds the title only has the main workflow's container and not the elements local to the parallel part, like LTDIFFERENCES_LINE. I have been thinking about a workaround but cannot not think of one that will work.
    I'll see if I can update the thread title to add this info.
    Thanks,
    Gert.

  • Link in User Decision step not showing correctly in UWL

    Hi SAP Experts,
    I have a requirement to add a link in a user decision step, this link triggers a custom webdynpro for additional input. When I access the workitem from Business Workplace, the link is showing fine. But when I execute the workitem in UWL, the link is not displayed, instead the code is shown (<a>...</a>). Please advise on what I should do to have the link working. Thanks in advance.

    Hi,
    This same thing was just recently discussed. I just cannot find the thread anymore (well, in that thread there was not really any solution). Basically the hyperlinks in work item do not seem to work in UWL as they should. I don't know if there are any way to make them work. My suggestion is to not use the hyperlink at all and replace that with an action (=button) to the task in the UWL. This can be achieve quite easily by simple XML configuration in portal. If you have worked with UWL this should be quite straightforward for you, or if there is a consultant at the site, who is familiar with UWL, this should be simple for him/her.
    Regards,
    Karri

  • Solutions for User Decision step- Upon reject, auto-popup text for reason

    Execute user Decision workitem, when user click reject button, open text for rejection reason within the workitem.
    Ideally, for the auto-pop text , we need a descriptive header and user can enter reject reason. Text must be added before the workitem can be saved.
    Any thoughts.
    Thanks a lot.

    yes, on the SOFM.Create-Task use a dataflow from the WIOBJECT_ID => (append table) ADHOCOBJECTS
    This will popuplate this rejection to the hyperlink-section of the workflow.
    You may also activate the outcome-even "user-cancelled" in the workflow definition (or by copying the coding to your own method that could do it) and loop around back to the user decision if he cancels the document create (which I found out is sometimes a problem for the users).
    I also have made the experience that it is quite the same effort and more convenient if you design a complete user-driven screen. Then you have full control of that issue. I always use a small dialog box with a textEdit-Control where the users have to enter their rejection reason.
    I then create my own ZWFNOTE-Object and append this to the ADHOCOBJECT. This usually works very fine.
    with kind regards,
       Florin

  • 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

  • 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

  • Url link in User Decision workflow step

    Hi Experts,
    I had created a workflow for "Employee transfer" process using SWDD tcode.
    I had a created a workflow step with type as "User Decision".I had included "Approve" & "Reject" decision options.
    Now i want to include URL link along with "Approve" & "Reject" in the user decision workflow step (i.e) The manager needs to see the URL link along with "Approve" & "Reject" in his SAP workflow inbox.
    Can anyone guide me...
    Regards,
    Krishna Balaji T

    Hi Krishna,
    I understand your issue. I have faced a similar issue in my project.
    Here is the solution!
    To add link of a URL you need to have the binding with the BO of the transaction your are refering to. To do this, you need to bind your BO event (triggering event) to the workflow container and then the workflow container to task container. This BO value should flow from event-> workflow -> task container to get the link in the User Decision.
    To do the binding you need to follow the following steps:
    1. Go to t-code SWDD and open your workflow template.
    2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
    3. Go to Start Events tab.
    4. In the Object type enter your BO name (BO for the transaction you need to add as link), in Event of object enter the BO event. This would serve as the triggering event for your workflow.
    5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement. This binding would ensure that the URL comes under 'objects and attachments' section.
    6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).
    6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
    7. Save the changes made and activate your workflow.
    8. Do the binding between the workflow and the user decision step. Select automatic binding (recommended).
    You can also refer to the similar thread that I had provided solution to. This would help you resolve the issue!
    Re: URL of site has to be attached along with the mail
    Hope this helps!
    Regards,
    Saumya

  • "You can also" link in UWL work item when using user decision step in workflow

    Hi,
    Just want to check if anybody has tried adding links to this section in the UWL when using user decision step? I need to pass some custom links which will be calling some webdynpro applications and backend transactions. I have read somewhere that Ineed to modify the XML file but don' t know how the next steps once I have defined (i.e. how to handle those links).
    Thanks in advance.
    Rammel

    Hi Rammel
    I hope you are keeping well and many thanks for using the SAP Discussion Forums .
    Based upon your scenario you mentioned that:
    You want to add links to the "You Can Also" section in the UWL with user decision steps
    In an effort to pass custom links (calling web dynpro) applications.
    You wish to know how to modify the XML
    Ok now based upon the scenario there are two key points regarding XML files and efforts to change them.
    Remember that XML in terms of the UWL follow the notion of precedence. Now that means that once you make a change to an XML file you need to re-upload it to realize changes. To re-upload an XML file and realized changes you need to do so with a "High" or "Very High" priority and also ensure that the UWL Cache has been cleared of the UWL Service restarted so changes can be realized.
    The second key point is to ensure that you backup all current XML files before making any changes so you can easily revert those changes if required.
    Now reverting back to your query, the XML files and the "You Can Also" section. Kindly see the documentation outlined below as here you are going to make changes to the I-View configuration:
    Configuring the UWL
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a3461636-0301-0010-3787-978f5ac8bd45?overridelayout=t…
    UWL Content Configuration
    UWL Content Configuration - Configuring the Universal Worklist - SAP Library
    Kindly update me as per your findings.
    Kind Regards & All The Best
    Troy - Enterprise Portal Support Engineer

  • User Decision Step Link

    Dear Experts,
                        I have created a custom application, in which I have to trigger the workflow. I have created a workflow and this workflow is being called through application using FM: WAPI_START_WORKFLOW. In this workflow there is a user decision step. I want to create a link of application's "change screen" in the user decision step. As I don't have BO object in this workflow; So how should I create the link of change screen?
    Regards,
    Sohail 

    Hi Sohail
    Starting a workflow using SAP_WAPI_START_WORKFLOW is not a preferred option ; instead use events to trigger the workflow by using SAP_WAPI_CREATE_EVENT - It gives better tracking capability as well as options for queuing.
    Coming to your question, Business Object is required, you can not only create a method to display the change screen, but also provide attachments etc....a lot more is possible if you have business object instantiated.
    Regards,
    modak

  • User Decision step in UWL

    Hi,
    I have a 3 user decision steps in my Customised workflow which uses the task TS00008267. Each task has different decison text and outcome. When this is executed through UWl the outcome does not appear as they are in SBWP.
    Does this need and Portal Configuration?
    Thanks & Regards

    Hi,
    There are two thing you need to do.
    First, you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Note : If u do not configure SWFVISU then WD application will not lauch but user will get SAP gui screen for processing it.
    xlm code must be changed corresponding task for both case.
    Thanks and ragards,
    SNJY

Maybe you are looking for

  • Need help to view sdo_geometry maps in Java

    Hi Everybody, could anybody help me to start develop a map viewing application in netbeans for sdo_geometries in 10g database. I need a tutorial or sample application or some simple examples to start. Regards Edited by: qBaloch on Mar 23, 2012 1:09 P

  • How can I listen to a gifted iTunes song without adding my credit card?

    I am having an absolute nightmare of a time with Apple. A friend gifted me with a song on iTunes. I do not have iTunes and am not a Mac user. I have found that the computers always add unnecessary steps and procedures and make even simple things far

  • NPE while registering Remote Portlet in Weblogic Portal 10.3

    Hi, I am on Weblogic Portal 10.3 and am trying to create a remote portlet in my portal application. The remote Portlet is hosted on OC4J 10.3.1.1.1 and is consumed properly on Oracle Portal without any errors, however, when I try to access the portle

  • Filtering a file list by both filename and filesize

    For instance, I would like to do some processing on only text files under 2 megabytes. The text filter is easy enough, but it's the file size filter that's getting me. What I have so far is this:                FilenameFilter filter = new FilenameFil

  • FTP: can't change directory to

    When I try to connect to my FTP Server, any user has the message: 530 User xxxx: can't change directory to asdads/xxxx. I have also this message in System Log: Sep 13 10:58:24 hostname ftpd[7916]: FTP LOGIN FAILED (cannot chdir) for 01.user.isp.com (