‎2009 Apr 10 2:35 PM
Hi All,
For my program i have created one varient.which i have to default that varient when ever i executed that program.Is there any way that i can do this.
Thanks.
‎2009 Apr 10 2:41 PM
you have to handle that in the program in the INITIALIZATION event
‎2009 Apr 10 2:48 PM
check if you can use SPA/GPA
else default the values in the code... from some date and other field you can save without value etc...
[Check the variant attributs|http://help.sap.com/saphelp_nw70/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm]
‎2009 Apr 10 2:49 PM
you can define default values in the statement
parameters p_par type <type> default ' <your value >'.
This will set the default value for your selection screen.
Also you can you
RS_VARIANT_DISPLAYto create variant
Regards,
Lalit Mohan Gupta.
‎2009 Apr 10 2:57 PM
‎2009 Apr 10 3:01 PM
Hi,
Try like
select-options:s_carrid for spfli-carrid memory-id(parameter id of field)
Regards,
jaya
‎2009 Apr 10 3:06 PM
hi,
in the initialization event...
use the function module
RS_VARIANT_DISPLAY
and get the event displayed automatically when you execute the program
regards,
Siddarth
‎2009 Apr 11 4:33 AM