Skip to Content
avatar image
Former Member

SAP Business One - Project Management Stages SDK

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Mar 22, 2017 at 02:56 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 22, 2017 at 01:14 PM

    Hi Moayed,

    Have you checked this?

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

    Kind regards,

    ANKIT CHAUHAN

    SAP SME Support

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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 ?

  • avatar image
    Former Member
    May 16, 2017 at 02:27 AM

    hi Ankit Chauhan,

    how can this be written in VB.net?

    thanks a lot.

    Add comment
    10|10000 characters needed characters exceeded