Skip to Content
0
Nov 07, 2012 at 03:54 PM

Drop down list value in module pool is not displaying when selected

977 Views

Hi All,

I have created a drop down list in module pool and defined the list in POV like below

list = 'XYZ'.
APPEND list.
list = 'ABC'.
APPEND list.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING
retfield = 'ZEMAILGRP'

value_org = 'S'

TABLES
value_tab = list.

and trying to read the value when selected from the list in PAI.

CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog "Current program
dynumb = sy-dynnr "Current screen
TABLES
dynpfields = dynpfields "Relevant screen fields
EXCEPTIONS
OTHERS = 0.

The issue is the value is getting dispalyed correctly in screen but when value is selected it is not getting displayed in the input field and when again trying to select the dropdown list is displayed with duplicate values.

Please help how to display the selected value list from drop down and read the selected value in program.

Thanks in advance...