SAP ABAP Class CL_WRMA_REBATES_COLLECT (Allocate and update rebates to RMA)
Hierarchy
BI_CONT (Software Component) Business Intelligence Content
   BW-BCT-ISR-RSL (Application Component) Retail Stock Ledger
     RS_WRMA_CAT_RFC (Package) Remote Access to RMA BI data
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_WCAT_CON_BW Constants for cost allocation 20090210
2 Interface implementation (CLASS c. INTERFACES i_ref)  IF_WRMA_CON Constants for RMA 20090211
Properties
Class CL_WRMA_REBATES_COLLECT  
Short Description Allocate and update rebates to RMA    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package RS_WRMA_CAT_RFC   Remote Access to RMA BI data 
Created 20090206   SAP 
Last change 20141101    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_WRMA_REBATES_COLLECT has no forward declaration.
Interfaces
# Interface Abstract Final Description Created on
1 IF_WCAT_CON_BW Constants for cost allocation 20090210
2 IF_WRMA_CON Constants for RMA 20090211
Friends
Class CL_WRMA_REBATES_COLLECT has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_EQUAL_DIST_SCALE_PER_SITE Constant Private Type reference (TYPE) INT4 1000 scaling factor for equal distribution 20090211
2 MR_MD Instance attribute Private Object reference (TYPE REF TO) CL_WRMA_MD_RFC RFC selection of RMA master data 20090330
3 MR_REFDATA Instance attribute Private Object reference (TYPE REF TO) CL_WRMA_REFDATA Reference data for RMA cost allocation 20090211
4 M_DTYPE Instance attribute Private Type reference (TYPE) WCAT_DTYPE Distribution Type 20090211
5 M_OBJECT_TYPE Instance attribute Private Type reference (TYPE) /RTF/DE_VENDMTP 20090211
6 M_PROF Static Attribute Private Type reference (TYPE) WRMA_DE_RMA_PROF RMA Customizing Profile 20090210
7 M_RECORD_COUNTER Instance attribute Private Type reference (TYPE) I 20090505
8 M_WCAT_GET_ALLOCATION_DATA Instance attribute Private Object reference (TYPE REF TO) WCAT_GET_ALLOCATION_DATA 20090211
Methods
# Method Level Visibility Method type Description Created on
1 CLASS_CONSTRUCTOR Static method Public Constructor Class constructor 20090210
2 CONSTRUCTOR Instance method Public Constructor Constructor 20090211
3 DISTRIBUTE_DOCUMENTS Static method Public Method Allocate rebates among sites 20090210
4 _ALLOCATE_ITEMS Instance method Private Method create new items by allocation 20090211
5 _BUILD_ITEM_GROUPS Instance method Private Method build groups of all items belonging to a main item 20090210
6 _GET_ALLOC_CTRL Instance method Private Method get control for reference data reader 20090210
7 _GET_SELECTIONS Instance method Private Method get selections for reference data reader 20090210
8 _MAP_ITEMS Instance method Private Method map source items to target items 20090211
9 _READ_REFDATA Instance method Private Method Determine reference data 20090211
10 __CHECK_ITEM_GROUP_RELEVANCY Instance method Private Method check whether item group is distribution relevant 20090210
11 __CONVERT_CURRENCY Instance method Private Method convert net value from doc. to local currency, if necessary 20090304
12 __DISTRIBUTE_ROUNDING_DIFFS Instance method Private Method distribute rounding differences 20090223
13 __MAP_VALUE Instance method Private Method allocate value of source item to target item 20090211
Events
Class CL_WRMA_REBATES_COLLECT has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 GSTY_ITEM_GRP Private See coding Item group (single) 20090210 BEGIN OF gsty_item_grp. INCLUDE TYPE gsty_item_grp_key AS key. TYPES: t_items TYPE gtty_item_per_grp, xdrel TYPE xfeld, "relevant for distribution xderr TYPE xfeld, "erroneous item source_site TYPE /rtf/de_plant, "source of distribution source_material TYPE /rtf/de_material, * "selection by article instead of object END OF gsty_item_grp
2 GSTY_ITEM_GRP_KEY Private See coding Group of all items of a main item (key) 20090210 BEGIN OF gsty_item_grp_key, ab_docnr TYPE /rtf/de_doc_number, ab_mainitm TYPE wcat_de_main_item, END OF gsty_item_grp_key
3 GSTY_ITEM_PER_GRP Private See coding All items of an item group (single) 20090210 BEGIN OF gsty_item_per_grp. INCLUDE TYPE wrma_s_ab_doc. TYPES: END OF gsty_item_per_grp
4 GTTY_ITEM_GRP Private See coding Item group (table) 20090210 gtty_item_grp TYPE TABLE OF gsty_item_grp WITH KEY KEY
5 GTTY_ITEM_PER_GRP Private See coding All items of an item group (table) 20090210 gtty_item_per_grp TYPE STANDARD TABLE OF gsty_item_per_grp WITH DEFAULT KEY
Method Signatures

