02-26-2020 2:52 PM
i am using this fm SAVE_TEXT to write the texts in tcode va03,
how do I write the texts "below" to the other texts (as if from a "send" and wrap)
for example:
text already present: 'AAAA'
text to put in the queue: 'BBBB'
I want the text to be inserted like this:
'AAAA'
'BBBB'
and not like this: 'AAAA BBBB'
(to read the old text I use the read_text fm)
02-26-2020 3:09 PM
02-26-2020 3:11 PM
If I understood correctly your question, it's about filling SAVE_TEXT LINES parameter to either save the texts as one line or as separate lines.
Here are the screen shots with LINES content SAVE_TEXT test environment.
To save texts in seperate lines i.e. as:
AAAA
BBBB
To save texts in one linee i.e. as:
AAAA BBBB
Refer also to the documentation of TDFORMAT field in LINES import parameter of SAVE_TEXT.
Dominik Tylczynski
02-26-2020 3:52 PM
The list of predefined paragraph formats (* , = and so on) are explained here: SAP Library: Structure TLINE of the Lines Table
02-26-2020 3:58 PM
to write the text below the previous one, do I have to put the '=' sign in the tdformat field?
02-26-2020 5:28 PM
Yes, that’s what you need to put according to the field documentation.
02-27-2020 7:40 AM
nick reyan The documentation says:
This line is not subject to the line formatting in the SAPscript editor. The text contained in this line is also appended directly to the character of the preceding text line which was output last. If this is not required, there must be at least one blank at the beginning of the extended line.
02-26-2020 3:16 PM
Hello Nick,
At first, you have to use READ_TEXT for read the actual text in VA03.
The internal table (LINES type TLINE) only contains 'AAAA'
Then you fill the WA of your itab with the new text 'BBBB'.
You insert your WA into Itab : insert wa into itab.
Then you have :
Line 1 : 'AAAA'
Line 2 : 'BBBB'
And now you can save the text with SAVE_TEXT
Cedric
02-26-2020 3:56 PM
02-26-2020 3:25 PM
puoi fare un esempio di una riga di codice?
can you make an example of a line of code?
where should I put "td /"? if in the previous string I have the value 'AAAA' I add '/' and then 'BBBB' should you write them all over again?
02-26-2020 4:17 PM
02-27-2020 6:23 AM
These are teh possible formatting parameters for TDFORMAT. You are probably wanting to do * or /.
You could also view your text and change the editor from "WYSIWYG" (eg Word) to the SAPscript editor and see how it is stored there (see below screenshot for an example).
02-27-2020 7:42 AM
SAP Library: Structure TLINE of the Lines Table says:
The format definitions which are specified for the paragraph defined in the assigned style or form as the default paragraph are used for the output formatting of the paragraph involved.
The subsequent text is written to a new line during output formatting. The formatting specifications of the last paragraph format apply.
05-13-2020 2:32 PM
nick.reyan, please follow up on your open question.