天天看點

Use BAdI to link appointment to a given opportunity during creation

Requirement

This requirement is raised by customer. They have extended a new field “Opportunity id” in My Appointment creation page. During appointment creation, customer choose an opportunity from this extension field via value help, and they would like to automatically generate a document history which links the created appointment with this manually chosen opportunity.

Implementation

create one BAdI implementation on spot CRM_APPT_ODATA_ENH with following source code:

Use BAdI to link appointment to a given opportunity during creation
Use BAdI to link appointment to a given opportunity during creation

Archievement

Appointment 成功建立之後,代碼裡hard code的opportunity guid對應的opportunity就會出現在Appointment的Transaction History area裡:

Use BAdI to link appointment to a given opportunity during creation

繼續閱讀