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 issue

Former Member
0 Likes
594

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.

3 REPLIES 3
Read only

Former Member
0 Likes
569

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.

Read only

Former Member
0 Likes
569

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

Read only

Former Member
0 Likes
569

hi,

the simplest way is :

data : d type dats.

in selection-screen code

parameters: var like d.

reward if useful.

regards,

sohi.