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 copy problem

Former Member
0 Likes
622

Hi guys,

I have a situation in which user has created so many personal layouts on alv report. now we need to move it to other user.

Is there a standard way to transfer variants between users? I mean all the variants that a user created can they be mass copies to a different user?

I have idea about moving variants cross clients.

But no idea about making available user specfic variant to other user.

please give me some useful advise.

its really urgent.

Regards,

Azad.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
542

Hi Azad,

The ALV layouts which are created are stored in a table called LTDX.

The layouts which are user-specific can be used only by that user. But the standard layouts can be used by all users.

The table may be copied to other systems which includes both the types of layouts

Thanks & Regards

Santhosh

2 REPLIES 2
Read only

Former Member
0 Likes
543

Hi Azad,

The ALV layouts which are created are stored in a table called LTDX.

The layouts which are user-specific can be used only by that user. But the standard layouts can be used by all users.

The table may be copied to other systems which includes both the types of layouts

Thanks & Regards

Santhosh

Read only

0 Likes
542

Hi,

Try This Program

report copy_layout.
data : lt_ltdx like ltdx occurs 0 with header line.
data : lt_ltdxt like ltdxt occurs 0 with header line.
parameters report like ltdx-report obligatory.
parameters report2 like ltdx-report obligatory.
"copy layout of report to report2.

start-of-selection.
  select * into table lt_ltdx from ltdx
                where report = report.
  select * into table lt_ltdxt from ltdxt
                where report = report.
  loop at lt_ltdx.
    lt_ltdx-report = report2.
    modify ltdx from lt_ltdx..
  endloop.
  loop at lt_ltdxt.
    lt_ltdxt-report = report2.
    modify ltdxt from lt_ltdxt..
  endloop.
  message 'Copy Complete.' type 'I'.