cancel
Showing results for 
Search instead for 
Did you mean: 

Manejo de Tablas UDO en objeto DI

Former Member
0 Kudos

¿Es Posible Eliminar o cancelar una línea de una tabla UDO documento Mediante El objeto DI?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hola Sergio,

Eso es un forun en Ingles.

Si, es posivel. Tienes exemplos en fichero de ayuda de SDK.

Cumprimentos,

Vítor Vieira

Former Member
0 Kudos

Hi, you can send me some example to replicate it, I'm a little lost.

Former Member
0 Kudos

Sergio,

Instantiate the UDO you need to work with


        Dim oCompanyService As SAPbobsCOM.CompanyService = oCompany.GetCompanyService
        Dim oGeneralService As SAPbobsCOM.GeneralService = oCompanyService.GetGeneralService("TABLE_HEADER")
        Dim oGeneralData As SAPbobsCOM.GeneralData = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralData)
        Dim oGeneralChildren As SAPbobsCOM.GeneralDataCollection
        Dim oGeneralParams As SAPbobsCOM.GeneralDataParams = oGeneralService.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)

...
                    oGeneralParams.SetProperty("DocEntry", "100001")  ' 100001 is the document number
                    oGeneralData = oGeneralService.GetByParams(oGeneralParams) 'Retrieve the object to memory
                    oGeneralChildren = oGeneralData.Child("TABLE_ROWS")
                    For i As Integer = 1 To oGeneralChildren.Count
                        oGeneralChildren.Remove(0) ' Remove all the rows.
                    Next
                    oGeneralService.Update(oGeneralData) 'Update the object.
...

Regards,

Vítor Vieira

Former Member
0 Kudos

very very thank.

Former Member
0 Kudos

Dear,

How can I manipulate the field in a table Udo canceled documents, controlling and cancel the document as does SAP?

Former Member
0 Kudos

Hello, the question is as a line of cial document tables UDO.

Thanks for answering.