Skip to Content
0
Former Member
May 31, 2008 at 10:53 AM

how to save check box data ?

36 Views

Hello,

I am having 5 radiobuttons out of which the one tht is selected will have store in the DB table the code tht i am having is working fine. It is like..

types: begin of st_zws,

radio type c,

end of st_zws.

case wa_wsst-ws.

when '1'.

radiobutton1 = 'X'.

when '2'.

radiobutton2 = 'X'.

when '3'.

radiobutton3 = 'X'.

when '4'.

radiobutton4 = 'X'.

when '5'.

radiobutton5 = 'X'.

endcase.

when 'ZRADIO'.

if radiobutton1 = 'X'.

wa_wsst-radio = '1'.

wa_wsst-ws = 'Not YET started'.

elseif radiobutton2 = 'X'.

wa_wsst-radio = '2'.

wa_wsst-ws = 'TASK IN PROGRESS'.

elseif radiobutton3 = 'X'.

wa_wsst-radio = '3'.

wa_wsst-ws = 'RETURNED (INFORMATION INCOMPLETE)'.

elseif radiobutton4 = 'X'.

wa_wsst-radio = '4'.

wa_wsst-ws = 'FINISHED (WAITING FOR APPROVAL)'.

elseif radiobutton5 = 'X'.

wa_wsst-radio = '5'.

wa_wsst-ws = 'FINISHED AND APPROVED'.

endif.

But my requirment is like in the place of 5 radiobuttons i want to replace it with the checkboxs in this wht changes i have to do in the coding part.

Thks