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

alv issue

Former Member
0 Likes
542

hi this is saroj,

my issue is about alv report.

1) two tables are there suppose vbak, vbap.

in a interactive alv report while double clicking ' vbeln ' of ' vbak ' it should show 'posnr' of vbap.

suppose in a selection screen i gave selection range 1 to 5 of' 'vbeln'.so after double clicking

the first record it should show 'posnr' related to first 'vbeln' record. but it is showing all the 5 records

of 'posnr'.so how can i get the single record after double clicking single 'vbeln'.

my code is as below.

case sy-ucomm ( or fcode type sy-ucomm).

when '&ic1'.

read table it_ekko into wa_ekko index selfield-tabindex(check this code ,i can not recall exactly this code).

perform select_data.

perform build_cat.

perform grid_dis.

endcase.

please solve the issue.

regards

saroj.

<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>

Edited by: Alvaro Tejada Galindo on Dec 14, 2009 4:23 PM

hi this is saroj,

my issue is about alv report.

1) two tables are there suppose vbak, vbap.

in a interactive alv report while double clicking ' vbeln ' of ' vbak ' it should show 'posnr' of vbap.

suppose in a selection screen i gave selection range 1 to 5 of' 'vbeln'.so after double clicking

the first record it should show 'posnr' related to first 'vbeln' record. but it is showing all the 5 records

of 'posnr'.so how can i get the single record after double clicking single 'vbeln'.

my code is as below.

case sy-ucomm ( or fcode type sy-ucomm).

when '&ic1'.

read table it_ekko into wa_ekko index selfield-tabindex(check this code ,i can not recall exactly this code).

perform select_data.

perform build_cat.

perform grid_dis.

endcase.

please solve the issue.

regards

saroj.

<LOCKED BY MODERATOR - USE APPROPRIATE TITLES>

Edited by: Alvaro Tejada Galindo on Dec 14, 2009 4:23 PM

3 REPLIES 3
Read only

Former Member
0 Likes
514

Hi Saroj,

Do as below :-

case sy-ucomm 
when '&IC1'.
read table it_ekko into wa_ekko index selfield-tabindex
if wa_ekko-ebeln = selfield-value
Do further processing
endif.
perform select_data.
perform build_cat.
perform grid_dis.
endcase.

Regards

Abhii

Edited by: Abhii on Nov 26, 2009 4:44 PM

Read only

Former Member
0 Likes
514

HI Saroj ,

you need to ristrict the number of records based on the selected value.

It will be easy for you, you need to just get the selected line VBELN.

Hope you get it

Read only

Former Member
0 Likes
514

This message was moderated.