SAP ABAP Class CL_COCF_MAIN_TOP (Super Class for General Attributes/Method)
Hierarchy
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
   PP-SFC (Application Component) Production Orders
     COCF (Package) Order and Confirmation Data
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_COCF_GLOBAL_CONSTANTS Generally Valid Constants 20060901
Meta Relationship - Used By
# Relationship type Used by Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_COCF_SRN_TOP Superclass for Shift Report/Note 20060313
2 Inheritance (c INHERITING FROM c_ref)  CL_COCF_TOP Super Class for Order/Confirmation 20060313
Properties
Class CL_COCF_MAIN_TOP  
Short Description Super Class for General Attributes/Method    
Super Class CL_COCF_GLOBAL_CONSTANTS Generally Valid Constants 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package COCF   Order and Confirmation Data 
Created 20060313   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_COCF_MAIN_TOP has no forward declaration.
Interfaces
Class CL_COCF_MAIN_TOP has no interface implemented.
Friends
# Friend Modeled only Created on Description
1 CL_COCF_SRN_TOP 20060920 Superclass for Shift Report/Note
2 CL_COCF_TOP 20060920 Super Class for Order/Confirmation
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CON_MSGNO_TEXTID Constant Public Type reference (TYPE) SYMSGNO '000' Message Number 20060914
2 GS_SELECTION_DATES Static Attribute Private Type reference (TYPE) TY_S_SELECTION_DATES Converted Selection Dates 20100601
3 GS_TIMEZONES Static Attribute Private Type reference (TYPE) TY_S_TIMEZONES Time Zones 20100601
4 GT_USERNAME Static Attribute Private Type reference (TYPE) TY_T_USERNAME User Names 20070814
Methods
# Method Level Visibility Method type Description Created on
1 APPEND_SYMESSAGE Static method Public Method Writes Current System Message to Message Table 20060313
2 CALCULATE_HASH_FROM_STREAM Static method Public Method Generates SHA1 Hash for Text of a Text Edit Control 20090424
3 CHECK_RANGE Static method Public Method Checks Whether Interval 1 Lies in Interval 2 20060913
4 COMPARE_TIME Static method Public Method Checks Whether Timespot 1 > Timespot 2 20080208
5 CONV_LOCAL_DATE_TIME Static method Public Method Converts Local Date/Time Between Time Zones 20100601
6 CONV_TEXT_TO_MESSAGE Static method Public Method Convert Text to Message 20060912
7 CREATE_SELECTION_DATES Static method Public Method Determines Selection Dates from Local Time Period 20100601
8 DETERMINE_MESSAGE_LEVEL Static method Public Method Determine Highest Message Type 20060313
9 DETERMINE_SHIFT_TEXT Static method Public Method Determine Short Text for Shift 20060313
10 DETERMINE_WEEKDAY Static method Public Method Detrmine Weekday 20060313
11 GET_FIELDLABEL Static method Public Method Get Field Label 20060313
12 GET_FILE_LIST Static method Public Method Gets File List from Application Server 20080312
13 GET_TIMESTAMP Static method Public Method Determines Timestamp 20080312
14 GET_TIMEZONES Static method Public Method Determines Server, Minimum and Maximum Time Zone 20100601
15 GET_TIME_OVERLAP Static method Public Method Determines Overlap of Interval 1 with Interval 2 20080311
16 GET_USER_NAME Static method Public Method Get Complete Name for User 20060912
17 GET_VARIANTS Static method Public Method Determines All Possible Variants for a Report 20090518
18 RAISE_FATAL_ERROR Static method Public Method Generates Fatal Error (Processing Cancelled) 20060313
19 READ_FILE Static method Public Method Reads File from Application Server 20080312
20 SPLIT_PATH Static method Public Method Separates File Name/Last Folder 20070702
21 STATUS_CHANGE_FOR_ACTIVITY Static method Public Method Executes Business Transaction 20060313
22 SUBTRACT_TIME Static method Public Method Determines the Difference Between Two Timespots in Seconds 20090528
Events
Class CL_COCF_MAIN_TOP has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_S_SELECTION_DATES Private See coding 20100601 BEGIN OF ty_s_selection_dates, start_date TYPE dats, start_time TYPE tims, end_date TYPE dats, end_time TYPE tims, start_date_srv TYPE dats, start_time_srv TYPE tims, end_date_srv TYPE dats, end_time_srv TYPE tims, start_date_min TYPE dats, start_time_min TYPE tims, end_date_max TYPE dats, end_time_max TYPE tims, END OF ty_s_selection_dates
2 TY_S_TIMEZONES Private See coding 20100601 BEGIN OF ty_s_timezones, srv TYPE timezone, "Server time zone act TYPE tznflactiv, "X = other time zones possible END OF ty_s_timezones
3 TY_S_USERNAME Public See coding 20070814 BEGIN OF ty_s_username, name TYPE xubname, text TYPE ad_namtext, END OF ty_s_username
4 TY_S_VARIANT Public See coding 20090518 BEGIN OF ty_s_variant, variant TYPE raldb_vari, vtext TYPE rsvar_vtxt, END OF ty_s_variant
5 TY_T_FCODE Public See coding 20081118 ty_t_fcode TYPE STANDARD TABLE OF gui_status
6 TY_T_FILELIST Public See coding 20080312 ty_t_filelist TYPE STANDARD TABLE OF string
7 TY_T_USERNAME Public See coding 20070814 ty_t_username TYPE SORTED TABLE OF ty_s_username WITH UNIQUE KEY name
8 TY_T_VARIANT Public See coding 20090518 ty_t_variant TYPE STANDARD TABLE OF ty_s_variant
Method Signatures

