cancel
Showing results for 
Search instead for 
Did you mean: 

Business One 9.3 - Setting the project and stage for a timesheet line

dan_jordan
Explorer

Does anyone have code on how to do this through DI API? I see where the FinancialProject property is exposed in the SAPbobsCOM.PM_TimeSheetLineData object:

SAPbobsCOM.CompanyService companyService = default(SAPbobsCOM.CompanyService);
SAPbobsCOM.ProjectManagementTimeSheetService timeSheetService = null;
companyService = company.GetCompanyService();
timeSheetService = (SAPbobsCOM.ProjectManagementTimeSheetService)companyService
    .GetBusinessService(SAPbobsCOM.ServiceTypes.ProjectManagementTimeSheetService);
SAPbobsCOM.PM_TimeSheetData timeSheet = timeSheetService
    .GetDataInterface(SAPbobsCOM.ProjectManagementTimeSheetServiceDataInterfaces.pmtssPM_TimeSheetData);
SAPbobsCOM.PM_TimeSheetParams timeSheetParams = timeSheetService
    .GetDataInterface(SAPbobsCOM.ProjectManagementTimeSheetServiceDataInterfaces.pmtssPM_TimeSheetParams);

SAPbobsCOM.PM_TimeSheetLineData timeSheetLine = timeSheet.PM_TimeSheetLineDataCollection.Add();

timeSheetLine.FinancialProject = "PROJ01";

But I don't see anything similar for the associated Project Management project/stage as can be set in the window:

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi Antonio Lopez & Dan Jordan,

This issue is already known to our Development Team. It is not possible to Add/Update the Stage For a Time Sheet via DI API till SAP Business One Version 9.3 PL09.

The issue is supposed to be fixed in the next patch level i.e. 9.3 PL10. Be advised that the time-frame is subject to change without any notice.

Kindly keep checking SAP Note 2765437 for more details. The mentioned SAP Note will be released soon.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

0 Kudos

Hello,

thanks for your feedback. I forwarded this incident to SAP 🙂

Answers (1)

Answers (1)

0 Kudos

Hello,

we would like to know this aswell!