Skip to Content

DI API objects for Budget

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 03, 2017 at 12:58 AM

    Hi Rajesh,

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

    Regards
    Edy

    Add comment
    10|10000 characters needed characters exceeded

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