on 09-12-2008 6:25 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.