Application Development and Automation 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: 
Read only

'under' in classical report

Former Member
0 Likes
582

Hi,

I'm developing a classical report and have following requirement,

My header contains following line

Order Type A B C D

Now in line details depending on order type i have to position the order quantity under any of the above 4 columns (i.e. under A or B or C or D)

i tried passing value 'D' to variable var1 and writing following statement,

write:/ qty under var1.

i was expecting that the abap would 'understand' that since var1 contains 'D' the quantity has to be printed under 'D' buit it didnt do so.

Can anyone suggest any alternate method (i dont want to specify the offset...is there any programmatic approach other than hard-coding)

Bye

Hi,

I'm developing a classical report and have following requirement,

My header contains following line

Order Type A B C D

Now in line details depending on order type i have to position the order quantity under any of the above 4 columns (i.e. under A or B or C or D)

i tried passing value 'D' to variable var1 and writing following statement,

write:/ qty under var1.

i was expecting that the abap would 'understand' that since var1 contains 'D' the quantity has to be printed under 'D' buit it didnt do so.

Can anyone suggest any alternate method (i dont want to specify the offset...is there any programmatic approach other than hard-coding)

Bye

3 REPLIES 3
Read only

Former Member
0 Likes
552

Please append all the data into an internal table and use write statement to write the fields of the table.

Please try using ABAP List Viewer (ALV) instead of the classical report. It will take care of the format.

Read only

Former Member
0 Likes
552

I think this would do the trick.


write:/ qty under 'var1'.

Read only

Former Member
0 Likes
552

hi,

use formatting techniques in classical report.

check this link

http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

thanks