CL_CRM_MKTGS_ASG_PERSISTENCY - MKTGS OL: Generic Assignment Persistency Controller

ROGBILLS - Synchronize billing plans   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

>>> Development Documentation generated by DocuGenerator v2.0 (only available in English => NO TRANSLATION!!!) <<<

General Class Description

This is the abstract super class for the object layer assignment persistency conroller
It contains the generic handling of the assignment persistency controller.
The persistency conroller is handled as singleton i.e. there is only one instance per session.
-> to be redefined by each specific assignment

__________________________________________________________

Class Info

Name:CL_CRM_MKTGS_ASG_PERSISTENCY
Instantiation:Public

Superclass

None

Implemented Interfaces

None

Friend Classes

CL_CRM_MKTGS_ASG_COLLECTION
CL_CRM_MKTGS_ASG_HANDLER
CL_CRM_MKTGS_ASG_HANDLER_PERS
CL_CRM_MKTGS_ASG_ITEM

Subclasses

CL_CRM_MKTGS_COND_PERSISTENCY
CL_CRM_MKTGS_COST_PERS
CL_CRM_MKTGS_DATE_PERS
CL_CRM_MKTGS_FREEG_PERSISTENCY
CL_CRM_MKTGS_PARTNER_PERS
CL_CRM_MKTGS_PAR_SET_PERS
CL_CRM_MKTGS_PCAT_PERSIST
CL_CRM_MKTGS_PERS_MSG_PERS
CL_CRM_MKTGS_PGRP_PERSIST
CL_CRM_MKTGS_PROD_PERSIST
CL_CRM_MKTGS_PRSEG_PERSISTENCY
CL_CRM_MKTGS_PTREBATE_PERS
CL_CRM_MKTGS_READONLYLINK_PERS
CL_CRM_MKTGS_SOFTLINK_PERS
CL_CRM_MKTGS_TEMPLATE_PERS
CL_CRM_MKTGS_TGR_PERS
CL_CRM_MKTGS_TIER_PERS
CL_CRM_MKTGS_TSPEX_PERS
CL_CRM_MKTPL_ASG_PERSISTENCY
CL_CRM_MKTPL_SKM_PERS
CL_CRM_MKTPPG_HDR_PPG_PERS
CL_CRM_MKTPPG_PPG_GDLPR_PERS
CL_CRM_MKTPPG_PPG_PSGLV_PERS

__________________________________________________________

Methods

ARCHIVE_DELETE

Protected ARCHIVE_DELETE(

IMPORTINGSYTABIX IV_ARCHIVE_HANDLE

)

This method deletes the assignment database data once the data
has been put into archive

Parameters

- IV_ARCHIVE_HANDLEArchive handle

________________________________________________________________________

ARCHIVE_FETCH_DB

Protected DATA ARCHIVE_FETCH_DB(

IMPORTINGCGPL_OBJECT_IDS IT_TASKS
CGPL_OBJECT_IDS IT_PROJECTS

)

________________________________________________________________________

ARCHIVE_GET_ASSIGN_GUIDS

Protected CRMT_MKTGS_GUID ARCHIVE_GET_ASSIGN_GUIDS(

IMPORTINGCGPL_OBJECT_IDS IT_TASKS
CGPL_OBJECT_IDS IT_PROJECTS

)

________________________________________________________________________

ARCHIVE_PRE_FETCH

Protected ARCHIVE_PRE_FETCH(

IMPORTINGSYSUUID_X IV_TASK_ID
CHAR1 IV_RAISE_EVENT
SYSUUID_X IV_PROJECT_ID
SYTABIX IV_ARCHIVE_HANDLE
CL_CRM_MKTGS_OBJ_ITEM IR_PARENT_OBJECT
CL_CRM_MKTGS_ASG_HANDLER IR_ASSIGNMENT_HANDLER

)

________________________________________________________________________

ARCHIVE_WRITE

Protected ARCHIVE_WRITE(

IMPORTINGCGPL_OBJECT_IDS IT_TASKS
CGPL_OBJECT_IDS IT_PROJECTS
SYTABIX IV_ARCHIVE_HANDLE

)

This method transfers the assignment database data to the archive

Parameters

- IT_TASKSTable with cgpl task guids of to be archived objects
- IT_PROJECTSTable with cgpl project guids of to be archived objects
- IV_ARCHIVE_HANDLEArchive handle

