on 03-22-2017 12:51 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Ankit Chauhan,
how can this be written in VB.net?
thanks a lot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moayed,
Have you checked this?
Kind regards,
ANKIT CHAUHAN
SAP SME Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
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.