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

month field validation

Former Member
0 Likes
480

Hi Experts,

in selection screen i am using p_month

like parameter:p_month like isellist-month.

after that i am giving one popup based on value request.

like call function 'POPUP_TO_SELECT_MONTH'

exporting

actual_month = l_month

language = sy-langu

start_column = 8

start_row = 5

importing

selected_month = p_month

exceptions

factory_calendar_not_found = 1

holiday_calendar_not_found = 2

month_not_found = 3

others = 4.

now i am getting month properly my problem is how to do validations in this field.

if user enter wrong values its going to dump.how to restrict that.

please any bod tell me the way out.

thanks in advance,

Tharangini.

3 REPLIES 3
Read only

nikhil_chitre
Active Participant
0 Likes
449

Hi,

Validate the month field at selection screen

check condition

L_month >= '1' and p_num <= '12'.

and throw error..if outside this range..

I hope this helps..

Regards,

Nikhil

Read only

Former Member
0 Likes
449

Hello,

Check this.........

**********Reward points,if found useful

Edited by: BVS on May 22, 2008 10:03 AM

Read only

Former Member
0 Likes
449