I want to close a Goods Receipt PO Document.
When I use the code below, an error occurs ( Date deviates from due date range,'208040' ) :
Public oGoodsRPO As SAPbobsCOM.Documents = CType(oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes), SAPbobsCOM.Documents)
Dim Derr As Integer = oGoodsRPO.Close()
If Derr <> 0 Then
Dim serr As String = ""
Throw New Exception(serr)
SBO_Application.SetStatusBarMessage("Goods Receipt was closed successfully")
I then tried to change the active period and set it in October 2006, but
always the same problem.
What's the Origin of this problem and how I can solve it.
Youssef El Bahmi.