‎2010 Aug 05 11:04 AM
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
‎2010 Aug 05 11:22 AM
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
‎2010 Aug 05 11:15 AM
‎2010 Aug 05 11:22 AM
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
‎2010 Aug 05 11:24 AM
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
‎2010 Aug 05 11:26 AM
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
‎2010 Aug 05 11:31 AM
AT LINE-SELECTION.
If checkbox EQ 'X'.
Move 6 to sy-lsind.
Modify this according to your need.
Regards
Mishra
‎2010 Aug 05 11:41 AM
thanks for ur suggestion. but its not working.do u have any other solution or coding which u can send.
thank and regards
pritee
‎2010 Aug 05 1:06 PM
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
‎2010 Aug 05 11:55 AM
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.