cancel
Showing results for 
Search instead for 
Did you mean: 

RequiredDate is missing

0 Kudos

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();

View Entire Topic
0 Kudos

Hello Ankit, still not working with your suggestion.