‎2009 Sep 14 3:37 PM
Hello All,
I am writting an abap report. The report is outputted into AL11. Two header lines are needed showing the fileds in the report, one in capitals and one not.
What would be the best way to do this?
Thanks,
Nick.
‎2009 Sep 14 3:52 PM
Hi Nick,
you decle you header a Text Variable and trasfer that text to the file name as follows.
open dataset .....
loop itab.
at fist.
transfer header-text to file name.
endat.
transfer itab to filename.
endloop.
close dataset......
Thanks,
Venkat
‎2009 Sep 14 3:52 PM
Hi Nick,
you decle you header a Text Variable and trasfer that text to the file name as follows.
open dataset .....
loop itab.
at fist.
transfer header-text to file name.
endat.
transfer itab to filename.
endloop.
close dataset......
Thanks,
Venkat
‎2009 Sep 14 4:12 PM
Hi Venkat,
thanks for you response.
The header line has about 150 fields, therefore it is to big to fit into one variable.
If i create 150 variables for each individual field seems a bit excessive as I would have to do that twice.
Any other ideas?
Thanks,
Nick.
‎2009 Sep 14 4:11 PM
While outputting the report into AL11 .....
move the headers into temp variables ...
Translate the headers into uppercase and transfer them.
TRANSLATE header TO UPPER CASE.
transfer header to file .
transfer temp_variables to file.