Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Error /IWCOR/CX_DS_BAD_REQUEST while using Deep Insert

$
0
0

Hello fellow SAP GW experts. I have found myself stuck with an issue trying to test my code for a Deep Insert Service.

 

The structure of the entities is something of the sort:

 

-LoanRequest

Contains: Loan Data, this is a header data

     -Customers:

       Contain: Customer Data, this is a table, the loan request may have associated 1 or n customers to it

      -CustomerLoanProperties:

        Contains: The corresponding customer's conditions for the loan, like the amounts, card numbers and such.

 

The relationship is as follows:

 

Loan can have 1 or n Customers, and Customers can only have 1 loan properties each.

 

In order to generate the payload we redefined the expand_entity method given that a simple $expand wouldn't let us generate a real payload for this case given the relation/navigation properties as far as I tried, I might be wrong tho.

 

The issue on question is that, once we get a succesfull answer from the expand entity method we redefined, we use it as a payload, however once we change it to a POST method, the error we're gettng is:

 

/IWCOR/CX_DS_BAD_REQUEST: The Data Services Request could not be understood due to malformed syntax


Logs give the same text so there's no real way to pinpoint where in the XML the syntax is wrong.



I'll also add the payload request for more clarity on this issue.


In any case if you guys could advice me in any tool that could help me analyze this better, since the logs are too generic to understand the issue. Or what would be a better way to achieve the creation of payloads for DEEP INSERT operations.


Thank you guys in advance.


Cheers.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>