cancel
Showing results for 
Search instead for 
Did you mean: 

G/L account in start conditions of a workflow

henning_abel
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

henning_abel
Participant
0 Kudos

Dear Kiran,

thanks for your answer.

How can I create my own custom code for this?

What I saw in another thread is the following:

"You need to create a subtype of the BOR object type, make your Z-field available as an attribute in you object type and delegate from the original object type to your own object type. The new attribute will then be available for use in start conditions."

That's what I tried...but w/o success so far.

Do have more hints for me of how to solve that problem?

Thanks and best regards,

Henning