For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hi,
I'm trying to do a Submit a requisition for approval but i don't understand the return error.
This is my Body:
Stiven
The messages seem fairly self explanatory. I don't want to miss the purpose of your question. Could you clarify some details for me? Are you trying to submit a requisition that you created through the UI? Or are you submitting a requisition that you created using REST POST?
Currently there is no support through REST for requisitions that contain DFFs, Project details etc. It appears that the requisition you are submitting contains these details and hence the errors. We don't have validations in place for these features and that is the reason the system is rejecting the REST SUBMIT.
We created this requisition for SOAP and don't have project details there. We are trying use the Submit because the InitialApprove on SOAP didn't work.
Due to current limited scope of REST services, we wouldn't recommend invoking REST SUBMIT operation on a requisition that was not created from REST POST.
Instead you may want to investigate why the initiate approval did not work from SOAP services, what is the issue you are facing when submitting requisitions from SOAP?
I was calling the initiate approval in the wrong place it was within the payload scope, but it's in the header. Now works the submitting in REST and SOAP.
Thanks.
Good to know. Can you explain for the benefit of others what you fixed (as in what exactly was not being done correctly before)?
Sure.
When you use SOAP and need use the Initiate Approval, you put the tag into the Header like this:
<soapenv:Header/>
<soapenv:Body>
<typ:createRequisition>
<typ:interfaceSourceCode>TEST</typ:interfaceSourceCode>
<typ:requisitioningBUId>1234</typ:requisitioningBUId>
<typ:groupBy>SUP</typ:groupBy>
<typ:initiateApprovalAfterRequisitionImport>N</typ:initiateApprovalAfterRequisitionImport>
<typ:errorProcessingLevel>ALL</typ:errorProcessingLevel>
<typ:purchaseRequestPayload>
---Some Code
My mistake was put the Initiate Approval into the Payload like this:
<soapenv:Header/>
<soapenv:Body>
<typ:createRequisition>
<typ:interfaceSourceCode>TEST</typ:interfaceSourceCode>
<typ:requisitioningBUId>1234</typ:requisitioningBUId>
<typ:groupBy>SUP</typ:groupBy>
<typ:errorProcessingLevel>ALL</typ:errorProcessingLevel>
<typ:purchaseRequestPayload>
<typ:initiateApprovalAfterRequisitionImport>N</typ:initiateApprovalAfterRequisitionImport>
Other Hint i can explain is, when you use the Initiate Approval the value you need to put is Y or N.
Stiven
The messages seem fairly self explanatory. I don't want to miss the purpose of your question. Could you clarify some details for me? Are you trying to submit a requisition that you created through the UI? Or are you submitting a requisition that you created using REST POST?
Currently there is no support through REST for requisitions that contain DFFs, Project details etc. It appears that the requisition you are submitting contains these details and hence the errors. We don't have validations in place for these features and that is the reason the system is rejecting the REST SUBMIT.