Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload and View attachment in ALV grid

0 Kudos

Hi,

I have an requirement in adding the attachment and all the attached file has to be displayed after cross verifying it by user , he will be sending a mail to customer with attachment.

please guide me in how to view the uploaded file using GUI_UPLOAD.

any FM or Class available.

regards,

Guru.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

You are talking about GUI_UPLOAD, but sorry, you can only use Windows embedded function to "execute files" on the frontend (which could be understood as "display"), so no need to upload, use method EXECUTE of class CL_GUI_FRONTEND_SERVICES. If the user needs to display a file from the application server, first download it to his laptop (GUI_DOWNLOAD), then call EXECUTE.

former_member182550
Active Contributor
0 Kudos

On top of that it depends on what the attachment is. There are various classes that can be used to view data such as the Html_Viewer, a text editor, an autocad viewer etc etc. This can then be embedded in a gui screen using a container (Splitter/docking etc etc) alongside the ALV grid.

0 Kudos

Check the class CL_GOS_DOCUMENT_SERVICE.