Close RFC Connection
Hi,
I have some problems with the availibility of my WebDynpro-Application. It seems to be, that to much connections are opened at the same time. Is it necessary to close the connection in the code or should it closed by the system automatically?
To use a model I use the following code(example):
wdContext.nodeZ_Rfc_GetData_Input().bind(new Z_Rfc_GetData_Input());
wdContext.currentZ_Rfc_GetData_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
I don't know if there is a option to close the connection.
Hi,
Use below code:
wdContext.currentRFC_InputElement().modelObject().modelInstance().disconnectIfAlive();
Please check below forum ,
webdynpro JCO - RFC Connections are not closing in back end ECC (SM51)
Regards
Deepak
Similar Messages
-
How to close RFC connection in one script coding
In one script, I am using the REF command to call another 2 scripts and these called scripts shd be run on same C36 ( test system). I shd close RFC connection between these 2 scripts.
That is , once the 1s script over the RFC shd be closed and the user has to give usename and pwd then 2nd script shd run.
I have tried with the following code . But it says RFC is not open
REF ( Y04S_FC_RM_CJ88_112 , Y04S_FC_RM_CJ88_1 , C36_999 ). (when execute this script RFC to C36 will be created and after execution that RFC shd be closed so I included following ABAP code)
ABAP.
data : dest type RFCDEST.
move 'S4_SAPC36999' to dest.
move dest to v_dest.
*--Close the connection before opening it incase it is opened
call function 'RFC_CONNECTION_CLOSE'
exporting
destination = dest
exceptions
destination_not_open = 1
others = 2.
if sy-subrc <> 0.
endif.
move sy-subrc to v_subrc.
ENDABAP.
REF ( Y04S_FC_RM_CJ44_112 , Y04S_FC_RM_CJ44_1 , C36_999 ). (here agagin the RFC will be created and this script will be exectued.)In one script, I am using the REF command to call another 2 scripts and these called scripts shd be run on same C36 ( test system). I shd close RFC connection between these 2 scripts.
That is , once the 1s script over the RFC shd be closed and the user has to give usename and pwd then 2nd script shd run.
I have tried with the following code . But it says RFC is not open
REF ( Y04S_FC_RM_CJ88_112 , Y04S_FC_RM_CJ88_1 , C36_999 ). (when execute this script RFC to C36 will be created and after execution that RFC shd be closed so I included following ABAP code)
ABAP.
data : dest type RFCDEST.
move 'S4_SAPC36999' to dest.
move dest to v_dest.
*--Close the connection before opening it incase it is opened
call function 'RFC_CONNECTION_CLOSE'
exporting
destination = dest
exceptions
destination_not_open = 1
others = 2.
if sy-subrc <> 0.
endif.
move sy-subrc to v_subrc.
ENDABAP.
REF ( Y04S_FC_RM_CJ44_112 , Y04S_FC_RM_CJ44_1 , C36_999 ). (here agagin the RFC will be created and this script will be exectued.) -
Open and close RFC connection with portals...
Hi Experts,
I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
Please advice is it possible to achieve this. If yes, then how.
Regards,
GuddanHi Guddan,
I created a RFC having a query which is taking a long time to execute. So i want to close RFC connection with portals which is via java connector(JCO) before that query and open the connction again after that query.
I guess i will need to understand your requirement a little more in detail, as i understand you have an RFC which has a query within to fetch some data and is taking a long time to do so. In the meantime you don't want to keep the connection open?
My question would be, Is the role of this RFC to only execute the query and fetch the data or does it do something else?
If it does other things and these are independent of the query execution, then you can span a parallel call within the RFC to execute the query and in the meantime the RFC does the other things (or vice versa) hence reducing the overall time taken.
If the sole purpose of this RFC is to execute the query, then you will not be able(i mean to say there is no simple and direct way of doing this) to close the connection after the Query is started and re-establish the connection after its execution, for a simple reason that - how will you know if the query has completed it's execution, so that you can establish the connection back.
Alternate solutions, make this a two way asynchronous call, 1) You invoke the RFC asynchronously and close the connection, the RFC in turn will execute the query and transfer the data to JCO via another RFC call.
If this needs to be a synchronous call, then you will need to optimize the query to its best.
Regards,
Chen -
Hi all,
Currently we developed a application in NWDS, the same is operational from portal.
As per the requirment we have to run the RFC many times to extract the data from R/3. After running the RFC many times
we are getting the following Error "Error connecting using JCO.client: null"
But if we redeploy the application the problem is solved but after a while the same issue is persisting.
Please suggest how the problem can be solved ??
Thanks,
vijay.Hi venkat,
Thanks for the example suggested by you.
The following is the RFC iam executing many times.
Z_Hr_Aprsl_Init_Input input= new Z_Hr_Aprsl_Init_Input();
input.setI_Usrid("UserId");
wdContext.nodeZ_Hr_Aprsl_Init_Input_new().bind(input);
wdContext.nodeZ_Hr_Aprsl_Init_Input().currentZ_Hr_Aprsl_Init_InputElement().modelObject().execute();
the code iam using to close the connection is
JCO.Client client = JCO.getClient(" "); // Please specify the parameter to be used to refer the above RFC
client.disconnect();
Please suggest the required the parameter to close the RFC connection
Thanks
vijay -
The RFC connections to the R/3 backend system are not closed when I close my iviews which are created in the Visual Composer. Each time the iview is reloaded, an additional RFC connection is opened...
Has someone a solution for this problem?
Kind regards
FrankHi Frank,
The connector pool keep the connection alive to be reused by the model iViews datasource, those connections will be closed at the timeout or when CLEANUP runs.
It's not a problem is the way how the connector framework works
You can adapt the timeout according SAP Notes 913483 & 314530
Best Regards, Luis -
Unable to open RFC connection - Err message
I all
I am trying to install SAP ERP 2004 SR1 on Microsoft Windows Server 2003, SQL Server 2000. I have successfully installed the Central Instance but when I try to install the Database instance after the database loading the following error is given:
FRF00007 - Unable to open RFC connection.
I have also tried to start the sap system. The message_server and igswd processed run ok, but the disp+work process is stopped.
I am also sending you the developer trace for this process.
Thank you a lot
Vasil
trc file: "dev_disp", trc level: 1, release: "640"
Mon Jul 27 11:24:48 2009
kernel runs with dp version 128000(ext=102000) (@(#) DPLIB-INT-VERSION-128000-UC)
length of sys_adm_ext is 524 bytes
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 43
intno 20020600
make: multithreaded, Unicode
pid 2668
***LOG Q00=> DpSapEnvInit, DPStart (01 2668) [dpxxdisp.c 1100]
shared lib "dw_xml.dll" version 43 successfully loaded
shared lib "dw_xtc.dll" version 43 successfully loaded
shared lib "dw_stl.dll" version 43 successfully loaded
shared lib "dw_gui.dll" version 43 successfully loaded
Mon Jul 27 11:24:53 2009
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3886]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: JAVA is not active
DpShMCreate: sizeof(wp_adm) 10528 (1316)
DpShMCreate: sizeof(tm_adm) 2780232 (13832)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpShMCreate: sizeof(comm_adm) 290000 (580)
DpShMCreate: sizeof(vmc_adm) 0 (372)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: SHM_DP_ADM_KEY (addr: 058C0040, size: 3192688)
DpShMCreate: allocated sys_adm at 058C0040
DpShMCreate: allocated wp_adm at 058C1B58
DpShMCreate: allocated tm_adm_list at 058C4478
DpShMCreate: allocated tm_adm at 058C44A0
DpShMCreate: allocated wp_ca_adm at 05B6B0E8
DpShMCreate: allocated appc_ca_adm at 05B70EA8
DpShMCreate: allocated comm_adm_list at 05B72DE8
DpShMCreate: allocated comm_adm at 05B72E00
DpShMCreate: allocated vmc_adm_list at 05BB9AD0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 05BB9AF8
DpShMCreate: allocated wall_adm at 05BB9B00
MBUF state OFF
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation flat
<EsNT> Memory Reset disabled as NT default
<ES> 1131 blocks reserved for free list.
ES initialized.
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 2.6.1 2.6 4.0) [dpxxdisp.c 1462]
***LOG Q0K=> DpMsAttach, mscon ( upayweb1) [dpxxdisp.c 9736]
CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
Mon Jul 27 11:24:54 2009
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 43
Release check o.K.
Mon Jul 27 11:25:33 2009
ERROR => W0 (pid 3740) died [dpxxdisp.c 12187]
ERROR => W1 (pid 3748) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3756) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 3764) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 3772) died [dpxxdisp.c 12187]
ERROR => W5 (pid 3780) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 3792) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 3800) died [dpxxdisp.c 12187]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-3740 (SIGUSR2)
ERROR => DpWpKill(3740, SIGUSR2) failed [dpxxtool.c 2468]
killing W1-3748 (SIGUSR2)
ERROR => DpWpKill(3748, SIGUSR2) failed [dpxxtool.c 2468]
killing W2-3756 (SIGUSR2)
ERROR => DpWpKill(3756, SIGUSR2) failed [dpxxtool.c 2468]
killing W3-3764 (SIGUSR2)
ERROR => DpWpKill(3764, SIGUSR2) failed [dpxxtool.c 2468]
killing W4-3772 (SIGUSR2)
ERROR => DpWpKill(3772, SIGUSR2) failed [dpxxtool.c 2468]
killing W5-3780 (SIGUSR2)
ERROR => DpWpKill(3780, SIGUSR2) failed [dpxxtool.c 2468]
killing W6-3792 (SIGUSR2)
ERROR => DpWpKill(3792, SIGUSR2) failed [dpxxtool.c 2468]
killing W7-3800 (SIGUSR2)
ERROR => DpWpKill(3800, SIGUSR2) failed [dpxxtool.c 2468]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=1625
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 27 11:25:43 2009
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Mon Jul 27 09:25:43 2009
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 3740 Ended no 1 0 0
1 DIA 3748 Ended no 1 0 0
2 UPD 3756 Ended no 1 0 0
3 ENQ 3764 Ended no 1 0 0
4 BTC 3772 Ended no 1 0 0
5 BTC 3780 Ended no 1 0 0
6 SPO 3792 Ended no 1 0 0
7 UP2 3800 Ended no 1 0 0
Dispatcher Queue Statistics Mon Jul 27 09:25:43 2009
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
10
10
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 8 ( 88%), shm 1 ( 11%)
since last update total 9, udp 8 ( 88%), shm 1 ( 11%)
Dump of tm_adm structure: Mon Jul 27 09:25:43 2009
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Mon Jul 27 09:25:43 2009
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=1625
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 27 11:25:48 2009
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (3724) (SOFT_KILL)
Stop icman
killing process (3732) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:3724 HANDLE:1592)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=1625
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Mon Jul 27 11:25:49 2009
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:3724 HANDLE:1592)
[DpProcDied] Process died (PID:3732 HANDLE:1584)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'upayweb1'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9962]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 1596
MsIDetach: detach MS-system
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 2668) [dpxxdisp.c 8495]
Good Bye .....Hi Juan <br>
I am sending you the log from dev_w0 <br>
<br>
Thank you a lot,<br>
Vasil
<br> <br>
<br>
<br>
trc file: "dev_w0", trc level: 1, release: "640"<br>
<br>
*<br>
ACTIVE TRACE LEVEL 1<br>
ACTIVE TRACE COMPONENTS all, M<br>
*<br>
B <br>
B Mon Jul 27 11:24:53 2009<br>
B create_con (con_name=R/3)<br>
B Loading DB library 'C:\usr\sap\UFT\SYS\exe\run\dbmssslib.dll' ...<br>
B Library 'C:\usr\sap\UFT\SYS\exe\run\dbmssslib.dll' loaded<br>
B Version of 'C:\usr\sap\UFT\SYS\exe\run\dbmssslib.dll' is "640.00", patchlevel (0.43)<br>
B New connection 0 created<br>
M systemid 560 (PC with Windows NT)<br>
M relno 6400<br>
M patchlevel 0<br>
M patchno 43<br>
M intno 20020600<br>
M make: multithreaded, Unicode<br>
M pid 3740<br>
M <br>
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3740) [dpxxdisp.c 1160]<br>
I MtxInit: -2 0 0<br>
M DpSysAdmExtCreate: ABAP is active<br>
M DpSysAdmExtCreate: JAVA is not active<br>
M DpShMCreate: sizeof(wp_adm) 10528 (1316)<br>
M DpShMCreate: sizeof(tm_adm) 2780232 (13832)<br>
M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)<br>
M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)<br>
M DpShMCreate: sizeof(comm_adm) 290000 (580)<br>
M DpShMCreate: sizeof(vmc_adm) 0 (372)<br>
M DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)<br>
M DpShMCreate: SHM_DP_ADM_KEY (addr: 060C0040, size: 3192688)<br>
M DpShMCreate: allocated sys_adm at 060C0040<br>
M DpShMCreate: allocated wp_adm at 060C1B58<br>
M DpShMCreate: allocated tm_adm_list at 060C4478<br>
M DpShMCreate: allocated tm_adm at 060C44A0<br>
M DpShMCreate: allocated wp_ca_adm at 0636B0E8<br>
M DpShMCreate: allocated appc_ca_adm at 06370EA8<br>
M DpShMCreate: allocated comm_adm_list at 06372DE8<br>
M DpShMCreate: allocated comm_adm at 06372E00<br>
M DpShMCreate: allocated vmc_adm_list at 063B9AD0<br>
M DpShMCreate: system runs without vmc_adm<br>
M DpShMCreate: allocated ca_info at 063B9AF8<br>
M DpShMCreate: allocated wall_adm at 063B9B00<br>
X <br>
X Mon Jul 27 11:24:54 2009<br>
X EmInit: MmSetImplementation( 2 ).<br>
X <ES> client 0 initializing ....<br>
X Using implementation flat<br>
M <EsNT> Memory Reset disabled as NT default<br>
X ES initialized.<br>
M <br>
M Mon Jul 27 11:24:55 2009<br>
M calling db_connect ...<br>
C Thank You for using the SLOLEDB-interface<br>
C Using dynamic link library 'C:\usr\sap\UFT\SYS\exe\run\dbmssslib.dll'<br>
C dbmssslib.dll patch info<br>
C patchlevel 0<br>
C patchno 43<br>
C patchcomment View with literal containing (0x60) (786638)<br>
C np:(local) connection used on UPAYWEB1<br>
C Using Provider SQLNCLI<br>
C OpenOledbConnection: MARS property was set successfully.<br>
C Provider Release:9.00.1399.06<br>
C Using Provider SQLNCLI<br>
C OpenOledbConnection: MARS property was set successfully.<br>
C Cache sizes: header 68 bytes, 20000 names (31520000 bytes), 1000 dynamic statements (5672000 bytes), total 37192068 bytes<br>
C Using shared procedure name cache UPAYWEB1_UFTUFT_UFT_MEM initialized by another process.<br>
C Connected to db server : [UPAYWEB1] server_used : [np:(local)], dbname: UFT, dbuser: uft<br>
C pn_id:UPAYWEB1_UFTUFT_UFT<br>
C Not using MARS (on sql 8.0)<br>
B Connection 0 opened<br>
B Wp Hdl ConName ConId ConState TX PRM RCT TIM MAX OPT Date Time DBHost <br>
B 000 000 R/3 000000000 ACTIVE NO YES NO 000 255 255 20090727 112454 UPAYWEB1 <br>
C The IRow interface is supported by this OLEDB provider<br>
M db_connect o.k.<br>
I MtxInit: 0 0 0<br>
M SHM_PRES_BUF (addr: 0AD60040, size: 4400000)<br>
M SHM_ROLL_AREA (addr: 5EF60040, size: 160563200)<br>
M SHM_PAGING_AREA (addr: 0B1A0040, size: 72417280)<br>
M SHM_ROLL_ADM (addr: 0F6C0040, size: 1603610)<br>
M SHM_PAGING_ADM (addr: 0F850040, size: 525344)<br>
M ThCreateNoBuffer allocated 540152 bytes for 1000 entries at 0F8E0040<br>
M ThCreateNoBuffer index size: 3000 elems<br>
M ThCreateVBAdm allocated 12160 bytes (50 server) at 0F970040<br>
X EmInit: MmSetImplementation( 2 ).<br>
X <ES> client 0 initializing ....<br>
X Using implementation flat<br>
X ES initialized.<br>
C <br>
C Mon Jul 27 11:24:58 2009<br>
C The IRow interface is supported by this OLEDB provider<br>
B db_con_shm_ini: WP_ID = 0, WP_CNT = 8<br>
C Using Provider SQLNCLI<br>
C OpenOledbConnection: MARS property was set successfully.<br>
B dbtbxbuf: Buffer TABL (addr: 146900C8, size: 30000000, end: 1632C448)<br>
B dbtbxbuf: Profile: max_objects = 5000, displace = 1, reorg = 1<br>
B dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5<br>
B dbtbxbuf: protect_shm = 0, force_checks = 0<br>
B dbtbxbuf: tsize_retry = 14304000<br>
B ***LOG BB0=> buffer TABL started with length 30000000 bytes [dbtbxbuf#7 @ 15714] [dbtbxbuf1571 4]<br>
B dbtbxbuf: Buffer TABLP (addr: 163300C8, size: 10240000, end: 16CF40C8)<br>
B dbtbxbuf: Profile: max_objects = 500, displace = 1, reorg = 1<br>
B dbtbxbuf: request_unit = 2000, sync_reload = 5, inval_reload = 5<br>
B dbtbxbuf: protect_shm = 0, force_checks = 0<br>
B dbtbxbuf: tsize_retry = 5047296<br>
B ***LOG BB0=> buffer TABLP started with length 10240000 bytes [dbtbxbuf#7 @ 15714] [dbtbxbuf1571 4]<br>
B dbtbxbuf: Reading TBX statistics:<br>
B dbtbxbuf: Opening C:\usr\sap\UFT\DVEBMGS01\data\tbxnew failed (No such file or directory).<br>
B dbtbxbuf: Renaming C:\usr\sap\UFT\DVEBMGS01\data\tbxnew to C:\usr\sap\UFT\DVEBMGS01\data\tbxstat failed (No such file or directory).<br>
B dbtbxbuf: 0 object entries precreated<br>
C sloledb.cpp [ParamStmtExec,line 11888]: Error/Message: (err 8180, sev 0), Statement(s) could not be prepared.<br>
C Procname: [##Y3UPAYWEB1uft00000037400000000002112455]<br>
C sloledb.cpp [ParamStmtExec,line 11888]: Error/Message: (err 208, sev 16), Invalid object name 'DDLOG'.<br>
C Procname: [##Y3UPAYWEB1uft00000037400000000002112455]<br>
C ParamStmtExec failed. HR 80040e14 DBSL retcode 103. stmt: [SELECT MAX(SEQNUMBER) AS c FROM DDLOG ]<br>
C Conn_i:1 selection:1 singleton:1 flag_fupd:0 use_cursor:0 chksum: 112017<br>
C DbSlRead - Error 103 (dbcode 208) on open<br>
C DbSlRead - <##Y3UPAYWEB1uft00000037400000000002112455><br>
C DbSlRead - Error 103 (dbcode 208) on fetch<br>
C DbSlRead - <##Y3UPAYWEB1uft00000037400000000002112455><br>
B ***LOG BZY=> unexpected return code 103 calling SEL [dbsynseq#1 @ 255] [dbsynseq0255 ]<br>
B db_syinit failed<br>
M *** ERROR => ThCallHooks: event handler db_init for event CREATE_SHM failed [thxxtool3.c 252]<br>
M *** ERROR => ThIPCInit: hook failed [thxxhead.c 1901]<br>
M ***LOG R19=> tskh_init, ThIPCInit ( TSKH-IPC-000001) [thxxhead.c 1359]<br>
M in_ThErrHandle: 1<br>
M *** ERROR => tskh_init: ThIPCInit (step 1, th_errno 17, action 3, level 1) [thxxhead.c 9413]<br>
M <br>
M Info for wp 0<br>
M <br>
M stat = 4<br>
M reqtype = 1<br>
M act_reqtype = -1<br>
M rq_info = 0<br>
M tid = -1<br>
M mode = 255<br>
M len = -1<br>
M rq_id = 65535<br>
M rq_source = 255<br>
M last_tid = 0<br>
M last_mode = 0<br>
M int_checked_resource(RFC) = 0<br>
M ext_checked_resource(RFC) = 0<br>
M int_checked_resource(HTTP) = 0<br>
M ext_checked_resource(HTTP) = 0<br>
M report = > <<br>
M action = 0<br>
M tab_name = > <<br>
M <br>
M *****************************************************************************<br>
M *<br>
M * LOCATION SAP-Server upayweb1_UFT_01 on host upayweb1 (wp 0)<br>
M * ERROR tskh_init: ThIPCInit<br>
M *<br>
M * TIME Mon Jul 27 11:24:58 2009<br>
M * RELEASE 640<br>
M * COMPONENT Taskhandler<br>
M * VERSION 1<br>
M * RC 17<br>
M * MODULE thxxhead.c<br>
M * LINE 9589<br>
M * COUNTER 1<br>
M *<br>
M *****************************************************************************<br>
M <br>
M PfStatDisconnect: disconnect statistics<br>
M Entering TH_CALLHOOKS<br>
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP<br>
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 730]<br>
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 252]<br>
M Entering ThSetStatError<br>
M Entering ThReadDetachMode<br>
M call ThrShutDown (1)...<br>
M ***LOG Q02=> wp_halt, WPStop (Workproc 0 3740) [dpnttool.c 357]<br> -
Hi There,
Please can someone tell me how to specify a variable in the path prefix of an External HTTP (RFC) connection in transaction SM59?
For example if my path prefix is /invoke/test/example?input=XYZ; how do I replace "XYZ" with a variable so that I can pass in any value after "=" ?
Thanks,
BrendonHi,
This is SAP Business one system administration forum. Please find correct forum and repost above discussion to get quick assistance.
Please close this thread here with helpful answer.
Thanks & Regards,
Nagarajan -
Kill the RFC connection as soon as the call is completed in Web Dynpro JAVA
Hi Experts,
Please guide us how to kill the RFC Connection from web dynpro java as soon as the execution is completed.The FM connection (Adaptive RFC) isnt getting closed in IS-U side. Please guide us how to close them explicitly.
We are getting the following error
(102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300)hi suvankar ,
wdContext.current<Modelname>_InputElement().modelObject().modelInstance().disconnectIfAlive();
use this option after executing your rfc, it will remove the connection to the r/3.
adn this
(102) RFC_ERROR_COMMUNICATION max number of cpic clients exceeded (300) -- is occuring because the pool size defined the jco destination is not sufficient, ask your basis team to increase the pool size.
Regards
Govardan -
RFC Connection remains open after portal logoff
Hi,
We have configured Universal Worklist in our EP7 EHP1 SPS4 Portal.
When a user connects to the Portal and launches the UWL it creates an RFC connection to the backend ECC. However, when the user moves away from UWL iview or logs out or closes the browser the RFC connection in the backend still
remains and is released only after the timeout value reached as set in ECC.
Are there any settings on the portal or ECC to release the session immediately once user moves away from UWL or logs out of portal ?
Thanks,
Savy.Hi my friend
It costs time and resources to establish an RFC connection, therefore it is not immediately deleted but maintained by the system to be reused. But in case there're special purpose to control RFCs, here're 2 parameters to do so:
The parameter gw/gw_disconnect is a timeout in seconds to close the TCP connection between two SAP gateways if there is no RFC connetion on it for the given timeout. But if there is an active RFC connection onit it will not be closed even if there is no traffic on that RFC connection. Thats why you need another parameter.
The parameter gw/keepalive is used to periodically check all active RFC (and other) gateway connections if there was no traffic on them for the given time.
Regards, -
RFC connection not disconnected on timeout/logoff.
Dear Sir,
We have two systems of ITS, one with ITS 620/patch 16 connected to ECC 5.0 and second, with ITS 620/patch 4 connected with 4.7.
The one with patch 16 is perfectly working while the one with patch 4 have following problem.
1. ~event=logoff doesn't close the RFC session to R/3.
2. After the timeout period i.e set in ~timeout and ~usertimeout parameters set in global services, the RFC connection doesn't get closed.
Can this be a patch level problem?? or do the following R/3 parameters with 0 value have impact??
a. em/stat_log_timeout
b. gw/deallocate_timeout
c. gw/reg_keepalive
d. gw/timeout
Please guide...Hi All,
We are facing the same problem. but we are not using ITS, we are using
WAS 6.20 on CRM4.0
Problem is: Open RFC connections build in the system, are not closed after the user sessions are closed / terminated
Can anyone help us to solve this problem.
Thanks
Kishora Reddy -
Standard way of mutual exclusion control for rfc connection
Dear expert,
I want to know the standard way of mutual exclusion control
for rfc connection.
I am going to create JAVA screens for ERP ABAP objects.
As for SAP GUI screen, pessimistic locking is used when editing objects.
On the other hand, pessimistic locking is defficult for JAVA screens,
since most of lock objects on ERP are not available for RFC.
Besides, I'm afrraid if locks are correctly deleted
when something bad happens on screen.(i.e. Users close browsers.)
Do you have any recommendations?
Regards,
Fukuhara YoheiHello, we raised an OSS note.
They answered it was not possible to lock tasks.
Task completion is like a race, the first it completes it wins.
Regards,
Marco. -
Create new user session after RFC connects
Hi,
My client is non SAP. They connect to SAP through an intermediate software , using RFC connections. My client requires that when creating a BOM through BAPI, the "created by" column should have a user name they pass, and not the username with which the RFC connected .
Is it possible to have a FM in which I can create a new user session, passing username and password, call the bapi that will create the BOM with this username, and close the session?
Kindly help.
Thanks in advanceMost security audits will trigger a warning when they determinate that the RFC common user is allowed to use another logon id. Usually you can provide auditors a list of such id with explanation before the audit execution, sample of explanation to provide :
- The RFC enabled FM which create the batch job must pass the logon id to be used, and the calling application must not allow user to change this value.
- The RFC default logon, should be allowed to the minimal authorization required, and could be for example allowed to no transaction, only some RFC FM. (start with [Note 460089 - Minimum authorization profile for external RFC programs|https://service.sap.com/sap/support/notes/460089])
Regards,
Raymond -
Hi Gurus,
I have a problem when i try to do a RFC connection Between SAP and Windows, this's the error message log Tx, sm59..
EntrSist. Error de conexión
Det.error / CPIC-CALL: 'ThSAPOCMINIT' : cmRc=17 thRc=236 SAP gateway connection failed. I
Det.error ERROR: SAP gateway connection failed. Is SAP gateway started?
Det.error LOCATION: SAP-Server devinc_ICT_02 on host devinc (wp 1)
Det.error COMPONENT: CPIC
Det.error COUNTER: 6
Det.error MODULO:
Det.error LINE:
Det.error CÓD.RETORNO: 236
Det.error SUBRC: 0
Det.error RELEASE: 700
Det.error TMP.: Tue Aug 31 11:13:57 2010
Det.error VERSIÓN:Anup,
the entry sapmsDEV is missing in your "services"-file on the computer that hosts your SLD-Server/J2EE WAS. Windows locates it at %WINDIR%/system32/drivers/etc, unix usually at /etc/.
make an entry like that:
sapmsDEV 3600/tcp (in case, your Systemnumber is 00, otherwise replace the "00" with your actual systemnumber)
kind rtegards, achim -
RFC connection Error in SLDCheck
Hi All,
I am trying to logon to Integration builder for that i getting the ESR builder address is not maintain. for this i have chk in SLDCheck t code ,there i am getting LCRSAPRFC connection error.I have test the RFC connection in that i am getting the
the error in register server program
Error Details ERROR: program LCRSAPRFC_XID not registered
now wht i have to do for troubleshooting
RegardsThanx for reply
when I test connection to Connection Test SLD_UC error
Logon Connection Error
Error Details Error when opening an RFC connection
Error Details ERROR: program SLD_UC not registered
Error Details LOCATION: SAP-Gateway on host sapdevpi / sapgw00
Error Details DETAIL: TP SLD_UC not registered
Error Details COMPONENT: SAP-Gateway
Error Details COUNTER: 62
Error Details MODULE: gwr3cpic.c
Error Details LINE: 1778
Error Details RETURN CODE: 679
Error Details SUBRC: 0
Error Details RELEASE: 701
Error Details TIME: Fri Jan 8 11:05:42 2010
Error Details VERSION: 2
RFC SLD_UC is connection T
Gateway Host sapdevpi
Gateway server sapgw00
same error with
Connection Test SLD_NUC
Connection Test SAPSLDAPI ( program Id SAPSLDAPI_DPI )
Connection Test SAPJ2EE
In Connection Test LCRSAPRFC error program id LCRSAPRFC_DPI
Logon Cancel
Error Details max no of 100 conversations exceeded / CPIC-CALL: 'ThSAPCMRCV' : cmRc=17 thRc=45
Error Details ERROR: max no of 100 conversations exceeded
Error Details LOCATION: CPIC (TCP/IP) on host sapdevpi
Error Details COMPONENT: CPIC (TCP/IP) with Unicode
Error Details COUNTER: 82
Error Details MODULE: r3cpic_mt.c
Error Details LINE: 10791
Error Details RETURN CODE: 466
Error Details SUBRC: 0
Error Details RELEASE: 701
Error Details TIME: Fri Jan 8 11:12:56 2010
Error Details VERSION: 3
Regards
shahid -
Rfc connection error to saposs
Hi
while testing the rfc connection to saposs msg comes timeout occured
Error: timeout occured
Location : Saprouter 37.11 on SAPDEV
Componenet: NI
Counter : 1460
Return code: -93
Subrc: 0
Release : 640
Version : 37
Plz suggest me.> Location : Saprouter 37.11 on SAPDEV
is the saprouter running on that box and is that box able to connect/ping sapserv?
Markus
Maybe you are looking for
-
DVD Player bookmarks and clips.
I did an erase and install of Leopard on my machine, which previously had Tiger on it. I want to restore my DVD Player bookmarks and clips from my backup. Can anyone Tell me which files I need to restore? I found the following thread-which is dated-o
-
Selectively ignore Problem Tags Dialog while importing Tagged Text in CS5.5
Hi My script imports tagged text and places it in selected frames. Due to the tag creation process used, I occasionally get a "Ignoring character level attribute termination tag "<cTracking:>" found without the corresponding character level attribute
-
E3000 severe drop in speed from ethernet connection to wireless
I have an E3000 connected to COMCAST. My download speed with an Ethernet connection to my computer (Windows 7) is just over 60Mbbs. When I connect to the internet using wireless only (computer adjacent to the router), my download speed drops 50% or m
-
Material serial number creation
Hello, I have a scenario in setting up serial number for material. I am presently working on data migration from legacy system to SAP. Materials in legacy system has serial numbers assigned to it. I am migrating service contracts with service materia
-
Music On Hold on working on a cluster
Hi Everyone, We recently added a Subscriber in a cluster and the subscriber is in a remote location. All the operations are working as usual except for Music on Hold feature. If the remote phone registered to the remote subscri