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: 

DYNAMIC GENERATION OF SELECT-OPTIONS

Former Member
0 Kudos

hi everyone,

i am trying to create one selection screen.on which i've to show the fields as select options.and those field names and table name i've to get from another table.

select options in the screen should come like when we have selected the selection fields of any data base table.

very urgent!!!!!!!!!!!!

regards,

Bharat.

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Hi,

Check this code :


    if v_selid is initial.
*     Init free selection dialog
      call function 'FREE_SELECTIONS_INIT'
        exporting
          expressions  = i_expr
        importing
          selection_id = v_selid
          expressions  = i_expr
        tables
          tables_tab   = i_tables
        exceptions
          others       = 1.
    endif.

*   Display free selection dialog
    call function 'FREE_SELECTIONS_DIALOG'
      exporting
        selection_id            = v_selid
        title                   = 'Selection'
        status                  = 1
        as_window               = 'X'
      importing
        expressions             = i_expr
        field_ranges            = i_ranges
        number_of_active_fields = v_active
      tables
        fields_tab              = i_fields
      exceptions
        others                  = 1.

aRs