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: 

Hard code header lines in report?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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.