|Home • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Selecting a selection screen variant dynamically
By Ashesh Thodupunuri
article will discuss in detail how to default a selection screen variant
in real time scenarios we come across requirements to select the variant at
the selection screen will be displayed with the selected variant.
selection screen variant should be defaulted automatically based on the user who
has executed the report.
the users will design their variants according to their business requirement.
user needs to create a variant with below naming convention:
(Where XXXX stands for user name).
the user name is TEST123 then he should create a variant with name U_TEST123.
to be followed:
Create program in SE38 with some meaningful description.
Step2: Create a selection screen with two to three fields.
a selection screen variant with the naming convention as discussed above:
U_TEST123( Where TEST123 is the user name in the system).
per the requirement we need to default the variant based on the user who is
executing the report.
the below code in the program in AT SELECTION SCREEN OUTPUT event.
these function modules after the above concatenate statement.
into the system with the User name TEST123 and execute the report then the
selection screen variant U_TEST123 will be selected as default automatically.
In this way users can default their variant which is frequently used by them, so
this avoids them to select the same variant again and again. But only
prerequisite is variant should be created for the first time with the above
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards