Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Defaulting Varient on selection screen

Former Member
0 Likes
814

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.

7 REPLIES 7
Read only

Former Member
0 Likes
795

you have to handle that in the program in the INITIALIZATION event

Read only

former_member156446
Active Contributor
0 Likes
795

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]

Read only

Former Member
0 Likes
795

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_DISPLAY

to create variant

Regards,

Lalit Mohan Gupta.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
795

You may create a transaction with the default variant for the report, or programmatically attach it. (look at this wiki [set default varient in reports |https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/setdefaultvarient+inreports])

Regards

Read only

Former Member
0 Likes
795

Hi,

Try like

select-options:s_carrid for spfli-carrid memory-id(parameter id of field)

Regards,

jaya

Read only

Former Member
0 Likes
795

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

Read only

Former Member
0 Likes
795

Thankyou...