2007 Jun 15 9:04 AM
Hai,
It is very urgent, how connect the data between the alv and listbox in such a manner that by selecting a record no in list box the related details have to be diplayed in the alv grid. pls convey me with an example.
Hai,
It is very urgent, how connect the data between the alv and listbox in such a manner that by selecting a record no in list box the related details have to be diplayed in the alv grid. pls convey me with an example.
2007 Jun 15 9:11 AM
Hi.
Unfortunately I can't provide you with sample code.
But try following scenario.
Assign a OK_CODE to the Listbox in your Dynpro. In PAI use this OK_CODE to update your internal table that is basis for your ALV. Or use the listbox-value in PBO to do so. Call method (SOFT_)REFRESH_TABLE_DISPLAY in PBO to update your ALV grid.
Regards,
Timo.
2007 Jun 15 9:24 AM
hi
good
go through this code
here is teh sample code to populate list box.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
name = 'PS_PARM'.
value-key = '1'.
value-text = 'Line 1'.
APPEND value TO list.
value-key = '2'.
value-text = 'Line 2'.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = name
values = list.
START-OF-SELECTION.
WRITE: / 'Parameter:', ps_parm.
thanks
mrutyun^