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

Process on Value-Request in Screen Exit

Former Member
0 Likes
564

Hi,

I have few fields in the screen exit to be supported with F4 Value Help. These values are not from R3 Dictionary Tables. The Values are N, P, T, F, R, K, M, G etc. When the User Clicks the Drop Down, all the possible values should appear in a small window near the screen filed. Can any one please suggest me a suitable solution for this requirement.

Thanks for your Help in Advance.

Kannan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
508

Why don't you put all the values @ domain level and use them on ur screen.

You can assign values @ domain level and can show them on your screen.

hope this will help.

thanks,

Ashwani

4 REPLIES 4
Read only

Former Member
0 Likes
509

Why don't you put all the values @ domain level and use them on ur screen.

You can assign values @ domain level and can show them on your screen.

hope this will help.

thanks,

Ashwani

Read only

gopi_narendra
Active Contributor
0 Likes
508

Create a Z Domain for the field u wnt and give these values in the Value Range tab of the Domain.

This is one way you can solve this...

Regards

Gopi

Read only

Former Member
0 Likes
508

Hi,

You can use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'

TABLES: T005T.

DATA: BEGIN OF t_t005 OCCURS 0,

land1 TYPE t005-land1,

END OF t_t005.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) v_text FOR FIELD P_LAND1.

PARAMETERS: p_land1 TYPE t005-land1.

SELECTION-SCREEN END OF LINE.

INITIALIZATION.

v_text = 'Country'.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_land1.

REFRESH: t_t005.

SELECT land1

INTO TABLE t_t005

FROM t005.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = 'T005'

PVALKEY = ' '

retfield = 'LAND1'

dynpprog = sy-repid

DYNPNR = sy-dynnr

dynprofield = 'P_LAND1'

callback_program = sy-repid

value_org = 'S'

TABLES

value_tab = t_t005

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Thanks,

Naren

Read only

Former Member
0 Likes
508

please close the thread if the question is answered.

Thanks

Ashwani