04-12-2017 3:19 PM
Hi all,
I've followed this tutorial to add values to a drop down list in my OO ALV. And display the text instead of the value.
It's working fine but if I change the value in the drop down list or I add a new line in the ALV and fill the fields, the value choosed in the list is being cleared when i'm using
lo_grid->check_changed_data( ). to get the updated data.
I've tried using register_edit_event after the creation of the ALV, but if I put this code then the value is cleared after choosing something in the list and pressing enter.
I've tried also using event
handle_data_changed_finished and updating the data but its not working the drop down list is displayed empty without any value choosed.
The values are cleared only in the lists, not in the other fields.
Do you know what can be the problem?
---
In the attachment you can see my code. You only need to paste the code and create a dynpro with a custom container GO_CONTAINER and a STATUS with buttons BACK and CHECK.
---
Thanks in advance.
Any clue will be a great helpalv-oo-list.txt
04-12-2017 8:35 PM
Hi Oliver,
The issue with custom INPUT conversion routine -or at least with ALV- Once you changed a value in ALV for drop-down list, ALV should sent output value for example "High" to INPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) but internal value '3' comes to the INPUT conversion then value becomes initial value '0' and OUTPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) could not find any output value meaning blank for our ALV output.
If you change INPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) coding as below it will work. If you use this domain only for ALV output purpose it should be all right!
FUNCTION conversion_exit_ztipd_input.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
output = input.
ENDFUNCTION.
04-12-2017 8:35 PM
Hi Oliver,
The issue with custom INPUT conversion routine -or at least with ALV- Once you changed a value in ALV for drop-down list, ALV should sent output value for example "High" to INPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) but internal value '3' comes to the INPUT conversion then value becomes initial value '0' and OUTPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) could not find any output value meaning blank for our ALV output.
If you change INPUT conversion (CONVERSION_EXIT_ZTIPD_INPUT) coding as below it will work. If you use this domain only for ALV output purpose it should be all right!
FUNCTION conversion_exit_ztipd_input.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
*"----------------------------------------------------------------------
output = input.
ENDFUNCTION.
04-17-2017 8:00 AM
04-17-2017 5:46 PM