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

date validation

Former Member
0 Likes
478

HI in selection screen i input date as in format "31.05.2007 "

so before processing i have to validate that date is correct in format so is there any way to this pls help me regarding this .

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
460

If you define it like:

PARAMETERS: P_DATE LIKE BKPF-BUDAT.

and if you have the default settings as dd.mm.yyyy then system will take care of the validations.

Regards,

Naimesh Patel

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
461

If you define it like:

PARAMETERS: P_DATE LIKE BKPF-BUDAT.

and if you have the default settings as dd.mm.yyyy then system will take care of the validations.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
460

if you have given the select option as standard date type then SAP Validations are automatically done.. so no need of giving date validations...

Read only

Former Member
0 Likes
460

Hi

You can get seperately day, month and year by using p_date(4) etc,where p_date is your selection screen parameter.After that concatenate these values in the sy-datum format and then you can directly validate with sy-datum using if condition.

<b>Reward if useful.</b>

Shibin