Hello Experts,
To further analyze this, have created 2 CRs. Both contain the identical SQLScript setup, only that one of it contains a ABAP back up code. So when the input form runs with the CR having ABAP backup, the ABAP DERIVE method gets execute and the char derivation happens correctly. In either case, the SQL methods do not get invoke. To understand the root cause, i performed the ST12 trace for runs when the either CR was active and tried to compare the 2 traces.
In the debugging got to know that there are 2 standard classes *CR_CONTROLLER and *CR_MAPPER which has a DERIVE_ALL method and that is executed at run time. These 2 classes also have a DERIVE_HDB method that holds the downstream code to trigger the SQL methods from the CR Exit class.
Now, there is another class CL_RSPLS_BUFFER_B which has a _INIT_CR_CONTROLLER method getting invoke and which has an input parameter I_STORE that holds the key to let system decide whether to run via ABAP or HDB procedure. For my runs, the I_STORE always holds the value A meaning; to run via ABAP and hence DERIVE_ALL is run. For the SQL method's invoke I_STORE should have a value of T.
So basically the question is how to control the I_STORE parameter ?
Please feel free to let me know in case I should be looking at some thing more specific from the ST12 traces apart from the above and/or in general anything more useful in this matter.
Thanks,
Pankaj