________________________________________________________________________

CHECK_CHANGES

Protected ABAP_BOOL CHECK_CHANGES( )

This method checks if there are changes in the persistency controller

Returns

Change flag

________________________________________________________________________

CONSTRUCTOR

Public CONSTRUCTOR(

IMPORTINGCRM_MKTGS_UPDATE_FUNCTION IV_UPDATE_FUNCTION
CRM_MKTGS_DB_TABLE_NAME IV_DB_TABLE_NAME
CRM_MKTGS_ARCHIVING_ACTIVE IV_ARCHIVING_ACTIVE
CRM_MKTGS_APPLICATION_TYPE IV_APPLICATION_TYPE

)

This contstructor
- sets the necessary member attributes

Parameters

- IV_UPDATE_FUNCTIONUpdate function module of the assignment
- IV_DB_TABLE_NAMETable name of the assignment
- IV_ARCHIVING_ACTIVETrue, if the assignment provides archiving
- IV_APPLICATION_TYPEApplication type

________________________________________________________________________

FETCH

Protected FETCH(

IMPORTINGCRMT_MKTGS_ASG_PERSISTENCY_DAT IT_PERSISTENCY_DATA

)

This method fetches the data from the database, creates the assignment items and
appends them to the assignment collection

Parameters

- IT_PERSISTENCY_DATATable with fetch information (key, collection reference)

________________________________________________________________________

FETCH_DB

Protected FETCH_DB(

IMPORTINGCRM_MKTGS_DB_TABLE_NAME IV_DB_TABLE_NAME
CRMT_MKTGS_ASG_PERSISTENCY_DAT IT_PERSISTENCY_DATA
CHANGINGTABLE CT_DB_DATA

)

This method performs the database select

Parameters

- IV_DB_TABLE_NAMEDatabase table name
- IT_PERSISTENCY_DATATable with fetch information (key)
- CT_DB_DATAGeneric table datacontainer

________________________________________________________________________

FETCH_MULTI

Public FETCH_MULTI(

IMPORTINGCRMT_MKTGS_GUID IT_OBJECT_GUID
EXPORTINGCRMT_MKTGS_GUID ET_OBJECT_GUID_LOADED

)

________________________________________________________________________

FREE

Public FREE( )

This method frees all member attributes once the persistency controller is no longer needed
and should be deleted by the garbage collector

________________________________________________________________________

GET_DELETED_ITEMS

Public CL_CRM_MKTGS_GEN_COLLECTION GET_DELETED_ITEMS(

IMPORTINGCL_CRM_MKTGS_OBJ_ITEM IR_OBJECT_ITEM

)

This method returns all assignment items which have been marked fordeletion

Returns

Collection of deleted assignment items

Parameters

- IR_OBJECT_ITEMObject item; if passed onlythe deleted assignment items of the object item are returned

________________________________________________________________________

GET_INSERTED_ITEMS

Public CL_CRM_MKTGS_GEN_COLLECTION GET_INSERTED_ITEMS(

IMPORTINGCL_CRM_MKTGS_OBJ_ITEM IR_OBJECT_ITEM

)

This method returns all assignment items which have been marked forinsertion (new)

Returns

Collection of inserted assignment items

Parameters

- IR_OBJECT_ITEMObject item; if passed onlythe inserted assignment items of the object item are returned

________________________________________________________________________

GET_UPDATED_ITEMS

Public CL_CRM_MKTGS_GEN_COLLECTION GET_UPDATED_ITEMS(

IMPORTINGCL_CRM_MKTGS_OBJ_ITEM IR_OBJECT_ITEM

)

This method returns all assignment items which have been marked forupdate

Returns

Collection of updated assignment items

Parameters

- IR_OBJECT_ITEMObject item; if passed onlythe updated assignment items of the object item are returned

________________________________________________________________________

INITIALIZE

Protected INITIALIZE( )

This method initializes the change buffers and refreshs
the database attributes of the assigment items

________________________________________________________________________

MOVE_ATTR_2_DB_STRUCT

Protected MOVE_ATTR_2_DB_STRUCT(

IMPORTINGANY IS_ATTRIBUTES
CRMS_MKTGS_ASG_METADATA IS_META_DATA
CHANGINGANY CS_DB_STRUCTURE

)

