‎2009 Feb 04 11:42 AM
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.
‎2009 Feb 04 11:46 AM
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
‎2009 Feb 04 11:45 AM
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.
‎2009 Feb 04 11:46 AM
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
‎2009 Feb 04 11:46 AM
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
‎2009 Feb 04 11:46 AM
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
‎2009 Feb 04 11:47 AM
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
‎2009 Feb 04 11:48 AM
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
‎2009 Feb 04 11:50 AM
hi,
You can use Fm FORMAT_TEXTLINES . it is gud to format text
Regards
Mudit
‎2009 Feb 04 11:52 AM
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 .
‎2009 Feb 04 11:54 AM
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.
‎2009 Feb 05 7:30 AM
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
‎2009 Feb 05 7:38 AM
hi,
Use text elements as suggested... it wud be better if you use & sign for text elements instaed of defining fixed lengths to it.