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

Regarding Parameter with NO-DISPLAY option

Former Member
0 Likes
4,538

Hi,

I want to create a check box with NO-DISPLAY option how can i declare it.

Means i need to create a check box with default value 'X' and it should not be displayed in selection screen.

How can i do it!

Thanks in advance.

Thanks,

Deep.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,327

Hi Deep,

You could hide the check box in the display in the event AT SELECTION-SCREEN OUTPUT.

Try this...

PARAMETERS p_matnr LIKE mara-matnr.

PARAMETERS p_CHK AS CHECKBOX DEFAULT 'X' MODIF ID m1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT screen.

IF screen-group1 = 'M1'.

screen-invisible = '1'.

ENDIF.

MODIFY screen.

ENDLOOP.

Regards

Wenceslaus.

6 REPLIES 6
Read only

Former Member
0 Likes
2,328

Hi Deep,

You could hide the check box in the display in the event AT SELECTION-SCREEN OUTPUT.

Try this...

PARAMETERS p_matnr LIKE mara-matnr.

PARAMETERS p_CHK AS CHECKBOX DEFAULT 'X' MODIF ID m1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT screen.

IF screen-group1 = 'M1'.

screen-invisible = '1'.

ENDIF.

MODIFY screen.

ENDLOOP.

Regards

Wenceslaus.

Read only

Former Member
0 Likes
2,327

Hi ,

I do not think you can use checkbox and no-display together .

You will have to use the AT SELECTION-SCREEN OUTPUT to make the checkbox innvisible.

Why do you want such a scenario.

Regards

Arun

Message was edited by:

Arun R

Read only

Former Member
0 Likes
2,327

try this code -

parameters: p_pernr(8) no-display default 'X'.

it wil work..

pls reward points..

amit

Read only

0 Likes
2,327

SORRY ,i forgot to see the check box..

please write following code it wil work -

parameters: p_cbox as checkbox MODIF ID ABC USER-COMMAND CH DEFAULT 'X'.

Check sy-ucomm = 'CH'.

AT SELECTION-SCREEN OUTPUT.

loop at screen.

if p_CBOX = 'X'.

if screen-group1 = 'ABC'.

SCREEN-ACTIVE = '0'.

MODIFY SCREEN.

ENDIF.

ENDIF.

endloop.

**award points****

amit

Read only

Former Member
0 Likes
2,327

hi deep,

check this...

parameters: c_check as checkbox default 'X'.

at selection-screen output.

loop at screen.

if screen-name = 'C_CHECK'.

screen-invisible = 1.

modify screen.

endif.

endloop.

hope this helps,

do reward if it helps,

priya.

Read only

Former Member
0 Likes
2,327

Hi

Try like this

parameters: c_checkbox as checkbox default 'X'.

at selection-screen output.

loop at screen.

if screen-name = 'C_CHECKBOX'.

screen-invisible = 1.

modify screen.

endif.

endloop.

Regards

Haritha.