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.

Similar Messages

  • Step User Decision and Approval of Purchase Order

    Hello All,
    I have created a workflow with step user decision and also attached the object BUS2012 to display from SAP Inbox. But is there a way i can attached the object that would show the approval screen when the work item is executed, and also send a mail for the user decision.
    Urgent help needed.

    Hi,
    You could use a secondary method in your user decision step which executes an object method and for example displays the PO so users can make the correct choice in the user decision.
    Regarding sending an email you could have a sendmail step after the user decision step but wthis will not be executed until the user decision is complete. Why do you want to send an email?
    Regards,
    Eddie

  • 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.

  • 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?

  • AUTO PO print out creates spool with RFC user.

    We have classic scenario where AUTO SRM PO print out spool is create with RFC user. While PO data is passing to R/3 is correct with correct user (created_by). Out put is created on the name with RFC user not with user who create SRM SC& PO. BADI BBP_CREATE_PO_BACK will help?

    Hi Vishal,
    Welcome to SDN.
    Do they use custom PO SAPScript/Smartform?
    If they do, you may want to check the print program (custom one) and the custom PO form. Perhaps there is some logic to set/display with the european decimal notation.
    If they don't, you can also check the print program setting and do debugging (if necessary) to find out the logic to assign european decimal notation. 
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

  • Creating variable with the user Authorization in BEx

    Hi gurus,
    i want to create a variable with user authorization in BEx. Can any one please tell me the steps to create the variable for authorization.
    Thanks in advance
    sandy

    Hi,
    Please take a look and refer the section Use of Variable filled Authorizations(User Exit)
    Advanced Features of SAP BW Reporting Authorizations
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    Hope this helps.
    Cheers,
    Gimmo

  • Picard doesn't create files with a user's non-primary groupid

    Scenario:
    I have a folder in /home/john/music  that contains files that are readable by users in users group.
    I have set permissions this way (setgid):
    drwxr-sr-x 284 john users 12K sep 4 00:03 music
    This way, new files inside that folder belong to "users" group, and not to john's default group (john).
    I use Musicbrainz's Picard to organize my music collection. When adding new files to the collection, they get created with "john" group, and not "users" group, as they should. Why?
    Can I change something in Picard to change this behaviour? There are workarounds for this, I know. But I wanted to know if this behaviour is normal.
    Output of ls -lh /usr/bin/picard:
    -rwxr-xr-x 1 root root 83 abr 22 17:19 /usr/bin/picard
    Last edited by foolosophy (2009-09-05 20:04:32)

    Scenario:
    I have a folder in /home/john/music  that contains files that are readable by users in users group.
    I have set permissions this way (setgid):
    drwxr-sr-x 284 john users 12K sep 4 00:03 music
    This way, new files inside that folder belong to "users" group, and not to john's default group (john).
    I use Musicbrainz's Picard to organize my music collection. When adding new files to the collection, they get created with "john" group, and not "users" group, as they should. Why?
    Can I change something in Picard to change this behaviour? There are workarounds for this, I know. But I wanted to know if this behaviour is normal.
    Output of ls -lh /usr/bin/picard:
    -rwxr-xr-x 1 root root 83 abr 22 17:19 /usr/bin/picard
    Last edited by foolosophy (2009-09-05 20:04:32)

  • Error Handling in workitem---user decision step

    HI Experts,
    I have created work item through user decision step. In that decision i have given Approve & Reject Option
    now when user click on Approve that i need to do some validation based on this i need to give error also at same time i dont want to complete that workflow...i want that after getting error user must recity that error and than come back again to inbox and execute that workitem... I tried it but i am not able to do this...can anybody pls provide the hint for this requirement.
    Thanks & Regards,
    Taran

    Hi Pavan,
    I am confused i your third point.
    . In the Approved branch of the Decision step check for the condition , if it fails then raise the exception.that you have define in the Point 1. in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
    how i 'll raise the raise the exception do i need to create and task or any other step.
    also can you please explain below point in detail.
    in the exception branch insert the logic so that the condition becomes true, after that step insert one more decision step.
    also i am working into SAP CRM 2007 web UI environment.
    Please advice.
    Thanks,
    Taran

  • Problem in User Decision Step

    Hi,
    I am facing a strange problem where one of the User when he is trying to process a work item (User Decision) he gets a blank screen.
    This work item is a User Decision Step. Only this user is facing the problem. At least the button Cancel and keep Work item
    In Inbox button is also not visible.
    He was earlier able to see the other buttons. Is it any authorization problem? Has anyone faced a similar kind of Issue.
    I tried executing the Txn SWIA to execute the work item and see the problem .But I don’t see the execute button to execute it as an administrator.
    Do I need additional authorizations to be able to execute it? If so what are they? I am able to see the execute button in my QA sys.

    This is an example of a question where you <u>definitely</u> should specify your release, and in your case also the GUI version.
    I remember having some problems with the user decisions some years ago, and as far as I can recall it was in release 4.6C. Anyway, the problems only occured with the HTML version of the decision task, and it was caused by incompatible versions of an OCX file (Windows binary file containing reusable GUI controls as far as I know). SAP GUI had installed one version, and another application had installed a more recent version, which of course should not cause problems - but did.
    So my advice would be to first try and turn off HTML in the decision task (it is an option (checkbox) in the personal workflow settings) and see if that helps. If it does, get a hold of the GUI install checker tool and see if there is a problem with a dynamically loadable module (DLL, OCX, ?).

  • Need Help in Workflow - User decision

    I have to pass 5 parameter with this user decision title but they only give 4 parameter options in the user decision step. Is there anyway I can have five parameter place?
    Please help

    You might try creating a container element which is a long text field. Then write a method that will concatenate 2 or more of your parameters into the text field. Call this method before the decision step, and use this text field as a parameter.
    If you do this, you need to find out what the maximum length of a parameter can be (I think it's 50 char).
    All seems like a lot of work for one extra parameter, though!
    Cheers
    Lyal

  • Comment in User Decision

    Hi,
    I have a step with a User Decision where the person executing can give type his comments in the Create button .And when he executes the Decision a Notification is sent to the next level.
    At the next level the comments whatever he has written should be visible to him.
    Any suggestions how to proceed.

    By Create button i assume you mean that he is adding his comments as an attachment.
    These comments will be sent back to the workflow container in the attachobjects container element .
    If you want further steps of the workflow to see the comments, pass the attachobjects container element from the workflow to the task container .
    The comments will then be available as a link in the next level
    Regards,
    Amit

  • 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

  • WMS - Cycle Counts - are generating with no user task type

    Hi,
    I have configued Cycle counts and it is creating tasks with no user task type.
    That too .. this is happening for some tasks .. others are created correctly.
    As there is no user task type .. It is not getting displayed on Gun.
    Can anyone pls help me .. Thanks in advance.
    Regards,
    Naveen S

    Hi,
    I have configued Cycle counts and it is creating tasks with no user task type.
    That too .. this is happening for some tasks .. others are created correctly.
    As there is no user task type .. It is not getting displayed on Gun.
    Can anyone pls help me .. Thanks in advance.
    Regards,
    Naveen S

  • Attaching HTTP Links for User Decisions?

    hi all,
    how can we attach HTTP Links along with User Decisions. i have previously attached Business Objects as links along with approve/reject button but this time I need to attach a HTTP link.
    Points will be awarded.

    hi ravi,
    the basic requirement for me is that the frontend is going to be Webdynpro Pages controlled with a workflow in the backend. say if a personnel submits a form, it has go to the person's manager for approval.
    So while approving it, if incase he wants to see the approval information, he would click on the URL which comes with the User Decision. this is the precise requirement.
    Regarding Javascript code, where can we write the java code for URL's. is there any standard template which follows the same requirement.

  • Workflow user decision problem

    Hi experts!
    I've got a problem on using the user decision in workflow.
    i have a workflow with a user decision that has 3 user decision options (basketball, volleyball, and badminton)
    Here is the problem:
    After i selected one of them and flagged them as finished.
    I'd like to loop again with that user decision but the decision options now will be the remaining two and the other one will not be displayed
    ex:
    BEGINNING
      options:
         basketball (selected)
         volleyball
         badminton
    AFTER LOOP
      options:
         volleyball
         badminton
    Here's the question:
    <b> how will i do that? </b>
    i would like to make a workflow with using only one user decision. Based on my thinking i would come up with so many user decisions if i randomly select the decision options.
    Thanks in advance.
    <i>Points will be given for any answers that would come up with an idea..</i>

    There is an user exit for customizing our work items but I am afraid that will it be applicable to your requirement. I tried your scenario to pass variables to the user decision, but i failed. Experts please share your views. Is it possible to pass variables to user decisions using user exits?

Maybe you are looking for