‎2010 Oct 04 3:52 PM
Hello friends,
I am developing ALV program using REUSE_ALV_GRID_DISPLAY, i am able to display my list but i need to have pushbutton on every line to select that line but at the moment the col for the push button line is coming but its not proper i.e. i am not able to select the multiple line or using control key the different lines.....any help is appreciated.
the FM is as follows
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = repid
i_callback_pf_status_set = 'STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'ALV_TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
i_structure_name = 'T001' "DDIC-Bezug
I_BACKGROUND_ID = 'ALV_WALLPAPER2'
I_GRID_TITLE = sy-title
is_layout = ps_layout
it_fieldcat = fieldcatalog
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = sortcat[]"KSD
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = con_alv_variant_saveoption
i_save = 'X'
is_variant = g_variant
it_events = gt_events[]
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 5
I_SCREEN_START_LINE = 5
I_SCREEN_END_COLUMN = 120
I_SCREEN_END_LINE = 30
IMPORTING
e_exit_caused_by_caller = exit_caused_by_caller
es_exit_caused_by_user = exit_caused_by_user
TABLES
t_outtab = i_alvd
EXCEPTIONS
program_error = 1
OTHERS = 2.
thanks.
Please use a more descriptive subject line in the future.
Edited by: Rob Burbank on Oct 4, 2010 4:11 PM
‎2010 Oct 04 6:37 PM
Use search. There are plenty of threads regarding ALV and probably most of them mention some demo programs in SAP.
Study those demo programs.
‎2010 Oct 04 9:21 PM
You're using an OLD (but workable) function module method. NetWeaver SALV is much simpler to write, and IMHO better for your user. A click on a row selects the row and you can code so that a simple double-click does what your select the left-hand button and press a function key does in the out-of-date ALV FM and methods. There are excellent SALV tutorials on SCN, and I'll bet that once you try these, you'll never go back to the old stuff.
‎2010 Oct 05 9:00 AM
Hello Friends ,
Thanks for your valuable information!
this problem is solved.
we need to pass the functionality to is_variant parameter of the FM.
Regrads.