SAP Function Modules

LTX_CREATE_SAPGUI_SHORTCUT SAP Function module - Get the SAP shortcut string for the given parameters







LTX_CREATE_SAPGUI_SHORTCUT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name LTX_CREATE_SAPGUI_SHORTCUT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: IC_LTX
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM LTX_CREATE_SAPGUI_SHORTCUT - LTX CREATE SAPGUI SHORTCUT





CALL FUNCTION 'LTX_CREATE_SAPGUI_SHORTCUT' "Get the SAP shortcut string for the given parameters
* EXPORTING
*   i_transaction =             " tcode         Transaktionscode evtl mit führendem *
*   i_report =                  " programm      Report
*   i_system_command =          " char40        Systemkommando
*   i_parameter =               " text255       Transaktionsparameter
*   i_saplogon_id =             " char50        Name eines Eintrags im SAP Logon
*   i_sysid = SY-SYSID          " sysysid       System-ID des Zielsystems
*   i_guiparm =                 " char80        Spezifikation des Zielsystems
*   i_client = SY-MANDT         " symandt       Mandant des Zielsystems
*   i_user = SY-UNAME           " syuname       Anmeldename des Benutzers
*   i_language = SY-LANGU       " sylangu       Sprache
*   i_windowsize = 'Normal window'  " char40    Fenstergröße (Maximiert oder Normal)
*   i_title =                   " char80        Titel
*   i_custom =                  " text255       freier Text, wird hinten angefügt
  IMPORTING
    shortcut_table =            " soli_tab      Shortcut als Tabelle
    shortcut_string =           " string        Shortcut als String
  EXCEPTIONS
    INCONSISTENT_PARAMETERS = 1  "              The combination of parameters is invalid
    .  "  LTX_CREATE_SAPGUI_SHORTCUT

ABAP code example for Function Module LTX_CREATE_SAPGUI_SHORTCUT





The ABAP code below is a full code listing to execute function module LTX_CREATE_SAPGUI_SHORTCUT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_shortcut_table  TYPE SOLI_TAB ,
ld_shortcut_string  TYPE STRING .

DATA(ld_i_transaction) = 'Check type of data required'.
DATA(ld_i_report) = 'Check type of data required'.
DATA(ld_i_system_command) = 'Check type of data required'.
DATA(ld_i_parameter) = 'Check type of data required'.
DATA(ld_i_saplogon_id) = 'Check type of data required'.
DATA(ld_i_sysid) = 'some text here'.
DATA(ld_i_guiparm) = 'Check type of data required'.
DATA(ld_i_client) = 'Check type of data required'.
DATA(ld_i_user) = 'some text here'.
DATA(ld_i_language) = 'Check type of data required'.
DATA(ld_i_windowsize) = 'Check type of data required'.
DATA(ld_i_title) = 'Check type of data required'.
DATA(ld_i_custom) = 'Check type of data required'. . CALL FUNCTION 'LTX_CREATE_SAPGUI_SHORTCUT' * EXPORTING * i_transaction = ld_i_transaction * i_report = ld_i_report * i_system_command = ld_i_system_command * i_parameter = ld_i_parameter * i_saplogon_id = ld_i_saplogon_id * i_sysid = ld_i_sysid * i_guiparm = ld_i_guiparm * i_client = ld_i_client * i_user = ld_i_user * i_language = ld_i_language * i_windowsize = ld_i_windowsize * i_title = ld_i_title * i_custom = ld_i_custom IMPORTING shortcut_table = ld_shortcut_table shortcut_string = ld_shortcut_string EXCEPTIONS INCONSISTENT_PARAMETERS = 1 . " LTX_CREATE_SAPGUI_SHORTCUT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_shortcut_table  TYPE SOLI_TAB ,
ld_i_transaction  TYPE TCODE ,
ld_shortcut_string  TYPE STRING ,
ld_i_report  TYPE PROGRAMM ,
ld_i_system_command  TYPE CHAR40 ,
ld_i_parameter  TYPE TEXT255 ,
ld_i_saplogon_id  TYPE CHAR50 ,
ld_i_sysid  TYPE SYSYSID ,
ld_i_guiparm  TYPE CHAR80 ,
ld_i_client  TYPE SYMANDT ,
ld_i_user  TYPE SYUNAME ,
ld_i_language  TYPE SYLANGU ,
ld_i_windowsize  TYPE CHAR40 ,
ld_i_title  TYPE CHAR80 ,
ld_i_custom  TYPE TEXT255 .

ld_i_transaction = 'Check type of data required'.
ld_i_report = 'Check type of data required'.
ld_i_system_command = 'Check type of data required'.
ld_i_parameter = 'Check type of data required'.
ld_i_saplogon_id = 'Check type of data required'.
ld_i_sysid = 'Check type of data required'.
ld_i_guiparm = 'Check type of data required'.
ld_i_client = 'Check type of data required'.
ld_i_user = 'some text here'.
ld_i_language = 'Check type of data required'.
ld_i_windowsize = 'Check type of data required'.
ld_i_title = 'Check type of data required'.
ld_i_custom = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name LTX_CREATE_SAPGUI_SHORTCUT or its description.