SAP BUILD_SHORTCUT Function Module for Starts GUI with parameters
BUILD_SHORTCUT is a standard build shortcut SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Starts GUI with parameters processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for build shortcut FM, simply by entering the name BUILD_SHORTCUT into the relevant SAP transaction such as SE37 or SE38.
Function Group: PROCESS_RM_BUTTON
Program Name: SAPLPROCESS_RM_BUTTON
Main Program: SAPLPROCESS_RM_BUTTON
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BUILD_SHORTCUT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BUILD_SHORTCUT'"Starts GUI with parameters.
EXPORTING
IV_SYSTEMID = "Name of SAP R/3 System
IV_MANDT = "Client of RM System
IV_SAP_LOGON_ENTRY = "SAP Logon Entry
IV_UNAME = "SAP System, User Logon Name
IV_DIRECTORY = "Directory on users PC
* IV_LOCAL = 'X' "Save locally on user PC
IMPORTING
EV_FILE_ON_PC = "File on Users PC
EV_NETWORK_PATH = "Network path of shortcut
EXCEPTIONS
DOWNLOAD_FAILED = 1 DUPREC = 2
IMPORTING Parameters details for BUILD_SHORTCUT
IV_SYSTEMID - Name of SAP R/3 System
Data type: SYSYSIDOptional: No
Call by Reference: Yes
IV_MANDT - Client of RM System
Data type: PSSRM_MANDT_RMOptional: No
Call by Reference: Yes
IV_SAP_LOGON_ENTRY - SAP Logon Entry
Data type: PSSRM_RM_SYS_DESCROptional: No
Call by Reference: Yes
IV_UNAME - SAP System, User Logon Name
Data type: SY-UNAMEOptional: No
Call by Reference: Yes
IV_DIRECTORY - Directory on users PC
Data type: STRINGOptional: No
Call by Reference: Yes
IV_LOCAL - Save locally on user PC
Data type: BOOLEANDefault: 'X'
Optional: No
Call by Reference: Yes
EXPORTING Parameters details for BUILD_SHORTCUT
EV_FILE_ON_PC - File on Users PC
Data type: STRINGOptional: No
Call by Reference: Yes
EV_NETWORK_PATH - Network path of shortcut
Data type: STRINGOptional: No
Call by Reference: Yes
EXCEPTIONS details
DOWNLOAD_FAILED - Download failed
Data type:Optional: No
Call by Reference: Yes
DUPREC - Entry is already existing
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BUILD_SHORTCUT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_iv_systemid | TYPE SYSYSID, " | |||
| lv_ev_file_on_pc | TYPE STRING, " | |||
| lv_download_failed | TYPE STRING, " | |||
| lv_duprec | TYPE STRING, " | |||
| lv_iv_mandt | TYPE PSSRM_MANDT_RM, " | |||
| lv_ev_network_path | TYPE STRING, " | |||
| lv_iv_sap_logon_entry | TYPE PSSRM_RM_SYS_DESCR, " | |||
| lv_iv_uname | TYPE SY-UNAME, " | |||
| lv_iv_directory | TYPE STRING, " | |||
| lv_iv_local | TYPE BOOLEAN. " 'X' |
|   CALL FUNCTION 'BUILD_SHORTCUT' "Starts GUI with parameters |
| EXPORTING | ||
| IV_SYSTEMID | = lv_iv_systemid | |
| IV_MANDT | = lv_iv_mandt | |
| IV_SAP_LOGON_ENTRY | = lv_iv_sap_logon_entry | |
| IV_UNAME | = lv_iv_uname | |
| IV_DIRECTORY | = lv_iv_directory | |
| IV_LOCAL | = lv_iv_local | |
| IMPORTING | ||
| EV_FILE_ON_PC | = lv_ev_file_on_pc | |
| EV_NETWORK_PATH | = lv_ev_network_path | |
| EXCEPTIONS | ||
| DOWNLOAD_FAILED = 1 | ||
| DUPREC = 2 | ||
| . " BUILD_SHORTCUT | ||
ABAP code using 7.40 inline data declarations to call FM BUILD_SHORTCUT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single UNAME FROM SY INTO @DATA(ld_iv_uname). | ||||
| DATA(ld_iv_local) | = 'X'. | |||
Search for further information about these or an SAP related objects