on 04-11-2017 8:59 AM
Hi,
i use the batch mode in my oData-Requests.
i use the container in ABAP to add messages to the header:
DATA: lo_container TYPE REF TO /iwbep/if_message_con.
lo_container = mo_context->get_message_container( ).
lo_container->add_message(
EXPORTING
iv_msg_type = /iwbep/if_message_container=>gcs_message_type-error
iv_msg_id = 'MYT'
iv_msg_number = 999
iv_msg_text = |Es konnte nicht gespeichert werden.|
* iv_msg_v1 =
* iv_msg_v2 =
* iv_msg_v3 =
* iv_msg_v4 =
* iv_error_category =
* iv_is_leading_message = ABAP_TRUE
* iv_entity_type =
* it_key_tab =
iv_add_to_response_header = abap_true
* iv_message_target =
).
But in my UI5-application it ony shows the messages from the last response of the batch-request.
Any ideas?
my solution for now is
iv_message_target = '/#TRANSIENT#'
but perhaps there is another way?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.