cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Business One - Project Management Stages SDK

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

Thank you bro

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Ankit Chauhan,

how can this be written in VB.net?

thanks a lot.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Moayed,

Have you checked this?

https://blogs.sap.com/2016/07/28/project-management-object-is-exposed-from-sap-business-one-version-...

Kind regards,

ANKIT CHAUHAN

SAP SME Support

Former Member
0 Kudos

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 ?