Application Development 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: 

resolved:how to set default LAYOUT for ALV list display

Former Member
0 Kudos

hey guys,

In my alv report there are 20 cloumns.

after display i usualy choose 12 of them from CHOOSE LAYOUT option and then give it to print...

how to set this LAYOUT as default

sorry guys i figured it out..

but can we give it programiticlay?

Edited by: kumar gaurav on May 27, 2008 8:15 AM

2 REPLIES 2

Former Member
0 Kudos

hi,

you can do it.

after declaring the catlog table you will give as

wa_catlog-seltext_l = 'material'.

wa_catlog-datatype = 'char'.

wa_catlog-outputlen = 18.

wa_catlog-fieldname = 'matnr'.

append wa_catlog to i_catlog.

clear wa_catlog.

wa_catlog-seltext_l = 'plantl'.

wa_catlog-datatype = 'char'.

wa_catlog-outputlen = 4.

wa_catlog-fieldname = 'werks'.

append wa_catlog to i_catlog.

clear wa_catlog.

similarly what sequence you give here i.e. material , plant etc. you get the output in the same oder you can even give only the fields you want in the output.

rewards points if useful.

siri

0 Kudos

its resolved