CL_SQL_RESULT_SET=============CP
Hi All,
We are facing a typical issue,
We have our BI production system Live from past 2 years, in which Suddenly the system performance goes down i.e BI query will take more time than it will take usually to execute the report.
When the system performance is slow we found that in sm50 we can see following program running
CL_SQL_RESULT_SET=============CP with Action Sequential Read but no table nothing it is showing.
I have cleared the All Cache files and Checked.
Please suggest for any recommendation or how to troubleshoot the issue.
Thanks & Regards,
Balaji.S
Hi,
The performance issue for one query can be related for many things.
You informed that you could see that the issue is related with the report CL_SQL_RESULT_SET=============CP
This seems to be something related with the database. The compression of the requests will help in this case, but you also should check the notes below regarding the database. Please check the notes and apply the optimizer fix for your database and also check the parameters recommendation.
981875 - Optimizer merge fix for Oracle 10.2.0.2
1171650 - Automated Oracle DB parameter check
830576 - Parameter recommendations for Oracle 10g
192658 - Setting parameters for BW systems
By the way you can do a check in transaction RSRV. Please run the test "Check Database Parameter(s)" in RSRV.
I believe this information will help you to solve the issue.
Thanks,
Rafael
Similar Messages
-
Dear Gurus,
I am using a cube, and do reporting, let say cube contain:
Posting Date
Sales Organization
Distribution Chanel
Division
In Query i used only Posting as variable, and in Cube we have 12 milion records, query run very fast with only Posting Date as variable in selection.
But from the day i put Sales Org, Distribution Chanel, Divsion into selection screen of query as well. so If user enter posting date only it execute very fast, but when user specify Sales Org, then system run very long time.
I check ABAP job, i saw that CL_SQL_RESULT_SET=============CP take a lot of time, of course under that function is ABAP query with many join....
Would you tell me what happen, i have created index for infocube and "Refresh DB Statistic". But seems it still low.
IS there any missing in any setting, why just only Sales Org (4 Char) included in selection then make system hange on.
Thanks and Regards,
KIMC.Dear Yang,
I copied here to share in forum.
<<<<<<<<<<_Case Good Once_>>>>>>>>>>>>>
CREATE OR REPLACE VIEW "/BI0/0300000004" AS
SELECT
/*+ NO_QUERY_TRANSFORMATION */
"DU"."SID_0DOC_CURRCY" AS "S____085"
,"DU"."SID_0SALES_UNIT" AS "S____106"
,"D3"."SID_0BILL_DATE" AS "S____076"
,"D3"."SID_YMAT_TYPE" AS "S____114"
, SUM ( "F"."COST" ) AS "Z____339"
, SUM ( "F"."INV_QTY" ) AS "Z____137"
, SUM ( "F"."NETVAL_INV" ) AS "Z____138"
, SUM ( "F"."TAX_AMOUNT" ) AS "Z____139"
, COUNT( * ) AS "Z____051"
, SUM ( "F"."/BIC/YSALES_UP" ) AS "Z____424"
FROM
"/BIC/FYSD_CO3D" "F" JOIN "/BIC/DYSD_CO3DU" "DU" ON
"F" . "KEY_YSD_CO3DU" = "DU" . "DIMID"
JOIN "/BIC/DYSD_CO3D3" "D3" ON
"F" . "KEY_YSD_CO3D3" = "D3" . "DIMID"
JOIN "/BIC/DYSD_CO3DP" "DP" ON
"F" . "KEY_YSD_CO3DP" = "DP" . "DIMID"
JOIN "/BIC/DYSD_CO3D2" "D2" ON
"F" . "KEY_YSD_CO3D2" = "D2" . "DIMID"
WHERE
( ( ( ("DP"."SID_0CHNGID" = 0 ) ) AND ( ("DP"."SID_0RECORDTP"= 0 ) ) AND
( ("DP"."SID_0REQUID" <= 82455 ) ) AND ( ("D2"."SID_0SALESORG"= 12 ) ) AND
( ("D3"."SID_YIP_DATE"= 20100507 ) ) AND ( ("D3"."SID_YMAT_TYPE" IN (2 , 3 , 4 , 5 , 6 , 7) ) ) ) )
GROUP BY
"DU"."SID_0DOC_CURRCY" ,"DU"."SID_0SALES_UNIT"
,"D3"."SID_0BILL_DATE" ,"D3"."SID_YMAT_TYPE"
<<<<<<<<<<<<<<Case Hanging Out once>>>>>>>>>
SELECT
/*+ STAR_TRANSFORMATION FACT(F) */
"DU"."SID_0DOC_CURRCY" AS "S____085"
,"DU"."SID_0SALES_UNIT" AS "S____106"
,"D3"."SID_0BILL_DATE" AS "S____076"
,"D3"."SID_YMAT_TYPE" AS "S____114"
, SUM ( "F"."COST" ) AS "Z____339"
, SUM ( "F"."INV_QTY" ) AS "Z____137"
, SUM ( "F"."NETVAL_INV" ) AS "Z____138"
, SUM ( "F"."TAX_AMOUNT" ) AS "Z____139"
, COUNT( * ) AS "Z____051"
, SUM ( "F"."/BIC/YSALES_UP" ) AS "Z____424"
FROM
"/BIC/FYSD_CO3D" "F" JOIN "/BIC/DYSD_CO3DU" "DU" ON
"F" . "KEY_YSD_CO3DU" = "DU" . "DIMID"
JOIN "/BIC/DYSD_CO3D3" "D3" ON
"F" . "KEY_YSD_CO3D3" = "D3" . "DIMID"
JOIN "/BIC/DYSD_CO3DP" "DP" ON
"F" . "KEY_YSD_CO3DP" = "DP" . "DIMID"
JOIN "/BIC/DYSD_CO3D2" "D2" ON
"F" . "KEY_YSD_CO3D2" = "D2" . "DIMID"
WHERE
( ( ( ( "DP"."SID_0CHNGID" = 0 ) ) AND ( ( "DP"."SID_0RECORDTP" = 0 ) ) AND
( ( "DP"."SID_0REQUID" <= 82455 ) ) AND ( ( "D2"."SID_0SALESORG" = 12 ) ) AND
( ( "D3"."SID_YIP_DATE" = 20100507 ) ) AND ( ( "D3"."SID_YMAT_TYPE" IN ( 2 , 3 , 4 , 5 , 6 , 7) ) ) ) )
GROUP BY
"DU"."SID_0DOC_CURRCY" ,"DU"."SID_0SALES_UNIT"
,"D3"."SID_0BILL_DATE" ,"D3"."SID_YMAT_TYPE"
Is there any hint like Query Transformation >>> Can you suggest.
Thanks and Regards,
KIMC. -
Hi All,
We are facing iisue in production while generating CVC's.In the past it ran sucessful and now the job is processing for longer duration say 20 Hrs without any runtime error and failure.When we look in SM51 the status is under the report it's CL_SQL_RESULT_SET=======CP and it's just in sequential read and not updating any tables.
We are creating CVC's with Generate Immediately option and the source as Infocube.
With action selection Switch on implemented Badi.
Characterstics APO Location,ApoProduct ,CLEI Code and few characterstics are created with reference to cube and the Navigational attributes for APO Product and APO Location and being picked from their relavent master data sources in APO.
Quick response is appreciated.
Thanks.Hi Ricardo,
The TSV_TNEW_PAGE_ALLOC_FAILED error usually occurs when you are processing a large amount of data and the buffer is not able to handle it, as I understand.
One of the post which explains a similar buffer isssue is as below, could check the suggestions there also
https://forums.sdn.sap.com/click.jspa?searchID=3369979&messageID=3466528
Would suggest try restricting the copy function to a smaller set of data or else tune the database Buffer allocations with the help of a basis consultant.
Hope it helps -
Hi all;
During the execution of a single copy function, the system stop in the report CL_SQL_RESULT_SET=============CP (both on-line and batch).
Na runtime error occurs: TSV_TNEW_PAGE_ALLOC_FAILED
It tells me that there is no more storage space available for extending an internal table "\DATA=TH_DATA".
The following message also appears:
To enable error handling, the table had to be delete before this log was written.
As a result, the table is displayed further down or, if you branch to the ABAP Debugger, with 0 rows.
In the InfoCube I have 3770710 records but the variables allow me to filter most past of it.
I had search for notes or messages in forums but found nothing that could help me.
Can anyone help me?
Regards;
RicardoHi Ricardo,
The TSV_TNEW_PAGE_ALLOC_FAILED error usually occurs when you are processing a large amount of data and the buffer is not able to handle it, as I understand.
One of the post which explains a similar buffer isssue is as below, could check the suggestions there also
https://forums.sdn.sap.com/click.jspa?searchID=3369979&messageID=3466528
Would suggest try restricting the copy function to a smaller set of data or else tune the database Buffer allocations with the help of a basis consultant.
Hope it helps -
Hi,
We have done reorge for four tablespaces PSAPBTABI, PSAPBTABD, PSAPODSD, PSAPODSI in our BW System 7.0. And we have created new tablespaces for above our tablespaces like PSAPODSINEW for all the above tablespaces and made the old tablespaces as offline. After doing this activity we are facing lot of performance problems.
For e.g while our BW guys are running one report for the portal it is executing but after a long time like after 2+ hours the page goes empty. The report is CL_SQL_RESULT_SET=============CP, not only this report but lot of reports. We have done statistics update for the tables that report uses using BRCONNECT and also rebuild the indexex for all the tables. But still no luck.
<< Moderator message - The answers given in this forum are by volunteers. Everyone's problem is important. Please do not ask for help quickly. >>
Regards,
Balaji Vedagiri
Edited by: Rob Burbank on Jan 9, 2011 10:40 PMHi,
For the BASIS related performance issues :
1. This is mostly DBA related : Keeping an eye on the DB space to monitor the growth of the database and look at space available and needed to prevent shutting down the BW server.
2. Making sure that backups don't consume a lot of time to interfere with daily operations.
3. Doing load balancing
4. Making sure IDocs are flowing freely.
5. Making sure that shared drives and servers don't overshoot the capacity.
6. Patching servers and server instances to improve performance.
The BW consultants can monitor the the space , etc using tcode DB02. The DBAs have their own tools to monitor these parameters.
Cheers,
Kedar -
Run-time error "PXA_NO_SHARED_MEMORY" occurred
Hi All,
My production system is running fine. And when i check SM21 I saw a lot of error message Run-time error "PXA_NO_SHARED_MEMORY" occurred and Run-time error "SYSTEM_NO_ROLL" occurred. However I can't see any error in ST22. I had read sap note 307976. And dont know when I restart the SAP services is it will be fine?
trc file: "dev_w0", trc level: 1, release: "640"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
B
B Mon Feb 22 08:13:29 2010
B create_con (con_name=R/3)
B Loading DB library 'D:\usr\sap\PRD\SYS\exe\run\dbmssslib.dll' ...
B Library 'D:\usr\sap\PRD\SYS\exe\run\dbmssslib.dll' loaded
B Version of 'D:\usr\sap\PRD\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.58)
B New connection 0 created
M sysno 00
M sid PRD
M systemid 560 (PC with Windows NT)
M relno 6400
M patchlevel 0
M patchno 58
M intno 20020600
M make: multithreaded, ASCII
M pid 2440
M
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 2440) [dpxxdisp.c 1160]
I MtxInit: -2 0 0
M DpSysAdmExtCreate: ABAP is active
M DpShMCreate: sizeof(wp_adm) 11592 (828)
M DpShMCreate: sizeof(tm_adm) 2219848 (11044)
M DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
M DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
M DpShMCreate: sizeof(comm_adm) 192000 (384)
M DpShMCreate: sizeof(vmc_adm) 0 (320)
M DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
M DpShMCreate: SHM_DP_ADM_KEY (addr: 047D0040, size: 2510384)
M DpShMCreate: allocated sys_adm at 047D0040
M DpShMCreate: allocated wp_adm at 047D17A8
M DpShMCreate: allocated tm_adm_list at 047D44F0
M DpShMCreate: allocated tm_adm at 047D4518
M DpShMCreate: allocated wp_ca_adm at 049F2460
M DpShMCreate: allocated appc_ca_adm at 049F6AB0
M DpShMCreate: allocated comm_adm_list at 049F8220
M DpShMCreate: allocated comm_adm at 049F8238
M DpShMCreate: allocated vmc_adm_list at 04A27038
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 04A27060
M DpShMCreate: allocated wall_adm at 04A27068
X EmInit: MmSetImplementation( 2 ).
X <ES> client 0 initializing ....
X Using implementation flat
M <EsNT> Memory Reset disabled as NT default
X ES initialized.
M
M Mon Feb 22 08:13:30 2010
M calling db_connect ...
C Thank You for using the SLOLEDB-interface
C Using dynamic link library 'D:\usr\sap\PRD\SYS\exe\run\dbmssslib.dll'
C dbmssslib.dll patch info
C patchlevel 0
C patchno 58
C patchcomment MSSQL: Workaround for SQL2005 change in RpcNexecInsert (814383)
C np:(local) connection used on PKG-PRD
C CopyLocalParameters: dbuser is 'prd'
C
C Mon Feb 22 08:13:31 2010
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: MARS property was not set.
C Provider Release:08.50.1022
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: MARS property was not set.
C
C Mon Feb 22 08:13:42 2010
C Cache sizes: header 52 bytes, 20000 names (26720000 bytes), 1000 dynamic statements (5432000 bytes), total 32152052 bytes
C Using shared procedure name cache PKG-PRD_PRDPRD_PRD_MEM initialized by another process.
C Connected to db server : [PKG-PRD] server_used : [np:(local)], dbname: PRD, dbuser: prd
C pn_id:PKG-PRD_PRDPRD_PRD
C Not using MARS (on sql 8.0)
B Connection 0 opened (DBSL handle 0)
B Wp Hdl ConName ConId ConState TX PRM RCT TIM MAX OPT Date Time DBHost
B 000 000 R/3 000000000 ACTIVE NO YES NO 000 255 255 20100222 081330 PKG-PRD
C The IRow interface is supported by this OLEDB provider
M db_connect o.k.
I
I Mon Feb 22 08:14:02 2010
I MtxInit: 0 0 0
M SHM_PRES_BUF (addr: 09E50040, size: 4400128)
M SHM_ROLL_AREA (addr: 12510040, size: 262144000)
M SHM_PAGING_AREA (addr: 617B0040, size: 113246208)
M SHM_ROLL_ADM (addr: 0A290040, size: 2616690)
M SHM_PAGING_ADM (addr: 0A510040, size: 525344)
M ThCreateNoBuffer allocated 320144 bytes for 1000 entries at 0A5A0040
M ThCreateNoBuffer index size: 3000 elems
M ThCreateVBAdm allocated 7424 bytes (50 server) at 0A5F0040
X EmInit: MmSetImplementation( 2 ).
X <ES> client 0 initializing ....
X Using implementation flat
X ES initialized.
B db_con_shm_ini: WP_ID = 0, WP_CNT = 14
B dbtbxbuf: Buffer TABL (addr: 103500C8, size: 30000128, end: 11FEC4C8)
B dbtbxbuf: Buffer TABLP (addr: 0E5200C8, size: 10240000, end: 0EEE40C8)
B dbexpbuf: Buffer EIBUF (addr: 0EF000D0, size: 4194304, end: 0F3000D0)
B dbexpbuf: Buffer ESM (addr: 0F3100D0, size: 4194304, end: 0F7100D0)
B dbexpbuf: Buffer CUA (addr: 0F7200D0, size: 3072000, end: 0FA0E0D0)
B dbexpbuf: Buffer OTR (addr: 0FA100D0, size: 4194304, end: 0FE100D0)
M rdisp/reinitialize_code_page -> 0
M icm/accept_remote_trace_level -> 0
M rdisp/no_hooks_for_sqlbreak -> 0
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: MARS property was not set.
S *** init spool environment
S initialize debug system
T Stack direction is downwards.
T debug control: prepare exclude for printer trace
T new memory block 120D8040
S spool kernel/ddic check: Ok
S using table TSP02FX for frontend printing
S 1 spool work process(es) found
S frontend print via spool service enabled
S printer list size is 150
S printer type list size is 50
S queue size (profile) = 300
S hostspool list size = 3000
S option list size is 30
S found processing queue enabled
S found spool memory service RSPO-RCLOCKS at 121F0098
S doing lock recovery
S setting server cache root
S found spool memory service RSPO-SERVERCACHE at 121F03E0
S using messages for server info
S size of spec char cache entry: 165020 bytes (timeout 100 sec)
S size of open spool request entry: 1152 bytes
S immediate print option for implicitely closed spool requests is disabled
A
A -PXA--
A PXA INITIALIZATION
A PXA: Fragment Size too small: 107 MB, reducing # of fragments
A System page size: 4kb, admin_size: 13396kb.
A Attached to PXA (address 21F30040, size 440000K)
A abap/pxa = shared protect gen_remote
A PXA INITIALIZATION FINISHED
A -PXA--
A
C The IRow interface is supported by this OLEDB provider
B dbtran INFO (init_connection '<DEFAULT>' [MSSQL:640.00]):
B max_blocking_factor = 50, max_in_blocking_factor = 255,
B min_blocking_factor = 5, min_in_blocking_factor = 10,
B prefer_union_all = 1, prefer_union_for_select_all = 0,
B prefer_fix_blocking = 0, prefer_in_itab_opt = 0,
B convert AVG = 1, alias table FUPD = 0,
B escape_as_literal = 0, opt GE LE to BETWEEN = 0,
B select * =0x00, character encoding =SBCS / []:X,
B use_hints = abap->1, dbif->0x1, upto->0, rule_in->0,
B rule_fae->0, concat_fae->0, concat_fae_or->0
A
A Mon Feb 22 08:14:03 2010
A ABAP ShmAdm attached (addr=53EC5000 leng=20955136 end=552C1000)
A >> Shm MMADM area (addr=5422D180 leng=134720 end=5424DFC0)
A >> Shm MMDAT area (addr=5424F000 leng=17244160 end=552C1000)
A RFC Destination> destination pkg-prd_PRD_00 host pkg-prd system PRD systnr 0 (pkg-prd_PRD_00)
A RFC Options> H=pkg-prd,S=00
A RFC FRFC> fallback activ but this is not a central instance.
A
A RFC rfc/signon_error_log = -1
A RFC rfc/dump_connection_info = 0
A RFC rfc/dump_client_info = 0
A RFC rfc/cp_convert/ignore_error = 1
A RFC rfc/cp_convert/conversion_char = 23
A RFC rfc/wan_compress/threshold = 251
A RFC rfc/recorder_pcs not set, use defaule value: 1
A RFC rfc/delta_trc_level not set, use default value: 0
A RFC rfc/no_uuid_check not set, use default value: 0
A RFC abap/SIGCHILD_default not set, use default value: 0
A RFC Method> initialize RemObjDriver for ABAP Objects
A Hotpackage version: 49
M ThrCreateShObjects allocated 14604 bytes at 0FFD0040
N
N Mon Feb 22 08:14:05 2010
N SsfSapSecin: putenv(SECUDIR=D:\usr\sap\PRD\DVEBMGS00\sec): ok
N
N =================================================
N === SSF INITIALIZATION:
N ===...SSF Security Toolkit name SAPSECULIB .
N ===...SSF trace level is 0 .
N ===...SSF library is D:\usr\sap\PRD\SYS\exe\run\sapsecu.dll .
N ===...SSF hash algorithm is SHA1 .
N ===...SSF symmetric encryption algorithm is DES-CBC .
N ===...sucessfully completed.
N =================================================
N MskiInitLogonTicketCacheHandle: Logon Ticket cache pointer retrieved from shared memory.
N MskiInitLogonTicketCacheHandle: Workprocess runs with Logon Ticket cache.
W =================================================
W === ipl_Init() called
W ITSP Running against db release 620!
W ITSP Disable Kernel Web GUI functionality
W === ipl_Init() returns 2, ITSPE_DISABLED: Service is disabled (sapparam)
W =================================================
E
E Mon Feb 22 08:14:39 2010
E Replication is disabled
C
C Mon Feb 22 08:15:00 2010
C sloledb.cpp [DoDbcc,line 2930]: Error/Message: (err 2571, sev 0), User 'prd' does not have permission to run DBCC CACHEPROFILE.
C Procname: [No proc]
C
C Mon Feb 22 08:15:01 2010
C statement rerun with user dbo was successful, you can ignore the preceeding message
C
C Mon Feb 22 08:16:27 2010
C Provider SQLNCLI could not be initialized. See note #734034 for more information.
C Using provider SQLOLEDB instead.
C OpenOledbConnection: MARS property was not set.
S
S Mon Feb 22 08:19:23 2010
S found spool memory service RSPO-ACTIONS at 121F4C68
A
A Mon Feb 22 08:19:55 2010
A TH VERBOSE LEVEL FULL
M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12304]
C Rollback Work (0)
A
A Mon Feb 22 08:19:59 2010
A Mon Feb 22 08:19:59 2010
A
A ABAP/4 Program /SDF/SAPLRI_SQLSERVER .
A Source /SDF/LRI_SQLSERVERU02 Line 264.
A Error Code CALL_FUNCTION_CONFLICT_LENG.
A Module $Id: //bas/640_REL/src/krn/runt/abfunc.c#14 $ SAP.
A Function FuncParams Line 2906.
C Rollback Work (0)
C
C Mon Feb 22 08:20:00 2010
C sloledb.cpp [DoDbcc,line 2930]: Error/Message: (err 2571, sev 0), User 'prd' does not have permission to run DBCC loginfo.
C Procname: [No proc]
C
C Mon Feb 22 08:20:01 2010
C statement rerun with user dbo was successful, you can ignore the preceeding message
C
C Mon Feb 22 08:20:07 2010
C sloledb.cpp [ParamStmtExec,line 12251]: Error/Message: (err 50000, sev 0), Table not found.
C Procname: [##Y3PKG_PRDprd00000024400000003365081342]
C ParamStmtExec failed. HR 80040e14 DBSL retcode 99. stmt: [sap_get_table_size_info 'syscomments', 'prd', 'PRD'
C /* R3:CL_SQL_RESULT_SET=============CP:234 T: */
C ]
C Conn_i:2 selection:1 singleton:0 flag_fupd:0 use_cursor:0 chksum: 222194
C dbdsmss: DBSL99 SQL50000
C Table not found.
B ***LOG BY2=> sql error 50000 performing FET [dbds#3 @ 592] [dbds 0592 ]
B ***LOG BY0=> Table not found. [dbds#3 @ 592] [dbds 0592 ]
B ***LOG BY1=> sql error 50000 [dbacds#2 @ 1187] [dbacds 1187 ]
B
B Mon Feb 22 08:26:10 2010
B dbmyclu : info : my major identification is 3232261128, minor one 0.
B dbmyclu : info : Time Reference is 1.12.2001 00:00:00h GMT.
B dbmyclu : info : my uuid is 31B87DDDE43B904B955F2E6B45F604BE.
B dbmyclu : info : current optimistic cluster level: 3
B dbmyclu : info : pessimistic reads set to 2.
N login/password_change_for_SSO : 1 -> 1
B
B Mon Feb 22 08:32:54 2010
B table logging switched off for all clients
M
M Mon Feb 22 08:45:50 2010
M PfHIndInitialize: memory=<60720150>, header=<60720150>, records=<60720180>
S
S Mon Feb 22 08:55:52 2010
S handle memory type is RSTSPROMMM
M
M Mon Feb 22 09:18:08 2010
M *** ERROR => NiProcMsg: rc=-104 (NIEROUT_SNC_FAILURE) from router [nibuf.c 423]
M *** ERROR => MsIAttachEx: NiBufConnect to /H/192.168.100.7/S/sapdp99/H/194.39.131.34/S/sapdp99/H/oss001/sapmsOSS failed (rc=NIEROUT_SNC_FAILURE) [msxxi.c 633]
M *** ERROR => LgIAttach: MsAttach (rc=NIEROUT_SNC_FAILURE) [lgxx.c 2984]
M *** ERROR => LgIGroup: LgIAttach(rc=-101) [lgxx.c 3504]
A TH VERBOSE LEVEL FULL
M
M Mon Feb 22 09:18:28 2010
M *** ERROR => NiProcMsg: rc=-104 (NIEROUT_SNC_FAILURE) from router [nibuf.c 423]
M *** ERROR => MsIAttachEx: NiBufConnect to /H/192.168.100.7/S/sapdp99/H/194.39.131.34/S/sapdp99/H/oss001/sapmsOSS failed (rc=NIEROUT_SNC_FAILURE) [msxxi.c 633]
M *** ERROR => LgIAttach: MsAttach (rc=NIEROUT_SNC_FAILURE) [lgxx.c 2984]
M *** ERROR => LgIGroup: LgIAttach(rc=-101) [lgxx.c 3504]
A TH VERBOSE LEVEL FULL
C
C Mon Feb 22 10:01:09 2010
C Rollback Work (0)
A
A Mon Feb 22 10:18:24 2010
A TH VERBOSE LEVEL FULL
M ***LOG R68=> ThIRollBack, roll back () [thxxhead.c 12304]
C Rollback Work (0)
A
A Mon Feb 22 10:18:26 2010
A Mon Feb 22 10:18:26 2010
A
A ABAP/4 Program /SDF/SAPLRI_SQLSERVER .
A Source /SDF/LRI_SQLSERVERU02 Line 264.
A Error Code CALL_FUNCTION_CONFLICT_LENG.
A Module $Id: //bas/640_REL/src/krn/runt/abfunc.c#14 $ SAP.
A Function FuncParams Line 2906.
C Rollback Work (0)
C sloledb.cpp [DoDbcc,line 2930]: Error/Message: (err 2571, sev 0), User 'prd' does not have permission to run DBCC loginfo.
C Procname: [No proc]
C statement rerun with user dbo was successful, you can ignore the preceeding message
C
C Mon Feb 22 10:18:29 2010
C sloledb.cpp [ParamStmtExec,line 12251]: Error/Message: (err 50000, sev 0), Table not found.
C Procname: [##Y3PKG_PRDprd00000024400000012657081342]
C ParamStmtExec failed. HR 80040e14 DBSL retcode 99. stmt: [sap_get_table_size_info 'syscomments', 'prd', 'PRD'
C /* R3:CL_SQL_RESULT_SET=============CP:234 T: */
C ]
C Conn_i:2 selection:1 singleton:0 flag_fupd:0 use_cursor:0 chksum: 222194
C dbdsmss: DBSL99 SQL50000
C Table not found.
B ***LOG BY2=> sql error 50000 performing FET [dbds#3 @ 592] [dbds 0592 ]
B ***LOG BY0=> Table not found. [dbds#3 @ 592] [dbds 0592 ]
B ***LOG BY1=> sql error 50000 [dbacds#2 @ 1187] [dbacds 1187 ]
Could anybody advice me on this
Regards,
ZulHi,
I hope 440000 will not the cause,
this might occur due to many reasons,
1. make sure you have all the components(Applications,OSlevel,DBlevel) are at same level in entire the landscape.
2. you can observe the evenlogs at OSlevel to get the error information pointing to. Also check for the dumps/logs(work direcotry).
3. if not, can open SAP message.
regards
Nagaraju -
Error in CCMS monitoring Batch job SAP_CCMS_MONI_BATCH_DP.
Hi All,
I am using a Sanbox system for CCMS Monitoring activities. I assigned a method CCMS_ONAlert_Email under auto reaction to the MTE class ABAP shortdumps on node System errors. So the requirement is when an alert triggered i have to receive an alert email. I just found there is an error in Batch job created for Alert monitoring, please find the error details mentioned below. Please let me know how to solve this error
Job started
Step 001 started (program RSAL_BATCH_TOOL_DISPATCHING, variant , user ID NBKIPXP)
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075617',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata1')
: ) AS FS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTIONin class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075633',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/log_dir/NO
: DE0000/') ) AS FS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075633',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata4/d
: b2es1/NODE0000/ES1/T0000003/C0000000.TMP') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata2/d
: b2es1/NODE0000/ES1/T0000003/C0000001.TMP') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata1/d
: b2es1/NODE0000/ES1/T0000003/C0000002.TMP') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata3/d
: b2es1/NODE0000/ES1/T0000003/C0000003.TMP') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata3/d
: b2es1/NODE0000/ES1/T0000004/C0000003.UTM') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
SYSID: ES1
SY-SUBRC: 1208
Message: ADBC error
SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata4/d
b2es1/NODE0000/ES1/T0000004/C0000000.UTM') ) ASFS_CONFIG
Database:
caused by
Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
Kernel Error ID:
DB Error: Yes
SQL Code: 444-
SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
/exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
on code: "4". SQLSTATE=42724
DB Object Exists: No
Duplicated Key: No
Internal Error: 1
Invalid Cursor: No
Unknown Connection: No
Connection Closed: No
xception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
Kernel Error ID:
SYSID: ES1
SY-SUBRC: 1208
Message: ADBC error
SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata2/d
: b2es1/NODE0000/ES1/T0000004/C0000001.UTM') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
:Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
: Kernel Error ID:
: SYSID: ES1
: SY-SUBRC: 1208
: Message: ADBC error
: SQL statement: SELECT '20110613075634',0 as DB6PMCF_PARTITION,FS_NAM
: E,'T','20110521174003','700',FREE_KB,USED_KB,TOTAL_KB,NUM_IUSED,PCT_IU
: SED FROM SYSIBM.SYSDUMMY1, TABLE(SAPTOOLS.DB6PMCF('/db2/ES1/sapdata1/d
: b2es1/NODE0000/ES1/T0000004/C0000002.UTM') ) ASFS_CONFIG
: Database:
:caused by
:Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET
: Kernel Error ID:
: DB Error: Yes
: SQL Code: 444-
: SQL Message: SQL0444N Routine "SAPTOOLS.DB6PMCF" (specific name "D
: B6PMCF") is implemented with code in library orpath "/usr/sap/ED2/SYS
: /exe/run/db6pmudf", function "Db6pmcf" which cannot be accessed. Reas
: on code: "4". SQLSTATE=42724
: DB Object Exists: No
: Duplicated Key: No
: Internal Error: 1
: Invalid Cursor: No
: Unknown Connection: No
: Connection Closed: No
Exception CX_DBA_ADBC in class CL_DB6_RDI method GET_SNAPSHOT line 431
Job finishedHi Dinesh,
Please check the note is applicable for you [Note 978319 - DB6: Incorrectly cataloged table functions|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=978319]
so please check wheter db2<sid>user has enough permission
Thanks,
Jansi -
HI ,
we are facing below issue while activating info object xxxxxxxx
" SQL Error: ORA-00942: table or view does not exist " and " CX_RS_SQL_ERROR "
can any one help us out to resolve this issue.
Thanks,
EDK......Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
Invalid column Index error - While consuming Calculation view via Native SQL
Hi Experts,
I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
Thanks in Advance,
Suma
REPORT ZTEST_HANA2.
*Report to consume Calculation view (script based) from ABAP
PARAMETERS: ip_docnr type BELNR_D,
ip_gjahr type GJAHR,
ip_bukrs type BUKRS,
ip_blgr type FAGL_RLDNR.
DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
LO_CONN TYPE REF TO CL_SQL_CONNECTION,
LO_RESULT TYPE REF TO CL_SQL_RESULT_SET,
LV_SQL TYPE STRING,
LR_DATA TYPE REF TO DATA.
DATA: LX_SQL_EXC TYPE REF TO CX_SQL_EXCEPTION,
LT_SEPMAPPS_CLSDINV TYPE TABLE OF SEPMAPPS_CLSDINV,
LV_TEXT TYPE STRING.
TRY.
lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
|WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
|'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
|,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
|,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
"Create an SQL statement to be executed via the connection
LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
"Execute the native SQL query
LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
"Read the result into the internal table lt_sepmapps_clsdinv
GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
LO_RESULT->NEXT_PACKAGE( ).
LO_RESULT->CLOSE( ).
LO_CONN->CLOSE( ).
CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
MESSAGE LV_TEXT TYPE 'E'.
ENDTRY.Hi Suma,
Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
Check there if the parameters case is working properly... Is it really this confusing options:
p_GJAHR
S_BUKRS
p_base_ledger
Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
Regards, Fernando Da Rós -
Why APEX 4.1 Error handling function does not trap the error of missing table?
Say, I create simple application with single IR report page and I also assign standard simple error handling function.
Function works perfectly, except but this case:
If I just drop a table used by report page and then refresh the page I am getting usual APEX error message:
ORA-20001: get_dbms_sql_cursor error ORA-00942: table or view does not exist
and error handling function is not invoked at all.
Is this a feature or a bug?Hi,
Check the corrections given in the note 990764:
Reason and Prerequisites
Up to now, using a characteristic with its own master data read class as the InfoProvider was not supported. This is now released but it is not available for all modelings. Using the attributes in the query is not supported for characteristics that have their own master data read class. Using the attributes in the query causes a termination. The following errors may occur in this case:
ORA-00942: table or view does not exist
Fehler in CL_SQL_RESULT_SET Include NEXT_PACKAGE
RAISE_READ_ERROR in CL_RSDRV_VPROV_BASE
Solution
SAP NetWeaver 2004s BI
Import Support Package 11 for SAP NetWeaver 2004s BI (BI Patch 11 or SAPKW70011) into your BI system. The Support Package is available once Note 0914305 "SAPBINews BI 7.0 Support Package 11", which describes this Support Package in more detail, has been released for customers.
In urgent cases you can implement the correction instructions.
The correction instructions contain the tightened inspection for characteristics.
Regards,
Anil Kumar Sharma .P -
Dynamic Internal Table creation and population
Hi gurus !
my issue refers to the slide 10 provided in this slideshow : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae
My example is gonna sound dumb, but anyway: I want to dynamically select from a table into a dynamically created itab.
Letu2019s use only EKPO, and only field MENGE.
For this, I use Classes cl_abap_elemdescr, cl_sql_result_set and the Data Ref for table creation. But while fetching the resultset, program dumps when fields like MENGE, WRBTR are accessed. Obviously their type are not correctly taken into account by my program.
Here it comes:
DATA: element_ref TYPE REF TO cl_abap_elemdescr,
vl_fieldname TYPE string,
tl_components TYPE abap_component_tab,
sl_components LIKE LINE OF tl_components_alv,
linetype_lcl TYPE REF TO cl_abap_structdescr,
ty_table_type TYPE REF TO cl_abap_tabledescr,
g_resultset TYPE REF TO cl_sql_result_set
u2026
CONCATENATE sg_columns-table_name '-' sg_columns-column_name INTO vl_fieldname.
* sg_columns-table_name contains 'EKPO'
* sg_columns-column_name contains 'MENGE'
* getting the element as a component
element_ref ?= cl_abap_elemdescr=>describe_by_name( vl_fieldname ).
sl_components-name = sg_columns-column_name.
sl_components-type ?= element_ref.
APPEND sl_components TO tl_components.
* dynamic creation of internal table
linetype_lcl = cl_abap_structdescr=>create( tl_components ).
ty_table_type = cl_abap_tabledescr=>create(
p_line_type = linetype_lcl ).
u2026
* Then I will create my field symbol table and line. Code has been cut here.
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
u2026
* Then I will execute my query. Here itu2019s: Select MENGE From EKPO Where Rownum = 1.
g_resultset = g_stmt_ref->execute_query( stmt_str ).
* Then structure for the Resultset is set
CALL METHOD g_resultset->set_param_struct
EXPORTING
struct_ref = dy_line.
* Fetching the lines of the resultset => Dumpu2026
WHILE g_resultset->next( ) > 0.
ASSIGN dy_line->* TO <dyn_wa>.
APPEND <dyn_wa> TO <dyn_table>.
ENDWHILE.
Anyone has any clue to how prevent my Dump ??
The component for MENGE seems to be described as a P7 with 2 decimals. And the resultset wanna use a QUAN type... or something like that !Hello
I have expanded your sample coding for selecting three fields out of EKPO:
*& Report ZUS_SDN_SQL_RESULT_SET
*& Thread: Dynamic Internal Table creation and population
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1375510"></a>
*& NOTE: Coding for dynamic structure / itab creation taken from:
*& Creating Flat and Complex Internal Tables Dynamically using RTTI
*& https://wiki.sdn.sap.com/wiki/display/Snippets/Creating+Flat+and+
*& Complex+Internal+Tables+Dynamically+using+RTTI
REPORT zus_sdn_sql_result_set.
TYPE-POOLS: abap.
DATA:
go_sql_stmt TYPE REF TO cl_sql_statement,
go_resultset TYPE REF TO cl_sql_result_set,
gd_sql_clause TYPE string.
DATA:
gd_tabfield TYPE string,
go_table TYPE REF TO cl_salv_table,
go_sdescr_new TYPE REF TO cl_abap_structdescr,
go_tdescr TYPE REF TO cl_abap_tabledescr,
gdo_handle TYPE REF TO data,
gdo_record TYPE REF TO data,
gs_comp TYPE abap_componentdescr,
gt_components TYPE abap_component_tab.
FIELD-SYMBOLS:
<gs_record> TYPE ANY,
<gt_itab> TYPE STANDARD TABLE.
START-OF-SELECTION.
continued. -
APD timeout issue in execution
Good afternoon,
Please anybody knows about this issue? the problem description is the following:
We have an APD in a Process Chain, this chain was running well in previous dates, but when we run it yesterday and a issue happened.
The message that appears in common in the 3 APD's that failed when double-click is the following:
And the process monitor shows the following log:
As we can see the duration of the Job was 20.787 Seconds and that is not normal because when
we run the query using RSRT or BEX the result of the query appears in 15
seconds, so the problem is in Data Source of each APD because the time out
problem is in execution of the Query that is the data source. in the next 3 screens we can see it:
When we check in the TX ST22 The list of Runtime Errors shows that is an TIME_OUT error:
As we can see the APD is composed by the datasource in this case is a Query and there is
an aggregation and then the data of the selected fields are written in a DSO.
When right click and select the option "Display Data" in the APD the execution
begins but never ends, there is the Time_Out Error.
The properties of the Data Source in the APD about Extended Settings Tab is the following:
When we check the TX SM50 In the following screen we can see that is a CL_SQL_RESULT_SET
Thank you very much if anyone can help or advice to discover the cause of this problem
and how to solve it.
Kind regards,
Luis JorgeHi, I see you have an object aggregation. My recommendation is to redefine the query you delete this object and subtract rows to the query.
I hope help. Regards. -
Runtime error SQL error 3114 occurred when accessing program CX_ w
Hi Friends,
Iam in a big mess . I have one query based on one my Zinfocube.This query ia attached in the workbook .. Previuolsy all was fine , but now whever iam executing this query it is throwing me the exception
Query 0: Runtime error SQL error 3114 occurred when accessing program CX_ with parallel processing via RFC.
and
Beim Lesen der Daten sind Fehler aufgetreten. Navigation ist möglich
I am not able to get the cause of error ..
Can anybody help me in this regrd as its a bit urgent.
Thanks in advance..Hi , thanks for replying ,
I have tried running query through RSRT also , its not working still it is giving me the same error .
In st22 it is showing me the follwing dump.
DBIF_REPO_SQL_ERROR
Short text
SQL error 3114 occurred when accessing program
What happened?
The system is no longer linked to an ORACLE instance.
No further operations can be performed on the database.
What can you do?
You cannot eliminate this error yourself.
Please inform your database administrator.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Note which actions and input led to the error.
For further help in handling the problem, contact your SAP administrator
You can use the ABAP dump analysis transaction ST22 to view and manage
termination messages, in particular for long term reference.
Error analysis
The system attempted to access an ORACLE instance to which
it is no longer linked.
This situation may arise because the ORACLE instance
has been stopped due to an error or an external operation.
How to correct the error
Database error text........: "ORA-03114: not connected to ORACLE"
Triggering SQL statement...: "CX_SQL_EXCEPTION==============CP "
The current status of the ORACLE instance cannot be determined.
It may be still inactive or the database administrator may have
restarted it.
In any case, all systems that have accessed the ORACLE instance
must be restarted after the ORACLE instance has been restarted.
If you were working on a central system, inform
your system administrator.
If you were working on an external local system, inform
the person responsible for this system.
If you were working on your own local system, restart
the system yourself.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_REPO_SQL_ERROR" " "
"CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
"NEXT_PACKAGE"
If you cannot solve the problem yourself and want to send an errornotification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File
(Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21.
Restrict the time interval to 10 minutes before and five minutes
after the short dump. Then choose "System->List->Save->Local File
(Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP
program: The source code of the program
In the editor, choose "Utilities->More
Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which
actions and input led to the error.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_REPO_SQL_ERROR" " "
"CL_SQL_RESULT_SET=============CP" or "CL_SQL_RESULT_SET=============CM006"
"NEXT_PACKAGE"
Thanks in Advance.. -
ORA-01722 Invalid Number while executing the Query
Hi Friends, need your valuable suggestions.
We have a DSO with a characteristic info object ZDAT (DATA TYPE DATS) with a reference from 0DATE.
I am able to see the data of the info object ZDAT using LIST CUBE on the DSO.
While using this info object ZDAT in the query moniter or bex analyzer it shows the following errors.
EORA-01722: invalid number .
EError reading the data of InfoProvider.
EError while reading data; navigation is possible
I>> Row: 71 Inc: NEXT_PACKAGE Prog: CL_SQL_RESULT_SET.
Kindly please help me on this issue.Hello soumya
Can you check if you have any NULL values in ZDAT in from LISTCUBE?
If yes, check the note below
https://service.sap.com/sap/support/notes/1327167.
If null value is your problem, you can change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
Regards
Anindya -
Display Infocube Content produces Runtime Errors = TIME_OUT
Hi,
Upon trying to display content of an InfoCube (200 records only), I received the following error:
Runtime Errors TIME_OUT
Date and Time 13.12.2007 11:16:24
Short text
Time limit exceeded.
What happened?
The program "CL_SQL_RESULT_SET=============CP" has exceeded the maximum
permitted runtime without
interruption and has therefore been terminated.
Error analysis
After a specific time, the program is terminated to make the work area
available to other users who may be waiting.
This is to prevent a work area being blocked unnecessarily long by, for
example:
- Endless loops (DO, WHILE, ...),
- Database accesses with a large result set
- Database accesses without a suitable index (full table scan)
The maximum runtime of a program is limited by the system profile
parameter "rdisp/max_wprun_time". The current setting is 600 seconds. If this
time limit is
exceeded, the system attempts to cancel any running SQL statement or
signals the ABAP processor to stop the running program. Then the system
waits another 60 seconds maximum. If the program is then still active,
the work process is restarted.
Trigger Location of Runtime Error
Program CL_SQL_RESULT_SET=============CP
Include CL_SQL_RESULT_SET=============CM006
Row 32
Module type (METHOD)
Module Name NEXT_PACKAGE
Source Code Extract
Line SourceCde
2 *
3 * Fetches the next bulk of rows into an internal table.
4 *
5
6 DATA:
7 sql_code TYPE i,
8 sql_msg TYPE dbsqlmsg.
9
10 FIELD-SYMBOLS:
11 <line> TYPE ANY,
12 <outtab> TYPE STANDARD TABLE.
13
14
15 IF me->cursor = c_invalid_cursor.
16 * result set has already been closed
17 RAISE EXCEPTION TYPE cx_sql_exception
18 EXPORTING invalid_cursor = 'X'.
19 ENDIF.
20
21 * check that a reference to the output table has been set by
22 * a preceeding call of SET_PARAM_TABLE; in this case the attribute
23 * LINE_REF contains a reference to a data structure of the
24 * table's line type
25 IF me->itab_ref IS INITIAL.
26 RAISE EXCEPTION TYPE cx_parameter_invalid
27 EXPORTING parameter = 'ITAB_REF'.
28 ENDIF.
29 ASSIGN me->itab_line_ref->* TO <line>.
30 ASSIGN me->itab_ref->* TO <outtab>.
31
>>>>> CALL 'C_DB_FUNCTION' ID 'FUNCTION' FIELD 'DB_SQL'
33 ID 'FCODE' FIELD c_fcode_next_package
34 ID 'CONNAME' FIELD me->con_ref->con_name
35 ID 'CONDA' FIELD me->con_ref->con_da
36 ID 'CURSOR' FIELD me->cursor
37 ID 'BOUND' FIELD me->outvals_bound
38 ID 'OUTVALS' FIELD me->parameters->param_tab
39 ID 'OUTTAB' FIELD <outtab>
40 ID 'LINE' FIELD <line>
41 ID 'UPTO' FIELD upto
42 ID 'ROWCNT' FIELD rows_ret
43 ID 'SQLCODE' FIELD sql_code
44 ID 'SQLMSG' FIELD sql_msg.
45
46 IF sy-subrc = 0.
47 * some rows fetched
48 ADD rows_ret TO rows_fetched.
49
50 * set the OUTVALS_BOUND flag; this avoids "reassignement" of the
51 * output variables the next time this method is called, i.e. the
Can someone help me to solve this problem. Thanks!Hi,
Chk the below line from the dump in line 3 - 'Fetches the next bulk of rows into an internal table'
what that error means is the volume which u r trying to view is beyond the size of the internal table buffer and because of that it is leading to a dump.
As the previous reply suggests try to increase the size of table buffer which will help you display much larger volumes.
Selection of fewer columns would be much quicker and easier to analyse data quickly.
Regards
Maybe you are looking for
-
Creation of service order from campaign element
Hi, We have a requirement where service orders are to be created for all those business partners who responded to the campaign. We are using standard service order type SVRO. We have set up campaign automation by creating campaign and element, assign
-
Campaign Determination - Sales Order
Hi Experts, Can we do campaign determination at Sales Order level, if yes can any one pls let me know how to do the settings in SAP CRM 2007. Thanks in advance. Regards Vinod
-
Different Sender Service as expected! Please help...
Hi all, I have an HTTP -> XI -> HTTP scenario with on both sides an SAP system. So the SAP systems communicate with XI through HTTP. In the SLD i configured both systems. e.g. systemA and systemB. SystemA sends data to XI and XI sends it to systemB (
-
How to get business partner no from guid of shopping cart
Hi experts, is there any relation between guid of shopping cart and business partner in but000 table , here we need to find the approver for the shopping cart based on guid , when it is just being created in single step approval. we are using proc
-
Why can't Photo Booth give me continuous video on a USB camera?
How can I get continuous video on a USB camera with PhotoBooth? Can't find a Photo Booth community.