on 11-07-2012 3:25 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.