SAP® Documentation

Single view

CL_CRM_MKTPL_EAI_MASS_READ_TPM - EAI: Mass Read TPM

CL_GUI_FRONTEND_SERVICES - Frontend Services   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

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

General Class Description

EAI: Mass Read TPM

__________________________________________________________

Class Info

Name:CL_CRM_MKTPL_EAI_MASS_READ_TPM
Instantiation:Public

Superclass

CL_CRM_MKTPL_EAI_MASS_READ

Implemented Interfaces

None

Friend Classes

None

Subclasses

None

__________________________________________________________

Methods

CALLBACK_RECEIVE_RESULT_DATA

Redefined Public CALLBACK_RECEIVE_RESULT_DATA(

IMPORTINGCLIKE P_TASK

)

This method is called asynchronously in order to receive function
call result. Those function modules process on specific task on
an available server.
When a task has been terminated, the method updates the number of
tasks countdown.

Parameters

- P_TASKcontains the task number. This number is required by
 the Parallel Processing framework

________________________________________________________________________

GET_BUCKET_THRESHOLD

Redefined Protected I GET_BUCKET_THRESHOLD(

IMPORTINGCRMS_MKTPL_EAI_PARALL_PRC_CUST IS_THRESHOLD_CUSTOMIZING

)

Calculate the bucket threshold from the customizing information. the key to reach
the right customizing is compound of object_type and parallel_processing_type.
If the bucket threshold customizing is null, the parallel processing cannot be processed.
In that case, an exception raised in order to stop the parallel processing. All the marketing projects
will be then process in local after catching the raised exception.

Returns

RV_BUCKET_THRESHOLD contains the calculated bucket threshold

Parameters

- IS_THRESHOLD_CUSTOMIZINGcontains the threshold customizing (i.e. number of marketing projects per bucket)

Exceptions

-CX_CRM_MKTPL_EAI_CUSTOMIZINGwhen no valid threshold has been customized

________________________________________________________________________

GET_FM_NAME_FOR_PARALLEL_PROC

Redefined Protected CRMT_FUNCTION_NAME GET_FM_NAME_FOR_PARALLEL_PROC( )

Returns the function module name used to start a new LUW (logical Unit of Work).
This function module will then call our synchronous methods for read.

Returns

Name of the function module used to start a LUW to read marketing projects.

________________________________________________________________________

GET_MARKETING_PROJECT_ATTR

Redefined Protected GET_MARKETING_PROJECT_ATTR(

EXPORTINGANY TABLE ET_MARKETING_PROJECT_ATTR

)

Return the marketing project attributes read

Parameters

- ET_MARKETING_PROJECT_ATTRcontains the marketing object attributes

________________________________________________________________________

GET_MARKETING_PROJECT_SIZE

Redefined Protected I GET_MARKETING_PROJECT_SIZE(

IMPORTINGANY IS_MARKETING_OBJECT

)

This method gets the marketing project size. In case of trade promotion,
the object size is determined by the number of products (product product category
and product group), the number of weeks or months and the number of trade spends.
The total size if the object is the multiplication of those three numbers.

Returns

RV_MARKETING_PROJECT_SIZE includes the calculated marketing object size.

Parameters

- IS_MARKETING_OBJECTincludes all the marketing project features

________________________________________________________________________

GET_OBJECT_TYPE_TO_PROCESS

Redefined Protected CGPL_OBJECT_TYPE GET_OBJECT_TYPE_TO_PROCESS( )

Returns the object type used during the mass operation.

Returns

Object type used during the mass operation.

________________________________________________________________________

PROCESS_TASKS_IN_LOCAL

Redefined Protected PROCESS_TASKS_IN_LOCAL(

IMPORTINGCRMT_MKTPL_EAI_TASK IT_TASK

)

This method gets all trade promotions unprocessed in parallel
in order to read all those trades once in local.
All trade promotions have to be processed once because marketing projects SAVE
should not be called more than once. COMMIT WORK will be called in proxy afterwards.

Parameters

- IT_TASKcontains all the unprocessed tasks in parallel






CPI1466 during Backup   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 8388 Date: 20190616 Time: 085930     sap01-206 ( 19 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.