Method APPEND_SYMESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MESSAGES Call by reference Type reference (TYPE) COCF_T_MESSAGE Tabelle für Meldungen 20060313

Method APPEND_SYMESSAGE on class CL_COCF_MAIN_TOP has no exception.

Method CALCULATE_HASH_FROM_STREAM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_STREAM Call by reference Type reference (TYPE) COCF_T_STREAM Text für Textedit-Control (CL_GUI_TEXTEDIT) 20090424
2 Returning R_HASH Value transfer Type reference (TYPE) HASH160 Hash-Wert (160 Bits) 20090424

Method CALCULATE_HASH_FROM_STREAM on class CL_COCF_MAIN_TOP has no exception.

Method CHECK_RANGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_INT1_ENDD Call by reference Type reference (TYPE) DATS Endedatum Intervall 1 20060913
2 Importing I_INT1_ENDT Call by reference Type reference (TYPE) TIMS Endezeit Intervall 1 20060913
3 Importing I_INT1_STARTD Call by reference Type reference (TYPE) DATS Startdatum Intervall 1 20060913
4 Importing I_INT1_STARTT Call by reference Type reference (TYPE) TIMS Startzeit Intervall 1 20060913
5 Importing I_INT2_ENDD Call by reference Type reference (TYPE) DATS Endedatum Intervall 2 20060913
6 Importing I_INT2_ENDT Call by reference Type reference (TYPE) TIMS Endezeit Intervall 2 20060913
7 Importing I_INT2_STARTD Call by reference Type reference (TYPE) DATS Startdatum Intervall 2 20060913
8 Importing I_INT2_STARTT Call by reference Type reference (TYPE) TIMS Startzeit Intervall 2 20060913
9 Returning R_RESULT Value transfer Type reference (TYPE) CHAR1 ' '=außerhalb, 'X'=innerhalb 'S'/'E'=Start/Ende enthalten 20060913

Method CHECK_RANGE on class CL_COCF_MAIN_TOP has no exception.

Method COMPARE_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DATE1 Call by reference Type reference (TYPE) DATS Startdatum Intervall 1 20080208
2 Importing I_DATE2 Call by reference Type reference (TYPE) DATS Endedatum Intervall 1 20080208
3 Importing I_TIME1 Call by reference Type reference (TYPE) TIMS Startzeit Intervall 1 20080208
4 Importing I_TIME2 Call by reference Type reference (TYPE) TIMS Endezeit Intervall 1 20080208
5 Returning R_RESULT Value transfer Type reference (TYPE) CHAR1 '>': 1>2; '<':1<2; '=':1=2 20080208

