cancel
Showing results for 
Search instead for 
Did you mean: 

Type conflict with ASSIGN in program

former_member224326
Participant
0 Kudos

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:-


ParametersvalueDescription
Trans. Category      BUS20001CRM 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:-


PrametersvalueDescription
Trans. Category      BUS20120Complaints
Execution Time  1Immeditely
Priority     60
Object Name                      ORDERADM_IAdministrator 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

Accepted Solutions (0)

Answers (1)

Answers (1)

VishnAndr
Active Contributor
0 Kudos

Hello, Shaik.

It'd be great if you share your code where dump occurs. With variable declaration.