SAP ABAP Class CL_OIJ_PRORATE_DATA (Business Logic of Proration)
Hierarchy
IS-OIL (Software Component) IS-OIL
   IS-OIL-DS-TSW (Application Component) Trader's and Scheduler's Workbench
     OIJ (Package) TSW Traders and Schedulers Workbench
Properties
Class CL_OIJ_PRORATE_DATA  
Short Description Business Logic of Proration    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package OIJ   TSW Traders and Schedulers Workbench 
Created 20040225   SAP 
Last change 20050224   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_OIJ_PRORATE_DATA has no forward declaration.
Interfaces
Class CL_OIJ_PRORATE_DATA has no interface implemented.
Friends
Class CL_OIJ_PRORATE_DATA has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_98 Constant Private Type reference (TYPE) CHAR2 '98' Version Number Component 20040421
2 C_ADD Constant Private Type reference (TYPE) C 'I' Add Indicator 20040421
3 C_CHECKED Constant Private Type reference (TYPE) OIJ_ISTAT 'B' Nomination Item status 20040421
4 C_DUMMY Constant Private Type reference (TYPE) OIJ_TKTNR '$000000001' OIL-TSW: External ticket number 20040421
5 C_POSITIVE Constant Private Type reference (TYPE) OIJ_EL_TICKET_I-SUBSTATUS 4 Nomination Item sub-status 20040421
6 C_TIMEZONE_CALC Constant Private Type reference (TYPE) EXIT_DEF 'OIJ_TIMEZONE_CALC' Business Add-in Definition 20040422
7 C_TKT_INTERN Constant Private Type reference (TYPE) OIJ_EL_TKT_PURPOSE 4 OIL-TSW: Ticket purpose 20040421
8 C_TKT_TYPE Constant Private Type reference (TYPE) OIJ_EL_TKT_TYPE 'PC1' OIL-TSW: Ticket type 20040421
9 C_TKT_VERSION Constant Private Type reference (TYPE) OIJ_EL_TKT_VERSION '000' OIL-TSW: Ticket version 20040421
10 C_TRUE Constant Private Type reference (TYPE) C 'X' True = 'X' 20040422
11 GS_EXIT_TZ Instance attribute Private Object reference (TYPE REF TO) IF_EX_OIJ_TIMEZONE_CALC Business add-in interface IF_EX_OIJ_TIMEZONE_CALC 20040420
12 GS_TTZCU Instance attribute Private Type reference (TYPE) TTZCU Customizing time zones 20040420
13 GV_TZ_EXIT_ACT Instance attribute Private Type reference (TYPE) C Timezone exit exists 20040420
14 S_NOM_HEADER Instance attribute Private Type reference (TYPE) ROIJNOMHIO TSW Nomination Header Communication Structure 20040225
15 S_NOM_ITEM Instance attribute Private Type reference (TYPE) ROIJNOMIIO TSW Nomination Item Communication Structure 20040225
16 S_PRORATE_MAIN Instance attribute Private Type reference (TYPE) ROIJ_PRORATE_MAIN Structure of the main data used in the proration application 20040225
17 T_MEASUREMENT_TICKETS Instance attribute Private Type reference (TYPE) OIJ_EL_TICKET_I_TT Universal ticket item table 20040225
18 T_NOM_DEM_ITEMS Instance attribute Private Type reference (TYPE) ROIJNOMIIO_T Nomination Item Communication 20040225
19 T_NOM_HEADER Instance attribute Private Type reference (TYPE) ROIJNOMHIO_T Nomination Header Communcation Table Type 20040504
20 T_NOM_ITEM Instance attribute Private Type reference (TYPE) ROIJNOMIIO_T Nomination Item Communication 20040225
21 T_NOM_SUP_ITEMS Instance attribute Private Type reference (TYPE) ROIJNOMIIO_T Nomination Item Communication 20040225
Methods
# Method Level Visibility Method type Description Created on
1 CALC_PRORATE_QTY Instance method Public Method Calculates the prorated quantities 20040226
2 CALC_SUMS Instance method Private Method sums up the prorated, scheduled, assigned, loaded quantity 20040225
3 CALC_TO_ORIG_UNIT Instance method Private Method Calculates quantities into the original unit 20040315
4 CALC_TO_REF_UNIT Instance method Private Method Calculates quantities into the ref unit 20040225
5 CALL_PRO_FOR_TICKET_CREATION Instance method Private Method creates the prorated ticket 20040421
6 CHANGE_MAINTENANCE_MODE Instance method Public Method Tries to change to edit or display mode X-maintain, ''-edit 20040226
7 CHANGE_PRO_ROUTINE Instance method Public Method Sets the new proration routine implementation 20040225
8 CHANGE_REF_UNIT Instance method Public Method Sets the new reference unit and triggers the conversions 20040225
9 CHECK_BEFORE_TICKET_CREATE Instance method Private Method checks if ticket creation would be possible 20040421
10 CHECK_DEMAND_MAT_IS_EQUAL Instance method Private Method Checks that material of demand items is equal 20040226
11 CHECK_PRORATE_TICKET Instance method Public Method Determines the mode for the create ticket button 20040225
12 CONSTRUCTOR Instance method Public Constructor CONSTRUCTOR 20040310
13 CONVERT_QUAN Instance method Private Method Convert unit quan 20040310
14 CREATE_PRO_TKT_ITEMS Instance method Private Method Returns a table of ticket items 20040326
15 CREATE_TICKET_FOR_PRORATION Instance method Public Method Creates ticket for the goods movement (PR Ticket) 20040226
16 CREATE_TKT_HEADER Instance method Private Method Returns a filled structure for the ticket header 20040323
17 DETER_DS_ITEMS Instance method Private Method Determines DS items and calc it to ref unit 20040225
18 DETER_MEASUR_TICKETS Instance method Private Method Determines the actual loaded quantity 20040226
19 DETER_NOMITEMS_FOR_PEGID Instance method Private Method Determines nomitems for pegid 20040225
20 DETER_PRO_TKT_ITEM_O1 Instance method Private Method Determines the measured temp of loaded quantity 20040326
21 DETER_PRO_TKT_I_O2_MENGE Instance method Private Method determines the O2 for a ticket item and the loaded quantity 20040422
22 GET_ATTRIBUTES Instance method Public Method Returns global class data 20040308
23 GET_DEM_ITEMS_FOR_NOMIUPDATE Instance method Public Method Returns the demitems in units of nomination transaction 20040312
24 INITIALZE_PRORATION_DATA Instance method Public Method Initialises the data class 20040225
25 SET_TNOM_DEM_ITEMS Instance method Public Method Gets the actual entered data from the alv 20040225
Events
Class CL_OIJ_PRORATE_DATA has no event.
Types
Class CL_OIJ_PRORATE_DATA has no local type.
Method Signatures

