We are pleased to announce the introduction of UI5 Forms within the SAP TRM Framework's Tax Cockpit. This new feature offers seamless integration with our Tax solution and shares commonalities with the established Web Dynpro Forms, enhancing the user experience and streamlining form rendering processes.
To incorporate UI5 Forms into your Form Bundle Processing, the following steps must be completed:
In the process of configuring a TRM Form, there are several essential steps that need to be addressed. For the purpose of this discussion, we will focus on a critical component: the ISR configuration. It is important to note that while no new settings have been introduced in this area, the significance of Data Types has been elevated, as they play a pivotal role in determining the user interface elements presented on the Form View.
The rendering rules based on Data Types are as follows:
However, these default settings can be customized in two ways:
Further details on customization will be provided in a subsequent section of this document.
In the example scenario we are examining, the ISR configuration comprises 17 fields, which include a mix of individual fields and two embedded tables. These fields will be sequentially arranged and displayed on the UI5 View, ensuring a structured and user-friendly interface.
The standard WD Component FMCA_WD_UI5_FORM_TEMPLATE is provided as a foundation for UI5 Form implementation. It should be copied to the Customer Space and activated accordingly.
This section provides guidance on an optional step that can be beneficial under certain circumstances:
To implement a Business Add-In (BAdI), you can initiate the process through the specified SPRO activity.
Alternatively, the BAdI can be created using Transaction SE18, named FMCA_UI5_FORM_GEN. The filter for this BAdI encompasses both the Scenario and Version of the ISR. The interface, IF_FMCA_UI5_FORM_GEN, includes the method GENERATE_ELEMENT, which is invoked for each ISR Characteristic during the generation of the UI5 Form View. This method is supplied with all necessary information to determine the UIE to be generated and its corresponding XML structure for the Form View.
The default class, CL_FMCA_UI5_FORM_GEN, utilizes two standard methods:
As a developer, you have a couple of choices:
It's important to adhere to data binding constraints to ensure compatibility with the standard code that manages data exchange between the UI5 Form and the Tax Cockpit Form Buffer. If the changes needed are extensive, it may be necessary to replace the standard code with custom code that supports a different data binding methodology.
Adjusting Your WD Component to Match ISR Config:
To achieve our objective, we will utilize the Report FMCA_GENERATE_UI5_FORM (Transaction code FMCA_GEN_UI5_FORM_UI) or navigate through the corresponding SPRO activity.
In this example, we will proceed with the following selection criteria:
It's important to clarify a few elements that may not be immediately apparent:
This refers to the Web Dynpro (WD) View that contains the IFrame for the UI5 Form. By default, it is set to VIEW_MAIN to align with the Template Component, but there is flexibility to change this setting to accommodate more customized implementations
Selecting this option ensures that the Web Dynpro Context, including both Component and View, accurately reflects the current ISR configuration
The system will create a UI5 view file based on the ISR configuration, taking into account the relevant Business Add-In (BAdI)
This feature is accessible only when regenerating the View. It is designed to create the View in a straightforward manner by rendering all fields as Input fields. This is particularly useful when the configuration is deemed unreliable, and modifications are preferred to be made directly in the View (XML) rather than through ABAP (BAdI)
By selecting this option, the system will produce internationalization (i18n) files for each language specified in the ISR configuration. It will also generate placeholders for non-ISR elements, such as operations for Table controls like inserting, copying, and deleting entries
Upon executing the program with the specified settings, a summary will be provided.
Should there be multiple i18n files created, the summary will indicate the precise count.
Availability:
2023 SP01 (planned April 2024)
Prerequisites:
Phaseless Form (TTF Storage)
Supported features:
Field Comments are enabled through Standard (existing) config
Comparison works in a same way as it did before (comparison between current and previous version/snapshot of the data)
Style can be altered by update to STYLE.CSS file
Navigation from BRF+ Message is supported
Append/Insert/Copy/Delete row is supported
Extensibility:
This approach has already been described in great detail
Another extensibility approach would be to alter either (or both) View or Controller of the respective UI Application
These files can be edited in any text editor or IDE (for example VSC with UI5 extension) and reuploaded back into MIMEs Repository
With this approach we have a complete control over the application (layout, events etc).
You can easily change size of the IFrame which hosts UI5 Application
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.