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: 

cl_salv_bs_runtime_info=>get_data_ref not returning result.

gouravkumar64
Active Contributor
0 Kudos

Hi All,

I need to call a SAP QUERY program in SE38 report & want to use that output data to fill idoc.

I am calling the program like this, but not giving result in LO_DATA .

START-OF-SELECTION.

cl_salv_bs_runtime_info=>set( exporting display = abap_false metadata = abap_false data = abap_true ).

submit aqa0*****=====ois=========== using selection-set 'TEST' exporting list to memory and return.

try.

cl_salv_bs_runtime_info=>get_data_ref( importing r_data_line = lo_data )."r_data ASSIGN lo_data->* to <lt_outtab>.

catch cx_salv_bs_sc_runtime_info.

message `Unable to retrieve ALV data` type 'E'.

endtry.

Can anyone help on this?

Thanks

Kumar Gourav.

1 ACCEPTED SOLUTION

NTeunckens
Active Contributor
0 Kudos

Hello Kumar

Pleas try again, leaving out the Statements regarding "EXPORTING LIST TO MEMORY".

I believe this will prevent from generating the ALV, thus your the (S)ALV-Runtime will not contain your data ...?


Hope this Helps

Nic T.

3 REPLIES 3

NTeunckens
Active Contributor
0 Kudos

Hello Kumar

Pleas try again, leaving out the Statements regarding "EXPORTING LIST TO MEMORY".

I believe this will prevent from generating the ALV, thus your the (S)ALV-Runtime will not contain your data ...?


Hope this Helps

Nic T.

0 Kudos

Thanks Nic It works.

0 Kudos

Great! Please Close the Question if you are happy with the Results ...

Kind Regards

Nic T.