Hi everyone,
I have a report in the ERP system which can be executed in the WebUI through the transaction launcher.
After the selection screen I display a column tree (CL_GUI_COLUMN_TREE) with some data. So far that works in the SAP GUI and WebUI.
When choosing a node and clicking on a button (for Excel export) the PAI is started and I try to figure out which node is selected. But here - only in the WebUI - I never get any value back.
Here are some code snipets:
1) creation of the column tree
CREATE OBJECT go_dock_cont
EXPORTING
extension = 2200
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
OTHERS = 6.
CREATE OBJECT go_column_tree
EXPORTING
parent = go_dock_cont
node_selection_mode = cl_gui_column_tree=node_sel_mode_single
item_selection = 'X'
hierarchy_column_name = 'NAME'
hierarchy_header = ls_header
EXCEPTIONS
lifetime_error = 1
cntl_system_error = 2
create_error = 3
illegal_node_selection_mode = 4
failed = 5
illegal_column_name = 6
OTHERS = 7.
2) adding the columns...
3) adding nodes & items...
4) PAI: after the button has been clicked, trying to get selected node - this doesn't work in the WebUI
CALL METHOD go_column_tree-get_selected_node
IMPORTING
node_key = lv_node_key
EXCEPTIONS
failed = 1
single_node_selection_only = 2
cntl_system_error = 3
OTHERS = 4.
IF sy-subrc NE 0 AND
sy-msgid NE space.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF lv_node_key IS INITIAL.
EXIT.
ENDIF.
In the debugger I always reach the last if-statement from above IF lv_node_key IS INITIAL when using the WebUI. In the SAP GUI I get the needed node key.
Has anyone an idea why this doesn't work in the WebUI?
Help is appreciated!
Best regards,
Melanie