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: 

Converting checkbox field from output to input

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

done ...

Former Member
0 Kudos

done

Former Member
0 Kudos

done