Skip to Content
0

DI API objects for Budget

Dec 31, 2016 at 11:15 AM

104

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Edy Simon Jan 03, 2017 at 12:58 AM
0

Hi Rajesh,

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

Regards
Edy

Show 2 Share
10 |10000 characters needed characters left characters exceeded

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?

0
//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

1