SAP Knowledge Base Article - Public

3729762 - How to add parameters in WebGUI URL - SAP S/4HANA Cloud Public Edition

Symptom

A self-developed Fiori program redirects to a standard GUI program via a URL but fails to open the corresponding data display screen by passing parameters; it only opens the GUI program's entry page with the URL as below. 

https://my123456.s4hana.cloud.sap/ui#ProductionRouting-display?sap-ui-tech-hint=GUI&Material='123' 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. In a custom Fiori app, construct an intent-based URL to a GUI app using sap-ui-tech-hint=GUI.
  2. Append query parameters (for example, field=value) to the URL.
  3. Launch the URL (for example, via window.open) and observe that the Web GUI app opens only at the initial screen and the parameters are ignored.

Cause

Resolution

  1. Use the SAP GUI for HTML (Web GUI) transaction parameter format instead of intent hash parameters:
  2. Build the path /sap/bc/gui/sap/its/webgui?~transaction=* = [= …]. 
  3. Determine the target transaction code (TCode) for the GUI app (refer to the Fiori Apps Library of the app to find the associated TCode).
  4. Identify the technical screen field IDs of the dynpro fields you want to prefill (use Technical Information on the field in the GUI screen).
  5. Concatenate the TCode and field assignments after ~transaction= using spaces between items.
  6. Launch the constructed URL from your custom app (for example, via window.open), and verify that the GUI transaction opens with the specified fields prefilled.
  7. https://my123456.s4hana.cloud.sap/sap/bc/gui/sap/its/webgui?~transaction=*CA03 RC271-PLNNR=41000516

Keywords

webgui parameters, intent-based navigation, sap-ui-tech-hint=GUI, url parameters ignored, gui transaction, its webgui, ~transaction, dynpro field ids, prefill fields, fiori launchpad, s/4hana cloud public edition, entry screen only, parameter passing, custom fiori app , KBA , CA-FLP-ABA , SAP Fiori Launchpad ABAP Services , Problem

Product

SAP S/4HANA Cloud Public Edition all versions