Importing a contract with life cycles
The following example describes what happens when you import the following import file containing life cycles. The reference date on Documents level is not specified.
Import file
<?xml version='1.0' encoding='UTF-8'?>
<document>
<businessobjects xmlns:talk='http://www.planonsoftware.com/V1/EnterpriseTalk'>
<UsrLeaseContract>
<Code>A</Code>
<Name>AA</Name>
<IsPaymentContract>True</IsPaymentContract>
<ContractCategoryRef>01</ContractCategoryRef>
<ActualBeginDate>2015-08-09</ActualBeginDate>
<talk:lifecycle>
<BeginDate>2020-09-01</BeginDate>
<OfferingContractPartyRef>0012</OfferingContractPartyRef>
</talk:lifecycle>
<talk:lifecycle>
<BeginDate>2020-09-02</BeginDate>
<OfferingContractPartyRef>0009</OfferingContractPartyRef>
</talk:lifecycle>
<LeaseContractLine>
<Code>AAL </Code>
<AmountUnitOfTimeRef>3</AmountUnitOfTimeRef>
<PropertyRef>14</PropertyRef>
<Name>AALines</Name>
<DaysPaymentBeforeClosing>2</DaysPaymentBeforeClosing>
<IsPaymentContractLine>True</IsPaymentContractLine>
<PaymentFrequencyDate>2015-08-09</PaymentFrequencyDate>
<ContractLinePeriod>Unknown</ContractLinePeriod>
<talk:lifecycle>
<PaymentFrequency>1 Months</PaymentFrequency>
<Amount>10.00</Amount>
<BeginDate>2015-08-09</BeginDate>
</talk:lifecycle>
<talk:lifecycle>
<PaymentFrequency>1 Months</PaymentFrequency>
<Amount>11.00</Amount>
<BeginDate>2020-09-02</BeginDate>
</talk:lifecycle>
</LeaseContractLine>
</UsrLeaseContract>
</businessobjects>
</document>
Field configuration
Business Object level | Import policy | Field | Field as … | Part of search key? |
---|
usrLeaseContract | Create/update | | | |
| | Code | | Yes |
| | Name | | No |
| | BeginDate | | No |
| | IsPaymentContract | | No |
| | ContractCategoryRef | | No |
| | OfferingContractPartyRef | | No |
LeaseContractLine | Create/update | | | |
| | Code | | Yes |
| | ContractRef | Super | Yes |
| | Amount | | No |
| | IsPaymentContractLine | | No |
| | PaymentFrequency | | No |
| | PropertyRef | | No |
| | AmountUnitOfTimeRef | | No |
| | DaysPaymentBeforeClosing | | No |
| | BeginDate | | No |
| | ContractLinePeriod | | No |
| | PaymentFrequencyDate | | No |
| | Name | | No |
The result will be a lease contract with two life cycles:
Code/description | BeginDate | EndDate | OfferingContractPartyRef |
---|
A-AA | 2020-09-01 | 2020-09-01 | 0012 |
| 2020-09-02 | <empty> | 0009 |
Including a lease contract line with two life cycles:
Code/description | BeginDate | EndDate | Amount |
---|
AA-AALines | 2015-08-09 | 2020-09-01 | 10 |
| 2020-09-02 | <empty> | 11 |