How to check if a system is not down??

Hi All,
I have a requirement in which i have to call a RFC, from a report, which resides in a different system. if the destination system is down at that moment of time then my report program gives short dump.
Please suggest me.. if there is any way or standard function module or anything of the kind to check if the destination system is not down.. so that i may give error message instead of calling the RFC and getting the short dump.
Thanks in advance,
Shradhanjali

Hello Maen,
Nothing wrong with RFC_PING My point is why use it unnecessarily!
Ofcourse if you've more than one RFM calls to the same RFC destination then using RFC_PING to check the connectivity makes sense. But if you've one RFM call you can check the connectivity in the RFM call itself.
Something like this:
CALL FUNCTION 'RFC_PING'
  DESTINATION 'ZTESTSDN'
  EXCEPTIONS
    system_failure        = 1  MESSAGE v_msg
    communication_failure = 2  MESSAGE v_msg.
IF sy-subrc NE 0.
  MESSAGE 'Cannot Connect to the Destination' TYPE 'E'.
ENDIF.
* Call the RFMs only if the RFC_PING succeeds
CALL FUNCTION 'Z_TEST_RFC1' DESTINATION 'ZTESTSDN'.
CALL FUNCTION 'Z_TEST_RFC2' DESTINATION 'ZTESTSDN'.
For single calls:
CALL FUNCTION 'Z_TEST_RFC1'
  DESTINATION 'ZTESTSDN'
  EXCEPTIONS
    system_failure        = 1  MESSAGE v_msg
    communication_failure = 2  MESSAGE v_msg.
IF sy-subrc NE 0.
  MESSAGE 'Cannot Connect to the Destination' TYPE 'E'.
ENDIF.
Anyway SAP recommends to use these predefined RFC Exceptions for every RFM call. A quote from the SAP documentation:
We strongly recommend that you assign a return value to both these exceptions for every RFC, and that you handle this return value, as otherwise a runtime error will occur in the exception situations in question.
Hope i'm clear.
BR,
Suhas

