on 08-19-2015 3:28 PM
Buenos dias; Es posible crear un Centro de Costo / dia DI API. En espera de su ayuda. DR
Asumiendo que ya tienes la conexión al Company, sería así el ejemplo de la DI API
oCmpSrv = oCompany.GetCompanyService()
Dim oPCService As SAPbobsCOM.IProfitCentersService
Dim oPC As SAPbobsCOM.IProfitCenter
Dim oPCParams As SAPbobsCOM.IProfitCenterParams
Dim oPCsParams As SAPbobsCOM.IProfitCentersParams
oPCService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ProfitCentersService)
oPCParams = oPCService.GetDataInterface(SAPbobsCOM.DimensionsServiceDataInterfaces.dsDimensionParams)
oPC = oPCService.GetDataInterface(SAPbobsCOM.ProfitCentersServiceDataInterfaces.pcsProfitCenter)
oPC.CenterCode = "code"
oPC.CenterName = "name"
oPC.GroupCode = "GRP"
oPC.InWhichDimension = 1
oPCParams = oPCService.AddProfitCenter(oPC)
oStr = oPCParams.CenterCode
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.