When you use CL_GUI_ALV_GRID in edit mode or you change your internal table used to display data on ALV grid it may happen that after refreshing the grid using refresh_table_display your cursor or scroll ...
... in the linked SAP system, not currently active.
Additionally while the linking is active, each change of active system will refresh the entries of the tree to be able to display entries linked with ...
... you can make your SALV editable and you can handle all the events you want from underlying cl_gui_alv_grid object. What you need to do, is to set handler for event after_refresh for all instances of ...
... of the sample program to copy BOM then you'll see it's reasonable. At the beginning let's clear Function Group memory using FM 'CP_CC_S_REFRESH_DATA'. Just for the safety reasons ...
... selecting any row this table will be refreshed. function z_ab_popup_grid_multi_sel.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING ...
... and selected columns, then it displays selection-screen 1001. After pressing button "Confirm" or "Cancel" using FM RS_REFRESH_FROM_SELECTOPTIONS I'm retrieving table with parameters ...
...
selection-screen end of block oth.
at selection-screen on value-request for p_path.
perform open_file_dialog changing p_path.
initialization.
start-of-selection.
refresh: gt_plan[], gt_assignment[], gt_return[]. ...
... if you leave it empty then you'll have to call FM ES_SAVE_USER_OBJECTS to save all the changes to DB. I_NO_REFRESH parameter is used to leave internal table of objects in Function Group MLSO without ...
...
loop at it_list assigning .
move-corresponding to ms_list.
delete table it_list from .
append ms_list to mt_list.
endloop.
refresh: it_list[].
export export from mt_list to memory id 'ZMB51_FULLLIST_EXPORT'. ...
As I have needed types I can start to create methods which I need. Firstly fast method the read select-option data from any program which will call our class. I will use here FM RS_REFRESH_FROM_SELECTOPTIONS . ...
...
data: ms_data type ref to data.
data: mo_structure type ref to cl_abap_structdescr.
data: mo_table type ref to cl_abap_tabledescr.
refresh et_values[].
"get characteristic ID ...
...
endif.
assign m_p to .
assign c_data->* to .
if sy-subrc eq 0.
assign component i_atnam of structure to .
if sy-subrc eq 0.
refresh .
loop at it_values assigning . ...
... code to see why it's happening. Finally I found that internal table WS in the function group CTMS was not refreshed during the call of CTMS_DDB_SET_VALUE_INTERNAL. As I couldn't refresh it in ...
...
if f_checkheader_curr f_checkheader.
"if different then we've got new PO
refresh ft_condcheck[].
f_checkheader = f_checkheader_curr.
"clear cond wa and set ebelp ...
...
"check if we have error
loop at mt_return into ms_return where type ca 'AE'.
raise characteristics_error.
endloop.
refresh mt_comp[].
clear: ms_comp. ...
... to firstly use FM 'RS_REFRESH_FROM_SELECTOPTIONS' to get all fields and values for all select-options, then you need to use FM 'RS_ISOLATE_1_SELSCREEN' to get the fieldnames for selected ...