Hi ,
1- How can I update project management stages using SAP Business One SDK ?
2- is it possible to access User Defined Fields in stages using SDK ?
I am using SAP Business One 9.2 PL 04
Hi Moayed,
Here is a sample code which I used:
SAPbobsCOM.CompanyService oCompServ = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService(); SAPbobsCOM.ProjectManagementService pmgService = (SAPbobsCOM.ProjectManagementService)oCompServ.GetBusinessService(SAPbobsCOM.ServiceTypes.ProjectManagementService); SAPbobsCOM.PM_ProjectDocumentParams projectToUpdateParam = pmgService.GetDataInterface(SAPbobsCOM.ProjectManagementServiceDataInterfaces.pmsPM_ProjectDocumentParams); projectToUpdateParam.AbsEntry = 1; SAPbobsCOM.PM_ProjectDocumentData project = pmgService.GetProject(projectToUpdateParam); SAPbobsCOM.PM_StagesCollection stagesCollection = project.PM_StagesCollection; SAPbobsCOM.PM_StageData stage = stagesCollection.Item(0); stage.StageType = 1; stage.StartDate = DateTime.Now.AddDays(1); pmgService.UpdateProject(project);
Kind regards,
ANKIT CHAUHAN
SAP SME Support
Thank you bro
Hi Moayed,
Have you checked this?
Kind regards,
ANKIT CHAUHAN
SAP SME Support
Thank you for reply ,
Yes I checked it but my question is if there is stage already added for example I want to update the start date or description using SDK , is it possible ?