read another ALV report’s output into internal table

read another ALV report’s output into internal table
5 (100%) 11 votes

Because nobody wants to change another report but wants to use the reports output in his program , how to get output table of an ABAP report is a frequently asked question for ABAP’ers.

There are many ways to achieve this functionality, for example call ABAP report and get the output as internal table post gives a weak solution to the question as it does not return the table as structured. Actually EXPORT TO MEMORY and IMPORT FROM MEMORY commands are tailor-made solutions for this question. You should first think of implementing this commands if you take risk of changing called ABAP report.

However think a scenario where you are calling an SAP standard report which you do not want to intervene. This time you got stuck as both above alternatives fail due to the mentioned weak sides.

Finally as a clean solution you can expolit CL_SALV_BS_RUNTIME_INFO which is designed to reach ALV’s run time environment.

Following sample report implement this clean method.

You may also like