2023 May 02 4:02 PM
We are using an FM .Based on the update operation done by the FM , we are supposed to do some more operation POST operation .
But by the time it reaches the next line , it does not update the required database table .
If we add WAIT UPTO 0.2 seconds it works .
SET UPDATE LOCAL TASK is also not working .
Is it a good programming practice to add wait up to 0.2 seconds in middle of program .
Or is there a better option like ENQUEUE SLEEP
Yep, bad practice. Also, maybe one day "WAIT UP TO '0.2' SECONDS" might not work at random moment just because of slow system.
If you run a SQL trace with ABAP stack, you can understand what caused the update and you will find a solution (provided that you understand how ABAP runtime works - Refer to ABAP documentation for these details).
2023 May 02 4:25 PM
2023 May 02 5:48 PM
Yep, bad practice. Also, maybe one day "WAIT UP TO '0.2' SECONDS" might not work at random moment just because of slow system.
If you run a SQL trace with ABAP stack, you can understand what caused the update and you will find a solution (provided that you understand how ABAP runtime works - Refer to ABAP documentation for these details).
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |