Page 1 of 1

Stored Procedure in TM1 10.2.0

Posted: Fri Nov 15, 2013 3:02 pm
by Chittemreddy
Hello Team,

We are able to call the stored procedure using TI process and it will return the value.

It's possible to load the return value into TM1 cube using TI process.

If 'Yes' can you please let me know process for loading.

Regards
Sreenivas.

Re: Stored Procedure in TM1 10.2.0

Posted: Fri Nov 15, 2013 3:37 pm
by tomok
Chittemreddy wrote:Hello Team,

We are able to call the stored procedure using TI process and it will return the value.

It's possible to load the return value into TM1 cube using TI process.

If 'Yes' can you please let me know process for loading.

Regards
Sreenivas.
If you are using the TI wizard and your stored procedure call is the "Data Source" then the wizard will guide you through it. If you are writing custom code then use the CellPutS or CellPutN functions in TI. If you don't know how to do that I suggest you take some training or, at a minimum, read the TM1 documentation about TI's.

Re: Stored Procedure in TM1 10.2.0

Posted: Sun Nov 17, 2013 11:17 pm
by macsir
Is it oracle stored procedure you are talking about?

Re: Stored Procedure in TM1 10.2.0

Posted: Mon Nov 18, 2013 9:18 am
by Chittemreddy
Hello.

Thanks for reply.

We are using the teradata stored procedure.

Regards,
Sreenivas

Re: Stored Procedure in TM1 10.2.0

Posted: Tue Nov 19, 2013 6:45 am
by Chittemreddy
Hello Tomok,

If I use the data source as Flat File or ODBC or TM1 Cube View and we will load the data using CellPutS or CellPutN functions.

We are using the below code in Prolog to call the stored procedure and get the return value based on stored procedure.

ODBCOpen('Accounting', 'Jdoe', 'Bstone');
ODBCOutput('Accounting', '{call StoredProcedureName}');
ODBCClose('Accounting');

We need to load the return value in TM1 cube. How to use the CellPutS or CellPutN functions here.

If have some sample code for same it will be very helpful.

Regards
Sreenivas.

Re: Stored Procedure in TM1 10.2.0

Posted: Tue Nov 19, 2013 9:44 am
by David Usherwood
That won't work.
Put the call to the SP into the query box. You will then get the output in columnar format into TI variables.