2007 Apr 03 9:33 AM
I have written a report to calculate the trial balance of the G/L account codes entered by the user.The report is working fine but there is a strange problem i.e when i execute the report directly without putting the breakpoints it gives me incorrect total of the balances for few account codes and correct for few and also shows all balances as debit balances.But when i put a breakpoint and run the code by doing F6 the report gives perfect results.I do not make any change while debugging but still it gives me perfect answers whereas on direct execution it gives me incorrect answers.I m using field symbols to get the value of each column and then adding it.
I have written a report to calculate the trial balance of the G/L account codes entered by the user.The report is working fine but there is a strange problem i.e when i execute the report directly without putting the breakpoints it gives me incorrect total of the balances for few account codes and correct for few and also shows all balances as debit balances.But when i put a breakpoint and run the code by doing F6 the report gives perfect results.I do not make any change while debugging but still it gives me perfect answers whereas on direct execution it gives me incorrect answers.I m using field symbols to get the value of each column and then adding it.
2007 Apr 03 9:39 AM
Hi Karishma,
Check if your report program has any updates on the database tables/ BDCs /BAPI calls. In such cass the updates may take some time. YOu are getting correct results in debug, as the debuggers issues a COMMIT statement for each F5/F6. You may have to use some commit work and wait statements whenever you call a bapi/ do a bdc or update a table.
Regards,
Ravi
2007 Apr 03 9:55 AM
Hi Ravi,
In my report there is no update in the database tables neither there are any BAPI calls.But still i have even used wait command and checked if still that is the reason.But nothing seems to work.
2007 Apr 03 10:01 AM
Hi Karishma,
We've encountered a similar problem before. What we did was we put a WAIT UP TO 1 SECONDS syntax in the part of the code where it calculates amounts. Then it worked.
Hope this helps a bit.
Regards,
Cris
2007 Apr 03 10:06 AM
Hi Cris,
I have already tried using WAIT statement but it does not work even then.I dont know what seems to be the problem.
2007 Apr 03 10:45 AM
Hi Karishma,
I am sorry for that. Will it be ok if you post your code?
Regards,
Cris
2007 Apr 10 5:11 AM
Hi Karishma,
Put your code here. Let these experts have a look at it.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |