on 03-22-2016 9:44 AM
Hi All,
In the EM Web UI, we are currently displaying some fields which are System parameters in the back end. Now, we want to put icons beside these fields to make it look more informative. The problem is that the icons are only applicable for status value fields. My initial approach is to create a set of Status value fields and map them to the existing System Parameters, and display them as such in the Web UI. I find this approach somewhat inefficient since we are introducing too many parameters to the system. I have been advised to use the BADI found throught he SPRO path: Event Management > Business Add-Ins for SAP Event Management > BAdI: Change Web Dynpro UI, and use the table /SAPTRX/STATICON to display it in the Web UI. Any idea how to use this BADI? Do you have any samples/tutorials? Thanks.
Hi Melvin,
easiest way should be:
Create a Status Profile for your System Parameter.
But do not assign it to your EH Type.
Create a configured field for the Status as for other status fields.
Assign it to your User Profile.
Now only fill the Status during processing based on your System Parameters in BADI /saptrx/badi_EH_s method AFTER_GET_DATA_DISP.
Here you have all data available
e.g. the Status in EH_STATUS and the System Parameter in EH_HEADER_EXTS.
In Status you have also a field for the ICON.
With this approach you don't need any additional data stored in the database for your EH. You just fill it on the fly when data is retrieved from UI.
Best regards,
Steffen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Melvin,
Follow this below steps to do in standard config way:
1. Create a new Status attribute with status attribute values and assign icons.
2. Assign newly configured status attribute to existing Status Attribute profile which is in-turn assigned to existing event handler type.
3. Go to configure fields for user profiles -> Build Groups of Configured fields -> configure new group id for group field type "Display" and assign to event handler type
4. Go to configure fields for user profiles -> Configure Fields for Display ->
a) Create system parameter field with EM attribute ID SYST, assign newly configured group id and event handler type
b) Create Status Type with EM attribute ID STATUS_TYPE (check SUPPRESS to suppress this field as not require), assign newly configured group id and event handler type
c) Create Status ICON with EM Attribute ID STATUS_ICON, assign newly configured group id and event handler type:
5. Assign these fields in User Profile -> Display Profile.
6. When you execute SAP EM WebUI, you can all see only system parameter and status icon (you can configure to merge or show separate column based on your requirement.
Note: You have to do config for each system parameter1 to 5 steps.
If above solution is not suffice your requirement, then the only option would be a customization that is Steffen already suggested.
Regards
GGOPII
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steffen,
The status value field will be default status attribute value in status attribute profile or they can determine based on ruleset to update status:
It would be display like below for example:
Columns | ||
Plant (System Param) | Status (Surpressed) | Status Icon |
1834 | Plant Determined | Green Icon |
1234 | Plant Determined | Green Icon |
1345 | Plant Determined | Green Icon |
Regards
GGOPII
Hi Gopi,
I do not have to configure:) to know if your solution works or not based on Melvin's question. It will not work as your solution is just grouping two independent fields ( system param and status icon ) together without any relation between them and that's what Steffen is also asking you and that's what Melvin's question is.
Hi Vishnu,
Hmm ... System parameter connected to event handler extension and Statuses -> Status profile is assigned to an Event Handler type as a link.
Let me see in the system, why couldn't possible this config. If Melvin require more than what I given then it would be a customization and that is what I mentioned in my solution also.
Regards
GGOPII
User | Count |
---|---|
9 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.