on 11-16-2010 9:25 PM
We are runnging SRM 7.0 with Process Controlled Workflow for RFx.
As a start, we activated the BC set for automatic approval for RFx. This worked out fine. All RFx documents get auto approved once published.
But now we are trying to define a one step approval process with a condition, e.g. total value > 1,000,000 USD. For this, we defined the process level for BUS2200(RFx), and added one more schema definition 3C_RQ_600_001 (in addition to the 3C_RQ_600_000, whcih came with the original BC set activation) , with process level configuration that looks like the following
100 Approval ZRFQ_APPR_1STEP
999 Automatic (System User) 0EV999
The event ZRFQ_APPR_1STEP contains a simple expression that reads "Value TOTAL_VALUE >= 1,000,000".
The problem: now regardless of the total value, all RFx goes into "Release Rejected" shortly publishing.
Any help would be appreciated!
Hi,
I think the issue is in assigned expression for ZRFQ_APPR_1STEP event.
Can you paste the detail for your expression?
- Expression Type 0FB001 CL_FORMULA_BRF
- Result Type B Boole
You can also check runtime result in SLG1 log.
Regards,
Masa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Masa,
Thank you very much for the helpful hint. I have been trying different WFL transactions for logs but with no success, but never thought of SLG1. Now that you pointed out, I ran SLG1 and the only error entry was coming from our integration with Document Builder. Now we know where to look for potential fix.
Thanks again!
Masa,
If I filter the object name by /sapsrm/, there was no error entry (all SRM BRF Trace are green). Only when I don't filter, and enter "*" as object name, the error entry showed up with /IPRO/DOC related content. Does it mean that I can rule out the issue with my expression definition?
Thanks!
Hi Masa,
Your suggestion of the issue being in the expression is exactly correct (although it was one of the issues). I have fixed the expression (in addition to the process level configuration), and now the 1-step approval is working as expected mostly, but for one further question - I am not able to locate the expression variable to represent the RFx total value (on header level). I have tried different variables from the formula editor, e.g. 0C_C3_C_TOTALVALUE, 0V_SC_TOTALVALUE, but none worked.
Do you know if we can add variables (such as custom fields) to the formula editor or get the BOR object somewhere so that we can build formula based on that BOR object?
Thanks again!
Hi,
The SLG1 log is correct. Result empty means false and the level was skipped. The second automatic level set rejected status.
0C_C3_C_TOTALVALUE is constant text TOTALVALUE. It does not make a sense to compare fixed text >= 1,000,000.
0V_SC_TOTALVALUE is for Total value in SC but your object is RFx.
There is no total value field in RFx. Which field value do you want to compare? Is it target value ? or Do you want to trace back to all SC items and get item price?
After the field is identified, you can implement custom expression. Probably FM type fits for your requirement.
Copy the FM /SAPSRM/WF_BRF_0EXP001 and change the code.
Regards,
Masa
Hi Jay,
Hope you have configured the correct task id.. but for your information the task id for 'approval' - 40007982 and
'approval with completion - 40107917.. please check..
Regards,
Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Saravanan,
I have checked and the task ID is 40007982. Thanks for the suggestion.
Masa,
We fixed the Doc Builder related error and the document is still going to "Release Rejected" status.
Now that I have looked the SLG1 log in more detail, I did realize this (green) entry:
>> 10 Execute event ZRFX_APPR_1STEP Event for RFx one step approval workflow. 11/17/2010 09:10:31
>> 41 Execute expression ZRFX_EXPR_1STEP Start condition expression for RFx one step approv; result is empty
>> 51 Execute expression 0C_C3_C_TOTALVALUE Overall value; result TOTALVALUE
I don't know if the log result is empty sounds correct. I am pasting the expression definition here as you suggested:
Expression ZRFX_EXPR_1STEP
Short Text Start condition expression for RFx one step approval WFL
Group ZM_SRM SRM group
Result Type B Boole
Positive Formulatn
Negative Formulatn
Fld/Struct. Lngth 1 Output Length 1
Buffering: Event-controlled buffering
Formula: 0C_C3_C_TOTALVALUE >= 1,000,000
Additional information about the expression;
Expression type: 0FB001
Import status: A
Thanks!
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.