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: 

Show files in container and double click to open

0 Kudos

Hi all and Rich,

My user wanted to filter some files based on selection screen and show to the container to preview and print in sap application server al11 file. Kindly help me as I am new in this area. Thanks in advance.

2 REPLIES 2

DoanManhQuynh
Active Contributor
0 Kudos

AL11 is just where you uload file ( with any kind of extension ), sap is not a native application for every file type so you cant expected to open file in contaner to preview. you might download it to local pc ( using fixxed folder for your operation like: temp for windows..) and if needed, upload it using gui_upload, gui_download.

raymond_giuseppi
Active Contributor

To

  • Select files from application server: (as transaction AL11 do) Look at SUBST_GET_FILE_LIST, EPS_GET_DIRECTORY_LISTING or F4_DXFILENAME_TOPRECURSION function modules. You could also look at AL11 source.
  • Load those file: use DATASET statements to read some or full data from file.
  • Preview the file: create container either in some dynpro or with class CL_GUI_DOCKING_CONTAINER, then use a class such as CL_GUI_TEXTEDIT to display data.

Also use search tools, from sap or google, there are already some documents/blogs/sample in the forum.