SAP ABAP Class CL_WPM_PROMOTION (Help Functions for Promotion Processing)
Hierarchy
☛
BBPCRM (Software Component) BBPCRM
⤷
CRM-MD-PCT (Application Component) Product Catalog
⤷
WAKT (Package) Application development R/3 Promotions
⤷
⤷
Properties
| Class | CL_WPM_PROMOTION | |
| Short Description | Help Functions for Promotion Processing | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | WAKT | Application development R/3 Promotions |
| Created | 20090126 | SAP |
| Last change | 20100310 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
Class CL_WPM_PROMOTION has no forward declaration.
Interfaces
Class CL_WPM_PROMOTION has no interface implemented.
Friends
Class CL_WPM_PROMOTION has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | CHAR4 | '~B00' | Prefix for Bonus Buy-OfferID | 20090126 | ||
| 2 | Constant | Public | Type reference (TYPE) | CHAR2 | '~P' | Prefix for Promotion Item-Price-OfferID | 20090126 | ||
| 3 | Constant | Public | Type reference (TYPE) | CHAR2 | '~Q' | Prefix for Promotion Item-Price-OfferID | 20090126 | ||
| 4 | Constant | Public | Type reference (TYPE) | CHAR2 | '~R' | Prefix for Promotion Discount-OfferID | 20090126 | ||
| 5 | Constant | Public | Type reference (TYPE) | XFELD | 'X' | Checkbox | 20090216 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Method | Analyze Offer ID | 20090216 | |
| 2 | Static method | Public | Method | Generate Offer ID for Bonus Buy | 20090126 | |
| 3 | Static method | Public | Method | Generate Offer ID for Promotion Item | 20090126 | |
| 4 | Static method | Public | Method | Generate Offer ID for Promotion Discount | 20090126 |
Events
Class CL_WPM_PROMOTION has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TS_OFFERID_WAKP | Private | See coding | 20090313 | BEGIN OF ts_offerid_wakp,
prefix TYPE c LENGTH 2,
len_aktnr TYPE n LENGTH 1, " Length 10 is mapped to '0'. Length 0 cannot occur
len_matnr TYPE n LENGTH 2,
id TYPE c LENGTH 31,
END OF ts_offerid_wakp
|
||
| 2 | TS_OFFERID_WAKR | Private | See coding | 20090313 | BEGIN OF ts_offerid_wakr,
prefix TYPE c LENGTH 2,
len_aktnr TYPE n LENGTH 1, " Length 10 is mapped to '0'. Length 0 cannot occur
dummy TYPE n LENGTH 2,
id TYPE c LENGTH 31,
END OF ts_offerid_wakr
|
Method Signatures
Method ANALYZE_OFFER_ID Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ES_KONBBYH_KEY | Call by reference | Type reference (TYPE) | WPM_S_OFFERID_KONBBYH | Konvertierung der OfferID für Bonuskäufe | 20090216 | |||
| 2 | ES_WAKP_KEY | Call by reference | Type reference (TYPE) | WPM_S_OFFERID_WAKP | Konvertierung der OfferID für Aktionspositionen | 20090216 | |||
| 3 | ES_WAKR_KEY | Call by reference | Type reference (TYPE) | WPM_S_OFFERID_WAKR | Konvertierung der OfferID für Aktionsrabatte | 20090216 | |||
| 4 | EV_KONBBYH | Call by reference | Type reference (TYPE) | XFELD | Angebot ist ein Bonuskauf (Tabelle KONBBYH) | 20090216 | |||
| 5 | EV_WAKP_DISCOUNT | Call by reference | Type reference (TYPE) | XFELD | Rabatt für eine Aktionsposition (WAKP-OFFER_ID_DSC) | 20090216 | |||
| 6 | EV_WAKP_PRICE | Call by reference | Type reference (TYPE) | XFELD | Preis für eine Aktionsposition (WAKP-OFFER_ID) | 20090216 | |||
| 7 | EV_WAKR | Call by reference | Type reference (TYPE) | XFELD | Angebot ist ein Aktionsrabatt (Tabelle WAKR) | 20090216 | |||
| 8 | IV_OFFER_ID | Call by reference | Type reference (TYPE) | WPM_OFFERID | Angebotsschlüssel Aktion | 20090216 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Der ermittelte Schlüssel ist nicht eindeutig | 20090309 | ||
| 2 | Die übergebene OfferID ist keine generisch erzeugte | 20090216 |
Method BUILD_OFFER_ID_BBY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_OFFER_ID | Call by reference | Type reference (TYPE) | WPM_OFFERID | Angebotsschlüssel Aktion | 20090210 | |||
| 2 | IV_BBYNR | Call by reference | Type reference (TYPE) | BBYNR | Bonuskauf | 20090126 |
Method BUILD_OFFER_ID_BBY on class CL_WPM_PROMOTION has no exception.
Method BUILD_OFFER_ID_WAKP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_OFFER_ID | Call by reference | Type reference (TYPE) | WPM_OFFERID_PRICE | Angebotsschlüssel Preis | 20090210 | |||
| 2 | EV_OFFER_ID_DSC | Call by reference | Type reference (TYPE) | WPM_OFFERID_DISCOUNT | Angebotsschlüssel Rabatt | 20090210 | |||
| 3 | IV_AKTNR | Call by reference | Type reference (TYPE) | WAKTION | Aktion | 20090210 | |||
| 4 | IV_ARTNR | Call by reference | Type reference (TYPE) | MATNR | Materialnummer | 20090210 | |||
| 5 | IV_MEBME | Call by reference | Type reference (TYPE) | W_MEBME | Verkaufs-Mengeneinheit | 20090210 |
Method BUILD_OFFER_ID_WAKP on class CL_WPM_PROMOTION has no exception.
Method BUILD_OFFER_ID_WAKR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_OFFER_ID | Call by reference | Type reference (TYPE) | WPM_OFFERID | Angebotsschlüssel Aktion | 20090210 | |||
| 2 | IV_AKTNR | Call by reference | Type reference (TYPE) | WAKTION | Aktion | 20090210 | |||
| 3 | IV_POSNR | Call by reference | Type reference (TYPE) | REB_POSNR | Positionsnummer Aktionsrabatt | 20090210 |
Method BUILD_OFFER_ID_WAKR on class CL_WPM_PROMOTION has no exception.
History
| Last changed by/on | SAP | 20100310 |
| SAP Release Created in | 605 |