Skip to Content
0
Nov 09, 2022 at 02:57 AM

S4 Cloud API call in SAPUI5 gives error "The combination of changes is not allowed in a change set"

162 Views Last edit Nov 09, 2022 at 12:09 PM 3 rev

Hi,

I am trying to use S4 cloud APIs to create header and item, but I get an error "{"code":"PP_ODATA_API_WKC/016","message":"The combination of changes is not allowed in a change set".

The APIs I am using are

to create an interval -- /A_WorkCenterCapacityInterval_2

to create a shift in interval - /A_WorkCenterCapacityInterval_2(CapacityInternalID='{CapacityInternalID}',CapacityActiveVersion='{CapacityActiveVersion}',IntervalEndDate=datetime'{IntervalEndDate}')/to_CapacityShift

I also tried to pass shift detail in API /A_WorkCenterCapacityInterval_2 (structure below) instead of calling API for "to_CapacityShift" but I get the same error.

image.png


Any help will be appreciated.




Regards,

Attachments

image.png (40.4 kB)