Timeout during RFC-Call
if you call a SAP-function via RFC from an external RFC-client, the function runs in a SAP dialog-process and a timeout can occur dependent on the runtime.
do anybody know a possibility to run the RFC-function in a batch-workprocess ? perhaps a asynchronous RFC (aRFC) or transactional RFC (tRFC) can guarantee this ? or perhaps I can configure the RFC-connection in any way in SM59 ?
thanks and regards
torsten manhardt
Yes, you can run an RFC FM in batch. You might also check if you are calling the same RFC multiple times in a loop. If so, see if you can run it once, but return all the data you need in a table.
Rob
Similar Messages
-
System error during RFC call BAPI_FIXACCOUNT_GETLIST
Hi Gurus,
Below are the error and steps when i perform Payroll Posting to Accounting. To enable communication between distributed systems, the appropriate method have been specified in ALE Customizing for the objects of the following tables. (Basis -> Application Link Enabling (ALE) -> Modelling and Implementing Business Processes -> Maintain Distribution Model and Distribute Views.)
However, error still exists as shown below:-
1. Run TCode PC00_M99_CIPE
2. Encountered Error as shown below:
Communication error with system QAS, function FI_ACCT_DET_HR
Message no. 3G404
Diagnosis
The function module "FI_ACCT_DET_HR" has been called remotely in system "QAS". As a result, an error occurred when creating the connection or during communication.
Procedure
Check that the ALE distribution model is correctly maintained.
Account determination could not be performed
Message no. 3G361
Diagnosis
The account could not be determined for one of the following reasons:
No destination could be found in the ALE distribution model for the AcctngEmplyeeExpnses.Check method.
A system or communication error occurred when executing the function FI_ACCT_DET_HR in the target system.
System error during RFC call BAPI_FIXACCOUNT_GETLIST: / CPIC-CALL: 'ThSAPCMINIT' Unknown serv ice
Message no. KI012
3. Check in SM21: NiConnect Unsuccessful, Return Code: -0003
Communication error, CPIC return code 020, SAP return code 665
Please advice. Thanks in advance.
Best Regards,
FungHi,
Probably because of timeout, it is unable to execute the request ..so it is aborted.
btw, is it a synchronous call ? what is the message size ? the given data to RFC is correct and valid structure ? check the mapping .for this use the data from SXMB_MONI and test it
Check this blog for timeout errors-
/people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
Regards,
moorthy -
How to suppress message popup during RFC call
Hi expert,
I have a scenario where in my RFC i am calling a SAP Bapi. But while this BAPI calling few popups appear which should be clicked as YES and then it has to run further.
This "Pressing Yes" in popup is a manual way , i want it to be done automatically so that during my RFC call there is no interruption.
Is there any FM which can suppress this popup by saying YES and there is no stopping for my RFC.
Regards,
AbhishekHi ,
I am facing the similar problem. Let me know how did you solve this problem ?
Thanks,
Krupali -
XI to RFC Scenario: Runtime error during RFC Call
Hi,
I am testing a XI-to-RFC scenario involving BPM. The RFC works perfectly from SE37; but I get 'ICM_HTTP_TIMEOUT, Error code 402' when I invoke it from XI. On digging through the problem, it appeared that the calling program produced a short dump at the ABAP end. The code is as follows:
<b>module %_rfcdia_start output.
"Do not display screen !
call 'DY_INVISIBLE_SCREEN'.
perform remote_function_diastart.
endmodule.
module %_rfcdia_call output.
"Do not display screen !
call 'DY_INVISIBLE_SCREEN'.
perform remote_function_diacall.
endmodule.
module %_cpic_start.
if sy-xprog(4) = '%RFC'.
perform remote_function_call using rfctype_external_cpic.
else.
call 'APPC_HD' id 'HEADER' field header id 'CONVID' field convid.
perform cpic_call using convid.
endif.
endmodule.
form cpic_call using convid type c.
communication send id convid buffer header.
if sy-subrc eq 0.
perform (sy-xform) in program (sy-xprog).
else.
message a800.
endif.
endform.
form remote_function_call using value(type).
data rc type i value 0.
do.
********This is the line where error occurs************
<i>call 'RfcImport' id 'Type' field type.</i>
if sy-xprog = 'JAVA'.
system-call plugin
id 'JAVA' value 'FORW_JAVA'
id 'RC' value rc.
if there is no rollout on the JAVA side which
rolls both, JAVA and ABAP, we return to the
C-Stack and reach this point
in case there was an rollout, the ABAP-C stack is lost
and we jump direkt to this point
here we trigger the rollout on this Abap side with
the following statement
system-call plugin
id 'JAVA' value 'ROLL_OUT'
id 'RC' value rc.
else.
perform (sy-xform) in program (sy-xprog).
rsyn >scont sysc 00011111 0.
endif.</b>
Anybody has any idea why it is happening? Is it a network issue? The dump in ST22 says that 'The program "SAPMSYS1" was terminated manually'. How it is possible to manually abort an automatic call?
Awaiting reply.
Regards.Hi,
Probably because of timeout, it is unable to execute the request ..so it is aborted.
btw, is it a synchronous call ? what is the message size ? the given data to RFC is correct and valid structure ? check the mapping .for this use the data from SXMB_MONI and test it
Check this blog for timeout errors-
/people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
Regards,
moorthy -
Which paramter configures the timeout for rfc call (to R/3 ) from BPM
hi froum,
i have a scenario, with BPM, in which theres a synchronous send to a rcf Function Module in R/3,
now, can u tell me which paramter decides the time out for this Sync call to rfc enabled Function Module in R/3,
i mean which paramater in SXMB_ADM or anywhere else that dictates the time periodCheck this out, RFC adapter section
/people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
Regards,
Prateek -
LUW implementation between RFC calls
Hi Experts,
I have a quick requirement in which i have to implement LUW explicitly during RFC call.My requirement is as below
I have 3 Rfc for a Ztable these are 1. Zcreate_entry , 2.Zupdate_entry and
3. Zdelete_entry. Now i want to create a explicit session for all the operation done by these Rfcs so that at the end of the session i can commit all the operations.
Example
User will call 1 RFC for leting me know that now start a new session.now user will insert 5 entry in Ztable by calling Zcreate_entry(Actually this data should not be saved in ZTable) , Update 4 Entry in Ztable by calling Zupdate_entry(Actually this data should not be updated in ZTable) , delete few entry same way.
Now user will call 1 Rfc for ending this session(for letting me know only that end this session) , At this point only all the data changes (inserted , updated and deleted ) should be actually reflected in database.
Regards,
Abhishek
Edited by: ABHISHEK BAJPAI on Jan 20, 2009 12:43 PM
Edited by: ABHISHEK BAJPAI on Jan 20, 2009 12:43 PMHi All,
If you have not got the problem , let me explain complete scenario.
There are three RFcs for creating , updating and deleting in database table(Ztable).
Now these Rfcs will be called from web dynpro, In WD screen user may call Create RFC 5 times for creating entry in Ztable ,then he can call Update RFC for updating in Ztable.
After doing all these operations in single session now he wants to end the session, so before closing the session WD notifies to backend that now at this point only save all the changes to the backend thus for all the operations commit will happen now only.
*Another requirement is * that from WD screen if user1 has created 5 records but he has not commited these changes to database now if User1 searches for just inserted recorded(which is not commited yet) , how to provide these records to the User1 because these records are not in Ztable at that point of time.
Regards,
Abhishek -
Hi All,
Can we use Call screen or Call transaction in RFC.
Regards
KrishnaHi,
As far as I know if an FM(BAPI) is called from the legecy as RFC it will return you the table that data you can acess.
as far as call screen is concern inside an FM it is quite possible but during RFC call u can't see the screen.
call transaction is also possible but dont expect u will get the transaction screen u will get the resultant data.
Regards -
RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
I am having this error pop up very frequently on some new SAP systems. This will randomly happen and keep us from being able to release transports and import them in STMS. I receive the following error:
There was an attempt to start the transport control program tp using the local RFC interface.
An error occurred here.
Error code: 4
RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
- When I check the Transport Tool (STMS: import queue> check> transport tool) I get the following information:
timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456#Time
out during connection setup (check that partner exists
- When checking the TP System Log I receive the same error. The RSTPTEST report does not give any additional information. SM21 shows a warning and an error:
Warning:
Communication Error, CPIC return code 020, SAP Return code 456
Dialog Process No. 000
Problem cl: SAP web AS problem
Package: STSK
Further Details:
Module Name: thxxhead
Line: 7488
Error Text: 020456
Caller: ThRecei
Error:
Problem cl: transaction problem
Package: STTO
All of these errors are only pointing to a time out. I cannot figure out why this is happening. I checked the TMS RFC connection in SM59 and they are fine. I have been able to work around this issue in 2 different ways. First, I can delete the files in the "\trans\tmp" directory on the server. Sometimes this resolves the error. Else I have to restart the system.
I need to understand where this issue is coming from and how to resolve it. It is becoming more and more frequent. Thank you for your help!Hi,
i have had similar issues during this week. After looking for a solution everywhere i found out that i didn't set up the FQDN on this system.
Symptoms were:
se38 > RSTPTEST timed out sometimes(not always)
sm59 > TCP/IP connections > CALLTP_WindowsNT > test connections timed out sometimes (again, not always)
STMS Overview > Systems: I was not always able to distribute and activate configuration from the Domain controller via Extras > Distribute and Activate Configuration (it died on the mentioned system)
Transports failed mostly with the same error.
The error log was somewhere deep in ST11. It could not resolve our FQDN.
The solution, for me, was to add our FQDN to the WINDIR\System32\drivers\etc\hosts file.
We upgraded the kernel as well (from 7.20 patch 046 to most current) but this didn't help.
The FQDN is a concatenation of computer name and dns suffix of the network (if you have none, you can add one via rightclick on the used network adapter>ipv4>properties>Advanced>DNS tab, so in the end the host file looked like
127.0.0.1 localhost computer-name.ourSuffix.com
After this line has been added, the error stopped and the transports work again.
I hope it helps. Good luck. -
RFC error: timeout during allocate/CPIC-CALL: 'ThSAPCMRCV'#
Hi folks,
We experienced this error while trying to carry out transport into the Production Server- RFC error:timeout during allocate/CPIC-CALL: 'ThSAPCMRCV'#.
I have checked connection tests,RFC, they look fine.
Anyone experienced this before?
Thanks.hi,
please check :
SM59 > R/3 Connection > TMS Communication Interface generated --> is the connection OK ?
also check in :
STMS --> is the transport configured properly ?
rgds,
alfonsus guritno -
RFC ERROR timeout during allocate
Hi all,
We are trying to connect our ECC 6.0 system to ECC 5.0 system thru RFC we get the following error. Both the systems are available running
Timeout during connection setup. Please check partner availability
[abrfcio.c 8139]
A *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 2799
CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=242
Timeout during connection setup. Please check partner availability
DEST =RQ3CLNT300
HOST =168.189.35.139
SERV =sapdp11
GWHOST =dcecqv1
GWSERV =sapgw02
[abrfcio.c 8139]
A TH VERBOSE LEVEL FULL
A ** RABAX: end RX_GET_MESSAGE
M
M Wed May 14 05:41:59 2008
M
M *****************************************************************************
M *
M * LOCATION SAP-Gateway on host dcecqv1 / sapgw02
M * ERROR timeout during allocate
M *
M * TIME Wed May 14 05:41:59 2008
M * RELEASE 700
M * COMPONENT SAP-Gateway
M * VERSION 2
M * RC 242
M * MODULE gwr3cpic.c
M * LINE 1872
M * DETAIL no connect of TP sapdp11 from host cpchrpq1.clorox.com after
M * 20 sec
M * COUNTER 1679
M *
M *****************************************************************************
M
A RFC 2318 CONVID 77332474
A * CMRC=27 DATA=0 STATUS=0 SAPRC=242 ThSAPCMINIT
A RFC> ABAP Programm: RSRFCPIN (Transaction: SM59)
A RFC> User: DDIC (Client: 300)
A RFC> Destination: RQ3 (handle: 2, , {482AC1FF-A0EE-2871-E100-0000A8BD2A0B})
we have mentioned the system no, hostname..every thing correctly
Any help
Thanks
SenthilHi Senthil,
I had faced a similar issue working with my previous company. Upgrading the kernel had done the trick. I am not sure of the SAP note but please check Note, 827872 - Work process waits for registered RFC server
Regards,
Atul Lotlikar. -
Timeout during allocate of Vertex RFC
Hi Guys.
Im facing this odd issue after an offline backup is completed and brings the system.
As you can see the Vertex RFC is no longer working and displays a timeout issue after a Sales programs tries to reach it.
Also when testing the RFC is unable to initialize.
M *****************************************************************************
M *
M * LOCATION SAP-Gateway on host etgrws01.entegris.com / sapgw20
M * ERROR timeout during allocate
M *
M * TIME Tue Dec 28 16:43:08 2010
M * RELEASE 640
M * COMPONENT SAP-Gateway
M * VERSION 2
M * RC 242
M * MODULE gwr3cpic.c
M * LINE 1854
M * DETAIL no connect of TP /boltons/D01/vertex/3.3/TransLink/verrfc from
M * host etgrws01.entegris.com after 22 sec
M * COUNTER 6378
M
A RFC 1448 CONVID 40614370
A * CMRC=27 DATA=0 STATUS=0 SAPRC=242 ThSAPECMINIT
A RFC> ABAP Programm: CL_XTAX_RULES_RFC=============CP (Transaction: VA02)
A RFC> User: VMESENBR (Client: 200)
A RFC> Destination: VERTEX (handle: 3, , )
A *** ERROR => RFC ======> CPIC-CALL: 'ThSAPECMINIT' : cmRc=27 thRc=242
Timeout during connection setup. Please check partner availability
[abrfcio.c 7933]
A *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1464
CPIC-CALL: 'ThSAPECMINIT' : cmRc=27 thRc=242
Timeout during connection setup. Please check partner availability
DEST =VERTEX
HOST =etgrws01
PROG =/boltons/D01/vertex/3.3/TransLink/verrfc
[abrfcio.c 7933]
That /boltons/D01/vertex/3.3/TransLink/verrfc is located on the same server as the SAP application, so i cannnot figure out why is showing partner not available/timeouts, when is pinging a program on the same server.
I have tried restarting the Dispatcher
rfc/use_gwstart =1
Increased CPIC timeout value gw/cpic_timeout =120 (Increased CPIC timeout)
I have also searched thru these notes but still no luck
Note 581509 - Reasons for timeout during allocate
Note 638701 - Starting RFC servers takes too long
Note 948636 - Starting executables locally using RFC
The only workaround for this, is restarting the SAP Application, in order to have the RFC working again, but this seems an overkill to fix an RFC Ping Issue.
All ECC Systems have the same program version and configuration but only Dev system is facing this.
The whole point of this, is why when the system is shut down in order to perform an offline backup causes this, and the only way to fix this, is shutting down/start up the system again.
If you have some ideas of what could be causing this, it's would be highly appreciated.
MartinHi Martin,
We are experiencing the same issue with SAP/Vertex. Can you let me know how you resolve this? Did you change the SAP gateway timeout parameter? If so, which one is it?
Your help on this is greatly appreciated.
Thanks much!
Best regards,
Cyanna -
RSTPTEST , RFC ping failed RFC error text: timeout during allocate / CPIC-C
Hi all,
I was transporting the request in my landscape last week and all of sudden transports in acceptance system is not working and I am getting a error message as
Could not start transport control program tp
Message no. TP608 Diagnosis
There was an attempt to start the transport control program tp using the local RFC interface. An error occurred here.
Error code: 4
RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Meaning of the error codes:
03 RFC system failure
04 RFC communication failure
System Response
The function terminates. Details about the error can be found in the trace file of the Gateway Monitor (SMGW).
SMGW logs are as follows:
Tue Jun 16 12:04:28 2009
ERROR => GwISearchPartner: timeout, partner LU: >hostname<, TP: >M:\usr\sap\SID\DVEBMGS00\exe\tp.EXE< [gwr3cpic.c 6135]
ERROR => GwISearchPartner: HOST: hostname conv ID: 50323660 [gwr3cpic.c 6148]
, This is the 3 system landscape, common transport directory in development system.
Actions taken:
Restarted the systems (PRD queue is working but not acceptance queue)
DIR_TRANS and Permission were given already and able to ping from all the sytem
Host and service entry were maintained already.
RFC connections were woring fine without errors
I have seen many threads but none of the thread is solved my problem.
Please suggest
VijayHello,
Thanks fpr your reply and I tried the steps which you said and the result is same error for both the options.
1 & 2 Answers :
Could not start transport control program tp
Message no. TP608 Diagnosis
There was an attempt to start the transport control program tp using the local RFC interface. An error occurred here.
Error code: 4
RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Meaning of the error codes:
03 RFC system failure
04 RFC communication failure
System Response
The function terminates. Details about the error can be found in the trace file of the Gateway Monitor (SMGW).
SMGW logs are as follows:
Tue Jun 16 12:04:28 2009
ERROR => GwISearchPartner: timeout, partner LU: >hostname<, TP: >M:\usr\sap\SID\DVEBMGS00\exe\tp.EXE< http://gwr3cpic.c 6135
ERROR => GwISearchPartner: HOST: hostname conv ID: 50323660 http://gwr3cpic.c 6148
I think this is not able to contact the domain controller.
But I can see the checks are fine from checking the transport directory.
Vijay -
STMS distribution error - timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Hello All
i am trying to confugreu STMS but i am facing this error when i am tryin to distribute the same,
System EC2 Command TMS_PM_DISTRIBUTE_PROFILE
Client 000 Service tp Profile Service
User TMSADM Start Online
Date 20.10.2009 Function TMS_PS_WRITE_PROFILE_TO_DISK
Time 17:36:23 Message SET_CODEPAGE_FAILED
description : Could not start transport control program tp
detail error is as below if i press on more information
Could not start transport control program tp
Message no. TP608 Diagnosis
There was an attempt to start the transport control program tp using the local RFC interface. An error occurred here.
Error code: 4
RFC error text: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Meaning of the error codes:
03 RFC system failure
04 RFC communication failure
System Response
The function terminates. Details about the error can be found in the trace file of the Gateway Monitor (SMGW).
some of the posts on forum suggested i should try from same domain i tried but in vain, then i updated the SAP kernel from 7.01 sp 14 to sp 55. but i am still facing the problem.
i created this system recently using system copy based upon export image of a system (ABAP stack ) but using ABAP+Java during export process (by mistake). then we tried to build system using import (ABAP stack only i know its weird but its up and running). I assume we should have builf export imgae using ABAP method but some how due to lack of time we proceeded this way.
The main problem i see is TP RFC . The output from prgram RSTPTEST is as below
everythign is fine except below entries
under RFC destination
EFC ping - timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=456#Time out during connection setup (check that partner exists
under TP call
RFC link and Offline Call shws me the same error as RFC ping. and there is no output from tp version and DB connect.
Can anybody please help me on the same.
ManiHello All,
thanks a lot for you reply, i want to clear some point here
- I have no other physical attached to the system, i created other system as virtual system.
- to Sunny - i allready went through that thread and upgraded my Kernel also accordign to thread but problem still persist.
- to Anil .. i did as u said but nothing changed after that.
here is the log from trans log file
4 ETW000 r3trans.exe version 6.14 (release 701 - 12.06.09 - 15:20:00).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 20.10.2009 - 17:37:33
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: r3trans.exe -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Tue Oct 20 17:37:37 2009 12584 0.012584
4 ETW000 [dev trc ,00000] db_con_init called 65 0.012649
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 401 0.013050
4 ETW000 [dbcon.c ,00000] *** ERROR => Invalid profile parameter dbms/type (or environment variable dbms_type) = <undef>, cannot load DB library
4 ETW000 160 0.013210
2EETW169 no connect possible: "connect failed with DBLI_RC_LOAD_LIB_FAILED."
i have dbms/type = mss in profile parameters
I am still getting the same error.
Mani -
Hello everyone,
while trying to execute an MDX Statement on NW 7s SAP BI i ran into the "timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'" error.
I searched these forums for a solution an found SAP Note 1032461.
The Problem is: it only applys to older versions of the NetWeaver. NW 7 seems to have a new RFC library.
Is there another solution for this problem in NW 7?I found the solution.
The note was right, but i used the wrong .dll. -
STMS error - Timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Dear Experts,
We are facing issue in releasing or importing TRs.
1.When releasing TRs in DEV server, it is showing error message "Could not start control program TP" on status bar. But repeating the same process went successful.
2. While Importing TRs into QAS, at the time of refreshing queue/adjusting import queue, it pops-up error " timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' .But after repeating same process, TRs were impoted successfully.
We had performed the following in DEV & QAs:
1. Upgraded kernel to patch level 137.
2. After that replaced TP & R3trans with latest patch levels 169.
3. Re-configured STMS
4. Restarted Server.
Also checked,
(i). Report RSTPTEST in se38- sometimes successful; sometimes error :"timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' (ii). RFC "CALLTP_WindowsNT" in sm59 Connection is OK.
Please help.
Thank you in advance.
RegardsHi,
Check below link if it helps:
Re: STMS
Pls also check below things :
- check that the "Gateway Options" are maintained in SM59 and the sapdp00/sapgw00 are maintained in the etc/services files. SAP Note 52959
- Please check SAP Note 773830 if you are on a cluster environment.
For the error regarding timeout during allocate / CPIC-CALL: 'ThSAPCMRCV' please check SAP Notes 581509, 566566.
Thanks,
Rupali
Maybe you are looking for
-
File Sender adapter - source file name - weird
Hi all, We have a sender file adapter polling an ftp location. The Dynamic config has been enabled to get the source file name. The actual file name is - "hrmd.xml", but in the dynamic configuration node, in sxmb_moni, the fileName is shown as ./hrmd
-
1080/50p to mp4 playback issue
Original camera capture from JVC HM600 1080/50p H.264 converted to Apple Pro Res 422 and imported into FCP7. (iMac OSX 10.7.5) Movie exported as default MOV. MOV then converted to mp4 using Mpeg Streamclip. Problem is mp4 file not playing back when c
-
Prolblems on Loading the data using DataMovement
Hello Sir, I have created a .dat file and want to load in the table which is created by user. Now using the Data Movement when i gives the username and password for host credentials this error is popuped. install_driver(Oracle) failed: Can't load 'D:
-
Hello, Everytime I log on to the admin console on our NAS NSS6000, there is a system alert in the status option The performance of the NAS seem to not be affected by this, but it worries me a little. Anyone knows why does this happen? Thanks.
-
Mandatory segments and fields of Idoc...
Hi Experts, I am very keen to know the mandatory segments and fields of the ORDERS05 IDOC so can you please let me how to check the mandatory feilds and segnents of this particular Idoc. Thanks in advance.Your help is highly appreciated. Thanks, Kira