Method COMPARE_TIME on class CL_COCF_MAIN_TOP has no exception.

Method CONV_LOCAL_DATE_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_DATE_TO Call by reference Type reference (TYPE) DATS Feld vom Typ DATS 20100601
2 Exporting E_TIME_TO Call by reference Type reference (TYPE) TIMS Feld vom Typ TIMS 20100601
3 Importing I_DATE_FROM Call by reference Type reference (TYPE) DATS SY-DATLO Feld vom Typ DATS 20100601
4 Importing I_TIME_FROM Call by reference Type reference (TYPE) TIMS SY-TIMLO Feld vom Typ TIMS 20100601
5 Importing I_ZONE_FROM Call by reference Type reference (TYPE) TZNZONE SY-ZONLO Zeitzone des aktuellen Benutzers 20100601
6 Importing I_ZONE_TO Call by reference Type reference (TYPE) TZNZONE SY-ZONLO Zeitzone 20100601

Method CONV_LOCAL_DATE_TIME on class CL_COCF_MAIN_TOP has no exception.

Method CONV_TEXT_TO_MESSAGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_TEXT Call by reference Type reference (TYPE) STRING Nachrichtentext 20060912
2 Importing I_TYP Call by reference Type reference (TYPE) SYMSGTY Nachrichtentyp 20060912
3 Returning R_MESSAGE Value transfer Type reference (TYPE) COCF_S_MESSAGE Struktur einer Meldung 20060912

Method CONV_TEXT_TO_MESSAGE on class CL_COCF_MAIN_TOP has no exception.

Method CREATE_SELECTION_DATES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_END_DATE_MAX Call by reference Type reference (TYPE) DATS Größte Zeitzone 20100601
2 Exporting E_END_DATE_SRV Call by reference Type reference (TYPE) DATS Server Zeitzone 20100601
3 Exporting E_END_TIME_MAX Call by reference Type reference (TYPE) TIMS Größte Zeitzone 20100601
4 Exporting E_END_TIME_SRV Call by reference Type reference (TYPE) TIMS Server Zeitzone 20100601
5 Exporting E_START_DATE_MIN Call by reference Type reference (TYPE) DATS Kleinste Zeitzone 20100601
6 Exporting E_START_DATE_SRV Call by reference Type reference (TYPE) DATS Server Zeitzone 20100601
7 Exporting E_START_TIME_MIN Call by reference Type reference (TYPE) TIMS Kleinste Zeitzone 20100601
8 Exporting E_START_TIME_SRV Call by reference Type reference (TYPE) TIMS Server Zeitzone 20100601
9 Importing I_END_DATE Call by reference Type reference (TYPE) DATS Lokale Zeitzone 20100601
10 Importing I_END_TIME Call by reference Type reference (TYPE) TIMS Lokale Zeitzone 20100601
11 Importing I_START_DATE Call by reference Type reference (TYPE) DATS Lokale Zeitzone 20100601
12 Importing I_START_TIME Call by reference Type reference (TYPE) TIMS Lokale Zeitzone 20100601

Method CREATE_SELECTION_DATES on class CL_COCF_MAIN_TOP has no exception.

Method DETERMINE_MESSAGE_LEVEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IT_MESSAGE Call by reference Type reference (TYPE) COCF_T_MESSAGE Tabelle für Meldungen 20060313
2 Returning R_MSG_LEVEL Value transfer Type reference (TYPE) SYMSGTY Nachrichtentyp 20060313

Method DETERMINE_MESSAGE_LEVEL on class CL_COCF_MAIN_TOP has no exception.

Method DETERMINE_SHIFT_TEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_SHIFT_DEF Call by reference Type reference (TYPE) KAPTPROG Schichtdefinition 20060912
2 Importing I_SHIFT_GROUP Call by reference Type reference (TYPE) SCHGRUP Gruppierung für Schichtdefinitionen und Schichtprogramme 20060912
3 Returning R_SHIFT_TEXT Value transfer Type reference (TYPE) SCHTXT Text für Schichtdefinition 20060313

