Skip to Content
0

oData Messages in Batch for MessageManager

Apr 11, 2017 at 07:59 AM

88

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Michael Roger Apr 11, 2017 at 09:19 AM
0

my solution for now is

iv_message_target         = '/#TRANSIENT#'

but perhaps there is another way?

Share
10 |10000 characters needed characters left characters exceeded