Good morning experts,
I have read several posts about updating UDTs and UDOs, I need to update an UDT type document lines.
I use the GetByKey method, but I can't find some option with SetCurrentLine(2)
If I uise
SAPbobsCOM.UserTable oUserTable;
oUserTable= RefCompany.UserTables.Item("@MyTable");
or
SAPbobsCOM.GeneralService oGeneralService;
SAPbobsCOM.GeneralData oGeneralData;
SAPbobsCOM.GeneralData oChild;
SAPbobsCOM.GeneralDataCollection oChildren;
SAPbobsCOM.GeneralDataParams oGeneralParams;
SAPbobsCOM.CompanyService oCmpSrv = RefCompany.GetCompanyService();
oGeneralService = oCmpSrv.GetGeneralService("@MyTable");
oGeneralData = ((SAPbobsCOM.GeneralData)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)));
oGeneralParams = ((SAPbobsCOM.GeneralDataParams)(oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams));
oGeneralParams.SetProperty("DocEntry", "1");
oGeneralData = oGeneralService.GetByParams(oGeneralParams);
How can I set the line?