Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2017 at 02:27 AM

    hi Ankit Chauhan,

    how can this be written in VB.net?

    thanks a lot.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.