cancel
Showing results for 
Search instead for 
Did you mean: 

F4_DATE_CONTROL issue with selecting a date in January

former_member563268
Participant
0 Kudos

Hello,

We are using F4_DATE_CONTROL to choose the date in F4 for a custom report. But considering current date to be in September, if we try to enter 01.01.2019 a(Issue is with entering, i can manually scroll and choose 01.01.2019); and click tikc(or enter) it doesnt give 01.01.2019; but instead gives the current date it Self(For eg. 27.09.2019). Is this is a known bug?; and do we have a workaround for this.

Many Thanks,

J

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member1716
Active Contributor
0 Kudos

Hello J ABAP,

This is because if you check at the Import parameters of the FM you can find SY-DATU has been defaulted as shown below:

Why can't you just use SY-DATUM as a data type?

You can try below FM as well.

Regards!

former_member563268
Participant
0 Kudos

Thanks for the note. The FM 'F4_DATE' is internally calling F4_DATE_CONTROL. And as per my understanding ,sy-datum is passed so that the initial focus is on todays date. But when the date is in September, i couldnt keep the focus in January, i could go till February. COpied below the screenshot.

f4-datetest2.png

GK817
Active Contributor
0 Kudos

Hi,

You can alternatively use other FM 'F4_DATE'. Please check the below link:

https://answers.sap.com/questions/1836308/f4-help-for-the-date-field-in-modulepool-program.html

Regards

GK