on 02-18-2016 1:09 PM
hello,
When i am trying to create a Purchase request i always get the following error "Required date is missing (1)"
Code:
---------------
SAPbobsCOM.Documents pRequest = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseRequest) as SAPbobsCOM.Documents;
pRequest.Requester = "38";
pRequest.ReqType = 171;
pRequest.RequriedDate = DateTime.Now;
pRequest.DocDueDate = new DateTime(2016, 2, 19);
pRequest.ClosingDate = new DateTime(2016, 2, 19);
pRequest.DocDate = new DateTime(2016, 2, 19);
pRequest.EndDeliveryDate = new DateTime(2016, 2, 19);
pRequest.DocType = BoDocumentTypes.dDocument_Service;
pRequest.Lines.BaseLine = 0;
pRequest.Lines.ItemDescription = "Testing Service";
pRequest.RequesterEmail = "test@test.com";
var ret = pRequest.Add();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.