Skip to Content
author's profile photo Former Member
Former Member

Checkbox in Module Pool Programming

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 12, 2005 at 09:21 AM

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

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2005 at 09:23 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2005 at 10:11 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.