Rfc fails

Hi All
I tried executing one rfc with remote destination 'sapcms' in a few ways but all of them failed.
First I tried :
      CALL FUNCTION 'SCMS_CLTFC_FILE_GET'
        EXPORTING
          USAGE          = 'AL'
          KEY            = lv_key
          FILENAME       = lv_filename
       EXCEPTIONS
         FAILED         = 1
         OTHERS         = 2
This function calls a function inside with destination, but it failed on pinging the destination.
Second I tried Service Call:
        wd_this->execute_scms_cltfc_file_get(
          filename =  lv_filename
          key =   lv_key
          usage =   'AL'
The method looks like:
DATA CMS_DESTINATION TYPE RFCDES-RFCDEST
                  VALUE 'SAPCMS'.
the invocation - errors are always fatal !!!
  CALL FUNCTION 'SCMS_CLTFC_FILE_GET'
    DESTINATION CMS_DESTINATION
    EXPORTING
       usage =                           usage
       key =                             key
       filename =                        filename
    EXCEPTIONS
      failed =                            1.
error handling
  CASE sy-subrc.
    WHEN  1.
      RAISE EXCEPTION TYPE cx_wd_no_handler
        EXPORTING
          textid        = cx_wd_no_handler=>kind_old
          old_exception = `FAILED`.
  ENDCASE.
But I get the exception.
Third I tried writing a program and submit it with parameters:
SUBMIT zcms_copy AND RETURN WITH p_key = lv_key WITH p_file = lv_filename.
But then I get an error : The RFC destination SAPCMS can no longer be contacted:
If I run this program from se80  it works fine.
Any Idea ???
Thanks
Nitsan

Hi Thomas/Nitsun,
We are using FM 'ALINK_DOCUMENTS_GET_CLIENT' to download the PDF to user directory. The FM fails when a call is made to SCMS_CLTFC_FILE_GET which is a RFC to system SAPCMS.
The error message is 'GetStream failed (1)'.
I see that there is no exception being raised.
I searched the forum and found that there were posts mentioning ADS and Java Startup Failure (J2EE Engine) but I could not make the relevance.
Do you have any idea on this?
Thank you.
-Niranchan.

Similar Messages

  • Call of function module "SUBST_START_BATCHJOB" by RFC failed

    Hello Guru's,
    We have the following Issue:
    In Phase PREP_INIT/JOB_RSUPDTEC we get this error from EHPI (Version 710-1)
    Checks after phase PREP_INIT/JOB_RSUPDTEC were negative!
    Last error code set: BATCHJOB RSUPDTEC FAILED: Calling RSUPDTEC failed - repeat phase.
    In the file PSUPDTEC.LOG are the following error:
    4 ETQ260 Starting batchjob "RSUPDTEC"
    4 ETQ230 Starting RFC Login to: System = "E11", GwHost = "sape11", GwService = "sapgw00"
    4 ETQ359 RFC Login to: System="E11", Nr="00", GwHost="sape11", GwService="sapgw00"
    4 ETQ232 RFC Login succeeded
    4 ETQ233 Calling function module "SUBST_START_BATCHJOB" by RFC
    4 ETQ399 JOBNAME='RSUPDTEC', REPNAME='RSUPDTEC', VARNAME='', BATCHHOST='sape11', IV_SCHEDEVER=' '
    4 ETQ234 Call of function module "SUBST_START_BATCHJOB" by RFC succeeded
    4 ETQ399 Returned JOBCOUNT='14230100'
    2EETQ235 Call of function module "SUBST_START_BATCHJOB" by RFC failed (error-status "27")
    2EETQ261 Start of batchjob "RSUPDTEC" failed
    In the Sysem we can see, that the Job RSUPDTEC was created by DDIC but not started.
    We can start (and finish) the job successfully as logged in DDIC.
    We don't know whats the problem. The EHPI stopped every time at this point.
    Need Help...
    regards
    Chris

    Issue solved.
    In /etc/hosts the first entry was SAPE11.
    But it must be sape11, because the instance is sape11_E11_00.
    In SM51 we could see that
    sape11_E11_00     SAPE11     Dialog Batch Update Upd2 Spool Enqueue ICM     active
    We changed the entry and restarted SAP.
    Then the job can be started.

  • RFC failed

    hi,
    RFC has failed, and i ve even checked it,.
    it showed rfc failed;
    if i need to give RFC connection,, how can i go about.. kindly tell give me steps,,,to make RFC working...
    happy
    ashwin

    SM58 to check the RFC Connection.
    Usually thre will be shortdump accompanying TRFC errors. The details of error message can be found in the dump and corrective actions can be taken based on that
    http://help.sap.com/saphelp_nw70/helpdata/en/89/45aad99715462abdf09ec503e151e7/frameset.htm
    Message was edited by:
            Aduri

  • RFC Failed: Exception condition "CNTL_ERROR" raised

    Hi All,
    I have an RFC in R/3 which would be called from the .NET front end. When they run the RFC, they get an error which says
    RFC Failed: Exception condition "CNTL_ERROR" raised
    Could any one help me what is the work around for this?
    Regards,
    Guru.

    Hi Guru,
    You are correct. Check the RFC for an call for screen/popup/dialog/user input etc.
    Such error occurs for the system is expecting a user input.
    Thanks,
    Best regards,
    Prashant

  • Creation of Trusted RFC fails

    Hello
    I am trying to connect my ERP and BW systems to Solution Manager but I can't make Trusted RFC connections.
    When I checked SM59 on three systems I see `You are not authorized to logon to the target system (error code 1)
    I did successfully installed Solution Manager, did initial and basic settings. I created SOLMAN_ADMIN user every system assigned it SAP_ALL, SAP_NEW and created a role with S_RFCACL authorization object, (I assigned full authorization on all objects on that role).  I did add IP numbers and hostnames to hosts file but still same. When I test connection I get success but authorization check always fails.
    I both tried from SOLMAN_SETUP > Managed Systems and also after clearing all RFCs and trusted system entries from SMT1 and SMT2, I added RFCs from SMSY but I get same results.
    Side note, all servers are in the same subnet but Solution Manager server belongs to different domain.
    My main reason to implement trusted rfc is I need to implement ServiceDesk and I have to test it before going live, so all data on Solution Manager is expendable.
    My systems are
    ERP: Windows 2003 R2 x64, SQL 2005 SP3, ERP EHP4 SP5
    BW: Windows 2003 R2 x64, SQL 2008 SP1, NW 7.0 EHP2 SP6
    Solman: Windows 2003 R2, SQL 2008 SP1, EHP1 SP7
    What am I doing wrong there?

    Hello,
    Are you letting the wizard create the RFC's for you?
    On the Client tab in SMSY?
    Also you assigned S_RFCACL  what about S_RFC?
    I would ask you to check the logon tab and make sure Current user is not checked.
    Also, please review this Note 128447 - Trusted/trusting systems
    This should help resolve.
    Regards,
    Paul

  • Rfc fails to execute

    Hi,
    I dont seem to be able to resolve this...during the Configuration for XI, we need to create the RFC destinations for AI_RUNTIME_JCOSERVER, which i did and created the corresponding one in the j2ee stack also, however a testRFC fails..with the error that could not open rfc connection. i did all the usual debugging..hosts file, services file. Howwever when i open a command prompt and start the rfc from a command line..then it accepts connections. else it doesent, that is to say..the testConnection then works.  This is a netweaver 2004 install on win2k3 server, any ideas...on how to fix it. also from sm59 some of the other default rfc`s dest`s created also dont work.
    Regards
    Ravi

    Some additional info
    1) this is the error seen in the syslog
    SAP Basis System: Communication error, CPIC return code 002, SAP return code 679
    2) Error opening rfc connection...
       Program IGS.IB7 not registered.
       Detail tp IGS.IB7 not registered
       Component sap-gateway
    3) I checked the above program id on se38 and i got a msg that program doesent exist.
    4) However when i do a manual start of the rfc like..
    rfcexec -a pgmID -g host -x sapGateway
    with the correct params...
    then a test Connection works...
    5) When i change the programid to match the listenrfcprogramID from the igs.xml file..then the test Connection works.
    i believe its an network issue...
    Can anyone help in this regard..............any help is highly appreciated

  • Source system RFC fails after transport

    Hi all
    in our QA system any transport containing a process chain causes the RFC connection to the source ECC6 system to fail after too many logon attempts.
    This doesn't happen when we send the same transport to production.
    Any ideas?
    Regards
    Hayley

    Hi
    thanks, but I had already checked out this note.  This refers to the post processing of the transport on BW of client 000 logging onto the BW client to carry out changes, not the RFC connection to the BW ECC source system. 
    The transport goes through ok, and the process chain can be activated, however at this point we always notice that the ECC source system connection fails with an RFC error, as soon as we get the password reset and changed in SM59 it works ok.

  • RFC fail to connect to CI from DI

    Hi All,
    During sm59 RFC test from the DIs to the CI, it failed. In t-code smgw, all entries which are connecting to the CI are stated as "connecting" instead of connected. When drill in to the entry, it stated that the connection is pointing to 192.168.0.1.
    How come the IP address is connecting to LOCL ? Our service file, host file are all stating the correct IP. The connection is working fine all the while , only recently we discover this weird problem. Does anyone has any idea ?
    Regard

    Dear Lauran,
    it is hard to tell what is really going on there. Sometimes there is a problem if the connection between two gateways gets into an inconsistent state. You can run transaction SMGW, the Goto, Remote Gatewas and delete the connection to the CI. If this does not help, you will have to check the entry in SM59 carefully (especially if there are gateway options set).
    Best Regards,
    Tim

  • RFC fail to reach existing BI system

    I have a RFC conenction error. We have setup the BIA and run the initialRfcConfiguration.py. The system tried to create a connection but failed to reach the BI server. We have created the user from the BI system but it was not able to reach. Can you advise what need to be done to get connected. Thanks.
    Regards,
    Veiter soo

    Hello Veiter,
    have you checked that the BI system is reachable? ( ping, telnet on BI Port 32<System Nr> )
    Call the TREXADMIN standalone tool at /usr/sap/<SID>/TRX<Instance Nr>
    - check the connection and logon data under Landscape -> Connectivity
    - check if all services are running, especially the rfc service
    - check the rfcservice trace and rfc trace on BI site
    Please post the error messages that we can help you.
    Normally the RFC connection were created by the initial install script, why did you use the initialRfcConfiguration.py manually?
    Best Regards,
    Jens

  • TREX RFC fails

    Hi Gurus
    I follow the Trex60 non Portal installation guide and successfully install Trex 60 SP09, however when I try to build the RFC connection in CRM system(registration mode: program id crmsrv.TREXRfcServer_03/gateway host=crmsrv/gateway service=sapgw47), it always fails as "Program crmsrv.TREXRfcServer_03 not registered/...".
    The strange things I meet is:
    1. There is NO imsconfig.cfg file in Trex directory, but I find TREXRfcServer.ini to determine the service "TREXRfcServer_03" instead(Note 718339 also points to this ini file)
    2. There is NO ims_server_admin.exe file
    3. There is NO rfc_sapretrieval.exe file, so there is no process of "rfc_sapretrieval.exe" in task manager, but I find TREXRfcServer.exe instead, and succeeded execute in cmd mode(return message is "Connected - ready),then "TREXRfcServer.exe" is in process in task manamger.
    The other things like gateway service & trex_03 service are well started. remote gateway sapgw47 is also shown in SMGW.
    However, the test of rfc always fails( I even tried the start mode instead, still fails).
    Highly appreciated if you can give me any hint...
    Thanks!
    Patrick

    i think thats normal if you look at note 718339.
    Shortly they are saying that the program id after sp1 must be without the host in front of the program id.

  • RFC fails while converts message of SOAP

    Hello,
    I have create a scenario SOAP to RFC. I am using the same BAPI request and response in both interfaces and no mapping. when i send a message, RFC giving problem for the message from SOAP. actually i am not doing mapping then why the message is giving prob.
    Any body has idea.. hope the xml to rfc conversion is not proper by RFC adpater. or some other probs...
    I can see the bapi response is not as expected. giving error.
    How to check the message format.. and what bapi is taking and change before it processed by bapi.
    Pls advice,
    Srinivas

    Hi there,
    Im having the same problem when calling an RFC from a webservice (via the SOAP adapter) . i.e. I get wrong results from the RFC/SOAP response.
    The strange thing here, is that when I call the same RFC from a JCO client (not via XI) then the I get the correct results from SAP. The input parameters are the same in both cases.
    Any ideas where to check?
    Many thanks!
    Rob.

  • How to catch the error if an RFC fails due to short dump

    Hi All,
      I was calling the RFC Function module in parallel processing depends on the number of work processors available. I am getting the return message from the Function module using the perform statement
       PERFORMING task_return ON END OF TASK
    But I am not able to catch the errors if the RFC has been terminated due to the dump or manually killing the RFC while running.
    I need how to handle the RFC if the call has been terminated due to the dump or system failure. Does the RFC return the sy-subrc at this time or can we able to catch the error in any other way.
    Thanks & regards,
    Vijay

    Hello Vijay,
    If you're calling RFC from outside SAP using the OCX-SAPFunctions-Library, then you can catch the dump or any other exception occuring in your SAP-Function.
    Assuming that, objRFCFunc is the RFC-Function you can get the Excepetion-Code through objRFCFunc.Exception.
    It returns a String. If the error was a dump, the String is "SYSTEM_FAILURE". If it is a "regular" Exception you'll get the Exceptioncode. E.g. "NO_DATA_FOUND".
    If you need any sample code e.g. VBA-code for use in Office-Applications, let me know.
    regards
    Sven

  • RFC Failing

    Hi All,
    Am using a FM which gets data from other development system. When this development system is down , the calling porgram is getting dump. Is there any solution to get rid of this problem or nay BAPI to get data related to that system .
    Thank you.
    Regards,
    Padmasri.

    Hi,
    You can check if the RFC Destination is reachable by using the Funciton Module 'RFC_PING'.
    CALL FUNCTION 'RFC_PING' DESTINATION p_rfcdes (Destination system where FM/BAPI is available)
    EXCEPTIONS
    system_failure = 1
    communication_failure = 2
    OTHERS = 99.
    If sy-subrc =  0 for RFC_PING then you can proceed to get data from development system.
    You can  use FM 'RFC_FUNCTION_SEARCH'  to find FM existence in dev system.
    CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION p_rfcdes "System where the FM existence should be checked
    EXPORTING
    funcname =FM name
    GROUPNAME = ' '
    LANGUAGE = SY-LANGU
    TABLES
    functions = i_rfcfunc
    EXCEPTIONS
    nothing_specified = 1
    no_function_found = 2
    OTHERS = 3
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This will return sy-subrc = 0 if FM exists, otherwise sy-subrc is 2.
    This FM will check If the FM mentioned is available in the TFDIR Table with PMODE = R (Remote) in the system which is called. If the Destination keyword is not mentioned, it checks for the entry in the current system table, hence sy-subrc is always 2 in your case.
    Please revert for further Qs.
    Thanks and Regards,
    P.Bharadwaj

  • RFC FAILED - RSAR374 & RSAR375

    Hi Folks,
    Getting above two error messages when creating an RFC betweeen R/3 and BW....
    Any suggestions!!! Please email them at [email protected]
    thanks in advance.....

    I had the same error. In my case the RFC User was locked.
    Best regards
    JS

  • Transactional RFC fails for Outbound IDoc

    Hi,
    I am trying to send out an IDoc to XI 3.0 system from an R/3 4.6 C system and I get the following error :
    "No service for system SAP<SYSID>, client nnn in Integration directory, when the system tries to send the out the IDoc." Any idea what that means ? The Business sytem for the client is defined in the SLD and imported into the ID.
    I am able to run a similar scenario (same IDOC type) from a different system. So I know the steps I am following are right.
    Thanks for help,
    Regards

    I have already defined the technical system and business system for the sender R/3 system. And I have also created the service by assigning the business system for the specific client of sender business system in the ID (Configuration).
    The receiver port in the Integration server (SAP<SID>_NNN> is also defined and the IDOC type already imported.
    Do I need to do more ? BTW , we did not run RZ70 on the sender system as the t-code is not available. Does it come with some patch/Addon. We defined the system on SLD manually.
    Thanks for your response.
    Regards,
    Durga

Maybe you are looking for