Get Example source ABAP code based on a different SAP table
• CL_GUI_FRONTEND_SERVICES ABAP_SYSTEM_CLASS
Access to the Presentation Server Programs that are executed in dialog > and from SAP GUI can use the methods of the class CL_GUI_FRONTEND_SERVICES>> to access the current presentation server>. They can use
the methods GUI_UPLOAD> and GUI_DOWNLOAD> to read and write to files,
the methods FILE_...> to examine and process files,
the methods DIRECTORY_...> to examine and process directories,
the method EXECUTE> to execute operating system statements>. The function module GUI_IS_AVAILABLE> > can be used in advance to determine whether a SAP GUI is available.
Latest notes: The methods of the class CL_GUI_FRONTEND_SERVICES> replace older function modules with similar functions, such as GUI_UPLOAD>>, GUI_DOWNLOAD>>, WS_UPLOAD>>, or WS_DOWNLOAD>>. ABAP_HINT_END
Example ABAP Coding
Writes to and reads a file on a presentation server with the operating system MS Windows. The directory is created on request. The SAP GUI availability query prevents runtime errors if the programs are not executed in dialog processing>. ABEXA 01040 ABAP_EXAMPLE_END