Application Development and Automation 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: 
Read only

Connecting data between alv and listbox

Former Member
0 Likes
464

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.

2 REPLIES 2
Read only

Former Member
0 Likes
448

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.

Read only

Former Member
0 Likes
448

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^