Application Development 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: 

check box tick mark disappear if we press enter

Former Member
0 Kudos
557

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

5 REPLIES 5

raymond_giuseppi
Active Contributor
301

Did you check in the LOOP AT itab/control

  • Your PAI save the box values read from screen in the internal table
  • Your PBO map the screen box fields from values read from internal table

Regards,
Raymond

0 Kudos
301

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.

0 Kudos
301

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

Ashg1402
Contributor
0 Kudos
301

Hi,

did u create the table control using wizard.? The checkbox field should come in chain - endchain.

Former Member
0 Kudos
301

no i didn't create table control using wizard...