More Related Content
Similar to 1034113 e 20180411
Similar to 1034113 e 20180411 (20)
1034113 e 20180411
- 1. 1034113 - CRM service contracts: Accrual quantities too
high
Version 8 Type SAP Note
Language English Master Language German
Priority Correction with low priority Category Program error
Release Status Released for Customer Released On 11.08.2007
Component CRM-BTX-COI-SRV ( Controlling Integration Service )
Please find the original document at https://launchpad.support.sap.com/#/notes/ 1034113
Symptom
For CRM service contracts, you can update accrual quantities for revenue realization on the
corresponding CO internal order in the ERP system. If you use the item hierarchy in the service
contract, so that some items are superordinate to other items, the system updates the accrual
quantities incorrectly, which can cause a field overflow in the ERP system.
Other Terms
Table COSR, overflow, error, DBIF_RSQL_SQL_ERROR, function UPDATE_COSR_FROM_COEPR_INS,
programs SAPLKAUP, LKAUPF02
Reason and Prerequisites
For revenue realization, you must set single-object controlling at item level in the ERP system (for
the transaction type of the service contract). The system then creates an internal order for every
main item of the service contract. Main items are items for which no higher-level item exists.
The system only updates accrual quantities correctly in this case.
Solution
When you implement this correction, you prevent the incorrect update of accrual quantities for
subitems. Therefore, the accrual quantities of main items are no longer incorrect.
This scenario only makes sense if only the main items but not the subitems have a billing plan;
single-object controlling must be used at item level.
1. Implement the correction instructions in CRM.
2. However, you must make the following manually changes in the ERP or PlugIn system:
Add the following attributes to the CL_SERVICE_COSTING class:
Attribute: C_LEVEL_ITEM
Level: Constant
Visibility: Private
Typing: Type
Associated type: IAOM_OBJECT_LEVEL,
Initial value: '02'
2018-04-11 1034113 Page 1/4
© 2018 SAP SE or an SAP affiliate company. All rights reserved
- 2. Implement the following row in the 'CONSTRUCTOR' method:
........................
types: <-- Insert
yv_hdlolditems type char1. <-- Insert
........................
constants:
lc_check_all type char1 value 'A',
lc_xflag_yes type xflag value 'X'. <---Delete
lc_xflag_yes type xflag value 'X', <-- insert
lc_hdlolditem_del type yv_hdlolditems value 'D' , <-- insert
lc_level_item type iaom_object_level value '02'. <-- Insert
.......................
ls_coas type coas,
ls_kauf type kauf,
ls_aufk type aufk,
lo_messages type ref to lcl_messages. <---Delete
lo_messages type ref to lcl_messages, <-- Insert
lv_hdlolditems type yv_hdlolditems value 'M'. <-- Insert
.......................
exceptions
error = 1
others = 2.
endif.
if not lt_costing[] is initial.
if <ls_object_ids>-object_type <-- insert
= lcl_constants=>cs_objtyp-contract_service <-- insert
and <ls_object_ids>-object_level = lc_level_item. <-- Insert
move lc_hdlolditem_del to lv_hdlolditems. <-- Insert
endif. <-- Insert
call method crmco_cost_estimate=>calculate
exporting
i_aufk = ls_aufk
i_date = lv_posting_date
it_costing_data = lt_costing
i_handle_old_items = lv_hdlolditems <-- Insert
importing
e_costing_number = ls_coas-costestnr.
clear lo_cost_estimate.
...
endif.
endloop.
endmethod.......................
If the TRANSFER_CONFIRMATION method exists in the 'CL_SERVICE_COSTING' class, then you
must change the following lines. If not, no changes are necessary.
* Get internal order for service contract item
clear:
ls_account_asgmt,
lv_object_level.
call function 'IAOM_GET_ACCOUNT_ASSIGNMENT'
exporting
...
importing
2018-04-11 1034113 Page 2/4
© 2018 SAP SE or an SAP affiliate company. All rights reserved
- 3. ...
exceptions
...
check syst-subrc is initial.
check lv_object_level = c_level_item. " <<<<< LINE INSERT
* Read internal order
...
The correction is delivered with the following support packages:
BBPCRM
SAPK-40008INCRMIS
PI
2004_1_46C SAPKIPZI4E
2004_1_470 SAPKIPZI5E
2004_1_500 SAPKIPZI6F
SAP_APPL 600
Software Components
Software Component Release
SAP_APPL 600 - 600
SAP_APPL 602 - 602
SAP_APPL 603 - 603
PI 2004_1_46C - 2004_1_500
BBPCRM 500 - 500
BBPCRM 510 - 510
CRMIS 400 - 400
Correction Instructions
Software Component From To Version Changed on ID
BBPCRM 500 500 1 12.03.2007 17:58:40 0000535895
Other Components
Component Description
2018-04-11 1034113 Page 3/4
© 2018 SAP SE or an SAP affiliate company. All rights reserved
- 4. CO-PC-OBJ-INT Costs for Intangible Goods and Services
CRM-BTX-CTR-SCO Service Contract
This document is referenced by
SAP Note/KBA Title
1050438 CRM CO accnt assignmnt manager: Dump in ECC for chng service
| | | |Terms of use Copyright Trademark Legal Disclosure Privacy
2018-04-11 1034113 Page 4/4
© 2018 SAP SE or an SAP affiliate company. All rights reserved