Symptom
You would like to update a Contract via the web service ManageCustomerContractIn with items that have the price per period indicator active and an invoice schedule.
Environment
SAP Business ByDesign
Reproducing the Issue
- As an example we will update a Contract XXXX which already has line items 10 - 40 (XXXX represents the contract ID).
- We are updating this contract with 2 additional line items 50 and 60 that should have the price per period indicator set to active.
- Line Item 50 has 2 invoice schedule dates (2021-02-02 and 2021-03-02)
- Line Item 60 has 3 invoice schedule dates (2021-02-02, 2021-03-02 and 2021-04-02).
Resolution
Sample Payload:
<glob:CustomerContractBundleMaintainRequestSync_V1>
<BasicMessageHeader/>
<CustomerContract itemListCompleteTransmissionIndicator="true" actionCode="04">
<ID>XXXX</ID>
<Item actionCode="04" itemScheduleLineListCompleteTransmissionIndicator="true">
<ID>50</ID>
<ProductTypeCode>2</ProductTypeCode>
<ProductID>XXX</ProductID>
<Quantity>1</Quantity>
<PricePerPeriodIndicator>true</PricePerPeriodIndicator>
</Item>
<Item>
<ID>60</ID>
<ProductTypeCode>2</ProductTypeCode>
<ProductID>XXX</ProductID>
<Quantity>1</Quantity>
<PricePerPeriodIndicator>true</PricePerPeriodIndicator>
</Item>
<InvoiceSchedule actionCode="04" itemScheduleLineListCompleteTransmissionIndicator="true">
<ToBeScheduledItem>
<ID>50</ID>
</ToBeScheduledItem>
<ToBeScheduledItem>
<ID>60</ID>
</ToBeScheduledItem>
<Item>
<InvoiceScheduleItemID>10</InvoiceScheduleItemID>
<ToBeScheduledItemID>50</ToBeScheduledItemID>
<ProposedInvoiceDate>2021-02-02</ProposedInvoiceDate>
</Item>
<Item>
<InvoiceScheduleItemID>20</InvoiceScheduleItemID>
<ToBeScheduledItemID>50</ToBeScheduledItemID>
<ProposedInvoiceDate>2021-03-02</ProposedInvoiceDate>
</Item>
<Item>
<InvoiceScheduleItemID>10</InvoiceScheduleItemID>
<ToBeScheduledItemID>60</ToBeScheduledItemID>
<ProposedInvoiceDate>2021-02-02</ProposedInvoiceDate>
</Item>
<Item>
<InvoiceScheduleItemID>20</InvoiceScheduleItemID>
<ToBeScheduledItemID>60</ToBeScheduledItemID>
<ProposedInvoiceDate>2021-03-02</ProposedInvoiceDate>
</Item>
<Item>
<InvoiceScheduleItemID>30</InvoiceScheduleItemID>
<ToBeScheduledItemID>60</ToBeScheduledItemID>
<ProposedInvoiceDate>2021-04-02</ProposedInvoiceDate>
</Item>
</InvoiceSchedule>
</CustomerContract>
</glob:CustomerContractBundleMaintainRequestSync_V1>
Keywords
ManageCustomerContractIn; Invoice Schedule; Price Per Period; Invoice Schedule Date; , KBA , AP-CCP , Customer Contract Processing , Problem