on 2025 Feb 02 8:22 PM
Hi,
i have generated FIORI Elements List Report Page. As Backend i am using BOPF with SAP NW 7.50.
UI5 Version is 1.108.26
Problem:
Field highlighting only works in EDIT Mode, in CREATE Mode there is no error Message at all. Removing Attribute Parameter leads to error message displayed but without reference to Field.
METHOD /bobf/if_frw_validation~execute.
CLEAR: eo_message, et_failed_key.
DATA: it_example_data TYPE z_t_pmc_scen_auth,
location TYPE /bobf/s_frw_location,
lo_cm TYPE REF TO /bobf/cm_frw.
io_read->retrieve(
EXPORTING
iv_node = zif_pm_c_scen_auth_c=>sc_node-zpm_c_scen_auth
it_key = it_key
IMPORTING
eo_message = eo_message
et_data = it_example_data
et_failed_key = et_failed_key
).
IF eo_message IS NOT BOUND.
eo_message = /bobf/cl_frw_factory=>get_message( ).
ENDIF.
LOOP AT it_example_data INTO DATA(line).
"Error occured
eo_message->add_message(
EXPORTING
is_msg = VALUE #( msgid = 'ZCO' msgno = '002' msgty = 'E' )
iv_node = is_ctx-node_key
iv_key = line-key
iv_attribute = zif_pm_c_scen_auth_c=>sc_node_attribute-zif_pm_c_scen_auth-auth_role
* iv_lifetime =
).
APPEND VALUE #( key = line-key ) TO et_failed_key.
ENDLOOP.
ENDMETHOD.
Result in EDIT Mode:
Result in Create Mode with Attribute provided: SAVE is prevented but there is no error message at all.
Removing Parameter Attribute:
Is this a problem with used SAPUI5 Version?
Request clarification before answering.
User | Count |
---|---|
52 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.