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: 

how to achieve dynamic headings using write statement

Former Member
0 Kudos

hi

i am developeing a classical report in which i need to get dynamic heading, means depending on value, i need to display some headings and some i have to skip.

i tried by using some integer and char type variable, but failed to achieve.

like

stval = 10.

write 😕 stval 'pavan'

where stval is a variable.

thanks in advance

regards,

pavan

4 REPLIES 4

Former Member
0 Kudos

Hi,

try like this.........

data num type char2 value '20'.

write : / num,'Hello'.

0 Kudos

hi jose,

thanks for u r quick response. but the lines given by you are printing

20 HELLO

if i removed , in the write statement, i am getting error message

stating 'Unable to interpret "'Hello'". Possible causes of error: Incorrect.spelling or comma error.

"

regards,

pavan

0 Kudos

how must it print ex??

Former Member
0 Kudos

Hi,

Take the dynamic changed value into one internal table, then write at last

Regs

Rams