Hi All,
I have an upload program creating Sales Contract(VA41) using BAPI_CONTRACT_CREATEFROMDATA and follow all the guidelines on how to use it - Note 366265 (https://service.sap.com/sap/support/notes/366265). I ensure that I'm the UPDATEFLAG with 'U' if i'll be modifying the Sales Contract Data, otherwise it will be ' '. Moreover, I also ensure the fields that I'm updating is also flag with 'X' .
Scenario:
1. Create a Sales Contract
2. Reload data, using the same Sales Contract Number created from Step 1
Issue: The issue occurred after the BAPI_TRANSACTION_COMMIT.
Runtime Errors SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Termination occurred in the ABAP program "SAPLV05I" - in "SD_PARTNER_UPDATE".
The main program was "RSM13000 ".
In the source code you have the termination point in line 480
of the (Include) program "LV05IU15".
The program "SAPLV05I" was started in the update system.
The termination is caused because exception "CX_SY_OPEN_SQL_DB" occurred
procedure "SD_PARTNER_UPDATE" "(FUNCTION)", but it was neither handled lo
nor declared
in the RAISING clause of its signature.
I inserted external breakpoint on the SD_PARTNER_UPDATE FM, but it does not stop there. I also looked for relevant OSS notes, but most of them are already implemented in our system.
Anyone who encountered this one?
Thanks.