Please refer to the following link for more information: http://blog.sina.com.cn/s/blog_537fde6301008ymp.html.Lin998!
Reference content:
**************************************** *************
In the SAP system, there are sometimes large sections of text that need to be saved, for example, sales and shipping.
(Vl03n)In the document overview, there is
[Text]Item, where can I enter the text description of the large section of the document?
The first response is to find the corresponding table fields, so you may be disappointed. In the SAP system, the maximum length of database fields that can be used is 255 characters (Note: This may be incorrect ), for a long text, it must not be saved directly to the field of a table (Note: You still need to ask where to save it ). Therefore, we need to use the system function read_text to read data. The following describes how to call this function:
Data: il_tline like tline occurs 0 with header line.
Vl_tdname like thead-tdname.
Call function 'read _ text'
Exporting
Client= Sy-mandt
ID= 'Z001'
Language= '1'
Name= Vl_tdname
Object= 'Vbbk'
*Archive_handle= 0
*Local_cat=''
*Importing
*Header=
Tables
Lines= Il_tline
Exceptions
ID= 1
Language= 2
Name= 3
Not_found= 4
Object= 5
Reference_check= 6
Wrong_access_to_archive= 7
Others= 8
.
If sy-subrc <> 0.
*Message ID SY-MSGID type SY-MSGTY number SY-MSGNO
*With SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Endif.
? /P>
? /P>
? /P> in the preceding sample code, the red font is the input and output parameters. The key to calling this function is how to find the content that each input parameter should fill in, next we will deliver the goods by sales/outward delivery(Vl03n)For example, this section describes how to query the corresponding parameters in the [planner Remarks] text.
1,Enter tcode: vl03n to display a credential
2,In[Overview]Of[Text]Enter the modification status, and enter the corresponding paragraph text,Double-clickText Content.
3,Go to the text content line editor page and click the menu[Go to] -->[Header]
4,See, the above four rows are the parameters to be entered, where:
Text name: '000000', ID number, corresponding to name parameter
Language: ZH, but here the parameter type is C (1), you cannot directly use the SY-LANGU variable, according to the system configuration, in my system using 1, corresponding language parameter,
MARK: z001, Which is configured by the SAP system and corresponds to the ID Parameter
Text object: vbbk, corresponding to object parameters
Compared with the read_text function, there is a save_text that is used to write text fields in the system. The specific user and read_text are basically similar.
**************************************** * ************ End of reference
This article clearly introduces all the content of the read_text () function, but I still encounter some special situations in the actual operation process. record it and provide a reference for later users!
I also chose delivery for testing !!
Figure 1
Figure 2
Figure 3. Double-click a blank area to enter.
Figure 4: In my development environment, the text editor uses the system text editor Office Word 2007, which is different from the above.
Figure 5
Figure 6