Skip to Content
author's profile photo Former Member
Former Member

sap-message http header response odata receive incomplete message

Hi Expert,

I am facing the issue of not getting all the success message back in the header.

I am using the post method and response expected is JSON format. I am getting a status code 201. Now i have bapi table containing multiple entries and i have use the below code to get the message in http response header.

*---Get Message Container reference to add message.
lo_mes_container = mo_context->get_message_container( ).

*---Add message into message container
it_bapi_messages = lt_return
iv_add_to_response_header = abap_true
iv_determine_leading_msg = /iwbep/if_message_container=>gcs_leading_msg_search_option-first ).

After the successful execution i get only the below message where in turn bapi table has multiple entries. I want to know how to get all the entries.

sap-message{"code":"CL/506","message":"Saving changes to assignments","longtext_url":"/sap/opu/odata/iwbep/message_text;o=XXXCLNTXXX/TXX_l

Please provide your input to solve my issue.


Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Jun 09, 2017 at 11:08 AM

    Hi Vipul,

    please check the coding in method RAISE_BUSI_EXCEPTION_BAPI of class /IWBEP/CL_TEA_DATA_PROVIDER.

    This contains a code sample of the error which is raised by the following sample service




    Add comment
    10|10000 characters needed characters exceeded