Have you ever written a function to do something to an open table, and then you had to do the same function for the posted one? Or, maybe you've created a routine to process customer records, and then you've also needed the same function for vendors?
What did you do?
I bet more often than not, you took a copy of that original function and updated/renamed the variables to point to the second table. Now, you're left with two copies of the same function to maintain, and two entry points to the same functionality.
The Variant Façade pattern enables you to define a single entry point for your function, allowing it to accept any table record.
This recipe will show you how to use the Variant Façade pattern in your AL code.