this is the code for readiing checkbox value.
IF WA_TRANSPORT-CHECK = 'X'.
loop at IT_TRANSPORT into g_TRANS_wa3
where CHECK = 'X'.
g_TRANS_wa3-CHECK = ' '. ----here value is blank.
modify IT_TRANSPORT
from g_TRANS_wa3
transporting CHECK.
endloop.
endif.
MODIFY IT_TRANSPORT
FROM WA_TRANSPORT
INDEX TRANS-CURRENT_LINE
TRANSPORTING CHECK.
******************************************************************
IF WA_TRANSPORT-CHECK = 'X'.
loop at IT_TRANSPORT into g_TRANS_wa3
where CHECK = 'X'.
g_TRANS_wa3-CHECK = 'x '. ----here value is x
modify IT_TRANSPORT
from g_TRANS_wa3
transporting CHECK.
endloop.
endif.
MODIFY IT_TRANSPORT
FROM WA_TRANSPORT
INDEX TRANS-CURRENT_LINE
TRANSPORTING CHECK.
if am using this code . it's working fine for check box.
but, it is not selecting that particular line. because while looping on internal table it has more than one value for check. so,
always it is reading the last value in work-area which has value x. it is not picking the picking the value which is selected.