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

Interactive report

Former Member
0 Likes
857

i am working on an interactive report related to MM.i am on the fifth detail list.i have displayed checkbox at the begining of each records in the fifth detail list. now if i tick that checkbox and pressing F2 then i should go to the sixth detail.list.my problem is what should be the coding to make sure that when i check the checkbox and double click then i need to go to the sixth detail list. kindly help.

thanks and regards

pritee

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
834

Hi,

Make a loop on the list and use statement READ LINE to determine the value of checkbox field.

If the value is not initial populate the sixth level list.

Cheers

8 REPLIES 8
Read only

Former Member
0 Likes
834

Hi,

Check sy-lsind field

Regards,

Selva

Read only

Former Member
0 Likes
835

Hi,

Make a loop on the list and use statement READ LINE to determine the value of checkbox field.

If the value is not initial populate the sixth level list.

Cheers

Read only

Former Member
0 Likes
834

Hi,

Make a loop on the list and use statement READ LINE to determine the value of checkbox field.

If the value is not initial populate the sixth level list.

Cheers

Read only

Former Member
0 Likes
834

Hi,

Make a loop on the list and use statement READ LINE to determine the value of checkbox field.

If the value is not initial populate the sixth level list.

Cheers

Read only

Former Member
0 Likes
834


AT LINE-SELECTION.
 If checkbox EQ 'X'.
 Move 6 to sy-lsind.

Modify this according to your need.

Regards

Mishra

Read only

0 Likes
834

thanks for ur suggestion. but its not working.do u have any other solution or coding which u can send.

thank and regards

pritee

Read only

0 Likes
834

Hi,

Try to read the value using GET CURSOR LINE.

Sample code

DATA : v_text(255) TYPE c,
             v_cucol       TYPE sy-cucol.


AT LINE-SELECTION.

CASE sy-lsind.
     WHEN 1.

     WHEN 2.
.
.
     WHEN 6.

GET CURSOR LINE v_cucol VALUE v_text.

IF v_text+49(1) EQ 'X'.   
 " v_text will be having the selected reord value, 
 " check the position of the checkbox field in
 " debugger, then use it to read the check box value.

* your code

ENDIF.

ENDCASE.

Regards

Bala Krishna

Edited by: Rob Burbank on Aug 5, 2010 9:39 AM

Read only

Former Member
0 Likes
834

EXAMPLE:

DATA: date TYPE d,

flag TYPE c LENGTH 1,

wa TYPE c LENGTH 10.

START-OF-SELECTION.

date = sy-datum.

DO 10 TIMES.

date = date + sy-index.

WRITE: / flag AS CHECKBOX, (10) date.

ENDDO.

AT LINE-SELECTION.

DO.

READ LINE sy-index FIELD VALUE flag

date INTO wa.

IF sy-subrc <> 0.

EXIT.

ELSEIF flag = 'X'.

WRITE / wa.

ENDIF.

ENDDO.