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

Fixed value on selection screen

Former Member
0 Likes
2,769

Hi Group,

Curious how I can create a fixed value on the selection screen. Either a parameter or selection option that appears on selection screen of a report, but a user is not able to change the value.

For example, if I want to default the chart of accounts to 'CAUS' and not allow it to be changed, is there an extension I can use here:

PARAMETERS:   p_ktopl TYPE ktopl OBLIGATORY DEFAULT 'CAUS'.

I just want these fields on the screen for informational purposes, although I do use some of the selection ranges later in the code.

Thanks!

Chris

1 ACCEPTED SOLUTION
Read only

Former Member
1,200

here is ur solution

PARAMETERS: p_ktopl TYPE ktopl OBLIGATORY DEFAULT 'CAUS'.

at selection-screen output.

loop at screen.

if screen-name = 'P_KTOPL'.

screen-required = 1.

screen-input = 0.

modify screen.

endif.

endloop.

do reward

Edited by: Ashish Paliwal on Apr 3, 2008 8:26 PM

3 REPLIES 3
Read only

Former Member
1,201

here is ur solution

PARAMETERS: p_ktopl TYPE ktopl OBLIGATORY DEFAULT 'CAUS'.

at selection-screen output.

loop at screen.

if screen-name = 'P_KTOPL'.

screen-required = 1.

screen-input = 0.

modify screen.

endif.

endloop.

do reward

Edited by: Ashish Paliwal on Apr 3, 2008 8:26 PM

Read only

0 Likes
1,200

Thanks both of you! That did it.

Read only

Former Member
0 Likes
1,200

Hi!

parameters: pa_autyp type aufk-autyp obligatory.

.

.

.

at selection-screen output.

loop at screen.

check screen-name = 'SO_AUART-LOW'

or screen-name = 'PA_AUTYP'.

screen-input = '0'. " grayout

modify screen.

endloop."screen

Best!

Jim