Skip to Content
0

check box tick mark disappear if we press enter

Dec 14, 2016 at 12:04 PM

73

avatar image
Former Member

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

capture1.png (6.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Dec 14, 2016 at 12:35 PM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

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

0
avatar image
Former Member Dec 14, 2016 at 12:35 PM
0

Hi,

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0