Copying control routines which are defined in VOFM transaction are working fine for standard SAP transactions.
But it is not working for add-on programs.
In VA01 - When a credit note is created with reference to invoice, Some routines are called and working fine.
In Add-on program which uses function module - If a credit note is created with reference to invoice the routines are not called here and is not working.But the creation of document is sucessfull.
Is it possible to make my add-on program to work similar to Standard SAP.
i.e, All routines which are defined in VOFM should be executed.
Thanks in Advance.