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

Copy display variants to another program (copied)

Former Member
0 Likes
520

Hi,

The stardar report S_ALR_87012936 works fine, but, i need to add another field no-standar. I copied the standar program RASIMU02 to a "Z" program and then i made the modifications.

Now, when i am testing the "Z", the ALV display variants are not available. Obviously, SAP copied everything, except the ALV display variant.

Can anyone help with this? how can i copy the ALV display variants to another program?

Thanks in advance...

German

3 REPLIES 3
Read only

Former Member
0 Likes
442

Hello,

there is a table where the variants are kept (obvius). I dont have the name but try to get it with st05 (SQL Trace)

Bye

Gabriel P.

Read only

0 Likes
442

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'.

Read only

0 Likes
442

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'.