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

case sy-ucomm

Former Member
0 Likes
1,146

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.

2 REPLIES 2
Read only

Former Member
0 Likes
644

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

Read only

Former Member
0 Likes
644

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