SAP ABAP Class CL_CTS_EPS_HELPER (cCTS: File Transfer Helper)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-CTS-TMS-CTR (Application Component) Central CTS # Transport Management
     SCTS_DIST_CTL_MGR_TRTOOL (Package) CTS Transport Tool Manager
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_CTS_BOOLEAN IF CTS Boolean Wrapper 20100218
Properties
Class CL_CTS_EPS_HELPER  
Short Description cCTS: File Transfer Helper    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SCTS_DIST_CTL_MGR_TRTOOL   CTS Transport Tool Manager 
Created 20100218   SAP 
Last change 20140121   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 CTSC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_CTS_BOOLEAN IF CTS Boolean Wrapper 20100218
Friends
# Friend Modeled only Created on Description
1 CL_CTS_DATA_FILE_TRANSFER 20100218 cCTS: File Transfer Helper
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 FALSE Instance attribute Public Attribute reference (LIKE) 20100218
2 TARGETSYS Instance attribute Private Type reference (TYPE) TMSSYSNAM 20100218
3 TRANSDIR_COFILES Constant Protected Type reference (TYPE) EPSDIRNAM '$TR_COFI' Code for cofiles directory 20100218
4 TRANSDIR_DATA Constant Protected Type reference (TYPE) EPSDIRNAM '$TR_DATA' Code for data directory 20100218
5 TRANSDIR_TMP Constant Protected Type reference (TYPE) EPSDIRNAM '$TR_TMP' Code for tmp directory 20100219
6 TRUE Instance attribute Public Attribute reference (LIKE) 20100218
Methods
# Method Level Visibility Method type Description Created on
1 BUILD_PATH Static method Public Method Concatenate path 20100218
2 CHECK_NFSGROUPS Instance method Public Method TMS check of NFS groups (file directories) 20100218
3 CLOSE_FILE Instance method Public Method Close file 20100218
4 COPY_FILE Instance method Public Method Copy file from source destination to target destination 20100218
5 CREATE Static method Public Method 20100218
6 CREATEALERT Instance method Private Method 20100218
7 DELETE_FILE Instance method Public Method Remove file 20100218
8 GET_COFILENAME Static method Protected Method 20100218
9 GET_DATAFILENAME Static method Protected Method 20100218
10 GET_SOURCEDEST Instance method Protected Method 20100218
11 OPEN_INPUTFILE Instance method Public Method Open and check file 20100218
12 OPEN_OUTPUTFILE Instance method Public Method Create file 20100218
13 READ_BLOCK Instance method Public Method Read block segment (x*8000 bytes) 20100218
14 WRITE_BLOCK Instance method Public Method Write block with absolute length from block 20100218
Events
Class CL_CTS_EPS_HELPER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 COPYSEGMENT Private See coding 20100218 begin of COPYSEGMENT, source type tmscsys, requests type trkorrs, end of copysegment
2 COPYSEGMENTS Private See coding 20100218 copysegments type standard table of copysegment
Method Signatures

Method BUILD_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing PART1 Call by reference Type reference (TYPE) CSEQUENCE 20100218
2 Importing PART2 Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Returning PATH Value transfer Type reference (TYPE) STRING 20100218
4 Importing SEPARATORSEARCH Call by reference Type reference (TYPE) FLAG search for separator out of part1 or part2 20101208

Method BUILD_PATH on class CL_CTS_EPS_HELPER has no exception.

Method CHECK_NFSGROUPS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ISDIFFERENT Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20100218
2 Importing SOURCE Call by reference Type reference (TYPE) TMSCSYS TMS CI: Systeme 20100218
3 Importing TARGET Call by reference Type reference (TYPE) TMSCSYS TMS CI: Systeme 20100218
# Exception Resumable Description Created on
1 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method CLOSE_FILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
2 Importing DIRNAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM Resulting destination system 20100218
# Exception Resumable Description Created on
1 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method COPY_FILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning COPIEDBYTES Value transfer Type reference (TYPE) EPS2FILSIZ file size 20100218
2 Importing DIRNAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing KEEPOLD Value transfer Type reference (TYPE) BOOLEAN FALSE keep existing file 20100222
5 Importing SOURCE Value transfer Type reference (TYPE) TMSSYSNAM Effective source system 20100218
6 Importing SOURCEDEST Call by reference Type reference (TYPE) CSEQUENCE 20100218
7 Importing TARGETDEST Call by reference Type reference (TYPE) CSEQUENCE 20100218
# Exception Resumable Description Created on
1 CX_CTS_EPS_IO_EXCEPTION cCTS IO Exception 20100218
2 CX_CTS_EPS_RFC_EXCEPTION cCTS eps remote exception 20100219
3 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning INSTANCE Value transfer Object reference (TYPE REF TO) CL_CTS_EPS_HELPER cCTS: File Transfer helper 20100218
2 Importing TARGETSYS Call by reference Type reference (TYPE) TMSSYSNAM 20100218