Method DETERMINE_SHIFT_TEXT on class CL_COCF_MAIN_TOP has no exception.

Method DETERMINE_WEEKDAY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_DAY_NUMBER Call by reference Type reference (TYPE) C Nummer des Wochentags 20060313
2 Exporting E_WORKDAY Call by reference Type reference (TYPE) FLAG 'X' = Tag ist Arbeitstag 20060313
3 Importing I_CALENDAR Call by reference Type reference (TYPE) FABKL Schlüssel des Fabrikkalenders 20060313
4 Importing I_DATE Call by reference Type reference (TYPE) SYSTDATLO Lokales Datum des aktuellen Benutzers 20060313
5 Importing I_PLANT Call by reference Type reference (TYPE) WERKS_D Werk 20060313

Method DETERMINE_WEEKDAY on class CL_COCF_MAIN_TOP has no exception.

Method GET_FIELDLABEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_FIELDNAME Call by reference Type reference (TYPE) FNAM_____4 Feldname 20060313
2 Importing I_TABNAME Call by reference Type reference (TYPE) DDOBJNAME Name eines ABAP Dictionary-Objekts 20060313
3 Returning R_LABEL Value transfer Type reference (TYPE) CHAR30 Label 20060313

Method GET_FIELDLABEL on class CL_COCF_MAIN_TOP has no exception.

Method GET_FILE_LIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_FILE Call by reference Type reference (TYPE) TY_T_FILELIST 20080312
2 Importing I_DIR Call by reference Type reference (TYPE) STRING 20080312
3 Importing I_FILE Call by reference Type reference (TYPE) STRING '*' 20080312

Method GET_FILE_LIST on class CL_COCF_MAIN_TOP has no exception.

Method GET_TIMESTAMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_DATE Call by reference Type reference (TYPE) DATS Startdatum Intervall 1 20080312
2 Importing I_TIME Call by reference Type reference (TYPE) TIMS Startzeit Intervall 1 20080312
3 Importing I_TZONE Call by reference Type reference (TYPE) TZNZONE SPACE Zeitzone 20100601
4 Returning R_TIMESTAMP Value transfer Type reference (TYPE) TIMESTAMP UTC-Zeitstempel in Kurzform (JJJJMMTThhmmss) 20080312

Method GET_TIMESTAMP on class CL_COCF_MAIN_TOP has no exception.

Method GET_TIMEZONES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_TIMEZONE_ACTIVE Call by reference Type reference (TYPE) TZNFLACTIV Zeitzonen aktiv 20100601
2 Exporting E_TIMEZONE_MAXNEG Call by reference Type reference (TYPE) TIMEZONE Zeitzone mit max. negativer Zeitverschiebung 20100601
3 Exporting E_TIMEZONE_MAXPOS Call by reference Type reference (TYPE) TIMEZONE Zeitzone mit max. positiver Zeitverschiebung 20100601
4 Exporting E_TIMEZONE_SERVER Call by reference Type reference (TYPE) TIMEZONE Server Zeitzone 20100601
5 Importing I_DATE Call by reference Type reference (TYPE) DATS SY-DATLO Referenz Zeit 20100601
6 Importing I_TIME Call by reference Type reference (TYPE) TIMS SY-TIMLO Referenz Zeit 20100601
7 Importing I_TZONE Call by reference Type reference (TYPE) TZNZONE SY-ZONLO Referenz Zeit 20100601

Method GET_TIMEZONES on class CL_COCF_MAIN_TOP has no exception.

Method GET_TIME_OVERLAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_INT1_ENDD Call by reference Type reference (TYPE) DATS Endedatum Intervall 1 20080311
2 Importing I_INT1_ENDT Call by reference Type reference (TYPE) TIMS Endezeit Intervall 1 20080311
3 Importing I_INT1_STARTD Call by reference Type reference (TYPE) DATS Startdatum Intervall 1 20080311
4 Importing I_INT1_STARTT Call by reference Type reference (TYPE) TIMS Startzeit Intervall 1 20080311
5 Importing I_INT2_ENDD Call by reference Type reference (TYPE) DATS Endedatum Intervall 2 20080311
6 Importing I_INT2_ENDT Call by reference Type reference (TYPE) TIMS Endezeit Intervall 2 20080311
7 Importing I_INT2_STARTD Call by reference Type reference (TYPE) DATS Startdatum Intervall 2 20080311
8 Importing I_INT2_STARTT Call by reference Type reference (TYPE) TIMS Startzeit Intervall 2 20080311
9 Returning R_OVERLAP Value transfer Type reference (TYPE) I Anteil von 0 bis 100% 20080311

