SAP ABAP Class CL_CFB_BEST_BEFORE_DATE (CFB Class BBD in Process Order)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
PP-PI-CFB (Application Component) Consumer Products for Food & Beverage
⤷
CFB_GENERAL (Package) CFB General (DDIC)
⤷
⤷
Properties
| Class | CL_CFB_BEST_BEFORE_DATE | |
| Short Description | CFB Class BBD in Process Order | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | CFB_GENERAL | CFB General (DDIC) |
| Created | 20101028 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_CFB_BEST_BEFORE_DATE has no forward declaration.
Interfaces
Class CL_CFB_BEST_BEFORE_DATE has no interface implemented.
Friends
Class CL_CFB_BEST_BEFORE_DATE has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Public | Object reference (TYPE REF TO) | CFB_BADI_CALCULATE_BBD | BAdI for Calculating BBD | 20101103 | |||
| 2 | Static Attribute | Public | Object reference (TYPE REF TO) | CFB_BADI_SET_DATE_OF_MANUFACT | BAdI for Calculating Date of Manufacture | 20101126 | |||
| 3 | Static Attribute | Public | Object reference (TYPE REF TO) | CL_CFB_BEST_BEFORE_DATE | CFB Class BBD in Process Order | 20101103 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | TT_AUFNR_FLG_BBD_CALC_BTCH | Table: Order + BBD Ind. from PI and Recalc. if Resched. | 20101227 | |||
| 5 | Instance attribute | Private | Type reference (TYPE) | TT_BATCH_BBD | Table Batch + BBD | 20101108 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | AUFNR | Order Number | 20101209 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | CFB_BBD_PPPI | Best-Before Date (BBD)/ Shelf Life Expiration Date (SLED) | 20101227 | |||
| 8 | Instance attribute | Public | Type reference (TYPE) | CFB_DATOFM | Date of Manuf. | 20101216 | |||
| 9 | Instance attribute | Private | Type reference (TYPE) | CFB_FLG_BBD_PPPI_IN_BATCH | CFB BBD from Process Order is Written to Batch Master | 20101108 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | CFB_FLG_BBD_CALC_NEW_AT_RESC | CFB: Recalculate BBD During Rescheduling | 20101108 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Public | Method | Calculate Best-Before Date | 20101103 | |
| 2 | Instance method | Public | Method | Calculate BBD and Update Batch Master Record | 20101119 | |
| 3 | Instance method | Public | Constructor | Constructor | 20101028 | |
| 4 | Instance method | Public | Method | Get Table: Batch BBD Order | 20101108 | |
| 5 | Instance method | Public | Method | Get BBD, Batch, Prod.Supervisor Profile from Process Order | 20101125 | |
| 6 | Instance method | Public | Method | Get Date of Manufacture | 20101214 | |
| 7 | Instance method | Public | Method | Get "BBD in Batch" and "Recalculate BBD" Flags | 20101207 | |
| 8 | Instance method | Private | Method | Get GV_AUFNR Attribute | 20101228 | |
| 9 | Static method | Public | Method | Get Instance | 20101028 | |
| 10 | Instance method | Public | Method | Determine Maximum Storage Period | 20101029 | |
| 11 | Instance method | Public | Method | Fill Table: Batch BBD Order | 20101108 | |
| 12 | Instance method | Public | Method | Set Date of Manufacture | 20101216 | |
| 13 | Instance method | Public | Method | Save Indicator for "Copy BBD to Batch" and "Recalc. BBD" | 20101228 | |
| 14 | Instance method | Private | Method | Set GV_AUFNR Attribute | 20101228 |
Events
Class CL_CFB_BEST_BEFORE_DATE has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_AUFNR_FLG_BBD_CALC_BTCH | Private | See coding | 20101227 | BEGIN OF ts_aufnr_flg_bbd_calc_btch,
aufnr TYPE aufnr,
charg TYPE charg_d,
flg_bbd_calc TYPE flag,
flg_bbd_btch TYPE flag.
TYPES: END OF ts_aufnr_flg_bbd_calc_btch
|
||
| 2 | TS_BATCH_BBD | Private | See coding | 20101108 | BEGIN OF ts_batch_bbd,
matnr TYPE matnr,
werks TYPE werks_d,
aufnr TYPE aufnr,
charg TYPE charg_d,
bbdpi TYPE cfb_bbd_pppi,
datofm TYPE cfb_datofm.
TYPES: END OF ts_batch_bbd
|
||
| 3 | TT_AUFNR_FLG_BBD_CALC_BTCH | Private | See coding | 20101227 | tt_aufnr_flg_bbd_calc_btch TYPE TABLE OF ts_aufnr_flg_bbd_calc_btch
|
||
| 4 | TT_BATCH_BBD | Private | See coding | 20101108 | tt_batch_bbd TYPE TABLE OF ts_batch_bbd
|
Method Signatures
Method CALCULATE_BBD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_BBD_PPPI | Call by reference | Type reference (TYPE) | CFB_BBD_PPPI | CFB Verfallsdatum / Mindesthaltbarkeitsdatum | 20101103 | |||
| 2 | IS_CAUFVD | Call by reference | Type reference (TYPE) | CAUFVD | Dialogstruktur fuer Auftragskoepfe und -position | 20101103 |
Method CALCULATE_BBD on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method CALCULATE_BBD_AND_UPDATE_BATCH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_BBD_PPPI | Value transfer | Type reference (TYPE) | CFB_BBD_PPPI | Mindesthaltbarkeitsdatum (MHD) oder Verfallsdatum | 20101119 | |||
| 2 | IS_CAUFVD | Value transfer | Type reference (TYPE) | CAUFVD | Dialogstruktur fuer Auftragskoepfe und -position | 20101119 | |||
| 3 | IV_CHARG | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101119 |
Method CALCULATE_BBD_AND_UPDATE_BATCH on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101209 |
Method CONSTRUCTOR on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_BATCH_BBD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_BBDPI | Value transfer | Type reference (TYPE) | CFB_BBD_PPPI | CFB Verfallsdatum / Mindesthaltbarkeitsdatum | 20101108 | |||
| 2 | EV_DATOFM | Value transfer | Type reference (TYPE) | CFB_DATOFM | Herstelldatum | 20101119 | |||
| 3 | IV_CHARG | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101108 |
Method GET_BATCH_BBD on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_BBD_BTCH_PRDPRF_FROM_ORDER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_BBDPI | Value transfer | Type reference (TYPE) | CFB_BBD_PPPI | Mindesthaltbarkeitsdatum (MHD) oder Verfallsdatum | 20101125 | |||
| 2 | EV_CHARG_ORDER | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101228 | |||
| 3 | EV_DATOFM | Value transfer | Type reference (TYPE) | CFB_DATOFM | Herstelldatum | 20101125 | |||
| 4 | EV_PRODPRF | Value transfer | Type reference (TYPE) | CO_PRODPRF | Fertigungssteuerungsprofil | 20101125 | |||
| 5 | EV_WERKS | Value transfer | Type reference (TYPE) | WERKS_D | Werk | 20101228 | |||
| 6 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101125 | |||
| 7 | IV_POSNR | Value transfer | Type reference (TYPE) | CO_POSNR | Nummer der Auftragsposition | 20101206 |
Method GET_BBD_BTCH_PRDPRF_FROM_ORDER on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_DATE_OF_MANUFACTURE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_DATOFM | Value transfer | Type reference (TYPE) | CFB_DATOFM | Herstelldatum | 20101214 |
Method GET_DATE_OF_MANUFACTURE on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_FLG_BBD_BTCH_AND_CALC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_FLG_BBD_BTCH | Value transfer | Type reference (TYPE) | CFB_FLG_BBD_PPPI_IN_BATCH | CFB Kz. MHD aus Prozeßauftr.wird in Chargenstamm geschrieben | 20101207 | |||
| 2 | EV_FLG_BBD_CALC | Value transfer | Type reference (TYPE) | CFB_FLG_BBD_CALC_NEW_AT_RESC | Neuberechnen bei Umterminierung | 20101207 | |||
| 3 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101228 | |||
| 4 | IV_CHARG | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101228 | |||
| 5 | IV_FROM_BUFFER | Value transfer | Type reference (TYPE) | FLAG | Kz. ob nur aus dem Puffer gelesen werden soll | 20101207 | |||
| 6 | IV_PRODPRF | Value transfer | Type reference (TYPE) | CO_PRODPRF | Fertigungssteuerungsprofil | 20101207 | |||
| 7 | IV_WERKS | Value transfer | Type reference (TYPE) | WERKS_D | Werk | 20101207 |
Method GET_FLG_BBD_BTCH_AND_CALC on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_GV_AUFNR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101228 |
Method GET_GV_AUFNR on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ER_CFB_BBD_REF | Call by reference | Object reference (TYPE REF TO) | CL_CFB_BEST_BEFORE_DATE | CFB Klasse MHD im Prozeßauftrag | 20101028 | |||
| 2 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101209 |
Method GET_INSTANCE on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method GET_MAX_STORAGE_TIME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_LZEIH | Value transfer | Type reference (TYPE) | LZEIH | Einheit für die maximale Lagerungszeit | 20101029 | |||
| 2 | EV_MAXLZ | Value transfer | Type reference (TYPE) | MAXLZ | Maximale Lagerungszeit | 20101029 | |||
| 3 | IV_MATNR | Value transfer | Type reference (TYPE) | MATNR | Materialnummer | 20101029 | |||
| 4 | IV_WERKS | Value transfer | Type reference (TYPE) | WERKS_D | Werk | 20101029 |
Method GET_MAX_STORAGE_TIME on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method SET_BATCH_BBD Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101108 | |||
| 2 | IV_BBDPI | Value transfer | Type reference (TYPE) | CFB_BBD_PPPI | CFB Verfallsdatum / Mindesthaltbarkeitsdatum | 20101108 | |||
| 3 | IV_CHARG | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101108 | |||
| 4 | IV_DATOFM | Value transfer | Type reference (TYPE) | CFB_DATOFM | Herstelldatum | 20101119 | |||
| 5 | IV_MATNR | Value transfer | Type reference (TYPE) | MATNR | Materialnummer | 20101108 | |||
| 6 | IV_WERKS | Value transfer | Type reference (TYPE) | WERKS_D | Werk | 20101108 |
Method SET_BATCH_BBD on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method SET_DATE_OF_MANUFACTURE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_CAUFVD | Value transfer | Type reference (TYPE) | CAUFVD | Dialogstruktur fuer Auftragskoepfe und -position | 20101216 |
Method SET_DATE_OF_MANUFACTURE on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method SET_FLG_BBD_BTCH_AND_CALC Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101228 | |||
| 2 | IV_CHARG | Value transfer | Type reference (TYPE) | CHARG_D | Chargennummer | 20101228 | |||
| 3 | IV_FLG_BBD_BTCH | Value transfer | Type reference (TYPE) | CFB_FLG_BBD_PPPI_IN_BATCH | CFB Kz. MHD aus Prozeßauftr.wird in Chargenstamm geschrieben | 20101228 | |||
| 4 | IV_FLG_BBD_CALC | Value transfer | Type reference (TYPE) | CFB_FLG_BBD_CALC_NEW_AT_RESC | Neuberechnung bei Umterminierung | 20101228 |
Method SET_FLG_BBD_BTCH_AND_CALC on class CL_CFB_BEST_BEFORE_DATE has no exception.
Method SET_GV_AUFNR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_AUFNR | Value transfer | Type reference (TYPE) | AUFNR | Auftragsnummer | 20101228 |
Method SET_GV_AUFNR on class CL_CFB_BEST_BEFORE_DATE has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 606 |