Skip to Content
0
Former Member
Nov 07, 2012 at 03:25 PM

Factura de Clientes SDK

114 Views

Hola,

Saben como crear una factura de clientes de una orden de ventas.

Según tengo entendido hay que pasar el valor del accountCode, pero no se como obtenerlo. En la documentacion dejan este ejemplo para las cuentas segmentadas pero hay un valor que no se como se obtiene, o que es (125100000100101).

Dim sStr As String

Dim vRs As SAPbobsCOM.Recordset

Dim vBOB As SAPbobsCOM.SBObob

Dim vCH As SAPbobsCOM.ChartOfAccounts

Set vCH = Vcmp.GetBusinessObject(oChartOfAccounts)

Set vBOB = Vcmp.GetBusinessObject(BoBridge)

Set vRs = Vcmp.GetBusinessObject(BoRecordset)

Set vRs = vBOB.GetObjectKeyBySingleValue(oBusinessPartners, "CardName", "aaa", bqc_Equal)

' When working with segmentation use this function

' to find the account key in the ChartOfAccount object

Set vRs = vBOB.GetObjectKeyBySingleValue(oChartOfAccounts, "FormatCode", "125100000100101", bqc_Equal)

'The Recordset retrieves the value of the key (for example, sStr = _SYS00000000010).

sStr = vRs.Fields.Item(0).Value

'Use the sStr value to set the AccountCode