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
Similar Messages
-
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
KishanYes 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
SATYAExcecute 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 -
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 RegardsI 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 -
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 abaperHi,
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 -
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 -
Urgent - Bidding Engine Start Conditions
Hi all,
i try to set up the Bidding Engine process.
I have a problem with the start condition of the Workflow.
It doesn´t work.
I set up WF - without approval
WS14500026 CHANGEVERSIONSAVED
WS14500026 SAVED
and just changed the role from the Standard one SAP_BBP_STAL_Manager - to a customer on Y_SAP_BBP_STAL_OPERAT_PURCHAS
I always get an error message
"Approval workflow is ambiguous. Inform system administrator "
What can i do?
Thx
RalfMost of the times SRM returns message "Approval workflow is ambiguous"
if it finds two workflows activated contradicting each other
e.g. Approval not required (auto approval)
and one step approval of Bid
Please check if you have any such cases in SWB_COND
BR
Dinesh -
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
KishanHi ,
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. -
Bind Zfunction module to WF start conditions
Hi My requirement is that i need to code some conditions for
prod category and companycode
and bind these to the start conditions of the workflow 10400002
so whenever the receipt is save(SAVED event is triggered )
these conditions have to be validated simulataneously
before proceeding to the first step
Please let me know how i can link my Z function module (where i code thse conditions ) to the WF triggering event.Start Conditions specify for a particular event whether or not a workflow should be started.
Logical Expression that can be based on constants, attributes of the event objects and system fields.
Transaction: SWB_COND .. Start Conditions are used for triggering events only.
Use
Prevent unnecessary starting of workflows and Sending the event to one of the choice of workflows
When start condition is defined, system adds a predefined Check Function Module SWB_CHECK_FB_START_COND_EVAL for the Event Linkage.
Start Condition may include complex logical expressions, which can contain logical AND/OR/NOT operators, existence checks, pattern comparisons and multi-level parentheses.
Use
Prevent unnecessary workflows starting and Avoid situations that start a Workflow only to have first step of workflow decides it is not needed and cancels it and Can be defined for Multi-step and single step tasks.
If Event Linkage is changed, The check Function Module is wiped of, re-enter the same function module as the check function module.
Edited by: Prabhakar Dharmala on Oct 31, 2008 1:28 PM -
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. -
Action with start condition always triggers
Functionality required: "when its 4 days from the actual date an
Audit is to take place an e-mail should be triggered to the
audit attendees"
I have created a new date rule (4 days before - reminder) and
added this date rule to the date profile 000000000003. I am
using this date profile in my actions and have set a new start
condition to trigger an e-mail alert when "todays date" = my new
date rule. I have set up scheduled conditions which are met.
when i create transactions which meet both the scheduled and
start conditions (from my perspective) the action is getting
triggered to send the e-mail reminder. My new date rule is as
follows:
<?xml version="1.0"?>
<TimeRule>
<TimeRuleSource>
<ruleline>
<AssignTimeExp displaytype="AssignTime">
<VarTimeExp displayType="VarTime"
name="RESULT"
position='B'>
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</VarTimeExp>
<MoveTimeExp displaytype="MoveTime" direction="-">
<VarTimeExp displayType="VarTime"
name="ORDERACTUAL"
position="B">
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</VarTimeExp>
<ConstDuraExp displaytype="ConstDura"
duration="4" timeunit="DAY">
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</ConstDuraExp>
</MoveTimeExp>
</AssignTimeExp>
</ruleline>
</TimeRuleSource>
When i test it using various dates it seems to work as expected, it returms false when it should fail and true when it should suceed When tested from within the date rule for the FROM and TO date for todays dates i get the following:
Deadlines
Appointment Type RESULT
From SA 10.02.2007 14:27:52 GMTUK
From
Appointment Type ORDERACTUAL
From WE 14.02.2007 14:27:52
To WE 14.02.2007 14:27:52
Duration
Reference Objects
SYSTEM GMTUK CL_TIMECALENDAR_SIMPLE
In my start condition i am testing for my date rule (4 days
before - reminder) = todays date.
Can anyone explain why my start condition is always being triggered
Thanks in advance
EdHello Easwar Ram,
Thanks for your reply.
No, I didn't create an Action Profile. I use standard profile: /SCWM/TU (Shipping & Receiving - Transportation Unit).
I only have created a new Action Definition, Schedule and Start Conditions for this Definition. All work correctly with the exception of the button 'Start Condition Parameter'.
I don't know why the button appears because I didn't define a Condition Parameter for the Start Condition. And when I click on this button I get an error in standard SAP code:
1) li_bor_object ?= l_context->appl.
2) ls_bor_handle = li_bor_object->get_bor_object( ip_objtype = l_objtype ).
L_context->appl has value '' in the debugger. After line 1 the value of the li_bor_object is '' therefore line 2 terminates the transaction with error.
Maybe this occurs because the Action Profile uses a Persistent Class for Object Type instead of a Business Object Repository? -
G/L Account assignment to condition type
can we assign more than one G/L account to one condition type and if how?
Edited by: Lakshmipathi on Aug 4, 2011 12:01 PM
Better use the subject effectively. Also search the forum before posting such basic question and stick to forum rulesDear gaddammai ,
PLEASE READ THE FOLLOWING THREAD BEFORE POSTING
https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement
Read This Before Closing your Threads
Now, search the forum before posting any queries.
This will help you develop the skill to use right 'search terms'.
About your question, yes we can have multiple G/L for same condition types if,
the condition types are assigned with different account keys in two different pricing procedures.
Thanks & Regards,
Hegal K Charles -
I no longer have the e-mail address associated with an Apple ID. I do not know the password for that account, nor are the security questions correct (e.g. it asked my birth date, but, when I listed it, I was told it was not correct). I have no way to get into the program, to correct an information. How do I delete this account and start anew?
If you still have access to your old email address, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your iCloud ID. Tap edit next to the primary email account, tap Edit, change it back to your old email account and verify it. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. You can now go to Settings>iCloud and sign in with your correct iCloud ID and password.
If you don't have access to your old email address, you will have to contact Apple to have them reset the password so you can disable Find My iPhone and sign into your iCloud account. You can either go to https://expresslane.apple.com, select "More Products and Services", then "Apple ID", then on the next page select "Other Apple ID Topics", then "Lost or forgotten Apple ID password" and click "Continue"; or you can contact Apple Support (http://www.apple.com/support/icloud/contact/). -
How do I delete my itunes account and start over?
I've had it with trying to get help with removing apps from my previous purchases. My son downloaded some questionable apps and now they show up on all my family's devices under "Purchase". I would like to just abandon the old account and create a new account to start over.
I deleted the itunes install on my PC and reinstalled thinking I could then set up a new itunes account, but then my previous account autopopulated my itunes library. How do I stop this so I can set up another account?You cannot remove apps from previous purchases.
All purchases will always be tied to the accoutn from which they were purchased. All apps will always have to be updated using the account from which they were purchased. You would need to authorize your computers for the old account as well.
I would not start a new account. This generally causes problems.
Hide the apps.
iTunes Store: Hiding and unhiding purchases - Support - Apple
Maybe you are looking for
-
Can I share my internet from my Imac with my Ipad and simultaneously connect to a airport express that I use to remotely to connect speakers? The big problem that I'm having is that when internet sharing via the airport I can not simultaneously conne
-
Problem with pictures in pages 5 and epub
Hello, I have been using pages 09 to make epubs for the last 6 months with happy results. My new macbook pro came in the mail and I have some problems. I have figured out how to do all the text formatting, including titles/chapter names, etc. on page
-
I installed Magellan Content Manager on my MacBook Pro. I want to delete it. How do I do this?
-
Hi there, We are currently looking at ways of estimating the time and money required to complete a Forte project. We are looking at using one or more of Forte, Web Enterprise Designer, and Conductor. Has anybody found/developed a technique that seems
-
Portlet Preferences Gateway Issue
I have a custom portlet, I am setting 2 custom preferences: PortletResponse.SetSettingValue(SettingType.Admin,"URL", TextBox1.Text);PortletResponse.SetSettingValue(SettingType.Admin,"Count",TextBox2.Text);These settings basically Set the URL and Site