Similar Messages

  • How to check internal table sorted or not

    Hi all
    I need to check internal table sorted or not which is without header line and having only one field and six values. please let me know how to check it is sorted or not because i need to display message if it is not sorted.
    thanks,
    Minal

    Hi Minal,
    Go through  this info.
    Sorted tables
    This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
    Stable sort
    The option
    SORT <itab> ... STABLE.
    allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.
    Examples
    DATA: BEGIN OF LINE,
            LAND(3)  TYPE C,
            NAME(10) TYPE C,
            AGE      TYPE I,
            WEIGHT   TYPE P DECIMALS 2,
          END OF LINE.
    DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.
    LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.
    LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.
    LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Howard'.
    LINE-AGE  = 40.    LINE-WEIGHT = '95.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'GB'.  LINE-NAME   = 'Jenny'.
    LINE-AGE  = 18.    LINE-WEIGHT = '50.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'F'.   LINE-NAME   = 'Michele'.
    LINE-AGE  = 30.    LINE-WEIGHT = '60.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'G'.   LINE-NAME   = 'Karl'.
    LINE-AGE  = 60.    LINE-WEIGHT = '75.00'.
    APPEND LINE TO ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB STABLE.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.
    PERFORM LOOP_AT_ITAB.
    FORM LOOP_AT_ITAB.
      LOOP AT ITAB INTO LINE.
        WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.
      ENDLOOP.
      SKIP.
    ENDFORM.
    ************rewords some points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • How to check table is creating or not

    Hi,
    I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
    sql>spool table.log
    sql>@table_partition.sql

    hi,
    I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
    with regards;
    Boo

  • How to check Reconcilliation has happened or not for a payment document

    Hi,
    How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
    Please help.

    Dear,
    If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
    Regards,
    Chintan Joshi.

  • How to check table is NULL or not when a form load?

    How to check table is NULL or not when a form load?
    I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
    Sorry for bad English... 

    Maybe you can do this in form1's Form_Open event:
    if dcount("*", "table1") = 0 then
      Cancel = True
      Docmd.Openform "form2"
    end if
    -Tom. Microsoft Access MVP

  • How to check one table exist or not in SAP

    Hi, Gurus:
    How to check one table exist or not in the SAP.
    Thanks,

    Hi,
    Query the table DD02L..
    Select single * from DD02L where tabname = 'Your table name'
                          AND TABCLASS = 'TRANSP'.  " For transparent tables.
    Thanks
    Naren

  • How to check oracle properly installed or not?

    Hello Friends,
    How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
    i want to check installation made properly or not.
    Thanks,
    Nikunj Patel

    Installation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
    First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
    The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
    The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
    Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
    10g Release 2 (10.2) for AIX
    Part Number B14201-04
    ~ Madrid

  • How to Uninstall Yosemite?  System does not allow Erase the HD, nor does it allow re-install of original O/S Disc (10.6.7).  I want Mavericks or even Lion Back.   Thanks.

    How to Uninstall Yosemite?  System does not allow Erase the HD, nor does it allow re-install of original O/S Disc (10.6.7).  I want Mavericks or even Lion Back.   Thanks.

    Start with reinstalling Snow Leopard:
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1 Access the App Store to download Mountain Lion or Yosemite. Mavericks is no longer available since the release of Yosemite. If you purchased Mountain Lion from the App Store, then you can redownload it via your Purchases page in App Store. If not, then you will need to purchase it from Apple;
    Purchase a redemption code at the Online Apple Store: OS X Mountain Lion. Mountain Lion is $19.99 plus tax. Use the code to redeem a download of Mountain Lion from the App Store. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.

  • How to check whether the system has eclipse environment: urgent

    Hi gurus
    can you please tell me how to check whether my crm system has eclipse envirionment.
    Thanks
    shashi

    There is no way to check whether a system is used productively or not, I believe what you mean is checking a client is productive or not in an ABAP-stack based system. Remember although a SAP ABAP system is identified by a SID but from a business perspective the system is recognized by a client, as it is a unique business identity.
    Thus, to check whether the client is productive or not in txn SCC4 check the role of the client, it will show you the correct status. The data of SCC4 is stored in table T000, you can also opt to check that.
    - Regards, Dibya

  • How to check program is running or not

    Hi,
    Is it possible to check whether a program is running or not?
    I know when you try to compile a package which is running, oracle does not allow you compile it, it hangs. That is, somehow, Oracle knows the program is running. How can we check this information?
    Suppose procedure below. If i ran it in one session, how can check that procedure p is running in other session?
    I searched the forum. There is one( checking if a package procedure is already running ) thread but noone has replied.
    Thanks....
    SQL> DROP TABLE T;
    Table dropped
    SQL> CREATE TABLE T AS SELECT DUMMY D FROM DUAL;
    Table created
    SQL> CREATE OR REPLACE PROCEDURE p IS
      2    s VARCHAR2(12);
      3  BEGIN
      4    SELECT d INTO s FROM t;
      5    LOOP
      6      EXIT WHEN s = 'Y';
      7      SELECT d INTO s FROM t;
      8    END LOOP;
      9  END p;
    10  /
    Procedure created
    SQL> exec p;

    I found the answer from another thread.( Package Compilation Hangs )
    Answer is : http://www.ixora.com.au/scripts/sql/executing_packages.sql

  • How to check patch level applied or not?

    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higher
    thanks

    Hi;
    how can i check that bellow patches are applied or not as mentioned for patch no 7427746.
    - FA.M mini-pack or later
    or
    - FIN_PF.E or later
    and
    -ATG H RUP4() or higherPlease check :
    - How to check which Techstack patchsets have been applied [390864.1 ]
    Regard
    Helios

  • How to check mail already read or not?

    Hi everyone
    I am developing an application using javamail api.
    I have no idea how to check mail is already read or answered or seen using javamail api.
    I need to fetch new mail every time. I used DELETE flag ,its working fine but it also delete mail permanently from inbox.
    I want to fetch new mail and already fetched mail is also reside in inbox. but not fetched next time.
    Pls help me.

    Either I'm not understanding you, or you're not understanding JavaMail.
    First, the POP3 protocol supports no permanent flags, as explained in
    http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
    You can set flags on messages, but they won't persist after you close the folder.
    If you set the DELETED flag and close the folder and expunged deleted messages,
    the messages are gone for good.
    That's not a JavaMail limitation, that's a POP3 protocol limitation.
    Again, as explained in the link above, to determine which messages are new you'll
    need to keep some state in your application about which messages you've seen
    and compare that state with the current state of the INBOX. You can use the POP3
    specific UIDL command to help with this.
    Does that help?

  • How to check oracle is running or not

    Hi,
    Can any one help me the command to check whether oracle is running or not, in UNIX flatform.How to check the Disk+Work proess is running or not.

    Option1 :Logon to SAPDBA...U will be able to see whether Oracle is running or not.
    Option 2:
    Sqlplus /nolog;
    connect / as sysdba;
    startup;
    If it is already running: you will get msg that Oracle is already running
    Oprion 3: ps -eaf|grep ora
    to determine whether disp+work is running or not:
    Option 1: ps -eaf|grep sap
    Option 2: dpmon pf = <path of instance profile>
    Reward Points if helpful!

  • How to check value is numeric or not

    hi how to check whether a value is numeric or not.
    example.  data : x type n.
              x = 12345.
    Now how to check whether X contains numeric value or not.

    Hi,
         If your type is 'N' there is no way that 'X' can have any value apart for numberics (i.e. 0 - 9).
    You can also check that as follows.
    Data: num_list(10) type c value '0123456789',
          x type n.
    X = '12345'.
    This is more useful if your X is of type C.
    if X CO num_list.
    Its only numeric
    else.
    its contains non numeric
    endif.
    Regards,
    Sesh

  • How to check  wether local system has blocked by firewall  from program.

    i am a user in my LAN area. i don't have admin rights. in our LAN few system has blocked by firewall others not blocked .
    how can i check wether local host is blocked or not by firewall from java network program ?.

    You can execute some kind of firewall util (if any) and parse output to receive configuration and check is address blocked or no. But if you have no admin rights - it will not help you.
    Actually there is no clear way to detect was packet blocked by FW or just lost somethere.

