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 in Module pool !!

Former Member
0 Likes
2,500

Hi,

I want to show a date field in Module pool Screen. I need this date field should have Search help and Auto Validation.

Should i declare date field in Module pool as

data: v_date(10).

OR

data: v_date like sy-datum.

??

5 REPLIES 5
Read only

Former Member
0 Likes
1,572

Hi,

You need to take the field as

<b>data: v_date like sy-datum.</b>

Inthe module pool you create the field in the Screen, then double click on the field then Attributes window will open there the Type will be there for this field, select DATS there to check the field validation

Regards

Sudheer

Read only

Former Member
0 Likes
1,572

Hi

Declare ir like.

data: v_date like sy-datum.

reward if helpful

Regards

Azad.

Read only

Former Member
0 Likes
1,572

hi,

declare it as

data: v_date like sy-datum.

Read only

Former Member
0 Likes
1,572

HI,

Yes you can use DATUM data element..

data: v_date type datum.

thanks

mahesh

Read only

Former Member
0 Likes
1,572

Vipin,

Once you place your date field on your screen, double click on it to open the attributes window. While naming the field, refer it to a data dictionary field like this:

e.g. BKPF-BUDAT for SAP to autmatically pick up the search help for you. Or change the format attribute to 'dats'.

Thanks,

Vinod M.

PS: Reward points if useful.