‎2007 Jul 23 4:35 PM
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.
??
‎2007 Jul 23 4:38 PM
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
‎2007 Jul 23 4:39 PM
Hi
Declare ir like.
data: v_date like sy-datum.
reward if helpful
Regards
Azad.
‎2007 Jul 23 4:39 PM
‎2007 Jul 23 4:40 PM
HI,
Yes you can use DATUM data element..
data: v_date type datum.
thanks
mahesh
‎2007 Jul 23 5:05 PM
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.