Method CLASS_CONSTRUCTOR Signature

Method CLASS_CONSTRUCTOR on class CL_WRMA_REBATES_COLLECT has no parameter.
Method CLASS_CONSTRUCTOR on class CL_WRMA_REBATES_COLLECT has no exception.

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_WRMA_REBATES_COLLECT has no parameter.
Method CONSTRUCTOR on class CL_WRMA_REBATES_COLLECT has no exception.

Method DISTRIBUTE_DOCUMENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_DOC Call by reference Type reference (TYPE) WRMA_T_AB_DOC Communication structure agency document (table) 20090210
2 Exporting ET_DOC_TG Call by reference Type reference (TYPE) WRMA_T_AB_DOC_TG Target structure agency document (table) 20090210
# Exception Resumable Description Created on
1 /RTF/CX_ROOT Root Class for All /RTF/ Exceptions 20090318
2 CX_RSD_IOBJ_NOT_FOUND InfoObject Not Found 20090211
3 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090211

Method _ALLOCATE_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_DOC_NEW Call by reference Type reference (TYPE) WRMA_T_AB_DOC Communication structure agency document (table) 20090211
2 Changing CT_REFDATA Call by reference Type reference (TYPE) WRMA_S_REFDATA_BW_TT Reference data for cost allocation (table) 20090211
3 Importing IS_ITEM_GRP Call by reference Type reference (TYPE) GSTY_ITEM_GRP Item group (single) 20090211
4 Importing IS_REFTOTALS Call by reference Type reference (TYPE) WCAT_S_REFTOTALS Totals of reference data for cost allocation 20090211
# Exception Resumable Description Created on
1 /RTF/CX_ROOT Root Class for All /RTF/ Exceptions 20090304
2 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090223

Method _BUILD_ITEM_GROUPS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_DOC Call by reference Type reference (TYPE) WRMA_T_AB_DOC Communication structure agency document (table) 20090210
2 Exporting ET_ITEM_GRP Call by reference Type reference (TYPE) GTTY_ITEM_GRP Item group (table) 20090211
# Exception Resumable Description Created on
1 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090421

Method _GET_ALLOC_CTRL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_CTRL Call by reference Type reference (TYPE) WCAT_S_CTRL_BW Control cost allocation 20090210
2 Importing IS_ITEM_GRP Call by reference Type reference (TYPE) GSTY_ITEM_GRP Item group (single) 20090210
# Exception Resumable Description Created on
1 CX_RSD_IOBJ_NOT_FOUND InfoObject Not Found 20090210
2 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090210

Method _GET_SELECTIONS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_ITEM_GRP Call by reference Type reference (TYPE) GSTY_ITEM_GRP Item group (single) 20090210
2 Exporting ET_REFSEL Call by reference Type reference (TYPE) WRMA_S_REFSEL_BW_TT Selection of reference data for RMA cost allocation (table) 20090210
# Exception Resumable Description Created on
1 /RTF/CX_ROOT Root Class for All /RTF/ Exceptions 20090330
2 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090211

Method _MAP_ITEMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_AB_DOC_TG Call by reference Type reference (TYPE) WRMA_T_AB_DOC_TG Target structure agency document (table) 20090211
2 Importing IT_AB_DOC Call by reference Type reference (TYPE) WRMA_T_AB_DOC Communication structure agency document (table) 20090211
# Exception Resumable Description Created on
1 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090211

