How to catch a dump occured on backend(a remote system) from frontend

Hi All,
    I have a specific requirement wherein, i should be able to catch the dump/any system error occured on a backend system and i need to display a message in a proper format instead of showing the actual dump. I communicate with backend( R/3 4.7) from webdynpro for abap using RFC call. If anyone has any clue regarding this please reply..
Thanks in advance
Ashok

Hi Ashok,
This is very simple. Return error messages from RFC if any now in web dynpro handle those error messages using the message manager call method REPORT_ERROR_MESSAGE.
Check the sample code below.
call function BAPI_XXXXXXX
  importing
     et_error  = lt_error.
  get message manager
  DATA lo_api_controller     TYPE REF TO if_wd_controller.
  DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
  lo_api_controller ?= wd_this->wd_get_api( ).
  CALL METHOD lo_api_controller->get_message_manager
    RECEIVING
      message_manager = lo_message_manager
Loop at lt_error into ls_error.
  report message
  CALL METHOD lo_message_manager->report_error_message
    EXPORTING
      message_text              = ls_error-message
     params                    =
     msg_user_data             =
     is_permanent              = ABAP_FALSE
     scope_permanent_msg       = CO_MSG_SCOPE_CONTROLLER
     view                      =
     show_as_popup             =
     controller_permanent_msg  =
     msg_index                 =
     cancel_navigation         =
     enable_message_navigation =
  receiving
   message_id                =
endloop.

