cancel
Showing results for 
Search instead for 
Did you mean: 

F4_DATE in Web Dynpro

Former Member
0 Kudos

Hi guys,

I want the features of this function module to mark down the holidays in the calendar search help, but I have no idea how to use this FM in Web Dynpro.

Any ideas?

Thanks,

Raúl

P.S. This is how I would do it outside Web Dynpro.

SELECT-OPTIONS S_DATE FOR Z10_LEAVE_REQ-ERDAT.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_DATE-LOW.

CALL FUNCTION 'F4_DATE'

EXPORTING

FACTORY_CALENDAR_ID = 'PU'

IMPORTING

SELECT_DATE = S_DATE-LOW.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't use this function module in Web Dynpro. You would need to create your own freely programmed value help and then use the DateNavigator UI element to display the custom calendar with the holidays marked in a different color.

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/81/ab884118aa1709e10000000a155106/frameset.htm

Former Member
0 Kudos

Thanks Thomas! I used your approach and it worked! Do I need to declare the component every time I need to use the same search help?

Component Use Component

SH_CALENDAR Z10_CALENDAR_HELP

SH_CALENDAR_TO Z10_CALENDAR_HELP

Former Member
0 Kudos

I have found the answer:

Answers (0)