To be able to test our changes on real data, we sometimes create a copy of a program, modify it and send to a production system. If this is a widely used report, it’s very likely that you have a complex selection screen with input data saved in variants. For the copy program those variants, of course, will not exist (unless the same variants exist in the development system, so that SE38 will copy them too). To help you, the function RS_COPY_SELECTION_SETS will copy the variant content. You run it directly in the production system (carefully!) in SE37.
NOTE: the “Create” and “Change” user for all variants will the the user that is doing the copy! If you rely on those fields to search for variants, the user information will be lost.

