on 08-08-2012 11:59 AM
Hi Experts
I have couple of different Item categories(BUS2000160 CRM Customer complaint Item,BUS2000140 CRM Service Product Item, BUS2000146 CRM Service Material Item ) for the Complaint/Repair Order.
These Item categories can be created/copy from source item category (ex: BUS2000140 CRM Service Product Item ) to target category(ex: BUS2000146 CRM Service Material Item ) by user using buttons copy from template, Repair Diagnosis, REPAIR STEP etc
In this item copy process I have to default some fields (ex: Account Indicator field) based on source Item categorie's Account Indicator field value
I have found that there is a standard CRMV EVENT function module(CRM_WTY_MGNT_UPDATE_EC) is getting called in this copy process using buttons copy from template, Repair Diagnosis, REPAIR STEP etc. This FM fetches the Account Indicator field value from the Warranty and fills the Account Indicator field in the copied line items of the the Complaint.
STANDARD CRMV EVENT function module- CRM_WTY_MGNT_UPDATE_EC details:-
Parameters | value | Description |
Trans. Category | BUS20001 | CRM Bus Transactions |
Execution Time | 50 | End of Document Processing |
Priority | 10 | |
Object Name | SERVICE_I | Service Item |
Event | AFTER_CHANGE | |
Attribute | <*> | |
Function | CRM_WTY_MGNT_UPDATE_EC |
According to my requirement, in the copied line items of the the Complaint, I am trying to fill the Account Indicator field with the source line Items Account Indicator field value exist at that time. To satisfy this I have created new CRMV EVENT function module which triggers during the line items copy process.
CUSTOM CRMV EVENT function module details:-
Prameters | value | Description |
Trans. Category | BUS20120 | Complaints |
Execution Time | 1 | Immeditely |
Priority | 60 | |
Object Name | ORDERADM_I | Administrator Item |
Event | AFTER_CREATE_WITH_REFERANCE | |
Attribute | <*> | |
Function | ZFUNCTIONMODULE |
Finally I observed that this custom changes is getting overwritten by the standard CRMV EVENT function module(CRM_WTY_MGNT_UPDATE_EC).
I have created new CRMV EVENT function module (with parameters as similar as standard CRMV EVENT FM ) which can be called after the standard CRMV EVENT function module with help of priority parameter(value 11 ) in CRMV EVENT. this time it is going to dump during the copy process.
Dump error is : Type conflict with ASSIGN in program SAPLZCRMCUSTOMFUNTIONMODULE
I tried with implicit enhancement spot on the Standard FM, same dump got generated.
Please help me to fix this.
Thanks
Shaik
Hello, Shaik.
It'd be great if you share your code where dump occurs. With variable declaration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.