Application Development and Automation 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: 
Read only

Executing a program multiple times with different variants

Former Member
0 Likes
1,070


Hi All,

I want to create a tool which executes a program multiple times taking different variants (which I would be

maintaining in an excel sheets) and for each time the program gets executed, its output would be

written to a particular file.

I understand that this requirement is quite vague but I am trying to figure out if a tool/program could

be written in abap which does this or do I need to think of a different platform such as C#.Net

Thanks,

Faiz

4 REPLIES 4
Read only

Former Member
0 Likes
771

hi Rahman,

I think you can schedule a job with the same program in multiple steps, each time with different variant. Alternatively, you can write a new program and call your program using SUBMIT statement specifying variants.

Regards,

DN.

Read only

thangam_perumal
Contributor
0 Likes
771

Hi Rahman,

                   Please read the document about submit program...

it will fulfill your requirements..

Regards,

     Thangam.P

Read only

Former Member
0 Likes
771

Hi Rahman,

This class 'cl_salv_bs_runtime_info' will get the output of internal table.

  

   DO n times.

      cl_salv_bs_runtime_info=>set

      SUBMIT ZARCHER_0099 WITH VARIANT..(variant name can from your excel sheets?)

      cl_salv_bs_runtime_info=>GET_DATA

      call 'GUI_DOWNLOAD'  or OPEN DATASET...(down output to file)

   ENDDO.

Hope can help you.

regards,

Archer

Read only

Former Member
0 Likes
771

Hey Rahman,

It depends how you want the data to be maintained after processing. Because:

1. Primarily each variant could be used to direct and maintain backup in different folders (through AL11)

2. Each Variant's input file could have a different file name which then could be saved in the same folder under different names with time stamps.

Hope this helps.

Cheers

Vijay