Skip to Content
Technical Articles
Author's profile photo Alexey Arsenyev

How to call a GUI Transaction in SAP Fiori Launchpad


In general, the creation of the GUI Transaction target in ABAP FioriLaunchpad is more or less straightforward:

  • Create a new Target Mapping (FLPD) or Business App (FLPAM)
    • Add Semantic Object + Action to be able to address the target from a Tile or in CrossApp navigation
    • Add App Type Transaction.
    • Add Title, Transaction TCODE, and System Alias (if you are using FLP Hub deployment)
    • Add required and default parameters, with renaming rules to map from intent parameter names to technical GUI batch input names.
  • Add a new Tile (Static Launcher), pointing to the Semantic Object – Action of the new TM above
    • You do not need a tile if you design the target for App-to-App navigation only.
  • Add Tile and Target Mapping to a Catalog
  • Add Catalog to a Role (TR PFCG)
  • Add Role to a User (TRs SU01 or PFCG)

And it will work in most cases. But sometimes, when you need to fine granular customize a transaction call (skip selection screen, pass parameters, etc.) you will need more.

The article below describes advanced flags you can apply to GUI transactions when you have problems :).

Works for ABAP FLP and cFLP.


Step-by-Step Guide

  1. Define new Target Mapping with an Application Type Transaction in Fiori Launchpad Designer or FLP App Manager (TR /ui2/flpam):
    1. Fiori Launchpad Designer (FLPD)
    2. FLP App Manager (TR /ui2/flpam)
  2. The Semantic Object and Action define the inbound intent of your target. E.g. how you want to call it.
  3. The title does not reflect somewhere in UI (FLPD).
  4. In the Transaction field fill the name of the transaction, you want to call.
  5. If your transaction is located not on the frontend server (hub deployment, or remote destination) you need to fill in System Alias (FLPD only).
    1. In FLPAM you need to configure the target in the remote backend catalog and then replicate it to the Front-End server
  6. Additional parameters (“Allow additional parameters” check box in FLPD or Additional parameters dropdown in FLP AM): it is not recommended to allow the direct passing of additional parameters to GUI transactions. This option allows any intent parameter passed to a target that is not known by the parameter signature will be forwarded to the target app without any adoption. But in the case of the Dynpro app, you may send only the parameters that have a corresponding field on the initial screen, and the name of the parameter shall correspond to a batch input name for that field. So, in most cases, you will need to rename each parameter in the target definition, from its common intent name to the technical batch input name (Target Name). Parameters that are not found in the initial screen (because no such field or they were not renamed) will be in the best case just ignored, but in the worst case, if there are too many parameters sent, they will lead to parameters string overflow and the app will not start.
  7. Now you can configure the passing of parameters and/or OKCODE:
    1. You can fill in the parameters only on the initial transaction screen.
    2. Input fields you want to fill shall be visible.
    3. You pass parameters to transactions using their batch input names. To find a batch input name:
      1. Put the cursor on the field you want to fill.
      2. Press F1
      3. On the Performance Assistant screen press the Technical Information button
      4. The batch input name can be found in the Screen Field field.
      5. Knowing the batch input field would be enough to pass the parameter to the transaction. E.g such IBN call #Action-startReport?RS38M-PROGRAMM=ZZ_AA_TEST would already prefill the value. But that would not be user-friendly and human-readable and would have too much Dynpro technical specific, but no semantic and abstraction, and this we normally try to avoid in FLP and IBN. The good style would be, that we expand the outside parameter in a nice, readable form, and rename it into a technical batch input name on calling a transaction. For this, we use the RenameTo feature of FLP and define the input name in the Name field and the technical name in the Target Name column:
      6. Now we can call our target like this #Action-startReport?report=ZZ_AA_TEST and get transaction called and field Program pre-filled.
      7. If you want to ensure, that your target will be always called with the program name (this example), you can set the parameter as Mandatory. In this case, the transaction will be executed after this call #Action-startReport?report=ZZ_AA_TEST but not this #Action-startReport. 
      8. You can also pre-fill some default parameters, that shall always be passed to your transaction (can still be overwritten, when came as part of the call). For this, you define a parameter and configure it for a Default value:
      9. In the example above, it will set the Source Code option to always be selected. And in this case, we do not need to rename it, because we do not plan to expose this parameter or use it in an IBN call.
      10. In addition to new abilities given to you by FLP or Dynpro logic, there are still old tricks by which you can control the processing of the input values in Dynpro screens. For example like these:
        • … some characters function as special characters by default.
          • The “!” character in the initial position of an input field on the screen deletes all characters in the field before the data transport.
          • The “=” character in the initial position of an input field on the screen initiates a search using search help.
          • If an input field contains only blanks and “_” characters, the latter is transported as blanks.
        • However, note that there are additional prerequisites for “!” (a field property such as ‘custom input mask’ will disable the “!” logic). Moreover, there must also be an OK-Code defined that triggers input conversion (post-processing).
        • More details can be found in the official documentation.
    4. You can also send SET/GET parameters.
      1. If you want to fill the input field, you can use either its batch name (see above) or its SET/GET parameter ID:
      2. Most useful SET/GET parameters for cases when you do not have a corresponding field for it on the initial screen. But if it is not bound to any field on the screen, one needs to know the application logic to find the name. Not so easy. You can scan the program for the SET PARAMETER ID command, but still, you need to know which of them if more than one occurrence is found. An easier way to determine all possible SET/GET parameters is to enter /h as OK-Code before starting the transaction. This opens up the debugger at the very beginning. Then set a breakpoint at GET PARAMETER and continue with F8.
      3. When passing SET/GET parameters to the target transaction, you need to prefix them with the “@” symbol:
      4. SET/GET parameters are passed as application start parameters to have a lifespan through the whole security session and will be reused in the next application call.
      5. SET/GET parameters have a value length limitation of 255 characters! The name of the SET/GETs can be a maximum of 30 characters long.
    5. Very often, after the pre-filling of parameters, you would like to execute the transaction, using the pre-filled value, and go directly to the second screen. Here is the way to go depending on the Transaction Type.
      1. Dialog Transaction. If you see more than one button on the Application Toolbar, it is a Dialog Transaction, with GUI Status and OK CODE processing, and so, you can control it by passing the needed OK CODE as a parameter.
        1. For this, you need to use the predefined Dynpro parameter DYNP_OKCODE:
        2. To find the OKCODE, you can also use the Technical Information Screen, and navigate from it to Program Status, by double-clicking on its name:
        3. In the Manu Painter, you will find a function code corresponding to the button you want to press.
        4. Be aware, that while FLP does not know the type of transaction, it always adds a skip selection screen indicator (“*” symbol in front of the transaction name) to the transaction call if any parameter is passed. For dialog transactions, it would result in an empty OK code coming to PAI after the transaction starts, which still can result in skipping of selection screen if application logic has such processing for empty OK codes. Details.
      2. Report (Selection Screen) Transaction. If you see only one button Continue or Execute on the toolbar, it is most probably a Section Screen transaction:
        1. Something like this
        2. And here you do not have too much freedom. If you pass ANY parameter, FLP will trigger the skip selection screen command and you get the initial screen executed. It is not possible to pass any specific OKCODE, and it is not possible to just pre-fill parameters and stay on the screen. Some more information about it can be found here.
        3. By default, the processing logic for Report transactions will always skip the initial selection screen as far as you pass any parameter (even if it is defined as the default parameter in TM configuration). To avoid that you can use new controlling flags/parameters:
          • DYNP_SKIP_SEL_SCREEN=0 → disable default logic and stay on the selection screen with pre-filled parameters
          • DYNP_SKIP_SEL_SCREEN=1 → default, skip selection screen as far as any parameter passed.
          • In contrast to other DYNP* parameters, the DYNP_SKIP_SEL_SCREEN parameter is processed directly by FLP but not by WebGUI or Dynpro. Therefore please do not use any renaming for it and use the name directly as it is written (case, underscores, etc).  Because it goes about FLP logic, it may differ in different FLPs. It definitely works in ABAP FLP, but in cFLP/SapStart/Workzone or BTP FLP Module, it can be processed differently.
    6. DYNP_NO1ST. This parameter prevents back navigation to the initial application screen (e.g. jump over). Make sense only if the initial application screen was prefilled and skipped by start.
      • Example: *VA03 VBAK-VBELN=60052798;DYNP_NO1ST=1;DYNP_OKCODE=ENT2.
    7. DYNP_NOSETGET (>2105). If you combine skipping of the initial screen feature and automatic loading of SET/GETs (always happening), it leads to the issue, that already typed values from previous ABAP sessions for the current user become invisibly mixed into input parameters of the skipped screen, influencing processing logic. This effect is not obvious to the end user and may lead to complaints. To prevent Dynpro from loading SET/GET you can pass parameter DYNP_NOSETGET with value 1. Be aware, that this only works for cases, when SET/GETs are loaded by the Dynpro framework directly, while the SET/GET parameter is assigned to a field in the Screen Painter. If the DYNP_NOSETGET parameter does not work in your case, check that you do not set the value of the field programmatically, using the GET PARAMETER command. This way is not controlled by DYNP_NOSETGET=1 and shall be handled explicitly, by, for example, adding a new parameter SKIP with value 1 to the target definition and reacting on it in your code directly.


