‎2007 Feb 05 9:47 AM
Hi all,
I am working on upgrade from 4.6c to ECC 6.0
I have found one syntax error in ECC..
DATA: CHAR132(132) TYPE C VALUE '----
-
-
'.
<b>Literals that take up more than one line not permitted in above statement.</b>
How can I rectify this.
Thanks
Shiva.
‎2007 Feb 05 9:52 AM
Hi,
Use concatenate statement.
DATA: CHAR132(132) TYPE C.
concatenate '----
'
'----
'
'----
'
into char132.
write char132.
‎2007 Feb 05 9:49 AM
YES YOU CANNOT BREAK THE QUOTATION MARKS
DATA: CHAR132(132) TYPE C VALUE
' -
'.
REGARDS
SHIBA DUTTA
‎2007 Feb 05 9:50 AM
ur literal value should not exceed one line.
DATA: CHAR132(132) TYPE C VALUE '123456789087543222222<b> ' .</b>
end the declaration in one line.
If u want to give long value use string data type.
‎2007 Feb 05 9:52 AM
Hi,
Use concatenate statement.
DATA: CHAR132(132) TYPE C.
concatenate '----
'
'----
'
'----
'
into char132.
write char132.
‎2007 Feb 05 9:53 AM
declare data : char132(132) type c value '-'.
because you cannot have spaces in between ''.
regds,
kiran
‎2007 Feb 05 9:56 AM
Hi Shiva,
I dont this this is a error message its just a warning.you should not worry about the warning messages go ahead and execuate the program.i think this should work.
Thanks
Vikranth Khimavath
‎2007 Feb 05 9:57 AM
Hi,
This is not permitted.
So u can declare two more char type and concatenate teh same into one char type.
Else use text-elements and concatenate teh same.
DATA: CHAR132(132) TYPE C
text-001 - '----------------------------------------'
text-002 - '-----------------------------------------'
Concatenate text-001 text-002 INTO char132.Reward points and close teh thread if ur problem got solved.