cancel
Showing results for 
Search instead for 
Did you mean: 

oData Messages in Batch for MessageManager

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

my solution for now is

iv_message_target         = '/#TRANSIENT#'

but perhaps there is another way?

Answers (0)