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 SCAN Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 SWBSE 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 C_COMMENT_START Constant Public Type reference (TYPE) SYCHAR02 '*"' Character that Introduces a Type of Comment 20000704
2 C_TERMINATOR Constant Public Type reference (TYPE) SYCHAR03 ',.:' Terminator Character for Statement 20001025
3 LINE_WIDTH Instance attribute Public Type reference (TYPE) I SWBSE_C_NORM_LINE_WIDTH Split Width of Source 20001020
4 NOT_SCANABLE Instance attribute Private Type reference (TYPE) SCRPFLAG ' ' SCAN Error 20001208
5 SCANNED Instance attribute Private Type reference (TYPE) SCRPFLAG ' ' Status: SCAN_TAB Filled 20000711
6 SCAN_TAB Instance attribute Private Type reference (TYPE) SCAN_CNTX SCAN: Results 20000707
7 SOURCE Instance attribute Private Type reference (TYPE) RSWSOURCET ABAP Source 20000706
8 SOURCE_INDEX Instance attribute Private Type reference (TYPE) I 1 Current Index in SOURCE 20000706
9 SOURCE_LINE Instance attribute Private Type reference (TYPE) SWBSE_MAX_LINE ABAP Source Line 20000706
10 TOKEN_INDEX Instance attribute Private Type reference (TYPE) I 1 Index in the TOKEN Table (Sorted by ROW, COL) 20001027
11 TOKEN_POS_TAB Instance attribute Private Type reference (TYPE) TOKEN_POS Sorted Item Table for Tokens 20010606
12 WIDTH_OF_LONGEST_LINE Instance attribute Private Type reference (TYPE) I 0 Length of Longest Line 20001221
Methods
# Method Level Visibility Method type Description Created on
1 ADAPT_TOKEN_LINE Instance method Private Method Raise LOOP-FROM constraint TOKEN_LINE to SCAN_TAB-TOKEN 20010111
2 CONSTRUCTOR Instance method Public Constructor Constructor: Fill SOURCE 20000706
3 CONVERT Instance method Public Method Convert source lines to LINE_WIDTH 20001020
4 CONVERT_SINGLE_LINE Instance method Private Method Convert a source line to LINE_WIDTH 20001020
5 FIND_SPLIT_POSITION Instance method Private Method In SOURCE_LINE[FROM..TO], Finds Split Position for 1st Line 20001211
6 FIND_SPLIT_POSITION_AT_SEP Instance method Private Method In SOURCE_LINE[FROM..TO], Finds Rightmost SEP 20001026
7 FIND_SPLIT_POSITION_SCAN Instance method Private Method In SOURCE_LINE[FROM..TO], Finds Split Position for 1st Line 20001025
8 ISOLATE_PREFIX Instance method Private Method Determines the Prefix Before First Significant Character 20000704
9 IS_COMMENT_IN_LINE Instance method Private Method Tests Whether SOURCE_LINE+FROM Contains a ' " ' Comment 20000714
10 IS_CONTAINING_TOO_LONG_LINES Instance method Public Method Does the ABAP Source Contains Lines that Must Be Split? 20001020
11 IS_LITERAL_IN_LINE Instance method Private Method Tests Whether SOURCE_LINE+FROM Is Contained in Literal 20000713
12 LENGTH_OF_LONGEST_LINE Instance method Public Method Determines Length of Longest Line in ABAP Source 20001221
13 OPERATION_CA_DESCENDING Instance method Private Method Operation CA (Contains any), but Searching from End 20000704
14 SCAN Instance method Private Method SCAN Source (Gets TOKEN_TAB) 20000707
15 SPLIT_LINE_EXTENDING_LITERALS Static method Public Method CHAR72 Format: Split Literals Spanning Several Lines 20000628
16 TRUNCATE 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 Importing 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 Importing LINE_WIDTH Call by reference Type reference (TYPE) I SWBSE_C_NORM_LINE_WIDTH Umbruchbreite der ABAP Source 20001020
2 Importing PROGNAME Call by reference Type reference (TYPE) PROGNAME Programmname (falls SOURCE initial ) 20000706
3 Importing SOURCE Call by reference Type reference (TYPE) RSWSOURCET ABAP Source 20000706
4 Importing STATE Call by reference Type reference (TYPE) PROGDIR-STATE 'A' Programmstatus (falls SOURCE initial) 20000706
# Exception Resumable Description Created on
1 ILLEGAL_LINE_WIDTH Umbruchbreite zu klein oder zu groß 20001204
2 NOT_EXISTS 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 Importing 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 Exporting LINES_TRUNCATED Value transfer Type reference (TYPE) I Anzahl abgeschnittener Zeilen 20001110
3 Exporting TARGET_SOURCE Value transfer Type reference (TYPE) SWBSE_MAX_LINE_TAB ABAP Source im max. Zeilenformat 20001020
4 Importing TRUNCATE_SINGLE_LINES Value transfer Type reference (TYPE) C SPACE 'X' -> nicht teilbare Zeilen abschneiden (Kennzeichnung !!!) 20001110
# Exception Resumable Description Created on
1 NOT_CONVERTABLE Nicht konvertierbar: Token länger als Umbruchbreite 20001020
2 NOT_SCANABLE 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 Importing SOURCE_INDEX Value transfer Type reference (TYPE) I Index der ABAP-Source-Zeile 20001020
2 Exporting TARGET_SOURCE Value transfer Type reference (TYPE) SWBSE_MAX_LINE_TAB ABAP Source im max. Zeilenformat 20001020
# Exception Resumable Description Created on
1 NOT_CONVERTABLE 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 Importing FROM Value transfer Type reference (TYPE) I 0 FROM-Offset in SOURCE_LINE+FROM(LEN) 20001211
2 Importing LEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH LEN-Wert in SOURCE_LINE+FROM(LEN) 20001211
3 Importing MAXLEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH max. Suchen bis SOURCE_LINE+FROM(MAXLEN) 20001211
4 Exporting NEXTFROM Call by reference Type reference (TYPE) I Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM 20001211
5 Exporting 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 NOT_POSSIBLE 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 Importing FROM Value transfer Type reference (TYPE) I FROM-Offset in SOURCE_LINE+FROM(LEN) 20001026
2 Importing LEN Value transfer Type reference (TYPE) I LEN-Wert in SOURCE_LINE+FROM(LEN) 20001026
3 Importing MAXLEN Value transfer Type reference (TYPE) I max. Suchen bis SOURCE_LINE+FROM(MAXLEN) 20001026
4 Exporting NEXTFROM Call by reference Type reference (TYPE) I Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM 20001026
5 Importing SEPARATOR Value transfer Type reference (TYPE) C ' ' Splitten vor d. Zeichen; nicht auf nächste Zeile mitnehmen 20001026
6 Exporting 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 NOT_POSSIBLE 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 Importing FROM Value transfer Type reference (TYPE) I 0 FROM-Offset in SOURCE_LINE+FROM(LEN) 20001025
2 Importing LEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH LEN-Wert in SOURCE_LINE+FROM(LEN) 20001025
3 Importing MAXLEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH max. Suchen bis SOURCE_LINE+FROM(MAXLEN) 20001025
4 Exporting NEXTFROM Call by reference Type reference (TYPE) I Anfangspos. für Split-Rest SOURCE_LINE+NEXTFROM 20001025
5 Exporting 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 NOT_POSSIBLE 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 Exporting IS_COMMENT Call by reference Type reference (TYPE) SCRPFLAG SOURCE_LINE beginnt mit einem Kommentarzeichen 20000704
2 Importing LEN Value transfer Type reference (TYPE) I Länge LEN in SOURCE_LINE(LEN) 20000704
3 Exporting PREFIX_LEN Call by reference Type reference (TYPE) I Länge von PREFIX_TEXT 20000704
4 Exporting 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 Importing FROM Value transfer Type reference (TYPE) I 0 Suche ab SOURCE_LINE+FROM 20000714
2 Exporting IS_COMMENT_IN_LINE Call by reference Type reference (TYPE) SCRPFLAG 'X', falls Kommentar in der Zeile 20000714
3 Exporting LENGTH Call by reference Type reference (TYPE) I erster Kommentar: Länge 20000714
4 Exporting 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 Exporting 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 Importing FROM Value transfer Type reference (TYPE) I 0 Suche ab SOURCE_LINE+FROM 20000713
2 Exporting IS_LITERAL_IN_LINE Call by reference Type reference (TYPE) SCRPFLAG 'X', falls Literal in der Zeile 20000713
3 Importing LEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH LEN-Wert in SOURCE_LINE+FROM(LEN) 20001026
4 Exporting LENGTH Call by reference Type reference (TYPE) I erstes Literal: Länge 20000713
5 Importing MAXLEN Value transfer Type reference (TYPE) I SWBSE_C_MAX_LINE_WIDTH max. Suchen bis SOURCE_LINE+FROM(MAXLEN) 20001026
6 Exporting 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 Exporting 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 Importing CHARS Value transfer Type reference (TYPE) C ' ' zu suchende Zeichen 20000704
2 Importing FROM Value transfer Type reference (TYPE) I FROM-Offset in SOURCE_LINE 20000704
3 Importing IN_COMMENTS_TOO Value transfer Type reference (TYPE) C ' ' sucht auch in Kommentaren 20000817
4 Exporting OFFSET Call by reference Type reference (TYPE) I Offset des gefundenen Zeichens in TEXT[FROM..TO] 20000704
5 Importing TO Value transfer Type reference (TYPE) I TO-Offset in SOURCE_LINE 20000704
# Exception Resumable Description Created on
1 NOT_FOUND 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 NOT_SCANABLE 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 Changing SOURCE72 Call by reference Type reference (TYPE) SWBSE_NORM_LINE_TAB Source Format 72 20000703
# Exception Resumable Description Created on
1 NOT_EXECUTED Abbruch (Syntaxfehler; SLIN-Fehler) 20000628

Method TRUNCATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting DATA_LOST Call by reference Type reference (TYPE) C Datenverlust bei erzwungenem Einkürzen 20001020
2 Importing FORCE_TRUNCATE Value transfer Type reference (TYPE) C ' ' Einkürzen selbst bei Datenverlust 20001020
3 Exporting TARGET_SOURCE Value transfer Type reference (TYPE) SWBSE_MAX_LINE_TAB ABAP Source im max. Zielformat 20001020
# Exception Resumable Description Created on
1 LINE_TOO_LONG Datenverlust: Coding reicht über Umbruchgrenze hinaus 20001020
History
Last changed by/on SAP  00000000 
SAP Release Created in 50A