Skip to Content
0

Selection Variable in Background Job

Dec 07, 2016 at 07:07 AM

20

avatar image

Hi Expert,

I would like to use selection variable (T- from table TVARVC) or user defined variable (B) in my operation but can't think of a best solution. Can some more advice ? My scenario as below:-

I have 50 company codes that need to run 5 steps of background jobs. This 5 steps are 5 programs that run in step sequence. Instead of define 50 variant in the 5 programs, i would like to use table to store the company code. If i change the table data (company code), then i start submit the 5 jobs accordingly to the company code. This 50 company codes jobs must run in concurrently and not one after another.

I have tried with TVARVC table to store company code with (T) in my variant but the company code are changing once i change the data in TVARVC. For example, i start the first job (5 steps programs) with company code A, when i change the data to company code B in second job, the program that have not execute in first job yet will switch to company code B instead of using original data A. I need same constant company code for all programs defined in a job even thought i have change the variable data and start kick next job.

Any ideas how selection variant setup can resolve my problem ?

Thanks & Regards,

Oscar

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers