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

LOV for module pool screen fields

Former Member
0 Likes
562

hi,

i have to create f4 for date field. i.e. when we click f4 it should show 3 values: daily,monthly and yearly.

how to create this?..

Thanks,

Sri

3 REPLIES 3
Read only

Former Member
0 Likes
524

Hi,

Use the FM F4IF_INT_TABLE_VALUE_REQUEST to built custom F4 help .

Refer to the Demo program DEMO_DYNPRO_F4_HELP_MODULE

Edited by: Avinash Kodarapu on Feb 2, 2009 12:56 PM

Read only

Former Member
0 Likes
524

PROCESS AFTER INPUT.

PROCESS ON VALUE-REQUEST. "F4

FIELD zdate MODULE help_date.

MODULE help_date.

DATA: t_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.

DATA: BEGIN OF t_value OCCURS 0 ,

date(20).

DATA: END OF t_value.

t_value = 'Daily'.

APPEND t_value.

t_value = 'Monthly'.

APPEND t_value.

t_value = 'Weekly.

APPEND t_value.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'ZDATE'

value_org = 'S'

TABLES

value_tab = t_value

return_tab = t_return

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc = 0.

READ TABLE t_return INDEX 1.

MOVE t_return-fieldval TO zdate.

ENDIF.

ENDMODULE.

Read only

0 Likes
524

I tried ur code,but its saying specified table is not recognized ( return table).