SAP ABAP Class CL_WB_ABAP_SOURCE_FORMAT (Source Format for ABAP Code)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DWB-TOO-ABA (Application Component) ABAP Editor
⤷
SABP_UTIL (Package) Workbench: Utilities for ABAP sources
⤷
⤷
Properties
| Class | CL_WB_ABAP_SOURCE_FORMAT | |
| Short Description | Source Format for ABAP Code | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SABP_UTIL | Workbench: Utilities for ABAP sources |
| Created | 20000628 | SAP |
| Last change | 00000000 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_WB_ABAP_SOURCE_FORMAT has no interface implemented.
Friends
Class CL_WB_ABAP_SOURCE_FORMAT has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | SYCHAR02 | '*"' | Character that Introduces a Type of Comment | 20000704 | ||
| 2 | Constant | Public | Type reference (TYPE) | SYCHAR03 | ',.:' | Terminator Character for Statement | 20001025 | ||
| 3 | Instance attribute | Public | Type reference (TYPE) | I | SWBSE_C_NORM_LINE_WIDTH | Split Width of Source | 20001020 | ||
| 4 | Instance attribute | Private | Type reference (TYPE) | SCRPFLAG | ' ' | SCAN Error | 20001208 | ||
| 5 | Instance attribute | Private | Type reference (TYPE) | SCRPFLAG | ' ' | Status: SCAN_TAB Filled | 20000711 | ||
| 6 | Instance attribute | Private | Type reference (TYPE) | SCAN_CNTX | SCAN: Results | 20000707 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | RSWSOURCET | ABAP Source | 20000706 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | I | 1 | Current Index in SOURCE | 20000706 | ||
| 9 | Instance attribute | Private | Type reference (TYPE) | SWBSE_MAX_LINE | ABAP Source Line | 20000706 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | I | 1 | Index in the TOKEN Table (Sorted by ROW, COL) | 20001027 | ||
| 11 | Instance attribute | Private | Type reference (TYPE) | TOKEN_POS | Sorted Item Table for Tokens | 20010606 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | I | 0 | Length of Longest Line | 20001221 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Raise LOOP-FROM constraint TOKEN_LINE to SCAN_TAB-TOKEN | 20010111 | |
| 2 | Instance method | Public | Constructor | Constructor: Fill SOURCE | 20000706 | |
| 3 | Instance method | Public | Method | Convert source lines to LINE_WIDTH | 20001020 | |
| 4 | Instance method | Private | Method | Convert a source line to LINE_WIDTH | 20001020 | |
| 5 | Instance method | Private | Method | In SOURCE_LINE[FROM..TO], Finds Split Position for 1st Line | 20001211 | |
| 6 | Instance method | Private | Method | In SOURCE_LINE[FROM..TO], Finds Rightmost SEP | 20001026 | |
| 7 | Instance method | Private | Method | In SOURCE_LINE[FROM..TO], Finds Split Position for 1st Line | 20001025 | |
| 8 | Instance method | Private | Method | Determines the Prefix Before First Significant Character | 20000704 | |
| 9 | Instance method | Private | Method | Tests Whether SOURCE_LINE+FROM Contains a ' " ' Comment | 20000714 | |
| 10 | Instance method | Public | Method | Does the ABAP Source Contains Lines that Must Be Split? | 20001020 | |
| 11 | Instance method | Private | Method | Tests Whether SOURCE_LINE+FROM Is Contained in Literal | 20000713 | |
| 12 | Instance method | Public | Method | Determines Length of Longest Line in ABAP Source | 20001221 | |
| 13 | Instance method | Private | Method | Operation CA (Contains any), but Searching from End | 20000704 | |
| 14 | Instance method | Private | Method | SCAN Source (Gets TOKEN_TAB) | 20000707 | |
| 15 | Static method | Public | Method | CHAR72 Format: Split Literals Spanning Several Lines | 20000628 | |
| 16 | Instance method | Public | Method | Truncate Source Lines to LINE_WIDTH Without Conversion | 20001020 |
Events
Class CL_WB_ABAP_SOURCE_FORMAT has no event.
Types
Class CL_WB_ABAP_SOURCE_FORMAT has no local type.
Method Signatures
Method ADAPT_TOKEN_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | P_LINE | Value transfer | Type reference (TYPE) | I | Zeilennummer Quellzeile | 20010111 |
Method ADAPT_TOKEN_LINE on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LINE_WIDTH | Call by reference | Type reference (TYPE) | I | SWBSE_C_NORM_LINE_WIDTH | Umbruchbreite der ABAP Source | 20001020 | ||
| 2 | PROGNAME | Call by reference | Type reference (TYPE) | PROGNAME | Programmname (falls SOURCE initial ) | 20000706 | |||
| 3 | SOURCE | Call by reference | Type reference (TYPE) | RSWSOURCET | ABAP Source | 20000706 | |||
| 4 | STATE | Call by reference | Type reference (TYPE) | PROGDIR-STATE | 'A' | Programmstatus (falls SOURCE initial) | 20000706 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Umbruchbreite zu klein oder zu groß | 20001204 | ||
| 2 | Source zum angegebenen Programm konnte nicht gelesen werden | 20000706 |
Method CONVERT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CONVERT_DESPITE_ALL_ERRORS | Call by reference | Type reference (TYPE) | C | SPACE | 'X'-> 1.TRUNCATE und 2.Teilen an SPACE (bei SCAN-Fehler) | 20001211 | ||
| 2 | LINES_TRUNCATED | Value transfer | Type reference (TYPE) | I | Anzahl abgeschnittener Zeilen | 20001110 | |||
| 3 | TARGET_SOURCE | Value transfer | Type reference (TYPE) | SWBSE_MAX_LINE_TAB | ABAP Source im max. Zeilenformat | 20001020 | |||
| 4 | TRUNCATE_SINGLE_LINES | Value transfer | Type reference (TYPE) | C | SPACE | 'X' -> nicht teilbare Zeilen abschneiden (Kennzeichnung !!!) | 20001110 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Nicht konvertierbar: Token länger als Umbruchbreite | 20001020 | ||
| 2 | Nicht konvertierbar: Schwerer Syntaxfehler (SCAN unmöglich) | 20001208 |
Method CONVERT_SINGLE_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SOURCE_INDEX | Value transfer | Type reference (TYPE) | I | Index der ABAP-Source-Zeile | 20001020 | |||
| 2 | TARGET_SOURCE | Value transfer | Type reference (TYPE) | SWBSE_MAX_LINE_TAB | ABAP Source im max. Zeilenformat | 20001020 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Nicht konvertierbar: Token länger als 72 Zeichen | 20001020 |
Method FIND_SPLIT_POSITION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Value transfer | Type reference (TYPE) | I | 0 | FROM-Offset in SOURCE_LINE+FROM(LEN) | 20001211 | ||
| 2 | LEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | LEN-Wert in SOURCE_LINE+FROM(LEN) | 20001211 | ||
| 3 | MAXLEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | max. Suchen bis SOURCE_LINE+FROM(MAXLEN) | 20001211 | ||
| 4 | NEXTFROM | Call by reference | Type reference (TYPE) | I | Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM | 20001211 | |||
| 5 | SPLIT_LEN | Call by reference | Type reference (TYPE) | I | Länge des Split-Anteils SOURCE_LINE+FROM(SPLIT_LEN) | 20001211 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Splitten nicht möglich; keine Teilungsstelle gefunden | 20001211 |
Method FIND_SPLIT_POSITION_AT_SEP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Value transfer | Type reference (TYPE) | I | FROM-Offset in SOURCE_LINE+FROM(LEN) | 20001026 | |||
| 2 | LEN | Value transfer | Type reference (TYPE) | I | LEN-Wert in SOURCE_LINE+FROM(LEN) | 20001026 | |||
| 3 | MAXLEN | Value transfer | Type reference (TYPE) | I | max. Suchen bis SOURCE_LINE+FROM(MAXLEN) | 20001026 | |||
| 4 | NEXTFROM | Call by reference | Type reference (TYPE) | I | Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM | 20001026 | |||
| 5 | SEPARATOR | Value transfer | Type reference (TYPE) | C | ' ' | Splitten vor d. Zeichen; nicht auf nächste Zeile mitnehmen | 20001026 | ||
| 6 | SPLIT_LEN | Call by reference | Type reference (TYPE) | I | Länge des Split-Anteils SOURCE_LINE+FROM(SPLIT_LEN) | 20001026 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Splitten nicht möglich; keine Teilungsstelle gefunden | 20001026 |
Method FIND_SPLIT_POSITION_SCAN Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Value transfer | Type reference (TYPE) | I | 0 | FROM-Offset in SOURCE_LINE+FROM(LEN) | 20001025 | ||
| 2 | LEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | LEN-Wert in SOURCE_LINE+FROM(LEN) | 20001025 | ||
| 3 | MAXLEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | max. Suchen bis SOURCE_LINE+FROM(MAXLEN) | 20001025 | ||
| 4 | NEXTFROM | Call by reference | Type reference (TYPE) | I | Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM | 20001025 | |||
| 5 | SPLIT_LEN | Call by reference | Type reference (TYPE) | I | Länge des Split-Anteils SOURCE_LINE+FROM(SPLIT_LEN) | 20001025 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Splitten nicht möglich; keine Teilungsstelle gefunden | 20001025 |
Method ISOLATE_PREFIX Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_COMMENT | Call by reference | Type reference (TYPE) | SCRPFLAG | SOURCE_LINE beginnt mit einem Kommentarzeichen | 20000704 | |||
| 2 | LEN | Value transfer | Type reference (TYPE) | I | Länge LEN in SOURCE_LINE(LEN) | 20000704 | |||
| 3 | PREFIX_LEN | Call by reference | Type reference (TYPE) | I | Länge von PREFIX_TEXT | 20000704 | |||
| 4 | PREFIX_TEXT | Call by reference | Type reference (TYPE) | SWBSE_MAX_LINE | Präfix vor dem ersten signif. Zeichen | 20000704 |
Method ISOLATE_PREFIX on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method IS_COMMENT_IN_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Value transfer | Type reference (TYPE) | I | 0 | Suche ab SOURCE_LINE+FROM | 20000714 | ||
| 2 | IS_COMMENT_IN_LINE | Call by reference | Type reference (TYPE) | SCRPFLAG | 'X', falls Kommentar in der Zeile | 20000714 | |||
| 3 | LENGTH | Call by reference | Type reference (TYPE) | I | erster Kommentar: Länge | 20000714 | |||
| 4 | OFFSET | Call by reference | Type reference (TYPE) | I | erster Kommentar: Offset | 20000714 |
Method IS_COMMENT_IN_LINE on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method IS_CONTAINING_TOO_LONG_LINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_LONG | Call by reference | Type reference (TYPE) | SCRPFLAG | Ja('X')/Nein-Wert | 20001020 |
Method IS_CONTAINING_TOO_LONG_LINES on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method IS_LITERAL_IN_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FROM | Value transfer | Type reference (TYPE) | I | 0 | Suche ab SOURCE_LINE+FROM | 20000713 | ||
| 2 | IS_LITERAL_IN_LINE | Call by reference | Type reference (TYPE) | SCRPFLAG | 'X', falls Literal in der Zeile | 20000713 | |||
| 3 | LEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | LEN-Wert in SOURCE_LINE+FROM(LEN) | 20001026 | ||
| 4 | LENGTH | Call by reference | Type reference (TYPE) | I | erstes Literal: Länge | 20000713 | |||
| 5 | MAXLEN | Value transfer | Type reference (TYPE) | I | SWBSE_C_MAX_LINE_WIDTH | max. Suchen bis SOURCE_LINE+FROM(MAXLEN) | 20001026 | ||
| 6 | OFFSET | Call by reference | Type reference (TYPE) | I | erstes Literal: Offset | 20000713 |
Method IS_LITERAL_IN_LINE on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method LENGTH_OF_LONGEST_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | LENGTH | Call by reference | Type reference (TYPE) | I | Länge der längsten Zeile | 20001221 |
Method LENGTH_OF_LONGEST_LINE on class CL_WB_ABAP_SOURCE_FORMAT has no exception.
Method OPERATION_CA_DESCENDING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CHARS | Value transfer | Type reference (TYPE) | C | ' ' | zu suchende Zeichen | 20000704 | ||
| 2 | FROM | Value transfer | Type reference (TYPE) | I | FROM-Offset in SOURCE_LINE | 20000704 | |||
| 3 | IN_COMMENTS_TOO | Value transfer | Type reference (TYPE) | C | ' ' | sucht auch in Kommentaren | 20000817 | ||
| 4 | OFFSET | Call by reference | Type reference (TYPE) | I | Offset des gefundenen Zeichens in TEXT[FROM..TO] | 20000704 | |||
| 5 | TO | Value transfer | Type reference (TYPE) | I | TO-Offset in SOURCE_LINE | 20000704 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Kein Zeichen aus CHARS in TEXT[FROM..TO] gefunden | 20000704 |
Method SCAN Signature
Method SCAN on class CL_WB_ABAP_SOURCE_FORMAT has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | SCAN erkennt schweren Fehler (Überlauf; Literal ohne Ende) | 20001208 |
Method SPLIT_LINE_EXTENDING_LITERALS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | SOURCE72 | Call by reference | Type reference (TYPE) | SWBSE_NORM_LINE_TAB | Source Format 72 | 20000703 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Abbruch (Syntaxfehler; SLIN-Fehler) | 20000628 |
Method TRUNCATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DATA_LOST | Call by reference | Type reference (TYPE) | C | Datenverlust bei erzwungenem Einkürzen | 20001020 | |||
| 2 | FORCE_TRUNCATE | Value transfer | Type reference (TYPE) | C | ' ' | Einkürzen selbst bei Datenverlust | 20001020 | ||
| 3 | TARGET_SOURCE | Value transfer | Type reference (TYPE) | SWBSE_MAX_LINE_TAB | ABAP Source im max. Zielformat | 20001020 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Datenverlust: Coding reicht über Umbruchgrenze hinaus | 20001020 |
History
| Last changed by/on | SAP | 00000000 |
| SAP Release Created in | 50A |