cancel
Showing results for 
Search instead for 
Did you mean: 

Use of TVARVC values in Process Chain

0 Kudos

Hi,

According to the value of one variable stored in TVARVC, I'd like to execute (or not) a process chain. Is there any easy way to do so ?

For the moment, the solution I think about is :

- Run a program to read values in TVARVC

- Raise a specific event depending on these values

- Schedule the process chain after this event

As I am not very comfortable with ABAP, I would appreciate if you have any good ideas, or code sample that I could implement.

Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

former_member189406
Active Participant
0 Kudos

Hi Alex,

The easiest way is to write a piece of ABAP code using the Function module "BP_EVENT_RAISE".

1) Create an event in SM64 and make the process chain as Event triggered.

2) Create a new ABAP program and include the above function module.

3) Pass the parameters of the TVARVC table and check if the value in the table matches with the desired value. If so trigger the event.

4) Schedule the ABAP program in SM36 as a daily job.

Everyday the program gets executed and checks the value in TVARVC table. If the value mathces, then the event will be triggered.

Let me know if you need any further info.

Regards,

Balaji V

0 Kudos

Thanks to all,

My problem is solved.

Alex

Answers (1)

Answers (1)

former_member181964
Active Contributor
0 Kudos