SET/GET parameters from other WebGUI sessions are not reused

While by nature WebGUI transactions are running in single external sessions and do not allow the creation of new internal modes, per default SET/GET parameters from another WebGUI window are not reused in the next window, as it happens typically in WebGUI (e.g fields have not defaulted with previously entered values). From S/4 HC 1806, this gap between different GUI types was closed, and from now on, per default WebGUI also supports persisted SET/GET parameters and can share already typed values between sessions. But this behavior is controllable by the system profile parameter, and it may happen that in your system this parameter is switched off. So, if it does not work, please check that the system profile parameter dynp/shm_setget is set to true on your system for the default profile.

I want navigation from a Tile to behave differently compared to Cross-App Navigation

To achieve that just add additional URL parameters controlling the behavior to the Tile definition. For example, if you can add the parameter DYNP_SKIP_SEL_SCREEN=0 to a tile, that selection screen of the transaction would not be skipped when you navigate to it by clicking on the tile but would be skipped if you navigate to the transaction from another app, pre-filling selection parameters.

I don’t want the navigation to HTML GUI but rather to the SAP GUI for Windows, while certain ActiveX control features do not work in the HTML environment.

The proper way here is to use SAP Business Client with a Fiori Launchpad Connection. In this case, ALL GUI transactions will be opened in SAP GUI for Windows. There is currently no way to open only some transactions using SAP GUI for Windows and the rest with SAP GUI for HTML.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Atul Saurabh
      Atul Saurabh

      Very nicely articulated blog. Really helped me. Thanks!!!

      Author's profile photo IT TUTTOS

      i have an isue with a remote conection to backend, i have a rfc in sm59  , the test is okay,

      This is the configuration in

      /UI2/V_ALIASMAP in target system alias

      but when i check in pfcg

      @5D\QMensaje de advertencia@ Aplicación: PGMID=R3TR, OBJECT=TRAN, OBJ_NAME=IW51 no existe en FIDCLNT100

      do you have any idea?? thanks


      Author's profile photo Alexey Arsenyev
      Alexey Arsenyev
      Blog Post Author


      I think the best would be if you will create a message for the PFCG component and ask there. This issue has nothing to do with /UI2/V_ALIASMAP or FLP but probably the wrong configuration of the system which PFCG does not accept.

      BR, Alexey.

      Author's profile photo Fabian Berr
      Fabian Berr


      is there a newer method? I tried all variants mentioned in the blog, but nothing works for me. No Field gets filled by the parameters.

      Best regards

      Author's profile photo Alexey Arsenyev
      Alexey Arsenyev
      Blog Post Author

      Hi Fabian,

      no there is no new method. It is a current approach that shall work for all FLP variants. Especially the filling of the input fields by batch-input names - this feature was in from the initial version.

      Necessary: you need to use batch input names of the fields, the field shall be visible on the screen, and the field shall be on the first displayed screen.

      It is challenging to provide any help or analysis without details. I think the right approach will be to create a message/incident for component CA-FLP-FE-AI and describe there the complete use case and configuration you use.

      BR, Alexey.