Use BAdI to link appointment to a given opportunity during creation

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

image.pngimage.png

Archievement

Appointment 成功创建之后,代码里hard code的opportunity guid对应的opportunity就会出现在Appointment的Transaction History area里:

image.png

相关文章
|
6月前
|
BI 数据库
关于 ABAP Flight Reference Scenario
关于 ABAP Flight Reference Scenario
37 0
Determination of movement type in SAP STO outbound delivery
Determination of movement type in SAP STO outbound delivery
Determination of movement type in SAP STO outbound delivery
SAP MM Error message - Customizing incorrectly maintained – in transaction code ML81N
SAP MM Error message - Customizing incorrectly maintained – in transaction code ML81N
SAP MM Error message - Customizing incorrectly maintained – in transaction code ML81N
how is bookmark function implemented in Opportunity
how is bookmark function implemented in Opportunity
102 0
how is bookmark function implemented in Opportunity
2015-03-18 header note creation in my Appointment
2015-03-18 header note creation in my Appointment
78 0
2015-03-18 header note creation in my Appointment
My team and my group in my opportunity and my appointment
My team and my group in my opportunity and my appointment
90 0
My team and my group in my opportunity and my appointment
QHD DDIC is implemented via HANA
QHD DDIC is implemented via HANA
79 0
QHD DDIC is implemented via HANA
修改某个appointment已经存在的opportunity relation
修改某个appointment已经存在的opportunity relation
86 0
修改某个appointment已经存在的opportunity relation
Field creation not permitted in partner development mode
Field creation not permitted in partner development mode
Field creation not permitted in partner development mode
How to get information of all attachments belonging to a given appointment
How to get information of all attachments belonging to a given appointment
How to get information of all attachments belonging to a given appointment