02-11-2019 4:19 PM
Hi
I have a BADI method that has a select query to fetch inspection lot. But that select fails as the inspection lot updates after the method execution(commit happens later). Heard that through call function in update task...this select query can be made a success.
Please assist.
02-11-2019 4:41 PM
If there's a standard Update FM which updates the table, call your custom Update FM right after the call to this standard Update FM, and at the time of the COMMIT all Update FMs will be called in sequence, so your custom Update FM should be able to read the updated table.
02-12-2019 12:40 AM
i suggest you might find the global variable used to update that table, if there is you could use field symbol to access that global variable instead of select from table.
02-12-2019 7:09 AM
You can insure that the database is already commited using a call in update task (if called after the standard update FM or defining your FM as a start delayed one, update V2 as most usal database table are updated in V1) or in background task (define your FM as RFC enabled)
But did you look for any method of the BAdI that would provide access to the data before update?