cancel
Showing results for 
Search instead for 
Did you mean: 

API Real Estate Contracts for Public Cloud

JFPC
Active Participant
0 Kudos
660

Dear all,

We want to use the API for Real Estate Contracts to upload and change Real Estate contracts in a Public Cloud system. Currently we are executing some tests with the Post method to create new contracts. The contracts to be loaded are lease contracts with a contract object. We are loading the contracts with minimal information, meaning only the structures:

  • Header (company code, contract type, contract name, term, valuation relevance)
  • Object assignment (object type target “J4”, subject number “0010”, subject type and account assignment object)
  • Conditions (condition type, validity, unit price, condition purpose, calculation rule and statusobjectcalculation),
  • Partner (partner number and role)
  • Organizational assignment (profit center and functional area)
  • Valuation (valuation rule, term number, interest, consideration start date, object type and statusobject).

What we encounter is that we receive error messages on the valuation tab mentioning that the object is not a contractobject. If we load the contract without the valuation we can create a contract but the condition is not assigned to the contractobject.

We would like to know how to interpret the fields in the condition and valuation structure to link the condition and the valuation to the contract object. We tried using different combinations without luck. If we execute the Read API we see that the fields are filled with internal SAP numbers which we do not know when creating the contract.

The problem according to us is how to fill these fields:

  • Condition -          "REStatusObjectCalculation": "string", we tried COB 0010, only 0010 or J4 0010 without luck There are no two separate fields for object type and object which we would expect.
  • Valuation -          "REStatusObject": "string", here we have two fields but filling this with 0010 is not resulting in a correct valuation and "RealEstateObjectType": "string", here also J4 is not resulting in a correct valuation

Error message:

- Condition: "code": "RECD/060",    "message": "The calculation object of the condition is not a contract object",

- Valuation: "code": "RECETM/019", "message": "IFRS 10: Object  of valuation rule is not assigned to contract",

We would like to know how we must fill the fields in order to create a contract with a contract object, where the condition and valuation is linked to this contract object.

If we look into the "old" BAPI which was used previously or in the migration object for Real Estate contract, we always find two fields, one for object type and one for object number. These we cannot find like this in the API.

Thanks in advance,

Jeroen

View Entire Topic
HenrikeGrötecke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jeroen,

Thank you very much for your question.

As this question requires more attention, may I please ask you to raise an incident?

Thank you very much!

Best regards,

Henrike

JFPC
Active Participant
0 Kudos
Hi Henrike, thanks for your information. In the past I already raised an incident for this but it was not picked up any further (https://me.sap.com/case/002075129500009519452024/overview). We now created a very extensive workaround which is not improving the process. If you want I can create a new incident but I am not sure if this will help. Best regards, Jeroen
anja_wolf-galka
Associate
Associate
0 Kudos
Hi Jeroen, thank you for your feedback. Unfortunately, there is currently only the workaround to create contracts with contract objects (J4) using the 3-step-approach: (1) create contract with contract object, (2) read the contract object from the created object, (3) create conditions using the contract object number. We are aware that this workaround is uncomfortable and try to improve the use of the API. Best regards, Anja