Skip to Content
avatar image
Former Member

How to put the values of a coloumn of an internal table into a variant ?

Can somebody help me figure out if there is a way for the query below:

I have an internal table with one coloumn with 69 records.

I want all these 69 records to be populated into a variant and get saved so that with this variant and the values saved in it I can run a particular program

How can I populate these values ?

Add comment
10|10000 characters needed characters exceeded

  • Are you sure you really want a program variant?

    Do you have a SELECT-OPTIONS in the selection screen?

    And are these 69 records fully compatible with a SELECT-OPTIONS?

    Why don't you use SUBMIT VIA JOB WITH param IN rangeof_69_values?

  • Get RSS Feed

2 Answers

  • Jun 02, 2017 at 07:26 AM

    Any export/import to database statements should do the trick. If you actually want a "variant", selection-screen limitations can be bypassed using no-display parameters that are saved via standard options. (e.g. data of an ALV grid docked to the selection screen)

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 02, 2017 at 08:12 AM

    If this is a static variant I'd just copy/paste the values to a variant (use the debugger if needed).

    If this is a dynamic variant I'd copy the internal table to a ranges table and "submit " the followup report with this range table.

    Add comment
    10|10000 characters needed characters exceeded