Hi,
You need to define your message with variable in TC 'SE91' under your message class and then in your code fill that variable with the Item number .
For more details go through below link:-
http://scn.sap.com/community/crm/webclient-ui-framework/blog/2013/05/21/pass-variables-to-long-text
Hope it helps
Thanks
Kumar.