Maybe you are looking for

  • Mac Mini lagging after upgrading to Mavericks

    Upgraded Mac mini to Mavericks.  System before was running great with no lag time and fast with the internet along with different applications, email, uploading photos, no problem.  After upgrading to Mavericks noticed lag times in logging into diffe

  • Function module "CALL_FILE"

    Hi all, I'm writing an ABAP to generate a text file. In my selection screen, there is a parameter of type RLGRAP-FILENAME for accepting a file path and file name To assist the file input, I use the function module "CALL_FILE" at selection screen on v

  • PO not allowed beyond the target value of contract.

    Hi Forum, I have a Contract, when I create a PO with ref to the Contract, it should not allow the PO to be created beyond the target value of the Contract. Where should I make the configuration settings for this. Whenever the PO created beyond the ta

  • Enhancement set assignement to client which is not in Dev box

    Hi Friends, How to create an entry in BSPWDV_EHSET_ASG for client which is not in DEV box. 800 client is not there in Dev box but its there in Q system. when i try to create directly in Q system its asking for transport request any suggestions. Regar

  • My tool bar won't drop down when I'm online and I can't click out of tabs

    When I'm online, my tool bar won't drop down when I move my mouse to the top of the screen.  I have to keep pushing the ESC key until the screen finally minimizes.  Also, I no longer have the little x in the left corner of my tabs, I have to right cl