2006 Feb 15 6:10 PM
Hello,
I know <b>ALV</b> layout name , report name.
Can i get the fields in the output for the layout?
Rgds,
O
2006 Feb 15 6:16 PM
Hi,
from this FM you may get some info
<b>REUSE_ALV_LIST_LAYOUT_INFO_GET.</b>
try this..
regards
vijay
2006 Feb 15 6:20 PM
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.
2006 Feb 15 6:20 PM
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
2006 Feb 15 6:25 PM
2006 Feb 15 6:37 PM
2006 Feb 15 6:43 PM
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
2006 Feb 19 1:13 PM
you can use FM
LT_DBDATA_READ_FROM_LTDX
to get the details.
Regards
Raja