SAP ABAP Class CL_ADS2KIPUPL_FILE_READER (Base Class for reading SPEC2000 Files)
Hierarchy
☛
ECC-DIMP (Software Component) DIMP
⤷
IS-AD-SPC (Application Component) Specification 2000
⤷
ADS2KIPUPL_AL (Package) SPEC 2000 Initial Provisioning Upload: File Readers/Parsers
⤷
⤷
Meta Relationship - Used By
| # | Relationship type | Used by | Short Description | Created on |
|---|---|---|---|---|
| 1 | Inheritance (c INHERITING FROM c_ref) | CL_ADS2KIPUPL_FILE_READER_S | Class for reading SPEC2000 Files (S type) | 20020219 |
| 2 | Inheritance (c INHERITING FROM c_ref) | CL_ADS2KIPUPL_FILE_READER_T | Class for reading SPEC2000 Files ( T type) | 20020219 |
| 3 | Inheritance (c INHERITING FROM c_ref) | CL_ADS2KIPUPL_FILE_READER_V | Class for reading SPEC2000 Files ( V type) | 20020219 |
Properties
| Class | CL_ADS2KIPUPL_FILE_READER | |
| Short Description | Base Class for reading SPEC2000 Files | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | ADS2KIPUPL_AL | SPEC 2000 Initial Provisioning Upload: File Readers/Parsers |
| Created | 20020219 | SAP |
| Last change | 20050301 | 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) |
Interfaces
Class CL_ADS2KIPUPL_FILE_READER has no interface implemented.
Friends
Class CL_ADS2KIPUPL_FILE_READER has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | SY-MSGID | 'ADS2KIPUPL_AL' | Message Class | 20020222 | ||
| 2 | Instance attribute | Protected | Object reference (TYPE REF TO) | DATA | Reference to Front end File Line in MST_FRONT_END_FILES | 20020327 | |||
| 3 | Static Attribute | Public | Type reference (TYPE) | ADS2KIPUPL_FRONTEND_FILE_TABLE | Front End Files opened so far | 20020222 | |||
| 4 | Instance attribute | Public | Type reference (TYPE) | ADS2KIPUPL_UPLOAD_OPTIONS | Upload Options | 20020222 | |||
| 5 | Instance attribute | Public | Type reference (TYPE) | ADUPL_TABIX_RANGE | Lines where to stop | 20020222 | |||
| 6 | Instance attribute | Protected | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM_O_TABLE | Table of Message Communication (Nested) Structure | 20020405 | |||
| 7 | Instance attribute | Protected | Type reference (TYPE) | SYTABIX | 0 | Current Column Position | 20020222 | ||
| 8 | Instance attribute | Protected | Type reference (TYPE) | STRING | Current Line | 20020222 | |||
| 9 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Current Line Content Not Used | 20020222 | ||
| 10 | Instance attribute | Protected | Type reference (TYPE) | SYTABIX | 0 | Current Line Number | 20020222 | ||
| 11 | Instance attribute | Protected | Type reference (TYPE) | SYTABIX | 0 | Width of Current Line | 20020222 | ||
| 12 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Current Record Spans Over the Next Line | 20020304 | ||
| 13 | Static Attribute | Public | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Debug On/Off | 20020222 | ||
| 14 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Front End Files: Delete Input Line after reading from ITAB | 20020401 | ||
| 15 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | File Opened? | 20020222 | ||
| 16 | Instance attribute | Public | Type reference (TYPE) | STRING | Input File Path | 20020222 | |||
| 17 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Header Found ? | 20020222 | ||
| 18 | Instance attribute | Protected | Type reference (TYPE) | BOOLE_D | ADUPL_BOOLEAN-NO | Do simple reading - Don't analyse the data | 20020401 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Break File Path to Message Variables | 20020327 | |
| 2 | Static method | Public | Method | Check Existence of Input File | 20020304 | |
| 3 | Static method | Public | Method | Clear the Front End Files Buffer | 20020222 | |
| 4 | Instance method | Protected | Method | Close the Input File | 20020222 | |
| 5 | Static method | Public | Method | Create File Reader Object for the given File Identifier Code | 20020222 | |
| 6 | Instance method | Public | Method | Get the Current Line Number | 20020330 | |
| 7 | Static method | Public | Method | Detect the type of Input File | 20020222 | |
| 8 | Static method | Public | Method | Get File Closed Message | 20020327 | |
| 9 | Static method | Public | Method | Get File Opened Message | 20020327 | |
| 10 | Instance method | Public | Method | Act as Constructor | 20020304 | |
| 11 | Instance method | Protected | Method | Line Content For SPEC2000 Messages | 20020306 | |
| 12 | Instance method | Protected | Method | Log Error Message | 20020405 | |
| 13 | Instance method | Protected | Method | Open the Input File | 20020222 | |
| 14 | Instance method | Public | Method | Read the Header of the Input File | 20020222 | |
| 15 | Instance method | Protected | Method | Read line from file and initialize instance variables | 20020222 | |
| 16 | Instance method | Public | Method | Read One Part from the Input File | 20020222 | |
| 17 | Instance method | Public | Method | Skip N Number of lines | 20020330 |
Events
Class CL_ADS2KIPUPL_FILE_READER has no event.
Types
Class CL_ADS2KIPUPL_FILE_READER has no local type.
Method Signatures
Method BREAK_FILEPATH_TO_MESSAGE_VARS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_MSG | Call by reference | Type reference (TYPE) | BAPIRET2 | Rückgabeparameter | 20020327 | |||
| 2 | I_FILE_PATH | Value transfer | Type reference (TYPE) | STRING | Dateipfad | 20020327 |
Method BREAK_FILEPATH_TO_MESSAGE_VARS on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method CHECK_FILE_EXISTENCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | E_RESULT | Call by reference | Type reference (TYPE) | CHAR1 | File Existence Check Result | 20020304 | |||
| 2 | I_FILE_PATH | Call by reference | Type reference (TYPE) | STRING | Dateipfad | 20020304 | |||
| 3 | I_FILE_TYPE | Call by reference | Type reference (TYPE) | CHAR1 | File Type(A/P) | 20020304 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Input File does not exist | 20020304 |
Method CLEAR_FRONT_END_FILES_BUFFER Signature
Method CLEAR_FRONT_END_FILES_BUFFER on class CL_ADS2KIPUPL_FILE_READER has no parameter.
Method CLEAR_FRONT_END_FILES_BUFFER on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method CLOSE_FILE Signature
Method CLOSE_FILE on class CL_ADS2KIPUPL_FILE_READER has no parameter.
Method CLOSE_FILE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method CREATE_READER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ER_FILE_READER | Call by reference | Object reference (TYPE REF TO) | CL_ADS2KIPUPL_FILE_READER | File Reader Object | 20020222 | |||
| 2 | IS_UPLOAD_OPTIONS | Call by reference | Type reference (TYPE) | ADS2KIPUPL_UPLOAD_OPTIONS | Upload Options | 20020304 | |||
| 3 | I_FIC | Call by reference | Type reference (TYPE) | ADSPC_FIC | File Identifier Code | 20020222 | |||
| 4 | I_FILE_PATH | Call by reference | Type reference (TYPE) | STRING | Input File Path | 20020222 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Eingabedatei nicht vorhanden | 20020222 | ||
| 2 | Invalid File Identifier Code | 20020304 |
Method CURRENT_LINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_CURRENT_LINE | Value transfer | Type reference (TYPE) | I | Current Line Number | 20020330 |
Method CURRENT_LINE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method DETECT_FILE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_UPLOAD_OPTIONS | Call by reference | Type reference (TYPE) | ADS2KIPUPL_UPLOAD_OPTIONS | Upload Options | 20020222 | |||
| 2 | CT_MESSAGES | Call by reference | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM_O_TABLE | SPEC2000 IP Upload: Table of Message Communication Structure | 20020307 | |||
| 3 | ER_FILE_READER | Call by reference | Object reference (TYPE REF TO) | CL_ADS2KIPUPL_FILE_READER | File Reader Object | 20020222 | |||
| 4 | ES_SPCIPHDR | Call by reference | Type reference (TYPE) | API_SPCIPHDR | Header Record of the Input File | 20020222 | |||
| 5 | ET_EXTENSION | Call by reference | Type reference (TYPE) | API_T_SPCIPEXTN | SPEC2000 Initial Provisioning: Extensions | 20020422 | |||
| 6 | I_FILE_PATH | Call by reference | Type reference (TYPE) | STRING | Input File Path | 20020222 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | End of File Reached | 20020222 | ||
| 2 | Eingabedatei nicht vorhanden | 20020222 | ||
| 3 | Ungültige Eingabedatei | 20020222 | ||
| 4 | Datei abgel. | 20020307 |
Method GET_FILE_CLOSED_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_MSG | Call by reference | Type reference (TYPE) | BAPIRET2 | Rückgabeparameter | 20020327 | |||
| 2 | I_FILE_PATH | Value transfer | Type reference (TYPE) | STRING | Dateipfad | 20020327 |
Method GET_FILE_CLOSED_MESSAGE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method GET_FILE_OPENED_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_MSG | Call by reference | Type reference (TYPE) | BAPIRET2 | Rückgabeparameter | 20020327 | |||
| 2 | I_FILE_PATH | Value transfer | Type reference (TYPE) | STRING | Dateipfad | 20020327 |
Method GET_FILE_OPENED_MESSAGE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method INIT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_UPLOAD_OPTIONS | Call by reference | Type reference (TYPE) | ADS2KIPUPL_UPLOAD_OPTIONS | SPEC2000 IP Upload: Struktur für Upload-Optionen | 20020304 | |||
| 2 | I_FILE_PATH | Call by reference | Type reference (TYPE) | STRING | Input File Path | 20020304 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Eingabedatei nicht vorhanden | 20020304 |
Method LINE_CONTENT_FOR_SPEC_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | R_RETURN_LINE | Value transfer | Type reference (TYPE) | STRING | Return SPEC2000 Message Line (161 Chars) | 20020308 |
Method LINE_CONTENT_FOR_SPEC_MESSAGE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method LOG_MESSAGE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_COLUMN_NO | Value transfer | Type reference (TYPE) | ANY | Column No | 20020405 | |||
| 2 | I_CSN | Value transfer | Type reference (TYPE) | ANY | Location | 20020405 | |||
| 3 | I_DM_LEVEL | Value transfer | Type reference (TYPE) | ADS2KIPUPL_DM_LEVEL | ADUPL_MESSAGE_DATA_MODEL_LEVEL-NONE | Datenmodellebene | 20020405 | ||
| 4 | I_EIM | Value transfer | Type reference (TYPE) | ANY | End Item Manufacturer | 20020405 | |||
| 5 | I_EIP | Value transfer | Type reference (TYPE) | ANY | End Item Part | 20020405 | |||
| 6 | I_LINE_NO | Value transfer | Type reference (TYPE) | ANY | ZeileNr | 20020405 | |||
| 7 | I_MFR | Value transfer | Type reference (TYPE) | ANY | Manufacturer Code | 20020405 | |||
| 8 | I_MSGCAT | Value transfer | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM-MSG_CATEGORY | ADUPL_MSG_CATEGORY-REJECT_ELEMENT | Nachrichtenkategorie | 20020405 | ||
| 9 | I_MSGID | Value transfer | Type reference (TYPE) | SYMSG-MSGID | C_MSG_CLASS | Messageidentifikation | 20020405 | ||
| 10 | I_MSGNO | Value transfer | Type reference (TYPE) | SYMSG-MSGNO | Nachrichtennummer | 20020405 | |||
| 11 | I_MSGTY | Value transfer | Type reference (TYPE) | SYMSG-MSGTY | ADUPL_MESSAGE_TYPE-WARNING | Nachrichtentyp | 20020405 | ||
| 12 | I_MSGV1 | Value transfer | Type reference (TYPE) | ANY | MessageVariable 1 | 20020405 | |||
| 13 | I_MSGV2 | Value transfer | Type reference (TYPE) | ANY | MessageVariable 2 | 20020405 | |||
| 14 | I_MSGV3 | Value transfer | Type reference (TYPE) | ANY | MessageVariable 3 | 20020405 | |||
| 15 | I_MSGV4 | Value transfer | Type reference (TYPE) | ANY | MessageVariable 4 | 20020405 | |||
| 16 | I_PNR | Value transfer | Type reference (TYPE) | ANY | Part Number | 20020405 | |||
| 17 | I_PROB_CLASS | Value transfer | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM-PROB_CLASS | ADUPL_PROBLEM_CLASS-NONE | Problem Class | 20020405 | ||
| 18 | I_SPEC_MESSAGE | Value transfer | Type reference (TYPE) | ANY | SPEC2000-Nachricht | 20020405 | |||
| 19 | I_SPL | Value transfer | Type reference (TYPE) | ANY | Supplier Code | 20020405 |
Method LOG_MESSAGE on class CL_ADS2KIPUPL_FILE_READER has no exception.
Method OPEN_FILE Signature
Method OPEN_FILE on class CL_ADS2KIPUPL_FILE_READER has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Eingabedatei nicht vorhanden | 20020222 |
Method READ_HEADER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM_O_TABLE | Fehler-Meldungen | 20020307 | |||
| 2 | ES_SPCIPHDR | Call by reference | Type reference (TYPE) | API_SPCIPHDR | Header Record of the Input File | 20020222 | |||
| 3 | ET_EXTENSION | Call by reference | Type reference (TYPE) | API_T_SPCIPEXTN | SPEC2000 Initial Provisioning: Extensions | 20020422 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | End of File Reached | 20020222 | ||
| 2 | Ungültige Eingabedatei | 20020222 | ||
| 3 | Datei abgel. | 20020222 |
Method READ_LINE Signature
Method READ_LINE on class CL_ADS2KIPUPL_FILE_READER has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Empty line in the Input File | 20020222 | ||
| 2 | End of File Reached | 20020222 |
Method READ_PART Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | ADS2KIPUPL_MSG_COMM_O_TABLE | Fehler-Meldungen | 20020308 | |||
| 2 | ES_PART_KEY | Call by reference | Type reference (TYPE) | ADS2KIPUPL_PART_KEY | Part Key | 20020222 | |||
| 3 | ET_ENCODED_DATA | Call by reference | Type reference (TYPE) | SPTA_INDXTAB | File-type specific data (encoded) | 20020222 | |||
| 4 | ET_ENCODED_DATA_C | Call by reference | Type reference (TYPE) | SPTA_INDXTAB | File-type specific Customer data (encoded) | 20020419 | |||
| 5 | E_EOF | Call by reference | Type reference (TYPE) | BOOLE_D | End of File Reached | 20020222 | |||
| 6 | E_FILE_LINES_REJECTED | Call by reference | Type reference (TYPE) | BOOLE_D | File Lines Rejected; Part data is not read/returned | 20020222 | |||
| 7 | E_PART_REJECTED | Call by reference | Type reference (TYPE) | BOOLE_D | Part is rejected | 20020222 | |||
| 8 | E_SOME_RECORDS_REJECTED | Call by reference | Type reference (TYPE) | BOOLE_D | Some Records were rejected | 20020222 | |||
| 9 | E_SOME_SEGMENTS_REJECTED | Call by reference | Type reference (TYPE) | BOOLE_D | Some Segments were rejected | 20020222 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | End of File Reached | 20020222 |
Method SKIP_N_LINES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | I_NR_LINES_TO_SKIP | Call by reference | Type reference (TYPE) | I | Number of lines to skip | 20020330 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | End of File Reached | 20020330 |
History
| Last changed by/on | SAP | 20050301 |
| SAP Release Created in | 470 |