cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox in Module Pool Programming

Former Member
0 Kudos
603

Hi,

I got a situation. I need to handle the checkboxes, which are the internal table fields.

I need to check them, when I click the push button.

Using the event sy-ucomm, I tried to do. But, normally in a screen, we use to check the checkbox, whereas here I need to check them with the push button.

Kindly, guys help me out.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

when you click the pushbutton, move 'X' to the field in the itab.

Regards

Raja

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In PAI of the screen,

module USER_COMMAND_9001 input.

....

when 'SALL'.

...

PERFORM USER_COMMAND_9002.

... Display the ouput

...

endmodule. " USER_COMMAND_9001 INPUT.

form USER_COMMAND_9002.

LOOP AT I_OUTPUT INTO W_OUTPUT.

W_OUTPUT-X = 'X'.

MODIFY I_OUTPUT FROM W_OUTPUT.

ENDLOOP.

endform. " USER_COMMAND_9002

Former Member
0 Kudos

How do you show your checkbox in the module pool ? Is it part of a table control ?

If it is part of the table control, then there is a field called Selection and you need to put the field of the internal table, which you are trying to display on the screen. If the user selects it, the value in the checkbox is 'X'.

Let me know if I am offtrack here.

Regards,

Subramanian V.