Method CALC_PRORATE_QTY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_T_ERROR Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040315
2 Exporting E_T_OIJNOMIT Call by reference Type reference (TYPE) ROIJNOMIIO_T Oil/TSW: Tabellentyp für Planungsbeleg-Positionen 20040420

Method CALC_PRORATE_QTY on class CL_OIJ_PRORATE_DATA has no exception.

Method CALC_SUMS Signature

Method CALC_SUMS on class CL_OIJ_PRORATE_DATA has no parameter.
Method CALC_SUMS on class CL_OIJ_PRORATE_DATA has no exception.

Method CALC_TO_ORIG_UNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_NOM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040315
2 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040315
3 Importing I_NOM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040315
4 Importing I_NOM_ITEMS_ORIGUNIT Call by reference Type reference (TYPE) ROIJNOMIIO_T table with original units 20040315
# Exception Resumable Description Created on
1 CONVERSION_NOT_POSSIBLE conversion was not possible 20040315
2 ORIG_UNIT_NOT_FOUND original unit was not found in the table 20040315

Method CALC_TO_REF_UNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_NOM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040308
2 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040310
3 Importing I_NOM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040308
4 Importing I_UNIT Call by reference Type reference (TYPE) UNIT Einheit 20040308
# Exception Resumable Description Created on
1 CONVERSION_NOT_POSSIBLE conversion was not possible 20040308

Method CALL_PRO_FOR_TICKET_CREATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040421
2 Importing I_OIJ_EL_TICKET_H Call by reference Type reference (TYPE) ROIJ_EL_TICKET_HVB Universal-Ticket-Tabelle 20040421
3 Importing I_TKT_ITEMS Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT IS-Oil/TSW: Ticketposition/Tabellentyp 20040421
4 Importing I_TKT_ITEMS_O1 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O1_T TSW-Ticketpos. - Tabellentyp für Umrechnungsparameter 20040421
5 Importing I_TKT_ITEMS_O2 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O2_T TSW-Ticketpos. - Tabellentyp für Zusätzliche Mengen 20040421

Method CALL_PRO_FOR_TICKET_CREATION on class CL_OIJ_PRORATE_DATA has no exception.

Method CHANGE_MAINTENANCE_MODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_SET_MODE Call by reference Type reference (TYPE) C resulted maintenance mode 20040226
2 Importing I_REG_MODE Call by reference Type reference (TYPE) C requested maintenance mode 20040226

