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

Similar Messages

  • 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

  • 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

  • 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

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

  • 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

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

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

  • Configure Start conditions based on ibase\ and Customer Fields ??

    Dear friends,
    We have enchanced transaction types(document types) using Easy enchancement workbench (EEWB). Therefore we have a new tab(customer screen) in all the transaction types we use !!.
    This tab has customer fields in it...
    Now the requirement we have here is that we have to send Emails based on these customer fields and ibase and component.
    How can i create start conditions based on the customer fields and ibase which are not present in object type BUS2000116(default) which is currently reffered while i create start conditions.
    I know that i can create new object type(using swo1) and let it be have inherited supertype as BUS2000116 and then inside the new object type i can have my attributes( ibase and those customer fields) inside the new created object.
    Is there any way of incalculating the customer fields and ibase \component in BUS2000116 ( by default it does not have these) ???
    Assuming that i created new object type, how do i make use of this type while i am configuring conditions.
    Any help would certainly be rewarded.

    hi again,
    Can anybody take some time out and guide me plz...

  • How to restrict the job start conditions (only "Immediate" type) ?

    Hi,
    We allow our users to schedule and execute in background mode transactions (example IP19, IW38). We gave them for that authorizations (object S_BTCH_JOB with LIST, PROT, RELE and SHOW - objetct S_PROGRAM with BTCSUBMIT).
    We would like that users can schedule and execute their jobs only with the u201CImmediateu201D job start condition (in the Start Time screen for the type of start condition : Immediate, Date/Time, After job, After event, or At operation mode).
    Another solution: prohibit the scheduling and the execution background job in a certain time interval ...
    How can restrict the job start conditions ?
    Thank you.
    Patrice.

    Hi Jan,
    Yes, sa38 makes it possible indeed to execute in background into immediate mode a job but
    the user have to know the name of the program to be carried out ...
    The user knows only the name of these transactions trade. For example, IW38.
    In the menu of this transaction, SAP gives the possibility to execute in background :
    Program --> Execute in Background --> display of Start Time screen for the type of start condition :
    Immediate, Date/Time, After job, After event, or At operation mode).
    It is at this time there that we want that the user can only choose the "immediate" mode.
    We must thus prohibit the other choices (Date/Time, After job, After event, or At operation mode) ... and
    and we don't know how to restrict these other options in this screen "Start Time screen for the type of start condition".
    Thank you.
    By.

  • 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

  • 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

  • Condition type field when Define Pricing Procedure Determination

    Hello Gurus,
        there is a condition type field when Define Pricing Procedure Determination. what does it mean ?
    Many thanks,
    Frank Zhang

    Here is are the details of various fields while configuring pricing procedure.
    A. STEP
    This indicates the number of step-in the procedure.
    B. COUNTER
    This is used to show a second ministep
    C. CONDITION TYPE
    This is the most important component in the pricing procedure. The rates are picked up from this element, on the basis of the properties described.
    D. DESCRIPTION
    This forms the description of the condition type.
    E. FROM
    This is used to define the progression of the calculation and range of subtotals
    F. TO
    This is used to define the progression of the calculation and range of subtotals
    G. MANUAL
    This function enables to allow the condition type to be entered manually also apart from automatic pickup.
    H. MANDATORY
    This function identifies the conditions that are mandatory in the pricing procedure. The sales price is a mandatory condition type.
    I. STATISTICS
    This can be used to represent the cost price of the material sold, generally used for study statistical impacts of price
    J. PRINT
    The activation of this function will enable the printing of the values and conditions to the document.
    K. SUBTOTAL
    A key is assigned from the drop down menu; this can be used by the system in other area like Sis for reporting purpose also
    L. REQUIRMENT KEY
    This function is used to assign a requirement to the condition type. This requirement can be used to exclude the system from accessing the condition type and trying to determine the value. This can be used to specify that the condition type should only be accessed if the customer has a low risk credit.
    M. ALTERNATE CALCULATION TYPE
    This function allows you use a formula as an alternative in finding the value of the condition type, instead of standard condition technique. this can be used to calculate complex tax structures.
    N. ALTERNATE CONDITION BASE VALUE.
    The alternative condition base value is a formula assigned to a condition type in order to promote an alternative base value for the calculation of a value.
    O. ACCOUNTS KEY
    The account keys form part of account determination. These keys are used here to define the posting of the revenue generated to respective account heads& to subsequent assignment to GL accounts.
    PR00- ERL
    K007/KA00- ERS.
    KF00- ERFu2026u2026u2026u2026.& so On.
    P. ACCRUAL KEY.
    The accrual keys form part of account determination. These keys are used here to define the posting of the revenue generated to respective account heads& to subsequent assignment to GL accounts and payment to respective parties.
    Kalpesh

  • 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

Maybe you are looking for

  • Unable to create a Service Connection Point

    Hi - I set up a new SharePoint 2013 environment.  Everything installed successfully.  When I launch Central Admin, it doesn't accept my logon ID/password.  I found the following in the application event logs.    I assume our AD guys will need to set

  • How to disable line selection functionality in ALV.

    Hallo guys, I need to disable the ALV functionality to select one(or more) lines. How to hide this push button on the right side? Thanks.

  • Convert float to 4 bytes array

    How can I convert float type to 4 byte array - not with strings but to exact binary representation.

  • NetWwaver 2004s specific Accelerators (ASAP or Solution Manager)

    I am deperately trying to get the latest version of BI accelerators for implementing BI Netweaver 2004s. The only spot I see these being available are in the 'roadmap section of ASAP'. Downloading the ASAP/SM roadmap takes forever, and has several pa

  • Mac OS 10.3.9 wont share my internet connection with my XBOX

    First Of all I have been able to connect with 10.2.8, internet connection to the mac is working. My connection is like this. 2Wire modem connection through phone line, phone line to USB adapter, mac with internet sharing to XBOX through Ethernet. Dir