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

Problem with FM 'F4_DATE'

Former Member
0 Likes
868

Hi All,

I am trying to get matchcode for date in a field in Dynpro..

I am using FM 'F4_DATE'

My code is as follows-

CALL FUNCTION 'F4_DATE'

EXPORTING

date_for_first_month = sy-datum

progname_for_first_month = sy-repid

IMPORTING

select_date = va_date.

I could get the calendar on my screen, and I could select the date as well.

But the selected date is not coming to the field of the Dynpro..

Please help..

Thanks in advance..!!

Hi All,

I am trying to get matchcode for date in a field in Dynpro..

I am using FM 'F4_DATE'

My code is as follows-

CALL FUNCTION 'F4_DATE'

EXPORTING

date_for_first_month = sy-datum

progname_for_first_month = sy-repid

IMPORTING

select_date = va_date.

I could get the calendar on my screen, and I could select the date as well.

But the selected date is not coming to the field of the Dynpro..

Please help..

Thanks in advance..!!

4 REPLIES 4
Read only

sv_v
Explorer
0 Likes
671

try this

CALL FUNCTION 'F4_DATE'

EXPORTING

display = c_blank

IMPORTING

select_date = lv_date

EXCEPTIONS

calendar_buffer_not_loadable = 1

date_after_range = 2

date_before_range = 3

date_invalid = 4

factory_calendar_not_found = 5

holiday_calendar_not_found = 6

parameter_conflict = 7

OTHERS = 8.

Read only

Former Member
0 Likes
671

Thanks for the reply..

Can you please tell me the Datatype for c_blank?

And should it have a default value?

Read only

Former Member
0 Likes
671

Hello Arnab,

why you are using f4_date, you can directly use coding as given below:

tables: bkpf.
select-options: s_date for bkpf-budat.

With this you will get popup from where you can select date for selection screen parameter.

If still you are facing the same problem then there is some authrization issues, talk to ur basis guy he will do it.

Regards

Shelly Malik

Read only

0 Likes
671

Thanks for the reply.

But I need it in a module pool program, not in a Selection Screen.

Please help..