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

about lists

Former Member
0 Likes
460

I have 2 fields like customer and name having 20 records on basic list. When I select 5 records randomly, I want to get the address of particular customer selected in secondary list?

I have 2 fields like customer and name having 20 records on basic list. When I select 5 records randomly, I want to get the address of particular customer selected in secondary list?

2 REPLIES 2
Read only

Former Member
0 Likes
429

Hi,

You can do this by using Get cursor field statement.

At line selection.

get cursor field fnam fval.

select land1 name1.... from kna1 into it_add where kunnr = fval.

Reward if helpful

Kamal

Read only

0 Likes
429

Hello,

you can use the HIDE technique.

while displaying the basic list, you can use the hide statement.

chk the following code.

*To display basic list.

Loop at ITAB.

hide KUNNR.

write KUNNR, NAME.

endloop.

*To Display Secondary List

at line-selection.

select address from <Table> into <Variable> where kunnr = itab-kunnr.

write : <address>.

Hope this works.

Cheers!

Sravan.