03-14-2007 11:46 AM
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.
03-14-2007 1:01 PM
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