‎2007 Dec 12 6:35 AM
Hello Friends,
We would like to have the date on F4 as a proper date format that is we should get calender control.
Regards
Ashish.
‎2007 Dec 12 6:37 AM
parameters: GP_FROM LIKE BUT050-DATE_FROM.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR GP_FROM.
CALL FUNCTION 'F4_DATE'
exporting
DATE_FOR_FIRST_MONTH = ' '
DISPLAY = ' '
FACTORY_CALENDAR_ID = ' '
GREGORIAN_CALENDAR_FLAG = ' '
HOLIDAY_CALENDAR_ID = ' '
PROGNAME_FOR_FIRST_MONTH = ' '
IMPORTING
SELECT_DATE = GP_FROM.
repalce GP_FROM with ur date parameter which is in ur program, ok
Regards,
Ramesh.
‎2007 Dec 12 6:47 AM
hi,
it can be done without any code. The trick is suppose you are declaring it as a parameter, then it should refer to a SAP field of type date.
ex : parameters : p_date like mcha-vfdat.
It will automatically pop up calender.
Reward if useful,
Gaurav
‎2007 Dec 12 6:55 AM
hi,
the simplest way is :
data : d type dats.
in selection-screen code
parameters: var like d.
reward if useful.
regards,
sohi.