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

PARAMETERS

Former Member
0 Likes
662

Hi guys,

I have declared a parameter which takes the no. of years as input.

i.e i have declared it as

PARAMETERS : P_YEAR TYPE BKPF-GJAHR.

My requirement is that the user should be allowed a value from range 1 to 5 only.

How do i do this?

Thanks and regards,

Frank

5 REPLIES 5
Read only

Former Member
0 Likes
640

at selection-screen on p_year.

if p_year lt 1 or p_year gt 5.

message e000 with 'Please enter value btwn 1 and 5'.

endif.

Read only

Former Member
0 Likes
640

Hi Frank,

Create a search help to acheive this.

Regards,

Sudha

Read only

Former Member
0 Likes
640

HI

write a code under

at selection-screen on filed .

IF P_YEAR > 5

MESSAGE E000 with text-001.

then error message like not a valid number plz enter 1-5 only

endif

reward if usefull

Read only

former_member386202
Active Contributor
0 Likes
640

Hi,

Do like this

parameters : p_year(1) type c.

at selection-screen on p_year .

if p_year GT 5.

message

endif.

Regardfs,

Prashant

Message was edited by:

Prashant Patil

Read only

rahul2000
Contributor
0 Likes
640

Dear Frank,

Why not use Select Options instead of Parameters.

Also what do u mean by range?

Does range from 1 to 5 means a period of 5 years?In that case u will have to use select options