Symptom
When performing a Web Service Query for Customer Invoices, the error "Interval boundary type code not allowed in this context" is displayed in the Web Service Message Monitoring View.
Environment
SAP Business ByDesign
Reproducing the Issue
- Open the SOAP UI.
- Perform the Authentication for the User.
- Execute the Web Service Query Payload.
The error "Web service processing error; more details in the web service error log on provider side" is displayed in the response payload.
- Go to the Application and User Management Work Center.
- Go to the Web Service Message Monitoring View.
- Locate the error associated to Service Interface QueryCustomerInvoiceIn.
The Error Text "Interval boundary type code not allowed in this context" is displayed.
Cause
The IntervalBoundaryTypeCode tag is being passed in the payload of the Web Service Query for Customer Invoices with the value 4.
For Example:
<SelectionByLastChangeDateTime>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>4</IntervalBoundaryTypeCode>
<LowerBoundaryCustomerInvoiceLastChangeDateTime>YYYY-MM-DDT00:00:00Z</LowerBoundaryCustomerInvoiceLastChangeDateTime>
<UpperBoundaryCustomerInvoiceLastChangeDateTime>YYYY-MM-DDT07:00:00Z</UpperBoundaryCustomerInvoiceLastChangeDateTime>
</SelectionByLastChangeDateTime>
Currently the value 4 is not allowed for the tag <IntervalBoundaryTypeCode> in the Web Service for Customer Invoices, therefore, the error "Interval boundary type code not allowed in this context" is generated in the Web Service Message Monitoring View.
Resolution
This is a standard system behavior.
In this case, it is recommend to use the value 3 for the IntervalBoundaryTypeCode tag to perform the Web Service Query for Customer Invoices.
The IntervalBoundaryTypeCode tag maintained with the value 3 will take only the information between the Intervals (LowerBoundary and UpperBoundary) provided in the Web Service Query payload.
For Example:
<SelectionByLastChangeDateTime>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>3</IntervalBoundaryTypeCode>
<LowerBoundaryCustomerInvoiceLastChangeDateTime>YYYY-MM-DDT00:00:00Z</LowerBoundaryCustomerInvoiceLastChangeDateTime>
<UpperBoundaryCustomerInvoiceLastChangeDateTime>YYYY-MM-DDT07:00:00Z</UpperBoundaryCustomerInvoiceLastChangeDateTime>
</SelectionByLastChangeDateTime>
See Also
Keywords
web service, query, customer invoice, payload, interval boundary type code not allowed in this context, intervalboundarytypecode , KBA , AP-CI-CI , Customer Invoice , Problem
SAP Knowledge Base Article - Public