Download File from BSP to presentation server.
We have a requirement to Download and Upload a file in Standard BSP application HRECM_BDG_MAINT.
Flow of the logic is :
1. On click on Download button. A Save file dialog should come and then user will select the path for saving the file. Then the internal table sholud be save in excel on the presentation server.
2. User will modify the excel file.
3 on click of upload button again the open dialog should come and then user will select the excel file from the presentation server and then file will be uploaded into the BSP application.
Note : We are very much clear with the functionality. Over main concern is to get the file dialog popup on the BSP application.
Changes in the layout (Download & Upload Button) has been created.
Actually HRECM_BDG_MAINT call another BSP application HR_ECM_BDG_SRV02.
Controller class of of page budget_details.bsp (HR_ECM_BDG_SRV02) is CL_HRECM00_BSP_BDG_DETAILS.
All the button displayed in this BSP page are created at runtime in class (CL_HRECM00_BSP_BDG_DETAILS) in method DO_REQUEST. We have used enhancement spot and added two more buttons (Download and Upload).
Now our main problem is to get file dialog popup on the BSP screen when we click on that button.