2007 Jan 11 2:50 PM
Hi all,
for a few weeks, I am working with the new frontend editor now. It is great - however, there is a thing I don't understand using the paste function. Let's make an example:
i put the following lines into clipboard by highlighting the entire lines and pressing CTRL+C
select * from ztmk
where kunnr in s_kunnr.
after pasting (CTRL+C) it shows up like this:
select * from ztmk
where kunnr in s_kunnr.
Is it a bug or a feature?
Jörg Krause, GEZE GmbH, Germany
2007 Jan 12 3:06 PM
Hi Joerg,
I assume you are trying to paste this piece of code right after the 1st SELECT statement (the one you copied)?
In this case the reason for the formatting might be that this 1st SELECT statement is not complete (ENDSELECT is missing) and the auto format feature might consider it as something inside the SELECT construct.
Add ENDSELECT and try again...
Hope this helps.
Guenther
2007 Jan 15 6:54 AM
Hello Guenther,
I'm afraid that's not the point. I could even paste the clipboard into an empty source and get the same result. Nevertheless thanks for answering!
Joerg
2007 Jan 12 3:43 PM
2007 Jan 15 7:00 AM
Hi Rich,
sorry, I actually upgraded my GUI to 23, but the problem is not solved. Look at this code:
SELECT * FROM ztmk INTO TABLE lt_ztmk
WHERE messe IN s_messe AND
kunnr_berater IN s_kunnr AND
status IN s_statu AND
ersda IN s_ersda AND
NOT namecpl = space AND
country IN s_count AND
kontaktid IN s_kntid AND
lvorm in s_lvorm.
SELECT * FROM ztmk INTO TABLE lt_ztmk
WHERE messe IN s_messe AND
kunnr_berater IN s_kunnr AND
status IN s_statu AND
ersda IN s_ersda AND
NOT namecpl = space AND
COUNTRY IN s_count AND
kontaktid IN s_kntid AND
lvorm IN s_lvorm.
the lower select-statement has been pasted from the upper one
Thanks for answering!
Jörg
2007 Jan 15 7:37 AM
Hello all,
the problem is solved. It depends on the "Format after every paste" setting in section "Formatting" of the editor options.
But I must say that this option is rather useless if it's not capable to deal with multiline statments...
Regards
Joerg
2007 Jan 15 7:37 AM
2007 Jan 15 8:15 AM
... BTW, is there any COMPLETE documentation of the new editor. I don't use the mouse too much because the keyboard (if you know the keys) is faster. Just one example where I do not understand the behaviour of the new editor. Pressing CTRL-SHIFT-RIGHTARROW usually marks from cirsror until beginning of next word. I cursor is under a space, all spaces before the next character different from space are marked - in MS WORD, notepad, browser and NOT in the new editor. Here the marking includes the word folowing the spaces.
I hate those undocumented features far away from standardization especially if there is no documentation available.
Regards,
Clemens