Skip to Content
0
Former Member
Apr 01, 2008 at 12:50 PM

listbox double entry

19 Views

hey there

i have a problem with my listbox.. it got a double entry and i just don't know why..

thx for any help

code from dynpro:

PROCESS BEFORE OUTPUT.

PROCESS AFTER INPUT.

MODULE user_command_0120.

PROCESS ON VALUE-REQUEST.

FIELD zrb_t_kursv-ort MODULE listbox_val.

code from appli:

CLASS dynpro_utilities DEFINITION.

PUBLIC SECTION.

CLASS-METHODS value_help.

ENDCLASS. "dynpro_utilities DEFINITION

----


  • CLASS dynpro_utilities IMPLEMENTATION

----


*

----


CLASS dynpro_utilities IMPLEMENTATION.

METHOD value_help.

TYPES: BEGIN OF kursort_line,

plz TYPE zrb_t_kursort-plz,

ort TYPE zrb_t_kursort-ort,

END OF kursort_line.

DATA it_listort TYPE STANDARD TABLE OF kursort_line.

SELECT plz ort FROM zrb_t_kursort INTO CORRESPONDING FIELDS OF TABLE it_listort.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'PLZ'

value_org = 'S'

TABLES

value_tab = it_listort

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.

ENDMETHOD. "value_help

ENDCLASS. "dynpro_utilities IMPLEMENTATION

----


  • MODULE listbox_val INPUT

----


*

----


MODULE listbox_val INPUT.

dynpro_utilities=>value_help( ).

ENDMODULE. "listbox_val INPUT