CL_CRM_MKTPL_QE_PD_LEAD_ITEM - Quick Entry of Spend Values, Product Lead, Assignment Item
PERFORM Short Reference Addresses (Business Address Services)This documentation is copyright by SAP AG.
>>> Development Documentation generated by DocuGenerator v2.0 (only available in English => NO TRANSLATION!!!) <<<
General Class Description
Quick Entry of Spend Values, Product Lead, Assignment Item
__________________________________________________________
Class Info
| Name: | CL_CRM_MKTPL_QE_PD_LEAD_ITEM |
| Instantiation: | Public |
Superclass
Implemented Interfaces
None
Friend Classes
None
Subclasses
None
__________________________________________________________
Methods
IF_CRM_MKTGS_EVENT_LISTENER~ATTRIBUTES_CHANGED
Public IF_CRM_MKTGS_EVENT_LISTENER~ATTRIBUTES_CHANGED(
| IMPORTING | ANY | IS_ATTRIBUTES_OLD |
| ANY | IS_ATTRIBUTES_NEW | |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM | |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method is invoked when changes are made in assignments that product lead is registered to
| - | IR_OBJECT_ITEM | |
| The object to which the changed assignment belongs | ||
| IR_ASG_ITEM | ||
| The changed assignment item | ||
| IS_ATTRIBUTES_OLD | ||
| The old attributes of the assignment item | ||
| IS_ATTRIBUTES_NEW | ||
| The new attributes of the assignment item |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~ITEM_CREATED
Public IF_CRM_MKTGS_EVENT_LISTENER~ITEM_CREATED(
| IMPORTING | CRM_MKTGS_CREATE_MODE | IV_CREATE_MODE |
| CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM | |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method is invoked when items are created in assignments that product lead is registered to
| - | IR_OBJECT_ITEM | |
| The object to which the created assignment item belongs | ||
| IR_ASG_ITEM | ||
| The created assignment item | ||
| IV_CREATE_MODE | ||
| The mode in which the object being created is. |
| ________________________________________________________________________ |
|---|
IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED
Public IF_CRM_MKTGS_EVENT_LISTENER~ITEM_DELETED(
| IMPORTING | CL_CRM_MKTGS_OBJ_ITEM | IR_OBJECT_ITEM |
| CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method is invoked when items are deleted in assignments that product lead is registered to
| - | IR_OBJECT_ITEM | |
| The object to which the deleted assignment item belongs | ||
| IR_ASG_ITEM | ||
| The deleted assignment item | ||
| IV_CREATE_MODE | ||
| The mode in which the object being deleted is. |
| ________________________________________________________________________ |
|---|
CHECK
Redefined Public ABAP_BOOL CHECK(
| IMPORTING | CRM_MKTGS_CHECK_MODE_EXPLICIT | IV_CHECK_MODE |
)
method documentation
* This method is in charge of determining if the user entered unacceptable entries in the IO fields
* if the user did this, then this method would return true and the external attributes flag wouldn't be cleared.
* this would lead to the errors and the erroneous values that the user entered to stay in the UI until they are corrected
* the appropriate error messages would also be raised.
Returns
rv_has_errors: returns true if errors have occured
Parameters
| ________________________________________________________________________ |
|---|
CLEAR_TSPEND_AT_POSITION
Public CLEAR_TSPEND_AT_POSITION(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_QE_TSPEND_POSITION |
)
method documentation
* This method is in charge of clearing all fields in a specific position (usually occurs when a trade spend is deleted)
| - | IV_QE_TSPEND_POSITION: | position (slot) whichneeds to be cleared |
| ________________________________________________________________________ |
|---|
CREATE_EXCEPTION
Private CREATE_EXCEPTION(
| IMPORTING | CRMS_MKTPL_QE_PD_LEAD_ATTR | IS_ATTRIBUTES |
| CRM_MKTPL_QE_TSPEND_POSITION | IV_SLOT |
)
method documentation
* This method is in charge of creating an exception, preparing the proper line item and creating the exception (via the real assignment)
| - | IV_SLOT: | position for which the exception will be created. |
| IS_ATTRIBUTES: attribute of the quick entry line item |
| ________________________________________________________________________ |
|---|
DELETE_ALL_EXCEPTIONS
Public DELETE_ALL_EXCEPTIONS( )
This method deletes all trade spend exceptions
for a product dimension using the delete one-click action for a row
in the Quick Entry of Spend Values, Product lead
Exceptions
| - | cx_crm_mktgs_function_failed | Is raised when exceptions could not be deleted |
| ________________________________________________________________________ |
|---|
FILL_EXTERNAL_ATTRIBUTES
Redefined Protected FILL_EXTERNAL_ATTRIBUTES( )
method docu
*This method will fill the IO fields with the appropriate backend data
| ________________________________________________________________________ |
|---|
GET_FIELD_ATTRIBUTES
Redefined Public CRMT_MKTGS_FIELD_ATTRIBUTE GET_FIELD_ATTRIBUTES(
method docu
This method sets which fields are read / display only in the UI
Returns
Returns a table containing the status of the fields and whether
they should be read only
Parameters
| ________________________________________________________________________ |
|---|
GET_HEADER_FIELD_ATTRIBUTES
Protected GET_HEADER_FIELD_ATTRIBUTES(
| CHANGING | CRMT_MKTGS_FIELD_ATTRIBUTE | CT_FIELD_ATTRIBUTES |
)
method docu
This method sets which fields are read / display only in the UI for the totals line item (header)
Parameters
| - | CT_FIELD_ATTRIBUTES | a table containing the status of the fields and whether |
| they should be read only |
| ________________________________________________________________________ |
|---|
HAS_MULTIPLE_EXCEPTIONS
Public CRMT_BOOLEAN HAS_MULTIPLE_EXCEPTIONS(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_QE_TSPEND_POSITION |
)
method documentation
* This method will loop at the table that contains a reference to thereal trade spend exceptions by position.
* if a position shows up twice, it is because there are multiple exceptions.
Returns
RV_HAS_MULTIPLE_EXCEPTIONS: returns true if there are multi exceptions
| - | IV_QE_TSPEND_POSITION: | the position in the quick entry assignment block at which we want to determine has multi exceptions |
| ________________________________________________________________________ |
|---|
HAS_SINGLE_EXCEPTION
Public CRMT_BOOLEAN HAS_SINGLE_EXCEPTION(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_QE_TSPEND_POSITION |
)
method documentation
* This method will loop at the table that contains a reference to thereal trade spend exceptions by position.
* if a position shows up twice, it is because there are multiple exceptions or else there are single exceptions.
Returns
RV_HAS_SINGLE_EXCEPTIONS: returns true if there is a single exception
| - | IV_QE_TSPEND_POSITION: | the position in the quick entry assignment block at which we want to determine has multi exceptions |
| ________________________________________________________________________ |
|---|
INVALIDATE_HEADER
Public INVALIDATE_HEADER( )
method docu
* This method invalidates the headerline item that has just changed by resetting the mv_external_attributes_filled flag to false.
* Since a line item has changed, the header should also be re-rendered.
| ________________________________________________________________________ |
|---|
INVALIDATE_ITEM
Public INVALIDATE_ITEM( )
method docu
* This method invalidates a line item that has just changed by resetting the mv_external_attributes_filled flag to false.
* Since a line item has changed, the header should also be re-rendered.
| ________________________________________________________________________ |
|---|
ON_CHANGED_PROD_DIM
Private ON_CHANGED_PROD_DIM(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method adjusts Product information in the QE assignment
| - | IR_ASG_ITEM | |
| A reference to the changed product assignment item. |
| ________________________________________________________________________ |
|---|
ON_CHANGED_TSPEND
Private ON_CHANGED_TSPEND(
| IMPORTING | ANY | IS_ATTRIBUTES_NEW |
)
method documentation
* This method adjusts Tradespend information in the QE assignment
| - | IS_ATTRIBUTES_NEW: | The new changed attributes of the assignment. |
| ________________________________________________________________________ |
|---|
ON_CHANGED_TSPEX
Private ON_CHANGED_TSPEX(
| IMPORTING | ANY | IS_ATTRIBUTES_NEW |
)
method docu
This method adjusts Tradespend Exception information in the QE assignment
| - | IS_ATTRIBUTES_NEW | |
| The new changed attributes of the assignment. |
| ________________________________________________________________________ |
|---|
ON_CREATED_TSPEND
Private ON_CREATED_TSPEND(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method adjusts updates Trade spend information in the QE assignment
| - | IR_ASG_ITEM | |
| A reference to the created Trade spend assignment item. |
| ________________________________________________________________________ |
|---|
ON_CREATED_TSPEX
Private ON_CREATED_TSPEX(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
This method adjusts updates Trade spend exception information in theQE assignment
| - | IR_ASG_ITEM | |
| A reference to the created Trade spend exception assignment item. |
| ________________________________________________________________________ |
|---|
ON_DELETED_TSPEND
Private ON_DELETED_TSPEND(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method documentation
* This method is in charge of handling the deleting of a trade spend
* if there are no more trade spends, then clear the slot
* if there are more than one, then this mean that their are varying date spends in this slot and *'s will be put by the fill external attributes
* if there is exactly one then we should check if we have exceptions
* if we have 1 exception, retrieve it
* else if we have 0 exceptions, retrieve the trade spend
* else if we have more than one, then then *'s will be put by the fill external attributes
Parameters
| - | IR_ASG_ITEM | : Reference to item that has been deleted. |
| ________________________________________________________________________ |
|---|
ON_DELETED_TSPEX
Private ON_DELETED_TSPEX(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_ASG_ITEM |
)
method docu
* This method will retrieve the trade spend if there are no more exceptions
* ifthere are more than 1 exceptions, nothing shall happens since *'s will be placed by the fill external attributes
* if there is 1 exception them it should be retrieved.
| - | IR_ASG_ITEM: | Reference to deleted item |
| ________________________________________________________________________ |
|---|
PROD_DIM_REF_ADD
Public PROD_DIM_REF_ADD(
| IMPORTING | CL_CRM_MKTGS_ASG_ITEM | IR_QE_PD_ITEM |
)
method documentation
* This method is in charge of making sure that a line item has a reference to the actual real product its referring to.
| ________________________________________________________________________ |
|---|
PROD_DIM_REF_DELETE
Public PROD_DIM_REF_DELETE( )
method documentation
This method is in charge of deleting the reference to the real product if the real product is deleted
| ________________________________________________________________________ |
|---|
PROD_DIM_REF_GET
Public CL_CRM_MKTGS_ASG_ITEM PROD_DIM_REF_GET( )
method documentation
* This method is in charge of returning the real reference the the product the quick entry line item is dealing with
Returns
RR_QE_PD_ITEM: reference to the actual real product
| ________________________________________________________________________ |
|---|
READ_TSPEND_EXC_POSITION
Private CRM_MKTPL_QE_TSPEND_POSITION READ_TSPEND_EXC_POSITION(
| IMPORTING | CGPL_GUID16 | IV_TSPEND_GUID |
)
method documentation
* This method is in charge of returning in which position a trade spend is located in
* the quick entry assignment block.
Returns
RV_QE_TSPEND_POSITION: the position in the quick entry assignment block (trade spend position)
| - | IV_TSPEND_GUID: | the guid of the trade spend to be read. |
| ________________________________________________________________________ |
|---|
SET_ATTRIBUTES
Redefined Public SET_ATTRIBUTES(
| IMPORTING | ANY | IS_ATTRIBUTES |
)
method docu
This is the redefinition for set attributes of the Prodcut lead item. Over here, changes to the items are
recorded.
| - | IS_ATTRIBUTES | |
| The incoming attribute structure from which to extract the changes |
| ________________________________________________________________________ |
|---|
SET_LIST_PRICE
Public SET_LIST_PRICE(
| IMPORTING | CRM_MKTPL_LIST_PRICE | IV_LIST_PRICE |
)
method docu
* This method sets the list price fields (internal and external) in the item's attributes.
| - | IV_LIST_PRICE: | This parameter is the list price to set |
| ________________________________________________________________________ |
|---|
SET_REAL_PD_ASG_ATTRIBUTES
Public SET_REAL_PD_ASG_ATTRIBUTES(
| IMPORTING | CRMS_MKTPL_QE_PD_LEAD_ATTR | IS_ATTRIBUTES |
)
| ________________________________________________________________________ |
|---|
SET_REAL_TSPEX_ASG_ATTRIBUTES
Private SET_REAL_TSPEX_ASG_ATTRIBUTES(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_SLOT |
| CRMS_MKTPL_QE_PD_LEAD_ATTR | IS_ATTRIBUTES |
)
Updates a real external exception
| ________________________________________________________________________ |
|---|
SET_RETAIL_PRICE
Public SET_RETAIL_PRICE(
| IMPORTING | CRM_MKTPL_RETAIL_PRICE | IV_RETAIL_PRICE |
)
method docu
* This method sets the retail price fields (internal and external) inthe item's attributes.
| - | IV_RETAIL_PRICE: | This parameter is the retail price to set |
| ________________________________________________________________________ |
|---|
SET_VOLUME
Public ABAP_BOOL SET_VOLUME(
| IMPORTING | CRM_MKTPL_PROD_DIM_VOLUME | IV_VOLUME |
)
method docu
* This method sets the volume field in the item's attributes.
Returns
RV_VOLUME_CHANGED: Indicates that the volume is not the same as before
| - | IV_VOLUME: | This parameter is the volume for the product dimension |
| ________________________________________________________________________ |
|---|
TSPEX_REF_ADD
Public TSPEX_REF_ADD(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_QE_TSPEX_POSITION |
| CL_CRM_MKTGS_ASG_ITEM | IR_QE_TSPEX_ITEM |
)
method documentation
* This method is responsible for adding a reference of a new exception and its corresponding position to
* MT_REAL_TSPEX_ITEM_REF for easy reference upon need
| - | IR_QE_TSPEX_ITEM | : reference to the trade spend exception item |
| IV_QE_TSPEX_POSITION: position of the trade spend exception inthe quick entry assignment block |
| ________________________________________________________________________ |
|---|
TSPEX_REF_DELETE
Public TSPEX_REF_DELETE(
| IMPORTING | CRM_MKTGS_GUID | IV_TSPEX_GUID |
)
method documentation
* This method is in charge of deleting a reference that quick entry holds of a trade spend exception that
* has recently been deleted
Parameters
| - | IV_TSPEX_GUID | : Guid of the trade spend exception to be removed |
| ________________________________________________________________________ |
|---|
TSPEX_REF_GET
Public CRMT_MKTPL_QE_TSPEX_ITEM_REF TSPEX_REF_GET(
| IMPORTING | CRM_MKTPL_QE_TSPEND_POSITION | IV_QE_TSPEND_POSITION |
)
method documentation
* This method is in charge of returning all of the references to exceptions that
* exist at a specific position in the quick entry assignment block.
Returns
RT_QE_TSPEX_ITEM: a table with references to the real trade spend exceptions
Parameters
General Material Data RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 33976 Date: 20120526 Time: 131655 triton ( 276 ms )






