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

Error message

Former Member
0 Likes
1,027

Hi in my code its displaying an error message as "Literals that take up more than one line not permitted.".Please tell how to get rid of this error.

Code:

Data:Begin of gt_objtxt occurs 0,

gv_objtxt(10000),

end of gt_objtxt.

concatenate 'The invoice documents that belong to the vendor

were not processed as part of payrun as it had ABC number of line items

to be paid.Please note that in SAP maximum of 99999 line items alone

can be paid in a single document'.

into gt_objtxt separated by space.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
996

Hello,

Make a text element (text-001) and pass it to the required vaiable.

I one text element is unable to take the big line then you may have to split it to different text elements and then concatenate.

Regards,

Neelambari

11 REPLIES 11
Read only

Former Member
0 Likes
996

Hi,

Please Check The below Code,

Data:Begin of gt_objtxt occurs 0,

gv_objtxt(10000),

end of gt_objtxt.

concatenate 'The invoice documents that belong to the vendor'

'were not processed as part of payrun as it had ABC number of line items'

'to be paid Please note that in SAP maximum of 99999 line items alone'

'can be paid in a single document' into gt_objtxt separated by space.

Thanks

Kalyan.

Read only

Former Member
0 Likes
997

Hello,

Make a text element (text-001) and pass it to the required vaiable.

I one text element is unable to take the big line then you may have to split it to different text elements and then concatenate.

Regards,

Neelambari

Read only

Former Member
0 Likes
996

Hi,

Make use of single quotes after every line.

concatenate 'THE'

'jdsfh' into .... separated by space.

Edited by: Sreesudha Gullapalli on Feb 4, 2009 12:50 PM

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
996

Hi,

Always try not ot use hard coded values in your program.

Instead break your message into various text-symbols and the use then to concatenate into a single string.

So its better to break message text into various text-symbols and use:-


concatenate text-001 text-002 text-003 into gv_objtxt separated by space.

Hope this solves your problem.

Thanks & Regards,

Tarun Gambhir

Read only

Former Member
0 Likes
996

Do it like this..

concatenate ' The invoice documents that belong to the vendor '

' were not processed as part of payrun as it had ABC number of line items '

' to be paid.Please note that in SAP maximum of 99999 line items alone '

' can be paid in a single document '.

into gt_objtxt separated by space

Read only

former_member404244
Active Contributor
0 Likes
996

Hi,

Instead of giving the whole string try to break it with text elemnts and see

for example

concatenate text-001 text-002 text-003 text-004 into gt_objtxt separated by space.

now in text-001,002,003,004 u can fill ur text what u want to display..

Regards,

Nagaraj

Read only

Former Member
0 Likes
996

hi,

You can use Fm FORMAT_TEXTLINES . it is gud to format text

Regards

Mudit

Read only

Former Member
0 Likes
996

Hi Hema ,

I excecute your code.

The problem is one huge line that is spanning across many line in editor so it is considering only the opening Quotation (') so either close it Quotation(') at the end of each line .

So try it out by taking the line into a variable of type String and then Concatenate .

Much Regards!

Amuktha .

Read only

Former Member
0 Likes
996

Hi Hema,

Instead of using SINGLE QUOTES ' try using the quote symbol present on the key.. which is to the left side of numeral one ie ` on the keyboard.. I am talking about the key which is above TAB key and to the left of 1 key.

This can do wonders in certain cases...

Regards.

Read only

Former Member
0 Likes
996

Hi Hema,

You can Use splitted lines within single cote or you can write

concatenate text-001 text-002 text-003 ... into variable1 separated by space.

and the text-001 .... you can define the texts

Thanks,

Rajendra

Read only

agnihotro_sinha2
Active Contributor
0 Likes
996

hi,

Use text elements as suggested... it wud be better if you use & sign for text elements instaed of defining fixed lengths to it.