cancel
Showing results for 
Search instead for 
Did you mean: 

How can i post Journal entry with amount over budget control

Former Member
0 Kudos

I try to create journal entry that the account is relevant to budget but amount of this account is over budget control. it return error code -10 "Overlapped I/O operation is in progress". Then I uncheck "relevant to budget" property in the account detail,this journal entry can post correctly.

If i create journal entry by using SAP screen, it'll show warning but I can force post this journal entry. How can i force add this journal entry by using SDK.

sorry for poorly english.

Edited by: Jakkrapong Chaloemruttanaporn on Sep 12, 2008 7:26 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thank you for your answer Binita Joshi.

I don't want to change account property because in Journal entry main process still have to use budget control. I just want to add Journal entry with over budget in my code.

Former Member
0 Kudos

Hi,

you wrote :


Then I uncheck "relevant to budget" property in the account detail,this journal entry can post correctly. 

and you wanted to do this with SDK. the code I posted is SDK equivalent of that only.

regards,

Binita

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you have to programmetically set that property to False. like this:


 Dim obug As SAPbobsCOM.ChartOfAccounts
                obug = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
                If obug.GetByKey("101000") = True Then
                    obug.BudgetAccount = SAPbobsCOM.BoYesNoEnum.tNO
                    RetVal = obug.Update
                    If RetVal <> 0 Then
                        oCompany.GetLastError(ErrCode, ErrMsg)
                        MsgBox(ErrMsg)
                    End If

                End If

where 101000 is account code.

Hope that helps.

regards,

Binita

Edited by: Binita Joshi on Sep 12, 2008 8:11 AM