CL_CRM_MKTPL_AGR_OVL_CHECK - Class for BAdI: CRM_MKTPL_AGR_OVL_CHECK

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Class Info

Instantiation: Public

General Class Description

This class implements the logic for the overlap check.
The class considers the 3 dimensions of the Agreement:
Account, Product (Product, Product Group, Product Category),
Plan Start Date and Plan Start Finish.

Superclass

None

Implemented Interfaces

IF_BADI_INTERFACE
IF_EX_CRM_MKTPL_AGR_OVL_CHECK

Subclasses

None

Friend Classes

None

Methods

CLASS_CONSTRUCTOR

Public static  CLASS_CONSTRUCTOR( )

_________________________________________________

QUERY_DATE_RANGES

Protected CRMT_MKTPL_IB_AGR_RESULT_LIST QUERY_DATE_RANGES(

IMPORTING

CL_CRM_MKTPL_QUERY IR_MKTPL_QUERY

CRMS_MKTPL_AGR_DATE IS_DATE

CGPL_OBJECT_TYPES IT_OBJECT_TYPES

CRMT_MKTPL_QUERY_TAB IT_QUERY

)

This method creates and excutes the query for the overlap check
based only on the date ranges (plan start date and plan plan finish date of an agreement ). In case the method is called with the other 2 dimensions (customer, product information)
then all 3 dimensions are built in the query.

There is a query for each possible date ranges combination that can occur between the new agreement and other existing agreement date ranges.
When one query returns a value the other query are not executed.

Returns

The parameter RT_QUERY_RESULT: contains the query result of the overlap check
considering the dimension date ranges.

Parameter Details

IS_DATE

Date ranges (Plan Start Date, Plan Finish Date) to consider for the overlap check.

IT_QUERY

Contains the query with possible other 2 dimensions: Customer, Product information.

IT_OBJECT_TYPES

Object of type AGR created for the query.

IR_MKTPL_QUERY

Contains the query structure of the dimensions customer, product in case they are relevant for the overlap check.


TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.


Length: 2582 Date: 20120526 Time: 112006     triton ( 75 ms )