yes i have referred the CAN Component datasheet as well Implementing CAN Bus Communication
using PSoC® 3 and PSoC 5(AN52701) .As per AN52701 page No 17,for can data tx i have added the below lines
in CAN_TX_RX_func.c file.
extern uint8 CAN_message;
CAN_TX_DATA_BYTE(0,index) = CAN_message[index];
but i can not succeed the build in PSoc creator3.3.
Is it possible to Add/Edit the Generated Source.
Do not tamper the generated code! It will be re-generated at a new build and it is never needed to change anything in those sources.
I am not quite fit in programming CAN interface, but you probably miss an API to access what you want to do.