Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Want to create internal requisitions in approve status using rest API

Summary:

WE are using the below payload but we are getting the below error:

Attribute DocumentStatusCode in view object PurchaseRequisitionHeaderVO cannot be set.

{

"RequisitioningBUId":300000046987012,
"PreparerId":300000047340498,
"ExternallyManagedFlag": false,
"Description": "SSP21",
"ApprovedById":300000047340498,
"InterfaceSourceCode": "TestSS2",
"DocumentStatusCode" :APPROVED,
"lines": [
{
"LineNumber": 1,
"LineTypeId": 1,
"Item": "AS35013",
"RequesterId":300000047340498,
"Quantity": 1,
"UOMCode": "zzu",
"DestinationOrganizationCode": "002",
"DeliverToLocationCode": "Atlanta",
"DestinationTypeCode": "EXPENSE",
"RequestedDeliveryDate": "2024-04-19",
"SourceType": "Inventory",
"SourceOrganizationCode": "001",
"distributions":[
{
"DistributionNumber":1,
"Quantity":1
}
]
}

]
}

If we remove document status code then we are able to create internal requisition in incomplete status.

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):



Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!