Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

reg the dynamic variant creation

Former Member
0 Kudos
91

Hi,

I am working on a program which runs daily to delete some expired records.

I am internally calling a report which is run in the background from the main program.now i want to create a dynamic variant using which i have to submit the values to the internal report.How can i do that?

I am using job_open,job_submit to schedule the job in the background.

I want to pass the dynamic variant and the internal report name to the JOB_SUBMIT fm.

I tried out this using RS_CREATE_VARIANT...but that fm is used only to create a dynamic variant for the same program but not the program which is called from that.

Please help me out.

Thanks,

Vijaya.

2 REPLIES 2

Former Member
0 Kudos
46

HI,

Instead you can call the second program using the SUBMIT ...AND RETURN statement .

You can dynamically pass different values to the selection screen.

Will this option help you?

Regards

Subramanian

0 Kudos
46

Thanks for replying...

I can't do that...i don want the program run in the background immediately..it shud be scheduled in SM37 and i will run it when ever i feel like.

Thanks,

Vijaya.