Catching communication error: syn. RFC- XI- Webservice

Hi,
I created a synchronous scenario: RFC in R/3 -> XI -> WebService and returning the result. This is working fine, but if the webservice is not available I get a dump in R/3. Understandable, but I am sure the is a way to catch this exception. But how ?
So far I did not create any exceptions in the RFC.
Help is very appreciated.
Regards,
Robert

Hey
In your RFC you can do like this when calling the service:
data: lo_system_ex type ref to cx_ai_system_fault,
        lo_app_ex type ref to cx_ai_application_fault,
        l_sys_exc TYPE REF TO cx_ai_system_fault,
        l_app_exc TYPE REF TO cx_ai_application_fault,
        l_exception_msg type string.
  try.
      create object l_wsproxy.
      try.
          call method l_wsproxy->execute_synchronous
            exporting
                output = ****
            importing
                input  = ****.
        catch cx_ai_system_fault into l_sys_exc.
        catch cx_ai_application_fault into l_app_exc.
      endtry.
     catch cx_ai_system_fault  into l_sys_exc.
  endtry.
    l_exception_msg = l_sys_exc->get_text( ).
    write l_exception_msg.
regards Ole
Edited by: Ole on Oct 1, 2008 3:31 PM

Similar Messages

  • Error in RFC-PI-WEBSERVICE(SOAP)

    HI Expert,
    I am facing a problem with my scenario RFCPISOAP. It is a Asynchronous communication.
    Mesasge is successful in SXMB_MONI but failure in receiver side Adpter engine.
    Error is like
    Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 389). ---> The string '' is not a valid AllXsd value..
    There is no error such in my payload.
    Please help.
    Regards,
    Sumit Gupta
    Edited by: sumit gupta on Mar 11, 2010 2:25 PM

    Hi All,
    Thanks for your quick reply.
    yes there is a blank data.. I map that with "map with default". and that is sending blank.
    Also tested in SOAP UI the same payload.Error like below.. l
    Like BAD request ..
    But when I fill all the mandetory filled the error like below comes
    Server was unable to process request. ---> Unable to write exception error to log: Access to the path 'c:\dn_log_cispro#11-03-2010-05-45-16.txt' is denied.
    Please help. how to avoid it.
    Regards,
    Sumit
    Edited by: sumit gupta on Mar 11, 2010 5:14 PM

  • Java Communication error:Error while opening an RFC connection

    Hi,
    I am getting Java Communication error:Error while opening an RFC connection when i try to run a query from Bex analyser.
    please let me know how to resolve this
    Thanks
    Bala Duvvuri

    This error usually comes when the java stack is not upgraded.
    when you upgrade yourABAP stack, simultaneously you have to upgrade the java stack also.
    Please co-ordinate with your basis team to inform EP team to upgrade the java stack when basis team do ABAP stack upgrade.
    Hope this would help you.

  • Error after import external webservice(RFC) wsdl url to Process Composer

    Hi all,
    I try to use RFC webservice in my BPM as below:
    1. Expose RFC as webservice using CAF (import external service RFC and then create application service use this external service)
    2. Define Destination in NWA.
    3. Create a Process Composer project, and import the external webservice(RFC) wsdl file as service interface in the project.
    After importing, i get error : the port type specified for the ...binding is undefined. Check port type name and ensure it is defined.
    If i import another external service, not RFC (such as business object), there is no error.
    My system is NWCE 7.11
    Thanks in advance,
    Sinh.
    Edited by: Sinh Nguyen Van on Jul 20, 2009 8:29 AM

    Hi Bharath,
    Below is content of wsdl url and error message, thanks
    Error message:
    The 'zfm_rfc_caf_as' port type specified for the 'zfm_rfc_caf_asBinding' binding is undefined. Check the 'zfm_rfc_caf_as' port type name and ensure it is defined.
    wsdl url :
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" xmlns:b0="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as">
      <import namespace="http://www.sap.com/caf/demo.sap.com/s00_caf_rfc/modeled/zfm_rfc_caf_as" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl?wsdl=binding&mode=ws_policy" />
    - <service name="zfm_rfc_caf_as">
    - <port name="zfm_rfc_caf_asBindingPort" binding="b0:zfm_rfc_caf_asBinding">
      <address xmlns="http://schemas.xmlsoap.org/wsdl/soap/" location="http://sinhnv-lap:50000/zfm_rfc_caf_as/zfm_rfc_caf_asBeanImpl" />
      </port>
      </service>
      </definitions>
    Edited by: Sinh Nguyen Van on Jul 22, 2009 4:18 AM

  • RFC communication error

    hi guys,
    our company has SAP servers in location A which often communicates with servers in location B. recently we moved both DEV and PRD servers to location C from A. the servers from B and C communicates via a VPN link.sequel to this movement we changed the IP configuration of all the systems. presently users in location B can access the PRD server in C but are not able to access the DEV server.
    the following error messages appears:
    ON PRD
    TMS Alert viewer
    transport control program tp ended with error code 0212
    error:could not access file as supposed
    command:SHOWBUFFER PRD PF=
    SAPDEV\sapmnt\trans\bin\TP_DOM
    while on DEV
    message:RFC-communication failure
    RFC communication error with system/destination
    partner not reached
    would appreciate if u culd profer a solution as soon as possible
    Regards walata

    Hi Walat,
    User access problem :-
    You located at location B are not able to access server DEV which is located C
    Pls take help from your system administrator for doing below task if you are not aware about output
    From location B try to telnet server DEV on port 32<NN> or 36<NN>  ( <NN> is your instance no of DEV )
    for e.g
    from command prompt run the following command
    telnet < dev server ip >  32<NN>
    check the ouput
    How to check the ouput
    1   after giving the above command, if you get blank screen it mean ports are open
    2  after giving the above command, if you get ouput on screen like " conneting to server < dev server ip > it mean ports are not open
    If the ports are not open then inform you network team that port mention aboev should be open for users.
    once the ports get open check above step again , if you get the blank screen , then you wil be able to login to SAP
    Server to Server Access problem :-
    From server DEV to PRD and vice versa check whether you can share the drives .
    if yous system team that yor PRD system should be able to to access the share folder sapmnt of server DEV ( SAPDEV )
    As well as check server to server port 33<NN> is open or not
    Any query pls reply.
    Thanks
    Anil

  • RFC-XI-WEBSERVICE = ABAP DUMP ERROR(V.URGENT)

    Hi Experts,
    I am trying to create a RFC-XI-Webservice scenarion in which i have made a function module giving the parameters which needs to be displayed in my webservice . I call this function module in a report zlv_distance.
    .I am getting a dump while executing my Function module . I am copying the dump as under:-
    Runtime Errors         CALL_FUNCTION_REMOTE_ERROR
    Date and Time          11.10.2007 10:23:56
    What happened?
         Error in ABAP application program.
         The current ABAP program "Z_WEBSERVICE_TEST_SARAS=======FT" had to be
          terminated because one of the
         statements could not be executed.
         This is probably due to an error in the ABAP program.
         The error occurred in an RFC call to another system.
         The target system has also written a short dump.
         Consult this short dump for more precise information about
         the cause of the error.
    Error analysis
         An error occurred when executing a REMOTE FUNCTION CALL.
         It was logged under the name "RFC_EXTERNAL_ABORT"
         on the called page.
    Trigger Location of Runtime Error
         Program                                 Z_WEBSERVICE_TEST_SARAS=======FT
         Include                                 Z_WEBSERVICE_TEST_SARAS=======FT
         Row                                     68
         Module type                             (FORM)
         Module Name                             FUNCTION_CALL
    Source Code Extract
    Line  SourceCde
       38 DATA: %_VDISTANCE TYPE CHAR10.
       39 FORM EXISTENCE_CHECK CHANGING VARIA.
       40   VARIA = 1.
       41 ENDFORM.
       42 FORM FUNCTION_CALL.
       43   CLEAR %_ODISTANCE.
       44 *  TRANSAKTION = 'Repo', PROGRAM = REPORT
       45   IF ATRA = '1'.
       46     SET RUN TIME ANALYZER ON %_INTERNAL.
       47   ENDIF.
       48 IF DESTI IS INITIAL.
       49 IF DEBUG = '1'. BREAK-POINT AT NEXT APPLICATION STATEMENT.
       50 ENDIF.
       51 DEBUG = SPACE.
    52 GET RUN TIME FIELD TIME1.
    53 CALL FUNCTION 'Z_WEBSERVICE_TEST_SARAS'
    54 EXPORTING
    55 FROMZIP = %_IFROMZIP
    56 TOZIP = %_ITOZIP
    57 IMPORTING
    58 DISTANCE = %_ODISTANCE.
    59   IF ATRA = '1'.
    60     SET RUN TIME ANALYZER OFF %_INTERNAL.
    61   ENDIF.
    62 ELSE.
    63 GET RUN TIME FIELD TIME1.
    64 *  TRANSAKTION = 'Repo', PROGRAM = REPORT
    65   IF ATRA = '1'.
    66     SET RUN TIME ANALYZER ON %_INTERNAL.
    67   ENDIF.
    >> CALL FUNCTION 'Z_WEBSERVICE_TEST_SARAS' DESTINATION DESTI
    69 EXPORTING
    70 FROMZIP = %_IFROMZIP
    71 TOZIP = %_ITOZIP
    72 IMPORTING
    73 DISTANCE = %_ODISTANCE.
    74   IF ATRA = '1'.
    75     SET RUN TIME ANALYZER OFF %_INTERNAL.
    76   ENDIF.
    77   ENDIF.
    78   GET RUN TIME FIELD TIME2.
    79   RC = SY-SUBRC.
    80   CLEAR EXCEPTIONS.
    81   READ TABLE EXCEPTIONS INDEX RC.
    82   IF SY-SUBRC = 0.
    83   OEXCEPTION = EXCEPTIONS-NAME.
    84   ELSE.
    85   OEXCEPTION = RESULTAT.
    86   ENDIF.
    87   TIME1 = TIME2 - TIME1.
    I have made my function module Remote enabled.
    My RFC destination is working fine .
    I have already tested that.
    Please help me on this.
    Regards
    Saras Jain

    Hi,
    possible solution could be a ConversionException in you RFC Adapter because of mismatching data types in your source and receiver message.
    Just goto RWB an monitor the Processing Details for Cluster Node Server of your adapter in the Channel Monitoring.
    Afterwards you have to adjust your importing or exporting structure of the used RFC function module.
    Cheers,
    André

  • RFC - XI - WebService, scenario error in RFC Test

    Hi
    I am following this scenario
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    and did sender RFC Adapter configuration according to michal's weblog  
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    when I did RFC connection test it gives me the following error
    http://www.flickr.com/photo_zoom.gne?id=1202592205&size=o
    <b>Connetion test:</b>
    Connection type: TCP/IP connection
    Connection error: Program sdnweblogs not registered/ CPI- C error CM_ALLOCATE_FAILURE_RETRY
    Can you pls let me know what is this error , how to solve this ?
    Thanks
    srinivas

    > The Program name which you have defined in the TCP/IP
    > Connection needs to be registered in the J2EE Visual
    > Admin. until you do that this will not work.
    This is not needed at all.
    Your RFC adapter and the TCP IP Connection should use the same Program ID. No need for registering it in the VA.
    Just make sure that the Gateway Host and Service in the Sender RFC adapter and in the TCP IP Connection use the Gateway Host and service of the R3 system.
    Regards
    Bhavesh

  • 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 Communication - error CPIC return code 020, SAP return code 665

    Hello,
    I have created RFC destination for connecting SCM system from Solution Manager. Both the systems are Unicode.
    I am getting the following error --
    ERROR                service '?' unknown
    LOCATION             SAP-Gateway on host gva4103 / sapgw00
    COMPONENT            NI (network interface)
    COUNTER              4028
    MODULE
    LINE
    RETURN CODE          -3
    SUBRC                    0
    RELEASE              640
    TIME                 Mon Apr 24 11:28:21 2006
    VERSION              37
    And in SM21, I am getting following description
    Communication error, CPIC return code 020, SAP return code 665
    Following are the things I have checked..
    1. RFC destination user checked, password reset in SM59 and in the target system
    2. checked entries in /etc/services - Entry sapgw03 is present.
    Please let me know what all things I need to check.
    Thanks and Regards,
    Vaibhav

    I solved the problem by myself.
    The problem was with the entry in services file only.
    I was checking the file on Target system, which had the entry. There was no entry in Host system services file. After modifying the file, the connection now works fine.
    Thus for RFC connection, entry of the target system gateway MUST be there in /etc/service of Host system.
    Regards,
    Vaibhav

  • RFC Communication error when doing initial indexing

    Hello Everyone,
    I have a quick question, when doing the initial index rollup for a BIA index the job is failing with RFC communication error.
    We currently have the setting related to " TREXRfcServer threads" set to "Automatic Changes" in order to avoid the RFC Communication errors when loading big loads in BI system.
    We currently are on Revision 49.
    I also have referred to OSS Note 1138603.
    The issue is when I am rolling up the BIA Index the rollup job is failing with RFC Communication errors.
    The Global parameters within BIA are:
    BATCHPARA - 2
    NUMPROC - 5
    PKGSIZE - 10000000
    SUBPKGSIZE - 20000
    We have two app servers with 52 Dialog processes and 25 Background processes.
    Any help would be really appreciated.
    Thanks
    Dharma.

    Removing references to systems and ports
    Issue:
    When the initial indexing is being carried out for an InfoCube to
    create the BIA Index and there is more than one application server in
    the system the job is failing with the http error.
    Hello Everyone,
    Thanks for the input, after the automatic changes was configured for concurrent requests the error is different right now.
    The error message is,
    "Remote communication failure with partner http://<Removed>:<removed>/indexCellTable"
    Overview/Background:
    When the indexing job is triggered as a background job the failure happens when the S table index is being filled.
    In our system where we are trying to do the stress testing we currently have two app servers and one central instance.
    When I limit the RFCGROUP in RSDDTREXADMIN table to one App server in terms of logon group the job finishes fine.
    Whereas, when I do not limit the RFCGROUP and all app servers are open for access the background job finishes with the error message
    Remote communication failure with partner http://<Removed>:<removed>/indexCellTable.
    We have looked into the OSS Note 1102652 and our BASIS team confirmed that they were able to ping from BI App servers into BIA blades and vice versa.
    We also confirmed if the local gateway was used for connectivity.
    The above issue was not in other systems where we only had one server.
    We currently are at Revision 49 and SP 13 in BI.
    We have E5345 Clowertown blades (2 x 4) 16GB blades.
    Please let us know if you need additional information.
    Thanks in advance for the input.
    Dharma.
    Edited by: Arun Varadarajan on Apr 24, 2009 1:36 AM

  • Java communication error - RFC destination NOT_CONFIGURED does not exist

    Hello,
    We are facing problem when sending reports(BEx Quert) through broadcasting to the users. We are getting the error "Java communication error RFC destination NOT_CONFIGURED does not exist"  in the Log Display (Tcode: RSRD_ADMIN).
    In the broadcasting setting, if we select variable values in the tab "General Precalculation" then we can able to send the report to user, instead of selecting variable values, if we use the option "User Specific" check box in the tab Receipient(s) (which will take selection from the role authorizations defined in the respective user roles), then we are getting the above error.
    Recently we have upgraded suppor package, please find the system details below
    P_BASIS - SAPKB70025
    PI_BASIS - SAPKIPYM12
    SAP_BW - SAPKW70027
    Java - Support Package 25
    We didn't change any roles and authorizations recently, just upgraded to latest SP. Can anyone suggest if any steps or checks need to be perfomed after applying these SP or missing anything?
    Thanks in advance
    Regards,
    Venkatesh

    Hi,
    This is configuration issue. Please check the configuration between BW and EP below link:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0a5216a-349c-2a10-9baf-9d4797349f6a?QuickLink=index&overridelayout=true
    Thanks,
    Venkat

  • Error in RFC communication with Collaboration Room API

    I am trying to setup collaboration rooms integration with learning solution.
    while trying to fetch templates, existing rooms available on portal into R/3 (ecc 6) we are getting this error
    "Error in RFC communication with Collaboration Room API"
    i am trying to perform
    SPRO>Training & Event Management>SAP Learning Solution>Training management>Integration>Collaboration room.>Edit Room Profiles and
    Edit Role Profiles
    we have setup all SSO parameters required for this communication.
    Subhash
    Message was edited by:
            subhash soni

    Hi All,
    I'm having the same problem myself...  There is another simmilar thread at:
    [/message/448277#448277 [original link is broken];
    It seems that thread has progressed further that this one.
    Both seem to be errors connecting LSO to Collaboration rooms.  I'm getting both error messages when I try to do the same API connection functions from different points in the system, so I'm guessing that they are the same error.   IT seems to be an SSO issue.
    Regards,
    Matt

  • Error in RFC communication:imsdefault_reg

    hi
    iam getting this error in trex admin toool..please advice me to resolve this
    error in RFC communication:imsdefault_reg
    prabash

    Hi Prabash,
    could be a handful of reasons.
    Please open a support message to SAP and grant remote access to your system. Apart from that, please consult the documentation on RFC connection to TREX:
    http://help.sap.com/saphelp_erp2005/helpdata/en/19/752e4241f51a2ae10000000a1550b0/frameset.htm
    Best, Karsten

  • "COMMUNICATION FAILURE" during JCo call. Error opening RFC connection

    Hi
    I am trying the following scenario
    /people/varadharajan.krishnasamy/blog/2007/05/11/how-to-use-digital-certificates-for-signing-encrypting-messages-in-xi
    In SM 59 test connection of AI_RUNTIME_JCOSERVER throws error " Error opening RFC connection"
    Do I need to activate any service in SICF and do I need to do any IE configuration (sxmb_adm)
    pls let me know the steps to solve this
    thanks
    manian

    Hi Manian,
    pls chk with ABAP system tha tu have given the correct PWD and CLNT No
    Use
    You need to create the following RFC destinations with both transaction SM59 (ABAP) and the Visual Administrator (Java):
    ●     AI_RUNTIME_JCOSERVER
    Points from the Integration Server to the mapping runtime. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used for the mapping runtime, value mapping, and the exchange profile).
    ●     AI_DIRECTORY_JCOSERVER
    Points from the Integration Server to the Integration Builder. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used to refresh the runtime cache).
    ●     LCRSAPRFC
    The RFC destination LCRSAPRFC is required for the connection to the System Landscape Directory (SLD). It is used to read the exchange profile.
    ●     SAPSLDAPI
    The RFC destination SAPSLDAPI is required for the connection to the SLD. It is used by the ABAP API.
    Depending on your client settings, it may be necessary to log on to your Integration Server host as SAP system user with the authorization to maintain customizing tables and to release transport orders.
    User SAP* or DDIC does not have these authorizations
    Thanx
    Sampath

  • EWAF 016Due to a communications error method GET_CHQ_BOUNCE_INFO could...

    Hello Everyone,
    I have developed a generic sync appln. After deployment, on execution i get the foll error/return message..
    "<b>EWAF 016Due to a communications error method GET_CHQ_BOUNCE_INFO could not be executed</b>"
    I have done the mapppings in the table BWAFMAPP and MEMAPPDEST.
    I have also tested the RFC connection and also tried remote logon. Alls working fine.
    My wrapper is also remote-enabled.
    To check the RFC connection i have also tried calling the wrapper which is in the b/e from a test FM in the middleware. Even that is working.
    The configuration I am using is :-
    MI 25 SP 13 Patch 00
    WAS release 640
    b/e R/3 release 700(ECC 6.0)
    Kindly help me with this.
    Thanks & Regards,
    Saurabh.

    Hi Craig,
    I was actually not using the f4 help of the
    IF_BSP_SERVICES class. Now I want to implement this as I have got many fields on my page. But I am getting the above mentioned error while doing this. The Code in OnInitialization() is:
    data: dataref1 type ref to data.
    data:wa_r8t_prog type ZR8T_S_API_PROG_H.
    get reference of wa_r8t_prog-ZR8CPRGTY into dataref1.
    try.
    call method runtime->ddic_utils->get_simple_helpvalues
    exporting
    data_object_ref = dataref1
    changing
    helpvalue_tab = t_vallist.
    catch cx_bsp_services.
    endtry.
    But I have a search help attached to 'ZR8T_S_API_PROG_H-ZR8CPRGTY' field
    My 'ZR8T_S_API_PROG_H' structure definition is as follows:
    .INCLUDE     ZR8T_REBATE_PROG          0     0     Rebate Program
    ZR8CPRGID     /BIC/OIZR8CPRGID     CHAR     32     0     Rebate Program ID
    COMP_CODE     /BI0/OICOMP_CODE     CHAR     4     0     Company Code
    ZR8CPRGTY     /BIC/OIZR8CPRGTY     CHAR     5     0     Program type
    Can I get f4 help from search help exits or do I have to use only value tables?
    Regards
    Tejaswini
    Message was edited by: Tejaswini Das

Maybe you are looking for