Similar Messages

  • How to catch the error occurred in Integration Process, and then save it?

    1. how to catch the error occurred in Integration Process, and then save the detailed error message to the file?
    2. there are fault message type for inbound message interface, how to use the fault message type in IR?
    Thanks,
    Michael
    Message was edited by: Spring Tang
    inital
    Message was edited by: Spring Tang
    detailed message output
    Message was edited by: Spring Tang
    fault message type

    Hi Spring,
    If u give an exception step along with your Transformation Step, whenever some error occurs in your message mapping, this exception block wil be triggered.
    You can configure your exception block to do all exception processing that you want. This exception handling is like any other java Exceptio n Handler. You can do anything that you want in your exception handler block on the basis of your requirements.
    <i>If an exception is triggered at runtime, the system first searches for the relevant exception handler in surrounding blocks. If it does not find the correct exception handler, it continues the search in the next block in the block hierarchy.
    When the system finds the correct system handler, it stops all active steps in the block in which the exception handler is defined and then continues processing in the exception handler branch. Once the exception handler has finished processing, the process is continued after the block.
    If the system fails to find an exception handler, it terminates the integration process with an error.</i>
    Regards,
    Bhavesh

  • How to call an EXE file on a remote system from SAP system?

    Hi Friends,
    I want to execute an EXE file existing on the remote system from SAP system. Could some one give me an idea of how to execute that?
    Thanx in advance,
    Ram

    Hi Ram,
    Try this
    SXPG_COMMAND_EXECUTE
    Reward if this helps,
    Satish

  • How to run TestStand script on a remote system from a TestStand script?

    I would like to run a test stand script on a remote system from within another TestStand script. How can this be done?

    Hi EyaID,
    I believe you are looking for the Remote Sequence Call feature. Look at this last paragraph in this knowledge base and section 5-18 of the TestStand Reference Manual for more help:
    How can I Call an External Sequence with Parameters when the Sequence is Located on Another Computer...
    Regards,

  • How to call a RFC of a remote system from an ABAP webdynpro component

    Dear Experts,
    I am a newbie in ABAP Webdynpro.
    I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
    How do I do that ?? Please help.
    Regards,
    Mamai.

    Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
    And the regarding the method of calling it depends on your FM.
    if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
    if it is simple straight forward RFC you can directly call it.
    for creating RFC service call call use this method
    1. Starting the Wizard
    To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
    workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
    through the creation process.
    Press Continue.
    2. Choice of Controller
    On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
    controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
    global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
    embed service calls in view controllers.
    a. Select radio button Use Existent Controller
    b. Do not change the default entry for component: <CC name>
    c. Enter for controller COMPONENTCONTROLLER
    d. Press Continue.
    3. Service Type and Service Selection
    a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
    destination here. Press Continue.
    b. Select the service: for Function Module enter <RFC name>. Press Continue.
    4. The Required Methods and Context Elements
    On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
    required by the service call as well as to the required methods. The proposed names are based on the names of the
    embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
    box.
    a. Adapt Context: Select from Nodes/Attributes . Press Continue.
    b. Specify Method Name: leave all entries as provided: Component:  Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
    5. Completing the Choice
    When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
    and contexts at your disposal for using them within your Web Dynpro component.
    or if you want to call directly the use the call statement with destination

  • HT2905 Any ideas on how to catch duplicates now that the option has been removed from the file dropdown?

    So the new iTunes update removed the "Find Exact Duplicates" function.  What's replaced it?

    If you have all your music on the cmputer then i would connect up my phone uncheck the Sync Music option and apply.
    This should take all the music off your phone .Then you can resync the music back on to it.
    If this doesn't work maybe a restore to factory settings and start from scratch is the way to go

  • How to consume a web service provided by third party system from SAP system

    Hi Friends,
    Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
    Do we get an URL to create a client proxy for consuming the web service?
    Thanx in advance,
    Ram

    Hi Ram,
    of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
    <soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
    which is the actual adress of the service.
    An example service can be found here:
    <a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
    containing the WSDL URL at
    <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
    You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
    have fun,
    anton

  • How can I publish an ics file to a remote server from my calendar server?

    I am running Lion Server and have Calendar Service up and running. I have an account with a couple of calendars, one of which I'd like to publish to a remote server, as an .ics file.
    From an iCal client it is possible to publish local calendars, but not remote calendars (for which the only option seems to be to 'Share').
    How can I can I publish an ics file to a remote server? Programatically, if necessary.

    I have this working now.
    curl -s --digest -u username:password -o calendar.ics http://hostname:8008/calendars/users/username/calendar/
    generates the .ics file, and a combination of cadaver (from webdav.org) and an expect script upload hourly (via cron) to the remote server:
    set timeout 60
    spawn /usr/local/bin/cadaver
    expect "dav"
    send "open https://remotehost/path/\r"
    expect "Do you wish to accept the certificate? (y/n)"
    send "y\r"
    expect "dav"
    send "put calendar.ics\r"
    expect "dav"
    send "close\r"
    expect "dav"
    send "quit\r"

  • How to get data in the remote system from local system.

    Hi everybody,
    I have developed four classes.
    FileInterface.java:-
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface FileInterface extends Remote {
    public byte[] downloadFile(String fileName) throws
    RemoteException;
    FileServer.java:-
    import java.io.*;
    import java.rmi.*;
    public class FileServer {
    public static void main(String argv[]) {
    if(System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    FileInterface fi = new FileImpl("FileServer");
    Naming.rebind("//10.161.15.219/FileServer", fi);
    } catch(Exception e) {
    System.out.println("FileServer: "+e.getMessage());
    e.printStackTrace();
    FileImpl.java:-
    import java.io.*;
    import java.rmi.*;
    import java.rmi.server.UnicastRemoteObject;
    public class FileImpl extends UnicastRemoteObject
    implements FileInterface {
    private String name;
    public FileImpl(String s) throws RemoteException{
    super();
    name = s;
    public byte[] downloadFile(String fileName){
    try {
    File file = new File(fileName);
    byte buffer[] = new byte[(int)file.length()];
    BufferedInputStream input = new
    BufferedInputStream(new FileInputStream(fileName));
    input.read(buffer,0,buffer.length);
    input.close();
    return(buffer);
    } catch(Exception e){
    System.out.println("FileImpl: "+e.getMessage());
    e.printStackTrace();
    return(null);
    FileClient.java:-
    import java.io.*;
    import java.rmi.*;
    public class FileClient{
    public static void main(String argv[]) {
    if(argv.length != 2) {
    System.out.println("Usage: java FileClient fileName machineName");
    System.exit(0);
    try {
    String name = "//" + argv[1] + "/FileServer";
    FileInterface fi = (FileInterface) Naming.lookup(name);
    byte[] filedata = fi.downloadFile(argv[0]);
    File file = new File(argv[0]);
    BufferedOutputStream output = new
    BufferedOutputStream(new FileOutputStream(file.getName()));
    output.write(filedata,0,filedata.length);
    output.flush();
    output.close();
    } catch(Exception e) {
    System.err.println("FileServer exception: "+ e.getMessage());
    e.printStackTrace();
    After that when i compile classes when i give the command as
    rmic FileImpl
    in command prompt error is coming like this.
    error: Class FileImpl not found.
    *1 error*
    Can anyone help me please,urgent.

    It is generating stub and skeleton classes but when iam running FileClient after starting rmiregistry,it is coming something like
    FileServer exception: FileServer
    java.rmi.NotBoundException: FileServer
         at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Naming.java:84)
         at FileClient.main(FileClient.java:9)
    Can u help me

  • How can you verify if a vi on a remote system is running?

    Is there a way to positivly determine if a VI is running using VI server? I have a standard PC peer to peer networked to a PXI chassis. Reading a boolean on the remote vi works unless the vi was shut down incorrectly as the boolean stays at it's last state. I know you can check to see if a vi is in memory, can you check the status of it as to whether it is running or not?
    thanks

    Under VI properties, execution, state. Reading this will give you that information.

  • How to invoke a Batch file in a remote system from JSP

    Hi,
    Please help me. Its urgent. Here is the problem.
    I have Tomcat Server installed in machine A and I have .bat or a perl script file in an another system called Machine B in the same LAN. I want to invoke the .bat file or shell script in the machine B from my JSP running in Tomcat in Machine A. Help is appreciated.

    The first thing to be done is that the bat / perl script file should be shared at the remote machine. Means that could be accessed by giving any url.
    After that read that file in jsp by opening file input stream for that file and create/save the file by same name at the machine from where the jsp is running by creating file output stream.
    Once the file gets created at the machine, execute that by Runtime.exec method. Don't forget to close the streams just after the reading/writting.

  • How to catch dump in background spool

    Hi Experts,
      I am a fresher and in background I want to execute a program, which is creating dump in production server and which I am not able to see the screenshots. The dump occurs, as I raise error message in start of selection. Can I see the dump output in spool or anything in testing server, forwhich I am authorised in my company. Could you say how to catch the dump. Should I eliminate the error messages or could I catch the error message also. Please help for this.
    Thanks and regards,
    Venkat, IBM.

    Hi Venkat,
    You will have to get the necessary authzn to production server for ST22 transaction.
    There is no way to access the dump of production server from Unit testing client.
    Other alternative could be to simulate the same program in background in Unit testing server & check whether it dumps.
    Schedule a job in SM36 for the same program in Quality/Unit testing client & check the output.
    Best regards,
    Prashant

  • How to Connect Backend R/3 system to EP 2004S

    Hi Friends - I am new in the EP field. We have installed EP.
    We want to connect to backend R/3 system from EP.
    I have created a system for the backend R3 ECC system. But the connection test is failing.
    "Test Connection with Connector
    Results
    Retrieval of default alias successful
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct."
    Also the ITS and WAS tests are also failing.
    "SAP Web AS Connection
    Results
    1. The system ID is valid
    2. Retrieval of the system was successful
    3. The system object represents an SAP system
    4. The following parameters are valid: WAS Protocol (http) WAS Host Name (mb1es1005.idcsap.com:8001)
    5. HTTP/S connection failed"
    Can you pls guide me on how to configure the same?
    1. What are the step wise configurations I have to do?
    2. Is there any configuration I have to do in the R3 system? ike RFC connections and other settings?
    3. What are the settings I have to do in the EP system?
    Pls guide me on the same.
    Thanks in advance and warm regards
    Purnendu

    Hi Maiti,
    first thing is, first try with user mapping, if you succed in this then only go for login tickets method. both are different ways to connect to R/3 systems under SSO.
    create system by selecting template for "sap system using dedicated application server".
    then add the follo parameters:
    Application host: ur FQDN for R/3 system
    Gateway host: same as Application host
    Gateway service: sapgw00
    Logon method: select Uid/PW
    Remote host type:select 3
    SAP client: enter ur SAP client (001 generally)
    SAP SID: ur SID
    SAP Sys number:00 (or 01 )
    server port: 3200
    System type: select R/3
    user mapping type: select admin/user
    validate connection: no
    (no need to set ITS and other properties they are optioal).
    this much settings are enough. Then add a system alias for your system, by going in properties and select System Aliases.
    now go in user admin, search for your current user, click on modify, click on user mappings..select your system, provide login id and password for your R/3 system.
    save it.
    Go ahead and create iVIew (Transaction iView) even though your connection test fails, it works. it will connect to ur backend R/3 system via iView without any error.
    hope this helps you...
    Regards,
    Yogesh...

  • How to config DAQmx device on remote system

    How can I set the DAQmx device on the remote system? I have NI-7831R on a desktop, but when I open MAX on my lap top which is connected to the desktop I can't see the device? Should I do something to configure the device? 

    The 7831R is not a DAQmx device, so it should not show up under your DAQmx devices.  It should show up in MAX on the computer it is installed in as as a RIO device.  However this will only show up if you have NI-RIO driver installed on the system as well.  What version of NI-RIO are you using?
    David_L | Certified LabVIEW Architect
    LabVIEW Tools Network | LabVIEW Tools Network Developer Center

  • 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

Maybe you are looking for