I know my question is rather common on these forums, although it has a unique aspect to it.
I have an HTML page with a HTML Input Form & Submit button on it. This Submit button is linked to a MS SQL 2008 Select Statement which is coded in a language called ABAP. ABAP is the standard language for any SAP programs / functions / transactions. The page with the ABAP Code, is distinct from the HTML page, but is linked by means of the BSP (Business Server Pages) in SAP. Basically you configure the "On Input Processing" which is the "What happens when I click SUBMIT" in ABAP. But you cannot configure the OUTPUT of a SQL SELECT query in ABAP as it is not allowed, this needs to be done in HTML.
What I would like to do is, I need to add code to my HTML page, which will take the results returned from the SQL Query after clicking the SUBMIT button, and export it in CSV format for the user to view / download.
How would I do this?