cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to use PROCESS_PARAMETER function in the Decision Maker

Former Member
0 Likes
596

Hi mates,

I would really like to know if some of you has already experienced with the "Decision Maker" process (available starting from 7.0 realise). I'm interested to use this process type giving as input a runtime parameter filled in one ABAP program which has been executed before in the same process chain. The input parameter read from the ABAP program will be used in the Decision Maker in order to decide what of next processes will be exectuted.

-


Example

Let's consider this scenario: the program just wirtes the parameter p in the SAP memory with the ID OPT1, OPT2, OPT3


REPORT  ztest08.
PARAMETER p TYPE n.
DATA: prog TYPE sy-repid.
CASE p.
  WHEN '1'.
    SET PARAMETER ID 'OPT1' FIELD p.
  WHEN '2'.
    SET PARAMETER ID 'OPT2' FIELD p.
  WHEN '3'.
    SET PARAMETER ID 'OPT3' FIELD p.
ENDCASE.

For this progam I've created an ABAP process variant called YTEST01 which uses an ABAP variant that is defined with p=1.

Now, in the formula editor of the Decision Maker, I set this code


PROCESS_PARAMETER( 'ABAP', 'YTEST01','OPT1', 'LOW', '        0' ) = 1

Hopefully the Decision Maker should get the parameter p=1 from the SAP memory reached with the ID OPT1. But it doesn't, and it sends me back an error message that some error has occured during the formula.

Note that, in the formula, I left the last parameter blank.

Does someone of you already experienced with Decision Maker using PROCESS_PARAMETER operands?

Thank you very much and best regards,

Matteo

Edited by: Stefano Bertuzzi on Nov 28, 2009 5:19 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi,

Please check the link below:

-Vikram

Former Member
0 Likes

Hi,

Have a look at class CL_RSPC_DECISION, method FORMULA_GET_VALUE to see how this process type works.

Regards,

Ulrich