Application Development and Automation 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: 
Read only

checkbox & no-display error ?

former_member194669
Active Contributor
0 Likes
816

Hi,

I have requirement like the following but it is giving me error.

"NO-DISPLAY" and "AS CHECKBOX" can only be specified together."

I need it as checkbox and not as parameter.


report  zars no standard page heading
        line-size 170
        line-count 65(4).

parameters : v_chk as checkbox default 'X' no-display.

Please don't suggest to me use like the following.

parameter v_chk(1) type c no-display.

Any help.?

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
515

Hello ARS,

Try this ..

parameters : v_chk as checkbox default 'X' MODIF ID GP1.

at selection-screen output.
  loop at screen.
    if screen-group1 = 'GP1'.
      screen-active = 0.
    endif.
    modify screen.
  endloop.

regards,

Naimesh Patel

Read only

ferry_lianto
Active Contributor
0 Likes
515

Hi,

Please try this.


REPORT  ZARS NO STANDARD PAGE HEADING
        LINE-SIZE 170
        LINE-COUNT 65(4).
                                                                        
PARAMETERS : V_CHK  AS CHECKBOX DEFAULT 'X',
             V_CHK2 AS CHECKBOX DEFAULT 'X'.
                                                                        
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'V_CHK'.
      SCREEN-INVISIBLE = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

Regards,

Ferry Lianto

Read only

former_member194669
Active Contributor
0 Likes
515

Hi,

Namesh, Ferry your solution works.