Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
4/29/2017
Rahul Nayak
I wanted to use a general characteristic (CT04) for this, but my text is of more than 30
characters. The text is really a very long sentence and I am limited by the field length.
I can use standard texts, or any other possibility (except enhancing the material master), so
the solution is related to the characteristic). The requirement is that this text can be the
value of the characteristic, so then it can be inserted into a form.
Solution:
Unfortunately, standard SAP solution does not have the flexibility of incorporating large
texts in characteristics. The only solution available is usage of a SAP transaction SO10 and
enhancing the material master. This is a stable solution with less risks involved and
companies across the globe use the solution to manage large texts in a form.
In the Text Name field enter the name of the standard text which we are going to
1
Author: Rahul Nayak
create.
After entering the name as shown in the above screen press on the create button available.
Next screen appears as shown
below.
In the space provided we can enter the text which we needed and can save the standard
text as shown below.
2
Author: Rahul Nayak
Step2: Entering text in the Standard Text
Editor
We have various options for formatting the text which we will be discussed below. We will
not be able to see the preview in the same screen but we can see the preview in print
preview by selecting Text-> Print Preview option in the menu bar.
We also have a different text editor. Which we can use for entering and editing the text. But
the difference is that we will be able to see the alignment in the same screen where we
enter the text. To see the other editor we need to click GOTO -> Change Editor. Then we will
be able to see the actual output.
Now let us see the various formatting options which we can use.
.
Now we can see few examples for the various formatting options. The formatting options
3
Author: Rahul Nayak
are quite familiar to the user. Now let us see how the output will look like with the
formatting options.
Now we can see each of the formatting options with an example.
4
Author: Rahul Nayak
C Centered
Is used to align the paragraph to center. So in the preview we can see the paragraph will be
centre aligned.
L Paragraph Left Aligned
Is to align the paragraph to left.
We can specify the alignment as shown below.
5
Author: Rahul Nayak
= Extended Line
Is used when we need to extended the line. When we want the current line to be displayed
following the preceding line we can use this. This is similar to space formatting option but
if we give space the line will get appended to the previous line at the editing mode itself. But
if we need the line to be appended to the preceding line only at the output we can go for
this option.
( Raw line
We use this formatting option when we want to follow the same paragraph format as use
previously. i.e. when we need to adapt the same paragraph format of the previous
paragraph used we go for this option. When we use this option the next line will also be
append to the previous line.
We can specify the formatting as shown below.
6
Author: Rahul Nayak
It looks like this when we just enter the text but after we press enter or save button the
screen looks as shown below
.
The second line of second paragraph is appended to its previous line. (Which will be
indicated using a small symbol >at the end of the first line). Now the output will be as
shown
Once you define the standard text in SO10 you can include text by the above process or use
the function module read_text:
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id =
language =
name =
object =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = i_tab
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
7
Author: Rahul Nayak
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
So you want to know how get the parametrs right. This is how -In SO10 goto goto menu ->
header
here you will find all the required parametrs. The text lines will be returned in the i_tab.
you can loop at this itab and display the data.
8
Author: Rahul Nayak