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
lo_mes_container->add_messages_from_bapi(
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.
Vipul
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
/sap/opu/odata/IWBEP/TEA_TEST_APPLICATION/ErrorCases('BUSI_BAPI')
Regards,
Andre