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

diffrent variants for each alv grid

Former Member
0 Likes
487

hi,

what i have is a (one!) report with 2 diffrent dynpros. on each dynpro is an alv-grid. saving variant (selected fields etc.) works fine in both. but when i want to load a variant it shows all variants for the report in each dynpro.

my question is:

is it possible to show only the variants for the dynpro that is actually displayed? -> is its possible to specify the (current) dynpro / grid when i save a variant?

greets

benjamin

hi,

what i have is a (one!) report with 2 diffrent dynpros. on each dynpro is an alv-grid. saving variant (selected fields etc.) works fine in both. but when i want to load a variant it shows all variants for the report in each dynpro.

my question is:

is it possible to show only the variants for the dynpro that is actually displayed? -> is its possible to specify the (current) dynpro / grid when i save a variant?

greets

benjamin

3 REPLIES 3
Read only

Former Member
0 Likes
454

Hi Benjamin,

1. Using default facility provided

i don't think its possible.

2. Reason

Variant are Program Name Specific.

and not Screen specific !

PS :

Table for Variants is VARI

U will note that it has information

for Program Name only !!!

regards,

amit m.

Message was edited by: Amit Mittal

Read only

Former Member
0 Likes
454

it is true, variants are saved with report name...

but the table where variants are stored in (LTDX) contains two more key-fields: HANDLE and LOG_GROUP.

maybe its possible to use them for specifiing the dynpro...?

Read only

0 Likes
454

Hi again,

1. Ya thats very correct.

(may be these fields are for such requirement purpose only)

2. however, in such case,

then the default facility needs to be overwriten

with our code for

a) displaying/selecting the variant

b) saving the variant

regards,

amit m.