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

how to achieve dynamic headings using write statement

Former Member
0 Likes
667

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
Read only

Former Member
0 Likes
598

Hi,

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

data num type char2 value '20'.

write : / num,'Hello'.

Read only

0 Likes
598

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

Read only

0 Likes
598

how must it print ex??

Read only

Former Member
0 Likes
598

Hi,

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

Regs

Rams