This method moves the assignment attributes to the database attributes
If there is some special logic needed for the assignment this can be done be a redefinition

Parameters

- IS_ATTRIBUTESAssignment attribute structure
- IS_META_DATAAssignment meta data
- CS_DB_STRUCTUREDatabase attribute structure

________________________________________________________________________

MOVE_DB_STRUCT_2_ATTR

Protected MOVE_DB_STRUCT_2_ATTR(

IMPORTINGANY IS_DB_STRUCTURE
CRMS_MKTGS_ASG_METADATA IS_META_DATA
CHANGINGANY CS_ATTRIBUTES

)

This method moves the database attributes to the assignment attributes.
If there is some special logic needed for the assignment this can be done be a redefinition

Parameters

- IS_DB_STRUCTUREDatabase attribute structure
- IS_META_DATAAssignment meta data
- CS_ATTRIBUTESAssignment attribute structure

________________________________________________________________________

NOTE_FOR_VERSIONING

Protected NOTE_FOR_VERSIONING(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM
CRM_MKTGS_VERSION_NO IV_VERSION_NO

)

This method marks an assignment item for versioning

Parameters

- IR_ASSIGNMENT_ITEMAssignment item to be versioned

________________________________________________________________________

NOTE_ITEM_FOR_DELETION

Protected NOTE_ITEM_FOR_DELETION(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM

)

This method marks an assignment item for deletion

Parameters

- IR_ASSIGNMENT_ITEMAssignment item to be deleted

________________________________________________________________________

NOTE_ITEM_FOR_INSERT

Protected NOTE_ITEM_FOR_INSERT(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM

)

This method marks an assignment item for insert (new)

Parameters

- IR_ASSIGNMENT_ITEMAssignment item to be inserted

________________________________________________________________________

NOTE_ITEM_FOR_UPDATE

Protected NOTE_ITEM_FOR_UPDATE(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM

)

This method marks an assignment item for update

Parameters

- IR_ASSIGNMENT_ITEMAssignment item to be updated

________________________________________________________________________

PRE_FETCH

Protected PRE_FETCH(

IMPORTINGCRMS_MKTGS_ASG_PERSISTENCY_DAT IS_PERSISTENCY_DATA

)

________________________________________________________________________

REMOVE_PRE_FETCH

Protected REMOVE_PRE_FETCH(

IMPORTINGCRMS_MKTGS_ASG_PERSISTENCY_DAT IS_PERSISTENCY_DATA

)

________________________________________________________________________

SAVE

Protected SAVE( )

This method collects the change information and puts it into the update task

________________________________________________________________________

SET_OBJECT_STATE

Protected SET_OBJECT_STATE(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM

)

This method marks the main object as changed

Parameters

- IR_ASSIGNMENT_ITEMAssignment item which has been inserted, updated or deleted

________________________________________________________________________

SET_PARENT_PERSISTENCY

Protected SET_PARENT_PERSISTENCY(

IMPORTINGCL_CRM_MKTGS_ASG_PERSISTENCY IR_PERSISTENCY_CONTROLLER

)

________________________________________________________________________

VERSION_FETCH

Protected VERSION_FETCH(

IMPORTINGCRMT_MKTGS_ASG_PERSISTENCY_DAT IT_PERSISTENCY_DATA
CRM_MKTGS_VERSION_NO IV_VERSION_NO

)

This method fetches the data from the database, creates the assignment items and
appends them to the assignment collection

Parameters

- IT_PERSISTENCY_DATATable with fetch information (key, collection reference)

________________________________________________________________________

WRITE_CHANGEDOCUMENTS

Protected WRITE_CHANGEDOCUMENTS(

IMPORTINGCL_CRM_MKTGS_ASG_ITEM IR_ASSIGNMENT_ITEM
ANY IS_ATTRIBUTES_NEW
ANY IS_ATTRIBUTES_OLD

)

This method writes the change documents of the assignment items if provided
by passing the new and old attributes to the change document handler

Parameters

- IR_ASSIGNMENT_ITEMAssignment item
- IS_ATTRIBUTES_NEWNew attributes
- IS_ATTRIBUTES_OLDOld attributes



General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.


Length: 31863 Date: 20120526 Time: 110928     triton ( 305 ms )