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

calendar

Former Member
0 Likes
569

.hi i created a custom field(type date) in screen painter and i want that field to have a calendar popup upon F4,any clues?

thanks,

zry

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

Hi,

If tou create a Variable like,

data : date like sy-datum.

means, the calender ouput will display when you press the F4 button.

Thanks,

Reward If Helpful.

3 REPLIES 3
Read only

Former Member
0 Likes
539

Hi,

If tou create a Variable like,

data : date like sy-datum.

means, the calender ouput will display when you press the F4 button.

Thanks,

Reward If Helpful.

Read only

Former Member
0 Likes
538

HI,

check the following program.

doing the same.

REPORT Z_TEST2 .

data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .

DATA : BEGIN OF ITAB OCCURS 0,

MONTH like t510s-DAYMO,

END OF ITAB.

PARAMETERS : month(2).

AT SELECTION-SCREEN ON VALUE-REQUEST FOR month.

do 53 times.

itab-month = sy-index.

append itab.

enddo.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'MONTH'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = 'MONTH'

VALUE_ORG = 'S'

TABLES

value_tab = ITAB

return_tab = return_tab.

or

try this.

POPUP_CALENDAR_SDB

<b>Reward points</b>

Regards

Read only

Former Member
0 Likes
538

hi,

declare the custom field of type ( any database table field of date type).

the F4 help will come automatically when u press F4.

For Example: custom field type vbak-erdat.