cancel
Showing results for 
Search instead for 
Did you mean: 

RFx publishing goes into "Release Rejected" with Process Controlled WFL

Former Member
0 Kudos

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!

Accepted Solutions (1)

Accepted Solutions (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

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_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

The object is /SAPSRM/ in SLG1. Please check the from date selection value.

Regards,

Masa

Former Member
0 Kudos

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!

Former Member
0 Kudos

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!

Former Member
0 Kudos

Hi Jay,

I don't think SAP has delivered a standard expression for RFx total value, But you can create custom FM expression to get the current RFx value..

Saravanan

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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!