In real-time business applications, we need to transport variants of a programs to production, in general variants will not be transported automatically along with program, we need to add them to a TR to transport, to add transport to a TR we use program RSTRANSP.
Method1 to transport variant in SAP
Go to SE38, provide program name as RSTRANSP and execute.
Provide program name and variant name, execute, it will ask for a TR.
Method2 to transport variant in SAP
Go to SE38, provide your program name, select variant and display.
Go to utilities -> transport request, provide variant name and execute, it will ask for TR.
Very nice tutorial - Easy to understand and Good Explanation.