‎2008 Apr 01 1:50 PM
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
‎2008 Apr 03 9:52 AM
Rafe b,
Please Check the internal table whether it is empty or with values.
Regards,
Venkat.O
If it_listort[] is initial.
SELECT plz ort FROM zrb_t_kursort INTO CORRESPONDING FIELDS OF TABLE it_listort.
endif.
‎2008 Apr 01 2:08 PM
try
using your select statement which get the plz and ort
with a distict command and look what happen
bye
‎2008 Apr 03 9:52 AM
Rafe b,
Please Check the internal table whether it is empty or with values.
Regards,
Venkat.O
If it_listort[] is initial.
SELECT plz ort FROM zrb_t_kursort INTO CORRESPONDING FIELDS OF TABLE it_listort.
endif.
‎2008 Apr 03 9:55 AM