09-12-2005 7:43 AM
Hi all,
In ABAP programming editor, the length of a line is limitted. So if a variable is too long to show in one line the variable will be separated into more than one line. Then we'll not pass through the syntax check. My question is how to deal with this situation. Thank you!
09-12-2005 7:47 AM
Hi Zhang,
What version of SAP are you on? If you are on 4.6 or higher, use transaction SE80 to write your code. When in SE80, hit the following menu path: Utilities->Settings.
Then click onthe "ABAP Editor" Tab, then the "Editor" sub tab. Now make sure you select the Front End Editor. This should change your ABAP editor to have the same lookand feel of a MS Word document. Hopefully when you are in this mode, you willbe able to compile your code.
Otherwise let us know.
Cheers,
Pat.
PS. Kindly assign Reward Points to the posts you find helpful.
09-13-2005 3:38 AM
Hi Patrick,
I think you didn't get my meaning. I've done as you decribed but this isn't the problem. What's more, thank you!
09-13-2005 3:54 AM
y dont u try like this...
declare some
x like root_structure-child_structure.
y like x-structure_information
etc
can u plz try like this
regards
gv
09-14-2005 3:19 AM
Hi Venkat,
I thought about this way. I just want to know if there's some better way to resolve this in ABAP language.
Thank you!
09-14-2005 3:35 AM
09-12-2005 7:49 AM
Hi,
If you want to assign a long text, more than 70 characters, to a char variable, then you can use CONCATENATE stmt.
concatenate
'70 chars'
'70 chars'
into field.
Svetlin
09-13-2005 3:35 AM
Hi Rusev,
In fact, I'm not going to CONCATENATE a list of objects but there is such a long variable name that can't be fitted into one line. This situation may arise when the depth of a structure is too deep, which may look like root_structure-child_structure-structure_information....
What's more, thanks for your attention!
09-13-2005 4:47 AM
09-14-2005 3:57 AM
hi, you can achieve it like this, very simple.
data: str(1000) type c value
'1111111111' &
'2222222222' &
'3333333333'.
thanks
10-18-2005 6:01 AM