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

SAP Ver. 4.7 (selection screen problem)

Former Member
0 Likes
1,212

Dear all,

Please help me out in solving the below problem.

I am working on 4.7 version...and below is the code of a simple report fpr testing. On the selection screen there is one select option which can be displayed or supressed dynamically. For this I am using 'Modif ID xxx'. But the problem here is...when ever 'Loop at SCREEN - ENDLOOP' uesd to set the screen atrributes, on selection screen, a small box appearing before LOW input box of the select option(As you know there are only two input boxes(LOW, HIGH) for any select-option).

For eg. try this below program in Version 4.7

-


REPORT Z_TEST1 .

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'gr1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-input = '1'.

screen-output = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

-


Thanks in advance.

1 ACCEPTED SOLUTION
Read only

vinod_gunaware2
Active Contributor
0 Likes
1,184

Hi

Please commnet input and output lines of code.

Have look into below code.

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

*screen-input = '0'.

*screen-output = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

*screen-input = '1'.

*screen-output = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

regrad

vinod

Message was edited by: Vinod Gunaware

Dear all,

Please help me out in solving the below problem.

I am working on 4.7 version...and below is the code of a simple report fpr testing. On the selection screen there is one select option which can be displayed or supressed dynamically. For this I am using 'Modif ID xxx'. But the problem here is...when ever 'Loop at SCREEN - ENDLOOP' uesd to set the screen atrributes, on selection screen, a small box appearing before LOW input box of the select option(As you know there are only two input boxes(LOW, HIGH) for any select-option).

For eg. try this below program in Version 4.7

-


REPORT Z_TEST1 .

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'gr1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-input = '1'.

screen-output = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

-


Thanks in advance.

8 REPLIES 8
Read only

Former Member
0 Likes
1,184

In your program,

Use caps instead of lowercase like this...

<b>

if screen-group1 = 'GR1'.

</b>

Read only

Former Member
0 Likes
1,184
REPORT Z_TEST1 .




tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

at selection-screen output.
LOOP at screen.
if screen-group1 =<b> 'GR1'</b>.
screen-active = '0'.
screen-input = '0'.
screen-output = '0'.
screen-invisible = '1'.
ELSE.
screen-active = '1'.
screen-input = '1'.
screen-output = '1'.
screen-invisible = '0'.
ENDIF.
MODIFY SCREEN.
endloop.

start-of-selection.
write :/' Test program'.

now check this...

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,184

Hi,

Try this and kindly reward points if it helps.

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'gr1'.

*screen-active = '0'.

*screen-input = '0'.

*screen-output = '0'.

screen-invisible = '1'.

ELSE.

*screen-active = '1'.

*screen-input = '1'.

*screen-output = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

Read only

vinod_gunaware2
Active Contributor
0 Likes
1,185

Hi

Please commnet input and output lines of code.

Have look into below code.

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

*screen-input = '0'.

*screen-output = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

*screen-input = '1'.

*screen-output = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

regrad

vinod

Message was edited by: Vinod Gunaware

Read only

Former Member
0 Likes
1,184

Hi SR,

until unless you give 'GR1' as Caps it won't work.

you want to hide the select options are you want to remove the text for select options..

regards

vijay

Read only

0 Likes
1,184

Hi Vijay,

Thanks for the valuable help.

My reqiorement is to hide the complete select option . And I think that can be possibe by making

'GR1' as Caps

SCREEN.ACTIVE = 0

screen-invisible = '1'.

Please let me know is above enough to hide a select-option...or below are also required.

screen-input = '0'.

screen-output = '0'.

Thanks.

Read only

0 Likes
1,184

The below is enough...

SCREEN-ACTIVE = 0.

screen-invisible = '1'.

Read only

0 Likes
1,184

Hi,

The below code is enough.

tables:mara.

select-options:s_mat for mara-matnr modif id gr1.

initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.