Dear experts,
I need your help and advice.
My company tries to improve performance of BI-IP planning applications with help of Planning Application Kit. It's very impotent for customer.
We created two planning functions using SQL-script (with CE-functions calls) and planning sequence containing these functions. Functions work fine, if we execute it separately.
But we get error when try to execute the sequence, if both functions change same data of one cube. Error occurs after execution of first function and before execution of second one. Method IF_RSPLFA_SRVTYPE_TREX_EXEC~TREX_EXECUTE of second function does not execute.
I guess error occurs, when planning engine prepares data (selection) for the second step and try to use buffer.
Same error we get, if try to execute one of this function twice. After first execution we try to save planning buffer, nonetheless error take a place in second execution again.
Thanks for your help!
I hope we can solve this problem. I'm ready to give more information aboute our case.
Versions:
AS ABAP (BW) 7.4 sps 7
+ notes 1939885, 2041600, 1979401, 2042470, 2037509, 2058265, 1745094, 1833538, 2033071, 2031624, 2015236, 2025767, 2067733
DB HANA 1.00.80. 00.391861
We applied note 2069393 - BW-IP (PAK): Error in PAK after saving planning, but it had no effect in our case.
Error:
This exception is closely related to a previous exception "CX_RSR_PE_ERROR",
which
was raised in program "CL_RSR_PE_ADAPTER=============CP", in line 86 of
(include) program "CL_RSR_PE_ADAPTER=============CM00H". The
reason for the exception occurring was:
PE error 2.048: column store error: TREX Planning Engine command error:
[38001] PlanningEngine internal error;#Condition 'aSession.is_valid()'
Detail:
L_S_LOG-METHOD LOOKUP
L_S_LOG-TEXT column store error: TREX Planning Engine command error: [38001] PlanningEngine internal error;#Condition 'aSession.is_valid()' failed.#Session '20141107181054_9247930' does not exist (anymore) during
L_S_LOG-STACK PL_FKTN->FIPT
L_S_LOG-RC 2048
L_T_CALLSTACK
1 CL_RSR_PE_ADAPTER=============CP METH LOG_CALL
2 CL_RSR_PE_ADAPTER=============CP METH CHECK_FOR_ERROR
3 CL_RSR_PE_ADAPTER=============CP METH IF_RSR_PE_ADAPTER~LOOKUP
4 CL_RSR_FIPT===================CP METH G_IF_OPTIMIZER_QUEUE~FLUSH
5 CL_RSR_FIPT===================CP METH G_IF_RUNTIME~EXECUTE
6 CL_RSR_FIPT===================CP METH EXECUTE_GEN
7 CL_RSPLS_PLAN_BUFFER==========CP METH _READ_TREX
8 CL_RSPLS_PLAN_BUFFER==========CP METH READ
9 CL_RSPLS_PLAN_BUFFER==========CP METH READ_EXT
10 CL_RSPLFR_CONTROLLER==========CP METH READ_DATA_FROM_BUFFER
11 CL_RSPLFR_CONTROLLER==========CP METH _READ_DATA_FROM_BUFFER_TREX
12 CL_RSPLFR_CONTROLLER==========CP METH EXECUTE_SERVICE
13 CL_RSPLFR_CONTROLLER==========CP METH EXECUTE_PLSQ
14 SAPLRSPLSSE FUNC RSPLSSE_PLSEQ_EXECUTE
15 SAPLZT_INV_SUPP FUNC ZT_INV_RUN_SEQUENCE
…