Method CREATE on class CL_CTS_EPS_HELPER has no exception.

Method CREATEALERT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ALERT Value transfer Type reference (TYPE) STMSCALERT TMS CI: Alert-Struktur 20100218
2 Importing COMMAND Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing MESSAGE Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing SYSNAME Call by reference Type reference (TYPE) TMSSYSNAM TMS: Systemname 20100218
5 Importing TEXT Call by reference Type reference (TYPE) CSEQUENCE 20100218

Method CREATEALERT on class CL_CTS_EPS_HELPER has no exception.

Method DELETE_FILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
2 Importing DIRNAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing IGNORERR Call by reference Type reference (TYPE) BOOLEAN FALSE boolsche Variable (X=true, -=false, space=unknown) 20100218
5 Returning NOTFOUND Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20100218
6 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM effective destination system 20100218
# Exception Resumable Description Created on
1 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method GET_COFILENAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning FILENAME Value transfer Type reference (TYPE) CHAR20 Filename 20100218
2 Importing TRKORR Call by reference Type reference (TYPE) TRKORR Auftrag/Aufgabe 20100218

Method GET_COFILENAME on class CL_CTS_EPS_HELPER has no exception.

Method GET_DATAFILENAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning FILENAME Value transfer Type reference (TYPE) CHAR20 Filename 20100218
2 Importing TRKORR Call by reference Type reference (TYPE) TRKORR Auftrag/Aufgabe 20100218

Method GET_DATAFILENAME on class CL_CTS_EPS_HELPER has no exception.

Method GET_SOURCEDEST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning DESTINATION Value transfer Type reference (TYPE) STRING 20100218
2 Importing SOURCE Call by reference Type reference (TYPE) TMSCSYS TMS CI: Systeme 20100218

Method GET_SOURCEDEST on class CL_CTS_EPS_HELPER has no exception.

Method OPEN_INPUTFILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
2 Importing DIRNAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Exporting DIRPATH Value transfer Type reference (TYPE) EPS2PATH full file path 20100218
4 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
5 Exporting FILESIZE Value transfer Type reference (TYPE) EPS2FILSIZ file size 20100218
6 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM system which executes 20100218
# Exception Resumable Description Created on
1 CX_CTS_EPS_RFC_EXCEPTION cCTS eps remote exception 20100219
2 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method OPEN_OUTPUTFILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
2 Returning DIRECTORY Value transfer Type reference (TYPE) EPS2PATH full file path 20100218
3 Importing DIRNAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
5 Importing OVERWRITE Value transfer Type reference (TYPE) BOOLEAN boolsche Variable (X=true, -=false, space=unknown) 20100218
6 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM resulting target system 20100218
# Exception Resumable Description Created on
1 CX_CTS_EPS_RFC_EXCEPTION cCTS eps remote exception 20100219
2 CX_CTS_TRTOOL_EXCEPTION CTS Exception fuer das Tool Prozessing 20100218

Method READ_BLOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing BLOCK Call by reference Type reference (TYPE) TBL8000S Data area 20100218
2 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing DIRPATH Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Exporting EOF Call by reference Type reference (TYPE) BOOLEAN EOF reached 20100218
5 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
6 Exporting READLENGTH Call by reference Type reference (TYPE) INT4 got length 20100218
7 Importing RECORDS Call by reference Type reference (TYPE) INT4 records to read 20100218
8 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM effective destination system 20100218
# Exception Resumable Description Created on
1 CX_CTS_EPS_IO_EXCEPTION cCTS IO Exception 20100218
2 CX_CTS_EPS_RFC_EXCEPTION CTS Exception fuer das Tool Prozessing 20100219

Method WRITE_BLOCK Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing BLOCK Call by reference Type reference (TYPE) TBL8000S Data area 20100218
2 Importing DESTINATION Call by reference Type reference (TYPE) CSEQUENCE 20100218
3 Importing DIRPATH Call by reference Type reference (TYPE) CSEQUENCE 20100218
4 Importing FILENAME Call by reference Type reference (TYPE) CSEQUENCE 20100218
5 Importing LENGTH Call by reference Type reference (TYPE) INT4 Natürliche Zahl 20100218
6 Importing SYSNAME Value transfer Type reference (TYPE) TMSSYSNAM effective destination system 20100218
# Exception Resumable Description Created on
1 CX_CTS_EPS_IO_EXCEPTION cCTS IO Exception 20100218
2 CX_CTS_EPS_RFC_EXCEPTION CTS Exception fuer das Tool Prozessing 20100219
History
Last changed by/on SAP  20140121 
SAP Release Created in 702