cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with assigning parent organisational unit using c4codataapi

emre_bal
Participant
529

Hi all,

I have a requirement to update organisational unit parent org. unit assignment in C4C.

I am using standard odata service (c4codataapi) for this purpose.

entity: OrganisationalUnitParentOrganisationalUnitAssignment

property that i am trying to update: OrganisationalUnitID

I' ve also checked metadata of my property tham i am trying to update.

<Property Name="ParentOrganisationalUnitID" Type="Edm.String" Nullable="false" MaxLength="20" FixedLength="true" sap:creatable="true" sap:updatable="true" sap:filterable="false"/>

I am sending a PATCH request with the following path and with json data

/sap/c4c/odata/v1/c4codataapi/OrganisationalUnitParentOrganisationalUnitAssignmentCollection('<uuid>')

{
  "ParentOrganisationalUnitID": "<new_parent_orgunit_id>"
}

Response http status code 204

But i am not able update ParentOrganisationalUnitID.

When i am trying with the following json, to update ParentOrganisationalUnitID and StartDate at the same time,

i am able to update both properties with new values.

{
  "ParentOrganisationalUnitID": "<new_parent_orgunit_id>",
  "StartDate": "<new_start_date>"
}

But i want to update just ParentOrganisationalUnitID of my entity.

Am i missing something, or is it about implementation of services in backend?

Best regards,

Emre

Accepted Solutions (1)

Accepted Solutions (1)

guenter_wilmer
Advisor
Advisor

Thank you very much for pointing to this. A fix can be expected with HFC 3, that should be released 14th of March.

Answers (0)