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

Extending a statement to second line

Former Member
0 Likes
467

Hi Guru's,

I'm facing this error when i'm writing this routine in BW.

error: :Literals that take up more than one line are not permitted

I wanna extend my statement to second line .How can i do this.

Regards,

Vijay.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
424

Seems like your literal is really long. You would need to do something like this using the & sign.

v_value = 'adfa;skdfja;soidfjpoweirpqoiwfjpaoisfrpoiqwueproiquwepfio' &
              'apowierpoaisdfpaoisdpqweiorupoijxiocvpsioxuvpiouxpciov'.

Regards,

Rich Heilman

Hi Guru's,

I'm facing this error when i'm writing this routine in BW.

error: :Literals that take up more than one line are not permitted

I wanna extend my statement to second line .How can i do this.

Regards,

Vijay.

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
425

Seems like your literal is really long. You would need to do something like this using the & sign.

v_value = 'adfa;skdfja;soidfjpoweirpqoiwfjpaoisfrpoiqwueproiquwepfio' &
              'apowierpoaisdfpaoisdpqweiorupoijxiocvpsioxuvpiouxpciov'.

Regards,

Rich Heilman

Read only

ThomasZloch
Active Contributor
0 Likes
424

You can extend statements across several lines, but not literals (text included in '...'). I think the old 72 character limitation is passé, can't you just write your literal in one line?

Thomas