CL_HR99S00_TEXT4SPLIT - Text Class for line split
CL_GUI_FRONTEND_SERVICES - Frontend Services rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
Purpose:
The purpose of this class is to introduce an easy way of adjusting a text to a given column width.
How it works:
The class exchanges data with the outside world via the public attribute LINE (max 200 characters).The text to be processed has to be introduced sequencially from the LINE into a private CONTAINER (ofunlimited size) by meas of the method FILL_CONTAINER. After the container is filled with text, the methodget_line will fill the LINE attribute with a maximum number of characters defined by the attribute line_width. The text will be splitted only at blanks.
An important point is that after transfering the data from the CONTAINER to the LINE, the data is removed from the CONTAINER.
The user has as well the possibility of "forcing" a certain number of actions. By introducing '\n' itis possible to force a line break. The sequence '\s' separates two words which cannot be splitted. These parameters are defined as constants so that they could be as well used by the outside world.
Attributes:
NEW_LINE : marks a new line (public constant)
FIXED_SPACE: marks a blank which cannot be splitted (public constant)
TITLE: optionally used for identifying a text (public attribute)
IS_EMPTY: 'Y' of container is empty, 'N' if not empty (public attribute)
LINE_COUNTER: attribute which contains the number of lines in CONTAINER (private attribute)
LINE_WIDTH: defines the line width (public attribute)
LINE: line for input/output (200 chars max) (public attribute)
CONTAINER: private attribute used for stroring text (unlimited).
Methods:
GET_LINE: gets one line with width line_width from container.
FILL_CONTAINER: fills container with the content of line.
Tips:
By doing a FILL_CONTAINER immediately after a GET_LINE, the container will be re-filled with the output data.
Vendor Master (General Section) SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 1936 Date: 20120526 Time: 160139 triton ( 93 ms )






