Ansicht
Dokumentation

CRM_MKTPL_AC - Business Add-In: Define Usage Check

CRM_MKTPL_AC - Business Add-In: Define Usage Check

General Material Data   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Define Usage Check for Archiving

Use

This enhancement can be used to define checks of your own that have to be met before a marketing project can be archived and subsequently deleted.
This enhancement contains the method IF_EX_CRM_MKTPL_AC~CHECK, in which you can formulate the condition under which a marketing project is not archivable.

If a marketing project is rejected for archiving, you generate an error message with the message type 'E' or 'A' and place the message in the application log for marketing project archiving. A marketing project for which a message of this kind has been generated should not be set as archivable: the status Can be archived is not set and the projects retain their latest status, which should be Finished or Rejected. These marketing projects are checked again the next time the check process is executed. Otherwise, the status Archivable is set.

You are not allowed to delete references to the marketing project or make other database changes within the check. This can lead to data inconsistencies , could jeopardize the result of the archiving, and is therefore not supported by SAP. A deletion BDoc is sent for each archivable marketing project, and the marketing project is deleted in MSA after the BDoc has been received.

Requirements

Only run the usage checks when archiving has been activated for Marketing (see Customizing transaction DACONTROL).

The GUID of the marketing project to be archived is passed to the method CHECK in the form of a structure with the name IS_GUID. This structure contains the information of one (1) marketing project. The check is included in a loop where all marketing projects are checked individually.

You should create your own message to describe the error situation in the application log. Use statement WRITE and function module CRM_ARC_LOG_ADD_MESSAGE to do so. To create new messages, use message class CRM_MKTPL_ARCHIVE as an example.

If the check determines that the marketing project is not archivable, you must raise the exception class CX_CRM_MKTPL_ARCHIVING using the statement RAISE EXCEPTION TYPE cx_crm_mktpl_archiving.

Further notes

There are SAP implementations from other areas, such as Enterprise Buyer and Product Catalog.






rdisp/max_wprun_time - Maximum work process run time   General Material Data  
This documentation is copyright by SAP AG.

Length: 2656 Date: 20240523 Time: 172234     sap01-206 ( 61 ms )