Skip to Content

call FM in update task


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.

Add comment
10|10000 characters needed characters exceeded

  • 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.

  • 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.

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 12 at 07: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?

    Add comment
    10|10000 characters needed characters exceeded