Method CHANGE_MAINTENANCE_MODE on class CL_OIJ_PRORATE_DATA has no exception.

Method CHANGE_PRO_ROUTINE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NEWROUTINE Call by reference Type reference (TYPE) OIJ_EL_DE_PR_RT Art der Rechenroutine für die Zuteilungsberechnung 20040225

Method CHANGE_PRO_ROUTINE on class CL_OIJ_PRORATE_DATA has no exception.

Method CHANGE_REF_UNIT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040310
2 Importing I_NEWUNIT Call by reference Type reference (TYPE) UNIT Einheit 20040225

Method CHANGE_REF_UNIT on class CL_OIJ_PRORATE_DATA has no exception.

Method CHECK_BEFORE_TICKET_CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040421
2 Changing IS_TICKET_H Call by reference Type reference (TYPE) ROIJ_EL_TICKET_HVB Universal-Ticket-Tabelle 20040421
3 Changing IT_TKT_ITEMS Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT Universal-Ticket-Positionstabelle 20040421

Method CHECK_BEFORE_TICKET_CREATE on class CL_OIJ_PRORATE_DATA has no exception.

Method CHECK_DEMAND_MAT_IS_EQUAL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040318

Method CHECK_DEMAND_MAT_IS_EQUAL on class CL_OIJ_PRORATE_DATA has no exception.

Method CHECK_PRORATE_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_PRORATE_MAIN Call by reference Type reference (TYPE) ROIJ_PRORATE_MAIN Struktur d.in Mengenzuteilungs-Anwend.verwendeten Hauptdaten 20040322
2 Exporting ES_TKT_H Call by reference Type reference (TYPE) OIJ_EL_TICKET_H Universal-Ticket-Tabelle 20040429

Method CHECK_PRORATE_TICKET on class CL_OIJ_PRORATE_DATA has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_OIJ_PRORATE_DATA has no parameter.
Method CONSTRUCTOR on class CL_OIJ_PRORATE_DATA has no exception.

Method CONVERT_QUAN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_QTY Call by reference Type reference (TYPE) OIJ_MENGE Dispon. Menge 20040310
2 Importing I_QTY Call by reference Type reference (TYPE) OIJ_MENGE Dispon. Menge 20040310
3 Importing I_UNIT_SCR Call by reference Type reference (TYPE) UNIT Einheit 20040310
4 Importing I_UNIT_TAR Call by reference Type reference (TYPE) UNIT Einheit 20040310
# Exception Resumable Description Created on
1 CONVERSION_NOT_POSSIBLE The conversion is not possible 20040310
2 TARGET_UNIT_NOT_VALID The target unit is not valid 20040310

Method CREATE_PRO_TKT_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040326
2 Exporting E_TKT_ITEMS Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT IS-Oil/TSW: Ticketposition/Tabellentyp 20040326
3 Exporting E_TKT_ITEMS_O1 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O1_T TSW-Ticketpos. - Tabellentyp für Umrechnungsparameter 20040326
4 Exporting E_TKT_ITEMS_O2 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O2_T TSW-Ticketpos. - Tabellentyp für Zusätzliche Mengen 20040326
5 Importing I_OIJ_EL_TICKET_H Call by reference Type reference (TYPE) ROIJ_EL_TICKET_HVB IS-Oil/TSW: Ticket-Kopf/Tabellentyp 20040421

Method CREATE_PRO_TKT_ITEMS on class CL_OIJ_PRORATE_DATA has no exception.

Method CREATE_TICKET_FOR_PRORATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040419

Method CREATE_TICKET_FOR_PRORATION on class CL_OIJ_PRORATE_DATA has no exception.

Method CREATE_TKT_HEADER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_OIJ_EL_TICKET_H Call by reference Type reference (TYPE) ROIJ_EL_TICKET_HVB Universal-Ticket-Tabelle 20040323

Method CREATE_TKT_HEADER on class CL_OIJ_PRORATE_DATA has no exception.

Method DETER_DS_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040421

Method DETER_DS_ITEMS on class CL_OIJ_PRORATE_DATA has no exception.

Method DETER_MEASUR_TICKETS Signature

Method DETER_MEASUR_TICKETS on class CL_OIJ_PRORATE_DATA has no parameter.
Method DETER_MEASUR_TICKETS on class CL_OIJ_PRORATE_DATA has no exception.

Method DETER_NOMITEMS_FOR_PEGID Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040421

Method DETER_NOMITEMS_FOR_PEGID on class CL_OIJ_PRORATE_DATA has no exception.

