Workflow - starting conditions

Hello,
I need to know if it is possible to use the Transaction code /for example "BBPSC01" as a starting condition of the BUS2121 Workflows.
Is it standard functionality or does one have to do some addicional programing?
Anyone had experience with this?
Thanks for any reply.
Aart

Hi Dinesh, Disha,
I have the following situation:
User X is creating via trx BBPSC01 a Shopping cart for user Y.
All other users will use trx. BBPSC03 to create a SHC.
Only in the case of user X creating a shopping cart, I do not need a WF approval. (WF without approval)
In all other cases yes I do need WF Approvals.
Because user X has a dedicated role (Z_XXX) I tried to accomplish the behaviour of the WFs with the following starting condition for the WF without approval:
&_EVT_OBJECT.REQUISITIONERUSER.ACTIVITYGROUP&
CE
Z_XXX
This condition I excluded in the other BUS2121 WFs !
the problem now is that this condition is related to the Requester, not the Creator of the shopping cart!!
In the case of user X bying on behalf of user Y, the condition will refer to user Y and start a Workflow (with approval steps)!
Is there a (standard) container element I can use to differentiate the creator from the requesitioner in BBPSC01 trx.?
Any help or other suggestions are welcome,
Thanks in advance,
Aart

Similar Messages

  • Workflow start condition : PO type field in BUS2012

    Hi all !
    I am creating a Workflow process whenever a PO ( Order type NB ) is changed.
    For this I am using the standard business object BUS2012 ( Purchase Order )
    For my objective, I need to use the start Condition of PO type eq 'NB'. I go to Basic data and putting the start condition but I am not getting the PO type field in the Workflow Container. I have placed BUS2012 inside my workflow container. I am using the 'Changed' event.
    What I have to do to get the PO type field or do I have to write a check FM ?
    Could you please guide me how to put the start condition for the workflow ?
    Thanks a lot,
    ~ The abaper
    ( Note : I have posted the same in Workflow forum as well, but no responses yet, I am trying here for a faster response, thnx )

    >
    The Abaper wrote:
    > Hi all !
    > I am creating a Workflow process whenever a PO ( Order type NB ) is changed.
    >
    > For this I am using the standard business object BUS2012 ( Purchase Order )
    >
    > For my objective, I need to use the start Condition of PO type eq 'NB'. I go to Basic data and putting the start condition but I am not getting the PO type field in the Workflow Container. I have placed BUS2012 inside my workflow container. I am using the 'Changed' event.
    >
    > What I have to do to get the PO type field or do I have to write a check FM ?
    >
    > Could you please guide me how to put the start condition for the workflow ?
    >
    > Thanks a lot,
    > ~ The abaper
    >
    > ( Note : I have posted the same in Workflow forum as well, but no responses yet, I am trying here for a faster response, thnx )
    There is no PO type in attributes of BUS2012. You have to extend it to add PO type and write program to that attribute.
    That way you can have PO type in where condition of workflow basic data.
    Let me know if you need any further help on this
    Adding attribute is explained in one of the demos.... Go to Blobs and blog by category - ABAP - extending business object ... You will find a video demo for this...

  • WF start condition : PO type field in BUS2012

    Hi all !
    I am creating a Workflow process whenever a PO ( Order type NB ) is changed.
    For this I am using the standard business object BUS2012 ( Purchase Order )
    For my objective, I need to use the start Condition of PO type eq 'NB'. I go to Basic data and putting the start condition but I am not getting the PO type field in the Workflow Container. I have placed BUS2012 inside my workflow container. I am using the 'Changed' event.
    What I have to do to get the PO type field or do I have to write a check FM ?
    Could you please guide me how to put the start condition for the workflow ?
    Thanks a lot,
    ~ The abaper

    Hi,
    Check in the BO BUS2012 if you have an attribute which stores the PO type field. If yes, you can directly use this attribute and chek its value in the start condition.
    If not, then you can create a subtype of the BO BUS2012 and delegate the standard BO to this new Z BO.
    Add a new attribute in the Z BO to store the value of PO type.
    Now in the workflow start condition you need to check the value of the newly added attribute.
    Hope this helps!
    Regards,
    Saumya

  • Error in start conditions

    Hi experts,
    I Get an error in my application monitors,
    we dont have any clue who is the user and why is he facing such error.
    Can any one help me out in this regard.
    The error is
    Start conditions for 00050101442 is incorrect : 0 workflows
    This is SRM version 4.0
    Best Regards,
    Sairam.

    Hi Sai
    Check your workflow start conditions for this object in txn SWB_PROCUREMENT.
    If you have multiple workflows activated for any object (say, SHopping cart), then you need to be careful to see that  :
    - start conditions are mutually exclusive (same start condition value should not be in 2 workflow startconditions. For example, you cannot define total value 0-1000 EUR for one workflow and 1000-10000 in another workflow as 1000 is valid in both )
    - Start conditions encompass all possible values (For example, if you define total value 0-1000 EUR for one workflow and 1000-10000 in another workflow, it is not sufficient  as they do not cover all values . Better would be to define 0-1000 in one workflow and >1000 in another workflow)
    Best regards
    Ramki

  • SAP Workflow not triggering due to "Start Condition return FALSE" message in SWEL

    Hi,
    I have SES approval workflow which is not triggering in few cases because of check function ends with exception even it has valid start condition and correct data. For example lets say we have PO no. 100 for which 3 SES (SES1,SES2 & SES3) are created. Out of which workflow for SES3 is not triggering even if all the three contain valid start condition(Bases on internal order at PO line item).when triggering workflow manually using SWUE for SES3 it work fine.Please find SWEL screenshot below and let me know if you have come across this type of issue.
    Thanks in Advance.
    Ishant.

    kindly use SAP_WAPI_CREATE_EVENT and not SWE_EVENT_CREATE it's always better to use APIs.
    Why use 2 sub-objects? you already have a z-object and you can modify it. even if there is a reason for the double sub object , the workflow should still run on the standard one - BUS2091.
    see for example :
    Extending Object Types: Inheritance and Delegation - SAP Business Workflow - SAP Library
    As for your question,
    if you are using a function module to raise the event, way not check in it if the service entry sheet has been created properly before creating the event. you can even check if the PO contains an internal order in your RFC function module and raise a specific event. then you will have no need for the starting condition.

  • Z field in the start conditions of a workflow

    Hi all,
    Is it possible to add a z field in the start conditions of a workflow?
    My requirement is to use a z field created in the shopping cart, in the start conditions for the workflow WS14000044.
    Thanks and regards
    Kishan

    Yes you can undo the delegation at any point of time not to worry. It is just atable entry.
    Go to swo1->Settings->Delegates
    If you want to use a Custom Business object that is a delegate of a Standard Business Bo you can use it. You create a Virtual attribute in your custom Business Object. If you delegate the Custom bo with Standard BO. Whenever you refer to standard Business Object you will have this Custom attribute in your kitty. This will help in start Condition.
    <b>Reward points if useful</b>

  • How to create new starting conditions for a workflow of shopping cart

    Hi all,
    How to create new starting conditions for a workflow of shopping cart
    SATYA

    Excecute SWB_COND
    Creating New:
    Click on Create button. If you cannot see that it could be a authorization issue
    then Business Object:  BUS2121
    Double Click the event linkage for one step workflow
    Define the expressions, Check Consistency and click on Traansfer
    Start Condition is created. If it is not Active click on the Red Button to make it Active
    Editing Already existing:
    Click on Edit Button If you cannot see that it could be a authorization issue
    then select Business Object:  BUS2121
    Click on the condition part (White area) of the start condtion needing editing
    Change the expressions, Check Consistency) and click on Traansfer.If it is not Active click on the Red Button to make it Active

  • Workflow not triggered for BP when start condition's field is set by BADI

    Hi guys,
    I have created a workflow and given the start Event "Changed" of object BUS1006. In this I have given a start condition which triggers this event when a particular field on transaction BP is populated.
    Now the problem is that when I myself explicitly populate the field and press save the workflow is triggered fine, but when I populate that field automatically in a Save BADI (BUPA_GENERAL_UPDATE), the workflow is not triggered. Tcode swel just returns the msg that Start condition returns 'FALSE' for object.
    Can someone please help me in this or let me know where I can find its cause in system.
    Any help would be really appreciated.
    Regards,
    Shaili

    If this is just one field, create your own custom event and code launching it when saving BP with your field changed.
    Maybe event Changed is executed only for changes in GUI.
    If you program your own one you will have 100% control of it.
    Regards
    Radek

  • Start condition in workflows, not working

    Hi,
    I have been trying to edit the start condition for a workflow. I have entered the condition in coloumn "c" but the symbol does not comeup ( the condition active symbol). I have been trying out different things, but nothing helps. Please help me out..
    Thanks,
    Sukumar.

    Hi,
    1. Check the start condition through SWB_COND, It should be active.
    2. Check that Receiver Function Module-SWW_WI_CREATE_VIA_EVENT_IBF
    and  Check Function Module- SWB_2_CHECK_FB_START_COND_EVAL have been maintain
    through tcode: SWETYPV. If  these FMs are not maintain, then maintain it.
    Regards
    Kedar

  • G/L account in start conditions of a workflow

    Hi SRM gurus,
    is is possible to check the G/L account in a start condition of a workflow? Can not find it.
    Example: Company 1234 and TotalValue >= 1000 and G/L account=777777 --> Then WS10000129 "One Step approval of shopping cart" should be initiated?
    Would be great if that works!
    Thanks and best regards,
    Henning

    Hi
    As per standard one step WF..GL account is not built as criteria. You have have your own custom code for this. Thanks
    Piece of logic from standard WF task
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Workflow WS10000129    No default currency
      Event Shopping cart created
       (  " Einkaufen von Employee
         &EC Requirement Coverage Request.TotalValue& < 100,000.00
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.TotalValue& u2265 1,000.00
         and    &EC Requirement Coverage Request.Requester User.Activity Group& NE SAP_BBP_STAL_MANAGER 
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Spending Limit& NX 
         and    &EC Requirement Coverage Request.UserBudgetDefined& NX 
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufen von Employee
      or    (  " Einkaufen von Manager
         &EC Requirement Coverage Request.Requester User.Activity Group& CE SAP_BBP_STAL_MANAGER
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.TotalValue& u2265 500,000.00
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Spending Limit& NX 
         and    &EC Requirement Coverage Request.UserBudgetDefined& NX 
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufen von Manager
      or    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
      and    &EC Requirement Coverage Request.Unlimited& = X
      or    (  " Einkaufsbudget Scenario
         &EC Requirement Coverage Request.UserBudgetDefined& EX 
         and    &EC Requirement Coverage Request.RFQ Follow-On Doc.& u2260 X
         and    &EC Requirement Coverage Request.UserBudgetSpent& > &EC Requirement Coverage Request. UserBudgetDefined&
         and    &EC Requirement Coverage Request.Unlimited& u2260 X
         and    &EC Requirement Coverage Request.Exists w.out Price& u2260 X
      ) " Einkaufsbudget Scenario
    True 
       Start workflow:  One Step approval of shopping cart
    False 
       No action
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Rgds
    Kiran

  • Custom field in start conditions for workflow WS14000044

    Hi all,
    We have a requirement where a value of a field is coming from the catalog to the shopping cart via the customer fields (provided by SAP). we want to use it as a start condition for the workflow.
    The issue we are facing is that the customer fields are not visible as start conditions for the workflow WS14000044.
    Is there a way we can make them visible?
    We are using SRM 5.0
    Thanks in advance
    Kishan

    Hi ,
    start conditions are specified based on reqhead , i am not very sure wether the customer fields are available there.
    since they are not available there , you can not see them in the start conditions.
    please check wether you can find any notes which deal with implemenation of customer fields in the start conditions.

  • Error using a method call in the starting conditions of a Workflow

    Hi,
    In SRM 4, I have a doubt about a start condition with WFWS14000109 I need to trigger the WF depending on organizational unit of the requester (not purchase group or purchase organization).
    I have seen in the editor, in SWB_COND in the part of requisitionerUser the Method ReadOrgUnit.
    I change to traditional mode of the editor and when I select the method I get in Express1. field
    &_EVT_OBJECT.REQUISITIONERUSER.READORGUNIT(_RESULT='OBEG';ACTORGUNIT= )&
    If I use = and the organizational unit in express2 field I get error
    Partial expression expected (expression '&_EVT_OBJECT_REQUISITIONERUSER.READORGUNIT(_RESULT',position       76)
    Can anybody say me where is the error? how I should express the condition.
    Thanks
    Best Regards

    I don't think you can use a BOR method in a condition. At least not as far as I know. I think it would be better to create a virtual attribute in your delegated subtype of BUS2121 and use that in the condition.
    Regards,
    Martin

  • Can we change the start conditions of SAP standard workflows

    Can we change the start conditions of SAP standard WF10400002
    Where i want to assign my own Gross amount in the start conditions.

    Check out the link below.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/90/83ed38f5f41a28e10000000a114084/content.htm]
    [http://help.sap.com/saphelp_nw2004s/helpdata/EN/4c/86bf43feca11d2a64f0060087a79ea/content.htm]
    Regards,
    Raj

  • Add "cost center" query to a start condition?

    Hi there,
    we got a new requirement for one of our plants.
    We're on SRM 5.0 classic scenario.
    Is it possible to add a "cost center" query to a specific start condition (SWB_PROCUREMENT) of a workflow?
    E.g. if a user uses cost center 4711 for a shopping cart item a specific cost center responsible xyz should approve this item.
    If the user uses another cost center 4712 for a second item in this shopping cart this item should be approved by another cost center responsible abc.
    Is that somehow possible ?
    So far I did not find a suitable expression for cost center.
    Thanks in advance for your answers.
    Best regards,
    Henning

    Hi Masa,
    thanks for your answer. Perhaps you also have a hint for the following:
    I can't really find in the metioned thread or in note 731637 what happens if a SC with several items is partially approved.
    Example:
    SC with 3 items:
    item 1 cc 1000
    item 2 cc 2000
    item 3 cc 1000
    Let's say item 1+3 have been approved by the approver found by badi and WS14500015. Is a PO or a purchase requisition created in backend? Or is it only created after the whole SC has been approved (i.e. also item 2).
    Thanks for a hint and best regards,
    Henning

  • What is the difference using start condition and check function module

    what is the difference  between using start condition and check function module

    That's new to me, I thought a start condition was evaluated before the workflow started, and thus now workflow work item is available. That's why I think the only situation in which start conditions/check functions can't be used, is when the availability of a workflow log for investigation of exactly what stopped the workflow is a requirement.
    I suppose the <a href="http://help.sap.com/saphelp_46c/helpdata/en/4c/86bf43feca11d2a64f0060087a79ea/frameset.htm">SAP documentation</a> is in need of an update.

Maybe you are looking for

  • Error while running ant build script from cmd line -ORABPEL-01005

    Hi to all, I am newbie to BPEL, I did a sample application SyncHelloWorldBPEL application in Jdev and I deployed it application server everything looks good. When I ran the same ant build script from command line it throw me bunch of complation error

  • Why do Mac users have to pay for iCloud's photostream yet windows users get it free?

    Hi. I have an iPhone 4S as well as a MacBook pro upgraded to Lion, yet my iPhoto still runs from iLife 09. Windows users can use the photo stream feature for free by downloading the iCloud control panel, and yet I have to pay to upgrade my iPhoto to

  • Help to reinstall OS X afetar hard drive replacement

    Hello. I have a Mac book pro 17" model A1297. I have no recovery media, and his hard drive is bad. Several times it doesn't startup properly. I have a brand new 500gb HDD, and I can replace the original HDD. I need help to reinstall OS X, because as

  • How to get receiving and sending storage location in material document?

    Hi, guys, I am now writing a report about material document.  I need to get receiving storage location and sending storage location from material document  in MSEG table , Is there any function module for this ? Thanks. Justin

  • WH settings

    Hi all, User does not want to store more than one material in one bin. We need to just change the configuration settings in SPRO ( To choose the option mixed storage not allowed ).       I know the solution but I just want to check its implications.