cancel
Showing results for 
Search instead for 
Did you mean: 

DI API objects for Budget

rajesh_khater
Active Participant
0 Kudos

Hi,

Using DI API, I want to create the following:

1. Budget - corresponding to OBGT

2. Budget lines (1 for each month) - corresponding to BGT1

3. Budget Cost Centers - corresponding to BGT2

4. Cost Center lines for each month - corresponding to BGT3

Which DI API objects I should use, and how do I instantiate those objects? Is BGT3 updation supported by DI API?

I am on B1 9.1 PL05.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hola Rajesh.

Como resolviste tu API de Presupuesto.

Podrías agregar el código

Gracias!!



edy_simon
Active Contributor
0 Kudos

Hi Rajesh,

SAPbobsCOM.Budget o = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBudget) as SAPbobsCOM.Budget;

Regards
Edy

rajesh_khater
Active Participant
0 Kudos

Thanks Edy. This is for the main Budget object. What are the objects for Budget lines for each month, Budget Cost Center lines, and Cost Center lines for each month, and how do I instantiate those objects? Also, Is BGT3 updation supported by DI API?

edy_simon
Active Contributor
//Main budget object 
SAPbobsCOM.Budget o = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBudget) as SAPbobsCOM.Budget;
//Budget Lines for each account / Month: (BGT1)

o.Lines.AccountCode = "1234567";
//Budget Cost Accounting line : (BGT2)
o.CostAccountingLines.Dimension = "Cost1";

Sorry, I could not find any reference to the BGT3 table, I think it is automatically calculated from BGT2 and BGT1 schedules.

Regards

Edy