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

Variant

Former Member
0 Likes
681

Hello,

Could anyone please tell me know that how to set an automatic variant, when users call a transaction code then at selection screen the default variant will be automatic selected by system w/o be selected by users.

Thanks in advance.

Regards,

Tiwa Noitawee.

Message was edited by:

Tiwa Noitawee

4 REPLIES 4
Read only

Former Member
0 Likes
661

When you are creating the transaction code in SE93, there is an option to put a variant in the field 'Start With Variant'. Enter the variant name there.

Read only

0 Likes
661

Hello Srinivas Adavi, DanielY

Thanks for your reply.

I have already tried to you SE93 as your recommened it's worked but I have a question.

For example :

There are 3 variants in a program:

- var1 created by user1

- var2 created by user1

- var3 created by user2

How to set an automatic variant specific var2 for user1 and var3 for user2?

If it's possible, Can user do or IT have to set?

Regards,

Tiwa Noitawee.

Message was edited by:

Tiwa Noitawee

Read only

Former Member
0 Likes
661

Hi, you can use se93 and create a report transaction and enter a default variant there for your selection screen.

Read only

Former Member
0 Likes
661

Hai Tiwa,

pass i_save as A or U for this function. it will take as user specific.

and in the report save ur own layout.

CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'

EXPORTING

i_save = 'A' / 'U'

CHANGING

cs_variant = ls_variant.