SAP GUI Articles

Found 3 articles

Using GUI upload to attach a file to email in SAP

karthikeya Boyini
karthikeya Boyini
Updated on 13-Mar-2026 643 Views

You have to use parameters correctly in the function. You have to import the file length to an integer value. Importing File Length First, call the gui_upload_file method from the cl_gui_frontend_services class to upload the file and capture its length − CALL METHOD cl_gui_frontend_services=>gui_upload_file EXPORTING window_title = 'Select File' default_extension = '*' file_filter = 'All Files (*.*)|*.*' IMPORTING file_table ...

Read More

Handling errors in SAP GUI Scripting code

Ayyan
Ayyan
Updated on 13-Mar-2026 2K+ Views

You can take reference from the GUI Scripting help section, and it can explain things in detail for error handling in SAP GUI Scripting. SAP GUI provides default property types for handling different message scenarios. If you want to perform the next step, stop, or abort a user step, you can use the following message type properties − ...

Read More

Finding location of uploaded file using SAP GUI_upload

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 16-Dec-2019 884 Views

When you upload a file using the gui_upload function, the file is not uploaded to the Application server. The file is read from presentation layer to an internal table.ExampleFollowing code can be used to call a gui_upload function to read the file to an internet table:lv_filename = p_filebp. CLEAR lt_data_tab. IF NOT lv_filename IS INITIAL.   CALL FUNCTION 'GUI_UPLOAD'     EXPORTING       filename = lv_filename     TABLES       data_tab = lt_data_tab     EXCEPTIONS       file_open_error = 1       OTHERS = 17.   IF sy-subrc 0.     EXIT. ...

Read More
Showing 1–3 of 3 articles
« Prev 1 Next »
Advertisements