What a surprise today held! After many months of testing a simple report in our test environment, the same was transported into our production environment. It was only then that it was discovered that a no-longer-with-the-organisation developer had hard-coded a reference to a layout variant in the report. In this case - one that didn't exist in the production system.. Hmm.. not happy Jan..
Normally, one would maintain the ALV variants using the maintenance functions in the report. However, in this case, the report had disabled all variant maintenance.
So we found the following function module to be very helpful.
Function module LT_VARIANTS_TRANSPORT
This function module places the (existing) variants of a report into a transport. And you even get a nice (familiar) dialog to choose the variants that should be included.
This was certainly easier that many of the other tips on the Internet to manually create R3TR TDAT LT_VARIANT entries in a transport.