Method GET_TIME_OVERLAP on class CL_COCF_MAIN_TOP has no exception.

Method GET_USER_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_USER Call by reference Type reference (TYPE) XUBNAME Benutzername im Benutzerstamm 20060912
2 Returning R_NAME Value transfer Type reference (TYPE) AD_NAMTEXT Vollständiger Name der Person 20060912

Method GET_USER_NAME on class CL_COCF_MAIN_TOP has no exception.

Method GET_VARIANTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_VARIANT Call by reference Type reference (TYPE) TY_T_VARIANT Varianten zum Report 20090518
2 Importing I_REPORT Call by reference Type reference (TYPE) REPID Abap-Reportname 20090518

Method GET_VARIANTS on class CL_COCF_MAIN_TOP has no exception.

Method RAISE_FATAL_ERROR Signature

Method RAISE_FATAL_ERROR on class CL_COCF_MAIN_TOP has no parameter.
Method RAISE_FATAL_ERROR on class CL_COCF_MAIN_TOP has no exception.

Method READ_FILE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_DATA Call by reference Type reference (TYPE) XSTRING Binärdaten 20080312
2 Exporting E_MESSAGE Call by reference Type reference (TYPE) STRING Fehlermeldung 20080312
3 Importing I_FILE Call by reference Type reference (TYPE) STRING Dateiname mit Pfad 20080312

Method READ_FILE on class CL_COCF_MAIN_TOP has no exception.

Method SPLIT_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_FIRST_PART Call by reference Type reference (TYPE) STRING Pfad 20070702
2 Exporting E_IS_FOLDER Call by reference Type reference (TYPE) XFELD X = Ordner 20070702
3 Exporting E_LAST_PART Call by reference Type reference (TYPE) STRING Ordner oder Dateiname 20070702
4 Importing I_DELIMITER Call by reference Type reference (TYPE) C Trennzeichen 20070702
5 Importing I_PATH Call by reference Type reference (TYPE) STRING kompletter Pfad 20070702

Method SPLIT_PATH on class CL_COCF_MAIN_TOP has no exception.

Method STATUS_CHANGE_FOR_ACTIVITY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MESSAGES Call by reference Type reference (TYPE) COCF_T_MESSAGE Tabelle für Meldungen 20060313
2 Exporting E_MESSAGE_LEVEL Call by reference Type reference (TYPE) SYMSGTY Typ der schwersten Meldung 20060313
3 Importing I_CHECK_ONLY Call by reference Type reference (TYPE) XFELD 'X' Nur Prüfen 20060313
4 Importing I_OBJECT_NUMBER Call by reference Type reference (TYPE) J_OBJNR Objektnummer 20060313
5 Importing I_OPERATION Call by reference Type reference (TYPE) J_VORGANG Betriebswirtschaftlicher Vorgang 20060313

Method STATUS_CHANGE_FOR_ACTIVITY on class CL_COCF_MAIN_TOP has no exception.

Method SUBTRACT_TIME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_RESULT Value transfer Type reference (TYPE) NUMERIC Zeitpunkt 1 - 2 in Sekunden 20090528
2 Importing I_DATE1 Call by reference Type reference (TYPE) DATS Datum 1 20090528
3 Importing I_DATE2 Call by reference Type reference (TYPE) DATS Datum 2 20090528
4 Importing I_TIME1 Call by reference Type reference (TYPE) TIMS Zeit 1 20090528
5 Importing I_TIME2 Call by reference Type reference (TYPE) TIMS Zeit 2 20090528

Method SUBTRACT_TIME on class CL_COCF_MAIN_TOP has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 700