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: 

checkbox

Former Member
0 Kudos

I am trying to turn on my check box in PBO.. but it is not getting turned on..

IN pbo, i set v_chkbox = 'X'. and my screen variable is V_CHKBOX .. Shouldn't this turn on my checkbox in PBO?

What could i be doing wrong?

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, it should. Are you sure that your field name in the screen is V_CHKBOX?

report zrich_0002 .

data: v_checkbox(1) type c.

start-of-selection.

  call screen 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  v_checkbox  = 'X'.

endmodule.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

This works perfectly for me. My screen field is named as "v_checkbox".

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Yes, it should. Are you sure that your field name in the screen is V_CHKBOX?

report zrich_0002 .

data: v_checkbox(1) type c.

start-of-selection.

  call screen 100.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module status_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

  v_checkbox  = 'X'.

endmodule.
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module user_command_0100 input.

endmodule.

This works perfectly for me. My screen field is named as "v_checkbox".

Regards,

Rich Heilman

Former Member
0 Kudos

somewhere it was getting cleared..Thanks and Sorry for the trouble..