Skip to Content
0
Mar 01, 2009 at 07:00 AM

At LIne-Selection

36 Views

Hi All

I have a program which gives a list of Customer no, Name and City. The 2nd Column is Customer column.

Requirement :

-


When I double click on a line in the Output it should give a pop-up giving the details about the customers bank details..

So my question is how should i use at line-selection in this case to get the desired output.

Here is my program .

-


REPORT ZASSIGN_IR1.

tables : kna1, knbk, bnka.

data : it_kna1 type kna1 occurs 0 with header line.

data : begin of it_bkdet occurs 0,

banka like bnka-banka,

banks like knbk-banks,

bankl like knbk-bankl,

bankn like knbk-bankn,

end of it_bkdet.

select-options : s_kunnr for kna1-kunnr.

select * into it_kna1 from kna1 where kunnr in s_kunnr.

append it_kna1.

endselect.

write:/ 'No.', 10'Customer', 24 'Name', 60 'City'.

write:/ sy-uline.

loop at it_kna1.

write:/ sy-tabix left-justified, it_kna1-kunnr, it_kna1-name1,

it_kna1-ort01.

endloop.

at line-selection.

select bnkabanka knbkbanks knbkbankl knbkbankn into table of it_bkdet

from knbk inner join bnka

on knbkbankl = bnkabankl

where knbk~kunnr = s_kunnr.

endselect.

loop at it_bkdet.

write :/ it_bkdet-banka, it_bkdet-banks, it_bkdet-bankl, it_bkdet-bankn.

endloop.

-


Right now whenever am double clicking on any row in the output, a blank screen is displayed. Please help !!!

Edited by: Himanshu Bhusan Sahoo on Mar 1, 2009 8:00 AM

Edited by: Himanshu Bhusan Sahoo on Mar 1, 2009 8:03 AM