Method _READ_REFDATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_REFTOTALS Call by reference Type reference (TYPE) WCAT_S_REFTOTALS Totals of reference data for cost allocation 20090211
2 Exporting ET_REFDATA Call by reference Type reference (TYPE) WRMA_S_REFDATA_BW_TT Reference data for cost allocation (table) 20090211
3 Importing IS_CTRL Call by reference Type reference (TYPE) WCAT_S_CTRL_BW Control cost allocation 20090211
4 Importing IT_REFSEL Call by reference Type reference (TYPE) WRMA_S_REFSEL_BW_TT Selection of reference data for RMA cost allocation (table) 20090211
# Exception Resumable Description Created on
1 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090211

Method __CHECK_ITEM_GROUP_RELEVANCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_ITM_GRP Call by reference Type reference (TYPE) GSTY_ITEM_GRP Item group (single) 20090210
# Exception Resumable Description Created on
1 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090421

Method __CONVERT_CURRENCY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_AB_DOC Call by reference Type reference (TYPE) WRMA_S_AB_DOC Communication structure agency document 20090304
# Exception Resumable Description Created on
1 /RTF/CX_ROOT Root Class for All /RTF/ Exceptions 20090304
2 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090304

Method __DISTRIBUTE_ROUNDING_DIFFS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_DOC Call by reference Type reference (TYPE) WRMA_T_AB_DOC Table of all line items 20090223
2 Changing CT_DOC_TMP Call by reference Type reference (TYPE) WRMA_T_AB_DOC Temporary table of line items to be distributed 20090223
3 Changing C_LOC_CURRCY Value transfer Type reference (TYPE) /RTF/DE_LOC_CURRCY Local Currency 20090304
4 Changing C_OLD_NET_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVDC Old net value 20090223
5 Changing C_OLD_TAX_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVDC Old tax value 20090223
6 Changing C_TOT_NET_LOC_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVLC Total net value in Local Currency 20090304
7 Changing C_TOT_NET_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVDC Total net value 20090223
8 Changing C_TOT_TAX_LOC_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVLC Total tax value in Local Currency 20090922
9 Changing C_TOT_TAX_VALUE Value transfer Type reference (TYPE) /RTF/DE_PVDC Total tax value 20090223
# Exception Resumable Description Created on
1 CX_WRMA_REFDATA Exceptions fro CL_WRMA_REFDATA 20090223

Method __MAP_VALUE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting E_NEW_ITEM_VALUE Call by reference Type reference (TYPE) /RTF/DE_KYFAMO Allocated value of new document item 20090211
2 Importing I_BASE_UOM Call by reference Type reference (TYPE) /RTF/DE_BASE_UOM Base Unit of Measure 20090211
3 Importing I_LOC_CURRCY Call by reference Type reference (TYPE) /RTF/DE_LOC_CURRCY Local Currency 20090211
4 Importing I_OLD_VALUE Call by reference Type reference (TYPE) /RTF/DE_KYFAMO Distributed item value in document currency 20090211
5 Importing I_REF_NUMBER Call by reference Type reference (TYPE) /RTF/DE_KYFINT Reference data number 20090211
6 Importing I_REF_QUANTITY Call by reference Type reference (TYPE) /RTF/DE_KYFQUA reference data quantity in base unit of measure 20090211
7 Importing I_REF_VALUE Call by reference Type reference (TYPE) /RTF/DE_KYFAMO Reference data value in local currency 20090211
8 Importing I_TOT_REF_NUMBER Call by reference Type reference (TYPE) /RTF/DE_KYFINT Total number of reference data 20090211
9 Importing I_TOT_REF_QUANTITY Call by reference Type reference (TYPE) /RTF/DE_KYFQUA Total quantity of reference data 20090211
10 Importing I_TOT_REF_VALUE Call by reference Type reference (TYPE) /RTF/DE_KYFAMO Total value of reference data 20090211

Method __MAP_VALUE on class CL_WRMA_REBATES_COLLECT has no exception.
History
Last changed by/on SAP  20141101 
SAP Release Created in 705