Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Import internal table from GR55

former_member243716
Active Participant
0 Kudos

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!

1 ACCEPTED SOLUTION

former_member189779
Active Contributor
0 Kudos

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

1 REPLY 1

former_member189779
Active Contributor
0 Kudos

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