03-23-2012 10:39 AM
Hi all.
I need to import the data table (internal?) of the GR55 because I have to produce custom charts in SAP.
Should I add an icon "custom graphics" in the toolbar but I do not know where to retrieve data just processed (that is displaying SAP) from GR55.
How do I import data?
Thank you!
03-23-2012 11:10 AM
Hi,
If its ALV list data then try doing following
call method cl_salv_bs_runtime_info=>set
exporting
display = abap_false
metadata = abap_false
data = abap_true.
submit (i_program)
using selection-set i_variant
with selection-table i_selection_table
* WITH FREE SELECTIONS i_frees
and return.
try.
call method cl_salv_bs_runtime_info=>get_data_ref
importing
r_data = lr_data.
assign lr_data->* to <lt_data>.
catch cx_salv_bs_sc_runtime_info.
endtry.
Also refer Gain Programmatic Access to Data of SAPGUI ALV Reports
03-23-2012 11:10 AM
Hi,
If its ALV list data then try doing following
call method cl_salv_bs_runtime_info=>set
exporting
display = abap_false
metadata = abap_false
data = abap_true.
submit (i_program)
using selection-set i_variant
with selection-table i_selection_table
* WITH FREE SELECTIONS i_frees
and return.
try.
call method cl_salv_bs_runtime_info=>get_data_ref
importing
r_data = lr_data.
assign lr_data->* to <lt_data>.
catch cx_salv_bs_sc_runtime_info.
endtry.
Also refer Gain Programmatic Access to Data of SAPGUI ALV Reports