2016 Dec 14 12:04 PM
I have created a table control. values and checkbox is entered. when ever i press enter, the values stay but the check box gets unchecked.I couldn't find a proper solution. Thanks in advance.
Regards
Gowtham
2016 Dec 14 12:35 PM
Did you check in the LOOP AT itab/control
Regards,
Raymond
2016 Dec 15 9:06 AM
in PAI....
PROCESS AFTER INPUT.
LOOP AT IT_SIZE2.
MODULE HOLD_DATA.
ENDLOOP.
MODULE USER_COMMAND_0100.
MODULE HOLD_DATA INPUT.
WA_SIZE2-COMBO = IN2.
WA_SIZE2-DESCR = IN3.
WA_SIZE2-COLOR = IN4.
MODIFY IT_CHBX FROM WA_CHBX INDEX SY-INDEX TRANSPORTING CB1. ''checkbox1
ENDMODULE.
2016 Dec 15 9:44 AM
Next time be as precise as possible in describing the problem so that it will be resolved as quickly as possible."field disappear" and "dump is raised" are not exactly the same problem.
You cannot use sy-index here, the LOOP AT in PAI is not a LOOP AT ITAB statement but a LOOP WITH CONTROL. Use field current_line of table control as index to read and modify internal table. (look for samples in online documentation)
Regards,
Raymond
2016 Dec 14 12:35 PM
Hi,
did u create the table control using wizard.? The checkbox field should come in chain - endchain.
2016 Dec 15 9:07 AM