on 02-03-2009 4:51 PM
Hello,
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)
oGoodsRPO.GetByKey(120210)
Dim Derr As Integer = oGoodsRPO.Close()
If Derr <> 0 Then
Dim serr As String = ""
oComp.GetLastError(Derr, serr)
Throw New Exception(serr)
Else
SBO_Application.SetStatusBarMessage("Goods Receipt was closed successfully")
End If
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.
Thank You,
Best Regards,
Youssef El Bahmi.
Hi,
Set your Time format in rigional settings according to ypur requirement and then open B1. There is the problem in Date Time format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try to get the Curren Period in a Message Box and Check whether you are closing the Document after Posting Date
Mohamed Zubair
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.