Method DETER_PRO_TKT_ITEM_O1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_ITEM_TKT_O1 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O1 Anhang: TSW-Ticketpositionen - Umrechnumgsparameter 20040326
2 Exporting ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040326
3 Importing IS_TKT_I Call by reference Type reference (TYPE) OIJ_EL_TICKET_I Universal-Ticket-Positionstabelle 20040422
4 Importing IT_ITEM_TKT Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT IS-Oil/TSW: Ticketposition/Tabellentyp 20040326
5 Importing IV_LOADED_QTY Call by reference Type reference (TYPE) OIJ_MENGE Dispon. Menge 20040326
6 Importing IV_UNIT Call by reference Type reference (TYPE) UNIT Einheit 20040326

Method DETER_PRO_TKT_ITEM_O1 on class CL_OIJ_PRORATE_DATA has no exception.

Method DETER_PRO_TKT_I_O2_MENGE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ERROR Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040422
2 Exporting ET_MEASUR_TKT Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT IS-Oil/TSW: Ticketposition/Tabellentyp 20040422
3 Exporting ET_TKT_I_O2 Call by reference Type reference (TYPE) OIJ_EL_TKT_I_O2_T TSW-Ticketpos. - Tabellentyp für Zusätzliche Mengen 20040422
4 Exporting EV_MENGE Call by reference Type reference (TYPE) OIJ_MENGE Dispon. Menge 20040422
5 Importing IS_TKT_I Call by reference Type reference (TYPE) OIJ_EL_TICKET_I Universal-Ticket-Positionstabelle 20040422
6 Importing IV_UNIT Call by reference Type reference (TYPE) MEINS Basis-Mengeneinheit 20040422

Method DETER_PRO_TKT_I_O2_MENGE on class CL_OIJ_PRORATE_DATA has no exception.

Method GET_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_S_NOM_HEADER Call by reference Type reference (TYPE) ROIJNOMHIO IS-Oil/TSW: Kommunikationsstruktur für Planungsbelegkopf 20040308
2 Exporting E_S_PRORATE_MAIN Call by reference Type reference (TYPE) ROIJ_PRORATE_MAIN Struktur d.in Mengenzuteilungs-Anwend.verwendeten Hauptdaten 20040308
3 Exporting E_T_MEASUREMENT_TICKETS Call by reference Type reference (TYPE) OIJ_EL_TICKET_I_TT IS-Oil/TSW: Ticketposition/Tabellentyp 20040308
4 Exporting E_T_NOM_DEM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040308
5 Exporting E_T_NOM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040308
6 Exporting E_T_NOM_SUP_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040308

Method GET_ATTRIBUTES on class CL_OIJ_PRORATE_DATA has no exception.

Method GET_DEM_ITEMS_FOR_NOMIUPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_NOM_DEM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T Planungsbeleg-Position, Kommunikation 20040312
2 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040312

Method GET_DEM_ITEMS_FOR_NOMIUPDATE on class CL_OIJ_PRORATE_DATA has no exception.

Method INITIALZE_PRORATION_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_MAINTENANCE_M_ANWERED Call by reference Type reference (TYPE) C resulted maintenance mode 20040308
2 Exporting E_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040308
3 Importing I_MAINTENANCE_M_REQUEST Call by reference Type reference (TYPE) C requested maintenance mode 20040308
4 Importing I_MATNR_I Call by reference Type reference (TYPE) OIJ_MATNR Verladenes/entladenes Material 20040225
5 Importing I_PEGID_ACTUAL Call by reference Type reference (TYPE) OIJ_PEGID Pegging-Kennung 20040225
6 Importing I_PEGTYPE Call by reference Type reference (TYPE) OIJ_PEGTYPE Pegging-Typ 20040225
7 Importing I_PRORATE_ROUTINE_SCR Call by reference Type reference (TYPE) OIJ_EL_DE_PR_RT Art der Rechenroutine für die Zuteilungsberechnung 20040225
8 Importing I_REF_UNIT Call by reference Type reference (TYPE) UNIT Einheit 20040225

Method INITIALZE_PRORATION_DATA on class CL_OIJ_PRORATE_DATA has no exception.

Method SET_TNOM_DEM_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_T_RETURN_TAB Call by reference Type reference (TYPE) BAPIRET2_T Rückgabeparameter-Tabelle 20040316
2 Importing I_T_DEM_ITEMS Call by reference Type reference (TYPE) ROIJNOMIIO_T IS-Oil/TSW: Ticketposition/Tabellentyp 20040225

Method SET_TNOM_DEM_ITEMS on class CL_OIJ_PRORATE_DATA has no exception.
History
Last changed by/on SAP  20050224 
SAP Release Created in 472