Skip to Content

oData Messages in Batch for MessageManager

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 11, 2017 at 09:19 AM

    my solution for now is

    iv_message_target         = '/#TRANSIENT#'

    but perhaps there is another way?

    Add comment
    10|10000 characters needed characters exceeded