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: 

Layout fields

Former Member
0 Kudos

Hello,

I know <b>ALV</b> layout name , report name.

Can i get the fields in the output for the layout?

Rgds,

O

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos

Hi,

from this FM you may get some info

<b>REUSE_ALV_LIST_LAYOUT_INFO_GET.</b>

try this..

regards

vijay

Former Member
0 Kudos

Hi,

I hope you are talking about Layout set and print program. You can check the field output in the Layout set by going to SE71, display the layoutset and goto the menu path : <b>Utilities-> Form Info</b>. it will display the complete form Info. You can find the details of the fields used under the Text element for Windows.

Hope this helps.

Former Member
0 Kudos

hi ,

you can use the following logic to print the selection fields on the output layout.

*Internal table to store selection variables

data : begin of i_varinfo occurs 20,

flag type c ,

olength type x ,

line like raldb-infoline.

data : end of i_varinfo .

  • Call Function to Display Selections.

call function 'PRINT_SELECTIONS'

exporting

mode = ' '

rname = sy-cprog

rvariante = sy-slset

tables

infotab = i_varinfo.

loop at i_varinfo.

  • Write each selection variable

write: / i_varinfo+2.

delete i_varinfo.

endloop.

i think this will sortout your issue.

Thanks,

Aditya

0 Kudos

0 Kudos

What exactly are you looking for here, can you give more of an explanation? Is it that you want the fieldcatalog, sort order, etc. for a given layout variant for a given program, not necessarily, the same program?

Regards,

Rich Heilman

0 Kudos

1. I am downloading a ALV output to Tab delimted fiel on to my application server, in background.

Since ,i have the data in my internal table is use open data set and tarnsfer data on my server.

Now topic is if the layout keeps changing(say user have 3 layouts and he can give the layout name in the selction screen) downloaded fiel should also have the same data

(i mean order of fields (out of 10 fields, he will choose only 5 of them ).

My idea is to get the fields of a layout variant (since i know it at selection screen level ) and make dynamic internal tables and fill teh onyl the relavent data and download it.

1. I want to know if i know a LAYOUT Variant name of a report can i get the fields of the layout .

Rgds,

O

0 Kudos

you can use FM

LT_DBDATA_READ_FROM_LTDX

to get the details.

Regards

Raja