Not sure how to do this by help of custom coding as I am from support. I can just provide hints as it is designed in SAP standard,
What is display in the Account Information Box in the context area on confirmation can be easily controlled by help of the account identification profile:
The information in the Alert Information area can be controlled by help of Intent Driven Interactions and alerts using Rule Modeller and Alert Modeller, see SAP Library