R3trans error retcode: 32
Hi Everybody
Did somebody had an error like this with R3trans -d
=====================================================================
4 ETW000 [twdydbacc.c ,00573] db_fd_p<i>.fixed_length:1 8 0.212642
4 ETW000 [dev trc ,00000] SELECT VERSION, UUID, CRTIMESTMP, ABTIMESTMP, DYTIMESTMP, FLDCNT, TABLENGTH, KEYCNT, KEYLENGTH, CLIENTPOS, TABTYPE, TABFOR
4 ETW000 45 0.212687
4 ETW000 [dev trc ,00000] M, REFNAME, HFLAG, BUFSTATE, BUFPARM, ALIGN, POINTERLG, UNICODELG, COMPCNT, LEAFCNT FROM "DDNTT" WHERE TABNAME = :A0
4 ETW000 23 0.212710
4 ETW000 [dev trc ,00000] set_ocica() -> OCI or SQL return code 1403 535 0.213245
2EETW000 sap_dext called with msgnr "32":
2EETW000 -
db call info -
2EETW000 function: db_ntab
2EETW000 fcode: NT_RDTDESCR
2EETW000 tabname: TADIR
2EETW000 len (char): 5
2EETW000 key: TADIR
2EETW000 retcode: 32
4 ETW000 [dev trc ,00000] db_con_rollback (con_da={R/3,0,0},th_rollback=1,tx=0)
4 ETW000 23699 0.236944
==================================================================
The system is installed as export /import with the R3load tools, OS:Win2k3 64bit, Oracle 10.2, NW04s BW, MS Clustered!
- R3trans -x is working fine. (latest from Feb. 2008)
- NLS_LANG is correctly set
- Enviroment Variable should be fine too.
- tnsping is fine
Tnx for your help.
Murat
Hello Murat,
i haven't seen such a situation until yet... but it seems like the table DDNTT does not contain a searched value.
SQL Returncode 1403 means "no data found".
Please can you execute the following sql statement and post the result:
> shell> sqlplus "/ as sysdba"
> SQL> SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'DDNTT';
> SQL> SELECT COUNT(*) FROM SAPSR3.DDNTT;
If both commands are returning a result... please do the following:
> shell> sqlplus "/ as sysdba"
> SQL> shutdown immediate;
> shell> cd /oracle/<SID>/102_64/dbs/
> shell> cp -p spfile<SID>.ora spfile<SID>.ora.save
> shell> sqlplus "/ as sysdba"
> SQL> ALTER SYSTEM SET EVENT=10046 trace name context forever, level 12 SID='*' SCOPE=spfile;
> SQL> startup
After that rerun the R3trans -d command and check for an oracle tracefile under:
/oracle/<SID>/saptrace/usertrace/
There you will find the value of the bind variable :A0 ... after that you can check DDNTT for this value by hand...
If you don't know how to find the bind values.. please upload the trace file to a filehoster like rapidshare and we will check it for you.
Regards
Stefan
Similar Messages
-
Hi SAP Gurus,
We are trying to do a system refresh for the first time in our landscape and do not have any documentation to support the same.
We are through with the restore of the database from the source onto the target.
Now,the database is up and running but however, SAP is not able to connect to the database and subsequently the SAP system is not running.
When we do R3trans -d, we are getting the following error:
This is R3trans version 6.14 (release 700 - 29.05.07 - 13:40:00).
unicode enabled version
2EETW000 sap_dext called with msgnr "2":
2EETW000 -
db call info -
2EETW000 function: db_ntab
2EETW000 fcode: NT_RDTDESCR
2EETW000 tabname: TADIR
2EETW000 len (char): 5
2EETW000 key: TADIR
2EETW000 retcode: 2
R3trans finished (0012).
Can anyone please guide me with the steps to be performed at the database level post-restore?
In ORACLE, I am aware that we need to re-create control files,re-create OPS$users etc.But I am not familiar with MS-SQL 2005.
Would be great of any one of you can guide on the same.
Regards,
Santosh BhatHi Kaushal,
Default profile is as follows:
#.* Default profile DEFAULT *
#.* Version = 000002 *
#.* Generated by user = KONS122 *
#.* Generated on = 16.09.2007 , 20:01:18 *
SAPDBHOST = ALBE0566
dbms/type = mss
dbs/mss/server = ALBE0566
dbs/mss/dbname = BQ0
dbs/mss/schema = bq0
SAPSYSTEMNAME = BQ0
SAPGLOBALHOST = ALBE0566
rdisp/bufrefmode = sendoff,exeauto
SAP Messaging Service for ABAP
rdisp/mshost = ALBE0566
rdisp/msserv = sapmsBQ0
rdisp/msserv_internal = 3925
INIT: Maintained parameters
#old_value: 001 changed: KONS122 16.09.2007 19:59:32
login/system_client = 100
zcsa/installed_languages = DEK
#parameter created by: KONS122 16.09.2007 20:00:42
zcsa/system_language = K
zcsa/second_language = E
DIR_TRANS =
ALBE0575\sapmnt\trans
DIR_EPS_ROOT =
ALBE0575\sapmnt\trans\EPS
Following is dev_w0 file:
trc file: "dev_w0", trc level: 1, release: "700"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, MJ
B
B Thu Jun 05 14:00:55 2008
B create_con (con_name=R/3)
B Loading DB library 'E:\usr\sap\BQ0\DVEBMGS25\exe\dbmssslib.dll' ...
B Library 'E:\usr\sap\BQ0\DVEBMGS25\exe\dbmssslib.dll' loaded
B Version of 'E:\usr\sap\BQ0\DVEBMGS25\exe\dbmssslib.dll' is "700.08", patchlevel (0.109)
B New connection 0 created
M sysno 25
M sid BQ0
M systemid 562 (PC with Windows NT)
M relno 7000
M patchlevel 0
M patchno 115
M intno 20050900
M make: multithreaded, Unicode, 64 bit, optimized
M pid 4368
M
M kernel runs with dp version 230000(ext=109000) (@(#) DPLIB-INT-VERSION-230000-UC)
M length of sys_adm_ext is 576 bytes
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 4368) [dpxxdisp.c 1301]
I
I Thu Jun 05 14:00:56 2008
I MtxInit: 30000 0 0
M DpSysAdmExtCreate: ABAP is active
M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
M DpShMCreate: sizeof(wp_adm) 29600 (1480)
M DpShMCreate: sizeof(tm_adm) 5613536 (27928)
M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
M DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
M DpShMCreate: sizeof(comm_adm) 552080 (1088)
M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
M DpShMCreate: sizeof(slock_adm) 0 (104)
M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
M DpShMCreate: sizeof(file_adm) 0 (72)
M DpShMCreate: sizeof(vmc_adm) 0 (1864)
M DpShMCreate: sizeof(wall_adm) (41664/36752/64/192)
M DpShMCreate: sizeof(gw_adm) 48
M DpShMCreate: SHM_DP_ADM_KEY (addr: 000000000F1E0050, size: 6314432)
M DpShMCreate: allocated sys_adm at 000000000F1E0050
M DpShMCreate: allocated wp_adm at 000000000F1E2150
M DpShMCreate: allocated tm_adm_list at 000000000F1E94F0
M DpShMCreate: allocated tm_adm at 000000000F1E9550
M DpShMCreate: allocated wp_ca_adm at 000000000F743D30
M DpShMCreate: allocated appc_ca_adm at 000000000F749AF0
M DpShMCreate: allocated comm_adm at 000000000F74BA30
M DpShMCreate: system runs without slock table
M DpShMCreate: system runs without file table
M DpShMCreate: allocated vmc_adm_list at 000000000F7D26C0
M DpShMCreate: allocated gw_adm at 000000000F7D2740
M DpShMCreate: system runs without vmc_adm
M DpShMCreate: allocated ca_info at 000000000F7D2770
M DpShMCreate: allocated wall_adm at 000000000F7D2780
X EmInit: MmSetImplementation( 2 ).
X MM global diagnostic options set: 0
X <ES> client 0 initializing ....
X Using implementation view
X <EsNT> Using memory model view.
M <EsNT> Memory Reset disabled as NT default
X ES initialized.
M
M Thu Jun 05 14:00:58 2008
M ThInit: running on host ALBE0566
M
M Thu Jun 05 14:00:59 2008
M calling db_connect ...
C Thread ID:4308
C Thank You for using the SLOLEDB-interface
C Using dynamic link library 'E:\usr\sap\BQ0\DVEBMGS25\exe\dbmssslib.dll'
C dbmssslib.dll patch info
C patchlevel 0
C patchno 116
C patchcomment MSSQL: Transaction inconsistencies HOTNEWS (1067103)
C np:(local) connection used on ALBE0566
C CopyLocalParameters: dbuser is 'bq0'
C Using Provider SQLNCLI
C OpenOledbConnection: MARS property was set successfully.
C Provider Release:9.00.2047.00
C Using Provider SQLNCLI
C OpenOledbConnection: MARS property was set successfully.
C CheckCodepageType: line 24429. hr: 0x80040e37 Invalid object name 'DBPROPERTIES'.
C sloledb.cpp [CheckCodepageType,line 24429]: Error/Message: (err 208, sev 16), Invalid object name 'DBPROPERTIES'.
C Procname: [CheckCodepageType -- no proc]
C Cache sizes: header 104 bytes, 20000 names (32960000 bytes), 500 dynamic statements (2876000 bytes), total 35836104 bytes
C Using shared procedure name cache ALBE0566_BQ0BQ0_BQ0_MEM initialized by another process.
C Connected to db server : [ALBE0566] server_used : [np:(local)], dbname: BQ0, dbuser: bq0
C pn_id:ALBE0566_BQ0BQ0_BQ0
C Using MARS (on sql 9.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 20080605 140059 ALBE0566
C
C Thu Jun 05 14:01:00 2008
C The IRow interface is supported by this OLEDB provider
C sloledb.cpp [ParamStmtExec,line 13081]: Error/Message: (err 8180, sev 0), Statement(s) could not be prepared.
C Procname: [##Y4ALBE0566bq000000043680000000001140059]
C sloledb.cpp [ParamStmtExec,line 13081]: Error/Message: (err 208, sev 16), Invalid object name 'SVERS'.
C Procname: [##Y4ALBE0566bq000000043680000000001140059]
C ParamStmtExec failed. HR 80040e14 DBSL retcode 103. stmt: [SELECT TOP 1 VERSION FROM SVERS ]
C Conn_i:1 selection:1 singleton:1 flag_fupd:0 use_cursor:0 chksum: 1112312
C DbSlRead - Error 103 (dbcode 208) on open
C DbSlRead - <##Y4ALBE0566bq000000043680000000001140059>
C DbSlRead - Error 103 (dbcode 208) on fetch
C DbSlRead - <##Y4ALBE0566bq000000043680000000001140059>
B ***LOG BZA=> table SVERS does not exist on database [dblink#3 @ 1299] [dblink 1299 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 004096) [thxxhead.c 1427]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10287]
M
M Info for wp 0
M
M stat = WP_RUN
M waiting_for = NO_WAITING
M reqtype = DP_RQ_DIAWP
M act_reqtype = NO_REQTYPE
M rq_info = 0
M tid = -1
M mode = 255
M len = -1
M rq_id = 65535
M rq_source =
M last_tid = 0
M last_mode = 0
M semaphore = 0
M act_cs_count = 0
M csTrack = 0
M csTrackRwExcl = 0
M csTrackRwShrd = 0
M control_flag = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M req.vm = no VM
M attachedVm = no VM
M
M *****************************************************************************
M *
M * LOCATION SAP-Server ALBE0566_BQ0_25 on host ALBE0566 (wp 0)
M * ERROR ThInit: db_connect
M *
M * TIME Thu Jun 05 14:01:00 2008
M * RELEASE 700
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 10490
M * COUNTER 1
M *
M *****************************************************************************
M
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 724]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 260]
M Entering ThSetStatError
M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 4368) [dpnttool.c 327]
Regards,
Santosh -
R3trans error with code 0012 and its Solution
After system refresh i got following error from Quality system while running R3trans -d
This is R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
unicode enabled version
2EETW169 no connect possible: "DBMS = ORACLE
--- dbs_ora_tnsname = 'QUA'"
R3trans finished (0012).Trans Logs are,
4 ETW000 [developertra,00000] Got ORACLE_SID=QUA from environment 49921 55.681220
4 ETW000 [developertra,00000] Got NLS_LANG=AMERICAN_AMERICA.WE8DEC from environment
4 ETW000 10732 55.691952
4 ETW000 [developertra,00000] Logon as OPS$-user to get SAPR3's password 6065 55.698017
4 ETW000 [developertra,00000] Connecting as /@QUAon connection 0 ... 5661 55.703678
4 ETW000 [developertra,00000] -->oci_logon(con_hdl=0, user='', dbname='QUA') 5874 55.709552
4 ETW000 [developertra,00000] Now I'm connected to ORACLE 11073827 66.783379
4 ETW000 [dbsloci. ,00000] *** ERROR => ORA-1403 when accessing table SAPUSER
4 ETW000 523513 67.306892
4 ETW000 [developertra,00000] Disconnecting from connection 0 ... 5926 67.312818
4 ETW000 [developertra,00000] -->oci_logoff(con_hdl=0) 5316 67.318134
4 ETW000 [developertra,00000] Now I'm disconnected from ORACLE 426449 67.744583
4 ETW000 [developertra,00000] Try to connect with default password 7185 67.751768
4 ETW000 [developertra,00000] Connecting as SAPR3/<pwd>@QUA on connection 0 ...
4 ETW000 8873 67.760641
4 ETW000 [developertra,00000] -->oci_logon(con_hdl=0, user='SAPR3', dbname='QUA')
4 ETW000 8634 67.769275
4 ETW000 [dbsloci. ,00000] *** ERROR => OCI-call 'olog' failed: rc = 28000 10999248 78.768523
4 ETW000 [dbsloci. ,00000] *** ERROR => CONNECT failed with sql error '28000'
4 ETW000 12028 78.780551
4 ETW000 [dblink ,00627] ***LOG BY2=>sql error 28000 performing CON 12525 78.793076
4 ETW000 [dblink ,00627] ***LOG BY0=> 5373 78.798449
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'QUA'" -
Hi db2 ver.9.7.0.6 Error: This is R3trans version 6.05 (release 46D - 10.06.11 - 13:57:00). 2EETW169 no connect possible: "invalid values set for DIR_LIBRARY '/usr/sap/QD1/SYS/exe/run ' or dbms_type 'DB6'" R3trans finished (0012). trans.log- 4 ETW000 R3trans version 6.05 (release 46D - 10.06.11 - 13:57:00). 4 ETW000 =============================================== 4 ETW000 4 ETW000 control file: 4 ETW000 R3trans was called as follows: R3trans -d 4 ETW000 date&time : 28.02.2014 - 19:30:45 4 ETW000 trace at level 2 opened for a given file pointer 4 ETW000 [developertra,00000] Fri Feb 28 19:30:45 2014 40 0.000040 4 ETW000 [developertra,00000] db_con_init called 7 0.000047 4 ETW000 [developertra,00000] create_con (con_name=R/3) 31 0.000078 4 ETW000 [developertra,00000] Loading DB library '/usr/sap/QD1/SYS/exe/run/dbdb6slib.o' ... 4 ETW000 24 0.000102 4 ETW000 [developertra,00000] load shared library (/usr/sap/QD1/SYS/exe/run/dbdb6slib.o), hdl 0 4 ETW000 537 0.000639 4 ETW000 [developertra,00000] Library '/usr/sap/QD1/SYS/exe/run/dbdb6slib.o' loaded 4 ETW000 9 0.000648 4 ETW000 [developertra,00000] function DbSlExpFuns loaded from library /usr/sap/QD1/SYS/exe/run/dbdb6slib.o 4 ETW000 21 0.000669 4 ETW000 [developertra,00000] Version of library '/usr/sap/QD1/SYS/exe/run/dbdb6slib.o' is "46D.00", patchlevel (0.2607) 4 ETW000 324 0.000993 4 ETW000 [developertra,00000] function dsql_db_init loaded from library /usr/sap/QD1/SYS/exe/run/dbdb6slib.o 4 ETW000 26 0.001019 4 ETW000 [developertra,00000] function dbdd_exp_funs loaded from library /usr/sap/QD1/SYS/exe/run/dbdb6slib.o 4 ETW000 11 0.001030 4 ETW000 [developertra,00000] New connection 0 created 10 0.001040 4 ETW000 [developertra,00000] db_con_connect (con_name=R/3) 28 0.001068 4 ETW000 [developertra,00000] find_con found the following connection for reuse: 4 ETW000 19 0.001087 4 ETW000 [developertra,00000] *** ERROR in DbSlConnectDB6[dbsldb6.c, 1073] 124 0.001211 4 ETW000 [developertra,00000] &+ DbSlConnectDB6: unable to open file: '/usr/sap/QD1/SYS/global/dscdb6.conf' 4 ETW000 20 0.001231 4 ETW000 [developertra,00000] &+ 15 0.001246 4 ETW000 [developertra,00000] &+ 8 0.001254 4 ETW000 [developertra,00000] *** ERROR in DbSlConnectDB6[dbsldb6.c, 1073] 6 0.001260 2EETW169 no connect possible: "DBMS = DB6 --- DB2DBDFT = 'QD1'"
Hi,
Can you please check if file exist and the permission of dscdb6.conf ,refer note 80292.
If required create new one ,just execute the following
> dscdb6up -create <connect user password> <sidadm password>
connect user is the user used for database connections. Normally it is sapxyz for SID XYZ. But you should check your environment. The name could be found in variable dbs_db6_schema. You should have supplied the password during installation. If you don't remember or you want to choose a different password, change it and then create or recreate dscdb6.conf with the above command.
Hope this helps
BR Vaibhav -
R3trans error ( rc12) while starting up SAP
Hi Experts,
I am not able to start my SAP system up.
DB is oracle.
I am able to startup the DB from SQL command prompt but R3trans is not working.
It is giving the following error.
2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/IN1/SYS/exe/run') or dbms_type ('ORA')"
R3trans finished (0012).
When I am checking the above values, it is showing like following:
in1adm 26> echo $DIR_LIBRARY
/usr/sap/IN1/SYS/exe/run
in1adm 27> echo $dbms_type
ORA
I cant understand where lies the problem.
Moreover,
When separately starting the DB, it is showing all DB processes but after that when I am executing startsap command, it is stopping the DB processes.
Can anyone help regarding this matter?
Anupam.Hi,
Please find the details of trans.log file.
4 ETW000 R3trans version 6.14 (release 700 - 14.02.08 - 14:55:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 27.07.2009 - 14:37:18
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Mon Jul 27 14:37:18 2009 217 0.000217
4 ETW000 [dev trc ,00000] db_con_init called 27 0.000244
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 74 0.000318
4 ETW000 [dev trc ,00000] Loading DB library '/usr/sap/IN1/SYS/exe/run/dboraslib.so' ...
4 ETW000 47 0.000365
4 ETW000 [dlux.c ,00000] *** ERROR => DlLoadLib: dlopen()= Unable to find library 'libclntsh.so.10.1'. -> DLENOACCESS (
0,Error 0)
4 ETW000 839 0.001204
*4 ETW000 [dbcon.c ,00000] *** ERROR => Couldn't load library '/usr/sap/IN1/SYS/exe/run/dboraslib.so'*
4 ETW000 42 0.001246
2EETW169 no connect possible: "maybe someone set invalid values for DIR_LIBRARY ('/usr/sap/IN1/SYS/exe/run') or dbms_type ('OR
A')"
Thanks and Regards,
Moulinath -
CALL_NOT_FLUSHED error while opening word document proxy
Hello Gurus,
We are using DMS application for uploading word documents in SAP system.
We are using the following code to open a document from SAP database
CALL METHOD CONTROL->GET_DOCUMENT_PROXY
EXPORTING
DOCUMENT_TYPE = '207'
DOCUMENT_FORMAT = ''
IMPORTING
DOCUMENT_PROXY = PROXY
RETCODE = RETCODE.
IF RETCODE NE C_OI_ERRORS=>RET_OK.
EXIT.
ENDIF.
CALL METHOD PROXY->OPEN_DOCUMENT
EXPORTING
DOCUMENT_URL = DOC_URL
OPEN_INPLACE = 'X'
open_readonly = 'X'
protect_document = 'X'
IMPORTING RETCODE = RETCODE.
IF RETCODE NE C_OI_ERRORS=>RET_OK.
EXIT.
ENDIF.
Above code open a document proxy and with help of macros we are changing some of the variables in the document.
Problem is when we are trying to print this proxy with help of below code.
CALL METHOD proxy->print_document
EXPORTING
NO_FLUSH = ''
prompt_user = 'X'
IMPORTING
error = error
retcode = retcode .
In the above code if prompt_user parameter is passed then while execution a new window session is opened for printer selection but this methods gives an error as CONTROL_INTERNAL_ERROR. when i debugged it , it was giving error as CALL_NOT_FLUSHED.
But when we are commenting prompt_user as below
CALL METHOD proxy->print_document
EXPORTING
NO_FLUSH = ''
prompt_user = 'X'
IMPORTING
error = error
retcode = retcode .
While execution printer selection window is open in the same window and nor error is passed by the method.
And print comes.
Kindly suggest how CALL_NOT_FLUSHED error can be eliminated.
Thanks in Advance
Sahadev AbhyankarJust try with below before printing & opening the document. Refer to the examples SAPREDIT*
Call Method cl_gui_cfw=>Flush
Exceptions
Others = 0. -
Mail / Merge in WORD with DOI. Error in WORD 'field separator'
I have a program that creates WORD DOcuments for merging with data.
I use WORD documents created with BDS.
I used program SAPRDEMO_MAILMERGE_INTERFACE as an example for creating my own program.
When I call METHOD VIEW ,after creating data source and MERGE, I get following error in WORD
'field separator?. WORD asks which is the separator for field.
whatever separator I indicate, WORD issues an error saying no record found.
If I execute program SAPRDEMO_MAILMERGE_INTERFACE, it works.
I don't understand what happens.I found solution.
In my data source , I have only 1 record.
When calling method merge_range I must indicate 0 in record number and not 1 ( with 1 it worked on our system but not on the customer system : cause in SAP or EXCEL I don't know. )
Fusion données source
CALL METHOD HANDLE->MERGE_RANGE
EXPORTING
FIRST = 0
LAST = 0
IMPORTING
ERROR = error
RETCODE = retcode.
clear l_sy.
CALL METHOD ERROR->GET_MESSAGE
IMPORTING
MESSAGE_ID = l_SY-MSGID
MESSAGE_NUMBER = l_SY-MSGNO
PARAM1 = l_SY-MSGV1
PARAM2 = l_SY-MSGV2
PARAM3 = l_SY-MSGV3
PARAM4 = l_SY-MSGV4. -
Error installing OracleDB 11.2.0.4 on Linux
I recieving following error-message, when i try to install the database.
The OS is Suse Linux Enterprise Server 11 on a virtual machine.
Info: Begin Install/Clone Oracle Software db_11.2.0.4
Error:
---> parameter values ora_gid and GID of /app/sles11/oracle/1120/db/product/11.2.0.4 do not match
--->
Error:
---> --------------
---> retcode = 1
---> signal = 0
---> $! =
--->
Can anybody tell me, what is wrong?
Thanks a lot!b29e56da-d546-410a-b696-72489f64bed1 wrote:
I recieving following error-message, when i try to install the database.
The OS is Suse Linux Enterprise Server 11 on a virtual machine.
Info: Begin Install/Clone Oracle Software db_11.2.0.4
Error:
---> parameter values ora_gid and GID of /app/sles11/oracle/1120/db/product/11.2.0.4 do not match
--->
Error:
---> --------------
---> retcode = 1
---> signal = 0
---> $! =
--->
Can anybody tell me, what is wrong?
Thanks a lot!
who are you logged on to the server as when you execute 'runInstaller'?
Logged on as that user, what do you get from
whoami
id -
SAP IQ 16 remote procedure to MsSQL 2005 error.
Hi all,
I've in IQ a remote procedure that call via RPC an old MsSQL 2005 stored procedure.
In my old installation with IQ 12.7 ESD 4 all works well and I don't report any issues.
Actually with the new IQ 16.0 SP08 I've the following strange behaviours.
ERROR 1) When I call the remote procedure from IQ using SAP Interactive SQL all works well if I run the client from a remote host. I mean from an host which is not the server where IQ engine is running. If I execute the same call (always from SAP Interactive SQL) on the IQ engine server the following error is reported:
There was an error reading the results of the SQL statement.
The displayed results may be incorrect or incomplete.
Cursor not in a valid state
SQLCODE=-853, ODBC 3 State="24000"
Cursor not in a valid state
SQLCODE=-853, ODBC 3 State="24000"
Server 'SVR_PRODOTTI': [Microsoft][ODBC SQL Server Driver]Function
sequence error
SQLCODE=-660, ODBC 3 State="HY000"
ERROR 2) I've the following scenario:
a. I call a remote procedure (always the MsSQL 2005 remote procedure described above) inside a standard IQ stored procedure
b. the remote procedure fill a remote table with some data
c. in IQ after that the remote procedure is executed I want to get the produced data in IQ via proxy table
Looking at MsSQL side I note that step (a) and (b) are executed, but when step (c) start running it remains blocked by the session that had run step (a and b) even if they are already finished. Look at the following extraction of session state by MsSQL side.
SPID Status Login HostName BlkBy DBName Command CPUTime DiskIO LastBatch ProgramName SPID REQUESTID
177 SUSPENDED usr IQ_SERVER 287 master EXECUTE 0 0 06/19 17:31:38 Sybase IQ 177 0
287 sleeping usr IQ_SERVER . master AWAITING COMMAND 9829 153149 06/19 17:31:38 Sybase IQ 287 0
SPID = 287 (remote procedure call)
RPC Event 0 sp_remote_procedure;1
SPID = 177 (proxy table access)
Language Event 0 SELECT .... FROM .... t1
Environment details:
IQ -> SAP IQ 16.0 SP08 on Win 2012 R2 server (64 bit)
MSSQL -> MsSQL 2005 SP 2 32 bit Enterprise on Win 2003 server (32 bit)
Do you have any suggestions about this strange behaviours?
Best regards,
StefanoHi Tayeb,
thank you for your suggestions, following some improvement and details about my errors.
ERROR 1) [SOLVED]
In SAP Interactive SQL: Tools -> Options -> SAP Sybase IQ
The problem appear only if "Result processing" options are configured as:
"Show results from the last statement" --> ON
"Show only the first result set" --> ON
..hereafter I report the image that show the configuration that caused error.
Any other configuration of these two parameters doesn't show any problem.
ERROR 2) [already present]
I checked the IQ 16 SP08 doc and as you reported MsSQL 2005 is not listed in RPC certified systems.
I checked also the old IQ 12.7 ESD 4 (the version from which I want to migrate and where all works fine every day) doc and the same statement was reported. So not even in 12.7 release MsSQL RPC call seems to be certified, even if it still withou any problem.
After some other tests tracing also different debugging mode (-zo and -zr) I share the following result.
I tried the following use cases.
Note that "rem_mssql_TARGET" sp insert data in a local table on MsSQL which is selected by IQ via proxy "pr_DELTA_IQ".
[TEST A] - RDP via select
select
@max_date = RetDate,
@error = RetCode
from
DBA.rem_mssql_TARGET('2014-06-20 15:00:00')
insert into DBA.DELTA_IQ
FIELD_1,
FIELD_2
location 'TARGET_DB.TARGET_DB'
select
FIELD_1,
FIELD_2
from DBA.pr_DELTA_IQ
PROBLEM: on MsSQL all remains blocked, because proxy table extraction is blocked by remote procedure execution that result running.
If I kill the remote procedure session from MsSQL, IQ engine shutdown itself without any messages.
No data is inserted in DBA.DELTA_IQ.
[TEST B] - RDP via exec
exec DBA.rem_mssql_TARGET ('2014-06-20 15:00:00')
insert into DBA.DELTA_IQ
FIELD_1,
FIELD_2
location 'TARGET_DB.TARGET_DB'
select
FIELD_1,
FIELD_2
from DBA.pr_DELTA_IQ
PROBLEM: MsSQL doesn't report any blocking session.
IQ return the following message and the IQ server doesn't shutdown itself.
SQLCODE=-706, ODBC 3 State=“HY000”
Remote server does not have the ability to support this statement
Anyway all is rollbacked an no data is inserted in DBA.DELTA_IQ.
Do you have any other hints about it?
Thank you and regards,
Stefano -
Running Excel macros from ABAP
Hello everyone,
I am trying to execute an Excel macro from an ABAP program. We are currently on a 46C system. While doing some research on help.sap.com I came across the method execute_macro in class i_oi_document_proxy. Ive never used methods in ABAP before and Im not really sure what Im doing. Has anyone got this to work? When I try to run the program it dumps with error OBJECTS_OBJREF_NOT_ASSIGNED.
Thanks,
Becky
Here is the program:
REPORT ztest_program.
INCLUDE ole2incl.
DATA gs_excel TYPE ole2_object .
DATA gs_wbooks TYPE ole2_object .
DATA gs_wbook TYPE ole2_object .
DATA gs_application TYPE ole2_object .
DATA: h_sheet TYPE ole2_object.
DATA: document TYPE REF TO i_oi_document_proxy.
*Name of the macro in Excel
DATA: macro_string(50) TYPE c
VALUE 'FB03process.FromTheBeginning',
no_flush TYPE c,
param_count TYPE i VALUE 0,
script_name TYPE c VALUE 'X',
error TYPE REF TO i_oi_error
OCCURS 0 WITH HEADER LINE,
retcode TYPE soi_ret_string,
error_string(50) TYPE c,
retvalue(30) TYPE c.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = text-007
EXCEPTIONS
OTHERS = 1.
CREATE OBJECT gs_excel 'EXCEL.APPLICATION' .
SET PROPERTY OF gs_excel 'Visible' = 1 .
GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooks .
GET PROPERTY OF gs_wbooks 'Application' = gs_application .
*--Opening the existing document
CALL METHOD OF gs_wbooks 'Open' = gs_wbook
EXPORTING #1 = 'D:\temp\FB03process.xls' .
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
text = text-009
EXCEPTIONS
OTHERS = 1.
GET PROPERTY OF gs_excel 'ACTIVESHEET' = h_sheet.
CALL METHOD document->execute_macro
EXPORTING macro_string = macro_string
param_count = param_count
script_name = script_name
no_flush = no_flush
IMPORTING error = error
retcode = retcode
CHANGING error_string = error_string
retvalue = retvalue.
disconnect from Excel
FREE OBJECT gs_excel.
PERFORM err_hdl.
FORM err_hdl.
IF sy-subrc <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), sy-subrc.
STOP.
ENDIF.
ENDFORM. " ERR_HDLHi,
Please correct me if I am wrong but it seems that you have not fetched a handle to the document object before issuing the statement CALL METHOD document->execute_macro. Hence the error OBJECTS_OBJREF_NOT_ASSIGNED is being dislayed. If you want to use SAP Desktop Office Integration using ABAP Objects, take a look at this article at http://www.intelligenterp.com/feature/archive/ or http://www.sapinfo.net/public/en/index.php4/article/comvArticle-193333c63b4bd807d2/en/articleStatistic
Hope this helps.
Regards
Message was edited by: Shehryar Khan -
Download datas from SAP to Excel in OO
Hallo,
i create an excel-document with the methods
CALL METHOD DOCUMENT->CREATE_DOCUMENT
EXPORTING
OPEN_INPLACE = ' '
* CREATE_VIEW_DATA = CREATE_VIEW_DATA
* ONSAVE_MACRO = ONSAVE_MACRO
* STARTUP_MACRO = STARTUP_MACRO
DOCUMENT_TITLE = DOCUMENT_TITLE
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
and
CALL METHOD DOCUMENT->GET_SPREADSHEET_INTERFACE
EXPORTING
NO_FLUSH = NO_FLUSH
IMPORTING
SHEET_INTERFACE = SPREADSHEET
RETCODE = RETCODE
ERROR = ERROR.
and so on.
Wounderful.
I close the excelwindow with the methods:
CALL METHOD DOCUMENT->SAVE_AS
EXPORTING
* FILE_NAME = FILE_NAME
PROMPT_USER = 'X'
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
CALL METHOD DOCUMENT->CLOSE_DOCUMENT
EXPORTING
DO_SAVE = DO_SAVE
NO_FLUSH = NO_FLUSH
IMPORTING
HAS_CHANGED = HAS_CHANGED
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
CALL METHOD DOCUMENT->RELEASE_DOCUMENT
EXPORTING
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
FREE DOCUMENT.
Only the worksheet is closed but not the excel-window.
Has anybody an idea what is wrong?
Thank you.
Greetings
datatomHallo,
i create an excel-document with the methods
CALL METHOD DOCUMENT->CREATE_DOCUMENT
EXPORTING
OPEN_INPLACE = ' '
* CREATE_VIEW_DATA = CREATE_VIEW_DATA
* ONSAVE_MACRO = ONSAVE_MACRO
* STARTUP_MACRO = STARTUP_MACRO
DOCUMENT_TITLE = DOCUMENT_TITLE
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
and
CALL METHOD DOCUMENT->GET_SPREADSHEET_INTERFACE
EXPORTING
NO_FLUSH = NO_FLUSH
IMPORTING
SHEET_INTERFACE = SPREADSHEET
RETCODE = RETCODE
ERROR = ERROR.
and so on.
Wounderful.
I close the excelwindow with the methods:
CALL METHOD DOCUMENT->SAVE_AS
EXPORTING
* FILE_NAME = FILE_NAME
PROMPT_USER = 'X'
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
CALL METHOD DOCUMENT->CLOSE_DOCUMENT
EXPORTING
DO_SAVE = DO_SAVE
NO_FLUSH = NO_FLUSH
IMPORTING
HAS_CHANGED = HAS_CHANGED
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
CALL METHOD DOCUMENT->RELEASE_DOCUMENT
EXPORTING
NO_FLUSH = NO_FLUSH
IMPORTING
ERROR = ERROR
RETCODE = RETCODE.
PERFORM FEHLERPRUEFUNG.
FREE DOCUMENT.
Only the worksheet is closed but not the excel-window.
Has anybody an idea what is wrong?
Thank you.
Greetings
datatom -
Updating (CHECKIN) a document in DMS
I have opened an existing document from DMS (from SAP database) using Office Integration(OI) into an URL. I then open a OI Document on that URL and replace a part of the Word document using the Word Interface. Now I am saving this changed document back to the URL with:
CALL METHOD document->save_document_to_url
EXPORTING
no_flush = ' '
url = l_url
user_info = ' '
data_type = ' '
data_subtype = ' '
IMPORTING
error = error
retcode = retcode
CHANGING
document_size = l_docsize.
That seems to work fine because when closing and releasing the OI document and opening again with the OI method open_document usinf the same URL I see the correct changed document. So I am quite sure that the URL contains the correct data.
Now my problem: I am trying to checkin the document again to the DMS and the methods run without error but in the DMS the old version of the Word file remains. What am i doing wrong?
ps_doc_file-url = l_url.
ps_doc_file-fileno = '1'.
ps_doc_file-dttrg = 'SAP-SYSTEM'.
ps_doc_file-dappl = 'WRD'.
ps_doc_file-filename = XXX'
ls_cin_def-replace_file = 'X'.
ls_cin_def-content_provide = 'URL'.
CALL FUNCTION 'CV120_DOC_CHECKIN_FROM_URL'
EXPORTING
ps_cin_def = ls_cin_def
pf_storage = 'SAP-SYSTEM'
ps_doc_file = ps_doc_file
PS_FRONTEND =
TABLES
PT_DRAZ =
PT_COMPONENTS =
ptx_drao = lt_drao
PTX_DRAOZ =
PTX_ARCHIVE_CONN =
CHANGING
ps_draw = ps_draw
PS_AUDITS =
PS_PHIO =
EXCEPTIONS
error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.Seems like i cannot paste the complete code with correct line breaks. From a certain number of characters onwards all line breaks disappear. Sorry cannot display the code here. Have to cancel my question.
Sensational editor
Edited by: SamCooke on May 20, 2009 1:26 PM -
Hello, Iu00B4m using OLE to print out word files from SAP. Is there a setting to specify on which printer printouts are done. Currently I can only print on the standard word printer.
Sample Program:
REPORT Print_word .
INCLUDE ole2incl .
DATA: gs_word TYPE ole2_object ,
gs_documents TYPE ole2_object ,
gs_newdoc TYPE ole2_object ,
gs_actdoc TYPE ole2_object .
START-OF-SELECTION .
CREATE OBJECT gs_word 'WORD.APPLICATION'.
SET PROPERTY OF gs_word 'Visible' = '0' .
CALL METHOD OF gs_word 'Documents' = gs_documents.
CALL METHOD OF gs_documents 'Open' = gs_newdoc
EXPORTING #1 = 'D:\update.docx' .
CALL METHOD OF gs_word 'ActiveDocument' = gs_actdoc .
CALL METHOD OF gs_actdoc 'PrintOut' .
CALL METHOD OF gs_word 'Quit' .
END-OF-SELECTION.
FREE: gs_word, gs_actdoc, gs_documents, gs_newdoc .Hi Mathias,
CALL METHOD document->print_document
EXPORTING prompt_user = 'X'
no_flush = no_flush
IMPORTING error = error
retcode = retcode.
will open the dialog so the user can change the printer. I don't know if you can set the default printer using method CONTROL_SET_PROPERTY of [Desktop Office Integration interface.|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf].
Regards
Clemens -
I_OI_DOCUMENT_PROXY- EXECUTE_MACRO in excel
Hi,
I want to execute a macro to add a chart into excel. I created the macro 'graphic' in excel then I call it from abap with the metod execute macro but it doesn't work.
DATA: DOCUMENT TYPE REF TO I_OI_DOCUMENT_PROXY.
CALL METHOD DOCUMENT->EXECUTE_MACRO
EXPORTING
MACRO_STRING = 'Modulo1.graphic'
IMPORTING
ERROR = ERRORS
RETCODE = retcode
Also I tried
CALL METHOD DOCUMENT->EXECUTE_MACRO
EXPORTING
MACRO_STRING = 'graphic'
IMPORTING
ERROR = ERRORS
RETCODE = retcode
I would like you give me instructions for make it work. Do I have to do anything else to make it work?.Hi,
Please refere thie demo (Pie Chart) program GFW_PROG_PIE. This will help you.
Need more ifn fo please send me an e-mail.
Cheers.
Message was edited by: Lanka Murthy -
Problem about the macro in word using ole
Hi,
Now i have an urgent problem.
I want to use ole2_object to control a word document by calling the macro. i want to pass a parameter for the marco but i don't know how to pass it . the main method i use as following:
macro = 'startmerge."
call method document->open_document_from_table
exporting
document_size = doc_size
document_table = doc_table[]
open_inplace = 'X'
startup_macro = macro. " here is my problem?????
the macro's code as following:
Sub startmerge(file As String)
' startmerge Macro
' Macro recorded 2000-1-23 by Ryan
Dim fs As Object
'Dim file As String
'file = "C:\SAPTEMP.JPG"
Set fs = CreateObject("Scripting.FileSystemObject")
If fs.fileexists(file) Then
Application.GoBack
Selection.InlineShapes.AddPicture FileName:=file, LinkToFile:= _
False, SaveWithDocument:=True
Else
MsgBox "no file found"
End If
Set myMerge = ThisDocument.MailMerge
If myMerge.State = wdMainAndSourceAndHeader Or _
myMerge.State = wdMainAndDataSource Then
End If
With myMerge
.MainDocumentType = wdEnvelopes
.OpenDataSource Name:="c:\appraial_tmp.txt", ReadOnly:=True
.Destination = wdSendToNewDocument
.Execute
End With
End Sub
now i want to pass a value for the parameter 'file' in abap by calling a macro 'startmerge'.
Can anyone give me some advice? or give me some advice?
Thanks a lot in advance.
qiuguoHi, aRs,
thank you very much . i have get the approach to solve this problem form the link you given. In abap sap have provided a method to call a marco using parameters. Following is the kernel code:
macro = 'startmerge'."()
call method document->open_document_from_table
exporting
document_size = doc_size
document_table = doc_table[]
open_inplace = 'X'
startup_macro = macro.
data: error like I_OI_ERROR.
create object error.
CALL METHOD DOCUMENT->EXECUTE_MACRO
EXPORTING
MACRO_STRING = macro
NO_FLUSH = ' '
PARAM1 = 'C:\3.JPG'
PARAM10 =
PARAM11 =
PARAM12 =
PARAM2 =
PARAM3 =
PARAM4 =
PARAM5 =
PARAM6 =
PARAM7 =
PARAM8 =
PARAM9 =
PARAM_COUNT = 1
SCRIPT_NAME =
IMPORTING
ERROR = error
RETCODE =
CHANGING
ERROR_STRING =
RETVALUE =
so appreciate for you response.
qiuguo
Maybe you are looking for
-
ITunes match playlists across multiple devices
my wife has a PC (due to business reasons), my kids each have an iMac, we all have iPhones. we all use a single "household" apple id so that as my children begin buying more things we'll be able to track their purchases. if i sign up for iTunes mat
-
Splash screen in Virtualbox?
I am running Arch in Virtualbox. What options do I have for splash screen in Virtualbox? From what I know KMS / plymouth doesn't seem to be an option. Last edited by thomaschik (2014-02-27 11:30:25)
-
How to make & edit multiple query report
hi, how to make multiple query report & i have an existing multiple query report when i edit it all the structure gets disturbed whenever i want to add or delete any column from an query. how to do this ? txs
-
Refresh 1 page in a application
Hi all, I have an application with 2 pages 1 has a report and the other has a form. i have added a meta to the head of the page. <meta http-equiv=Refresh content="20;"> I only want to refresh the report page but when i am on the form page it also ref
-
While using indesign CC 2014 this morning the document window frame started to flash, I have just done a search without any results. At first I thought the easy access controls had been accidentally switched on but they are all switched off. Has anyo