2007 Jun 21 9:50 AM
actually i hav displayed all the check boxes,i hav created a function key using
pf-status 'select'.when i click on this all the check boxes should get selected,
friends please provide me the logic.
actually i hav displayed all the check boxes,i hav created a function key using
pf-status 'select'.when i click on this all the check boxes should get selected,
friends please provide me the logic.
2007 Jun 21 9:53 AM
Hi
see the code
FORM select_all .
CLEAR v_lisel.
DO.
READ LINE sy-index FIELD VALUE v_chk.
IF sy-subrc NE 0.
EXIT.
ENDIF.
READ LINE sy-index FIELD VALUE sy-lisel INTO v_lisel.
IF v_lisel+2(1) = ' ' AND sy-index GT 5.
v_lisel+2(1) = 'X'.
MODIFY LINE sy-index FIELD VALUE sy-lisel FROM v_lisel.
ENDIF.
ENDDO.
ENDFORM. " select_all
Reward points for useful Answers
Regards
Anji
2007 Jun 21 9:56 AM
Hi Kudaal,
You must have given name to all te check boxes like
e.g: var1 (checkbox1)
var2 (checkbox1)
var3 (checkbox1)
then u can use this logic.
Case sy-ucomm.
when (ur Fct code ).
var1 = 'X'.
var2 = 'X'.
var2 = 'X'.
endcase.
Hope this helps.
Regards,
Nikhil Moghe