Skip to Content
0
Jan 25, 2019 at 04:51 PM

update UDT line

255 Views Last edit Jan 25, 2019 at 08:12 PM 2 rev

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?