How to download internal table data to SAP Presentation server as CSV file?
Use COPY_FILES_LOCAL static method of class CL_CTS_LANGUAGE_FILE_IO to copy a file from one folder to another folder in SAP application server.
How to upload XML file into ABAP internal table?
Use IMPORT_FROM_FILE method of CL_XML_DOCUMENT to upload XML document.
How to display XML document in SAP?
Use the SAP function module KCD_CSV_FILE_TO_INTERN_CONVERT to upload a CSV file from presentation server.
By default the function module GUI_DOWNLOAD’ and ‘GUI_DOWNLOAD’ method of ‘CL_GUI_FRONTEND_SERVICES’ class downloads all the columns of internal table. What if we want to download only some columns of internal table.
To provide F4 help for SAP presentation server file using ABAP try function module ‘/SAPDMC/LSM_F4_SERVER_FILE’ in AT SELECTION-SCREEN ON VALUE-REQUEST FOR field event.
To upload a file from SAP application server use OPEN DATASET, READ DATASET and CLOSE DATASET ABAP statements.
To download a file to SAP application server use OPEN DATASET, TRANSFER and CLOSE DATASET ABAP statements.