2010 Jul 16 6:40 AM
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..!!
2010 Jul 16 7:25 AM
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.
2010 Jul 16 7:33 AM
Thanks for the reply..
Can you please tell me the Datatype for c_blank?
And should it have a default value?
2010 Jul 16 7:33 AM
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
2010 Jul 16 7:35 AM
Thanks for the reply.
But I need it in a module pool program, not in a Selection Screen.
Please help..
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |