on 2021 Dec 21 6:14 PM
I have created a custom entity .In the custom Entity Query Provider class I will call the BAPI .In the BAPI whatever errors show up , we want to send errors in the response Header .
I debugged the code . I realized that there is a variable SAP__MESSAGE .As per my understanding after reading the sap help link , If I am able to populate this that will reflect in the header .(Pease correct me if I am wrong )
**In Behavior implementation I am aware we can use the %msg and failed parameter and reported to achieve this functionality
But how can I implement the functionality in RAP Query method .
I created a structure type , with a table inside it .(of type SAP_MESSAGES) .Populated with "MSGID" , "MSGNO" ,
"MSGV1" . I get a 200 response .But I don't get the header fields in response Header
Can somebody help me how to populate it that particular variable .
Aplogies ,Please excuse the Dummy Values .This is just a DEMO experiment, so the values and teh naming might not make sense
---------------------------------------------------------
----------------------------------------
A screenshot of my dummy message class .
User | Count |
---|---|
61 | |
11 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.