2024 Apr 18 3:27 PM
I have a transaction that calls 'START_REPORT' and runs a SAP Query (type AQ) and generates some data.
I need to create another report. One step has to do exactly what the SAP Query report does. So far I'm thinking of calling the query report and exporting the generated data to the new Z report I'm working on. Is it possible? Otherwise I appreciate all your thoughts and tips.
2024 Apr 18 4:13 PM - edited 2024 Apr 18 4:17 PM
Did you try to use FM RSAQ_QUERY_CALL or RSAQ_REMOTE_QUERY_CALL to execute the query, there is an option to export result to memory (actually an exported parameter of type ref to).
2024 Apr 18 8:10 PM
It worked perfectly using FM RSAQ_QUERY_CALL
The program SAP_QUERY_DEMO_TRANSFER_1 gave me good examples on how to use it properly. Thank you for suggesting me the FM.
2024 Apr 18 6:11 PM
It has been already asked and answered many times in the forum, with all details.