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

Converting checkbox field from output to input

Hi Experts,

I m using module pool programming in which i am using custom control to display my output table.

Table has 2 fields for checkbox :

1. Dishonor cheques

2. Blacklist cheques.

Screen also has a pushbutton 'Remove blacklist cheques'.

Initially I am displaying 2nd checkbox field ( Blacklist cheques) as only output and 1st field as input.

When user presses pushbutton 'Remove blacklist cheques' , 2nd checkbox field (Blacklist cheques)

should be converted into input and output field.

Please suggest.

Regards,

Kaustubh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2008 at 07:22 PM

    When user press the 'Remove blacklist cheques'

    in the PAI in

    module User_command .

    loop at screen.

    If screen-name eq 'BLACKLIST CHEQUES'.

    SCREEN-INPUT = 1 .

    SCREEN-OUTPUT = 1 .

    Modify Screen.

    endif.

    Endloop.

    endmodule.

    Regards

    Neha

    Edited by: Neha Shukla on Nov 26, 2008 11:10 AM

    Edited by: Neha Shukla on Nov 26, 2008 11:12 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Neha,

      I tried your solution,but in debugger i am not getting checkbox fields of internal table which i have passed in custom control in screen-name field of screen.

      please suggest.

      Regards,

      Kaustubh.

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2008 at 05:06 AM

    Hi,

    Try this In the PBO you can write this Code

    If sy-ucomm = ''Remove blacklist cheques'.

    loop at screen.

    If screen-name NE 'Dishonor cheques'.

    SCREEN-INPUT = 1 .

    SCREEN-OUTPUT = 1 .

    Modify Screen.

    endif.

    If screen-name eq Blacklist cheques'.

    SCREEN-INPUT = 0 .

    SCREEN-OUTPUT = 0 .

    Modify Screen.

    endif.

    ELSE.

    If screen-name eq 'Dishonor cheques'.

    SCREEN-INPUT = 0 .

    SCREEN-OUTPUT = 0 .

    Modify Screen.

    endif.

    If screen-name eq Blacklist cheques'.

    SCREEN-INPUT = 1 .

    SCREEN-OUTPUT = 1 .

    Modify Screen.

    endif.

    Endloop

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Avinash,

      I tried your solution,but in debugger i am not getting checkbox fields of internal table which i have passed in custom control in screen-name field of screen.

      please suggest.

      Regards,

      Kaustubh.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 09:59 AM

    done ...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:00 AM

    done

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2009 at 10:00 AM

    done

    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.