"
Supported by

Is that RFC system alive?

You want to call an RFC function in another system but, because you’re not a carrion eater, you only want to do it if it’s alive.

Hence, you need a way of checking whether that particular destination RFC system is alive.

How do you do that?

Charles Santana does it like this:


DATE: rfcdest         TYPE rfcdest,
           ping_status TYPE /sdf/e2e_traffic_light_numeric.

CALL FUNCTION '/SDF/RFC_CHECK'
 EXPORTING
   iv_destination = rfcdest
   iv_ping        = 'X'
*    iv_logon       = 'X'
*    iv_latency     = 'X'
 IMPORTING
   ev_ping_status = ping_status.
if lv_ping_status <> 1.
* it’s dead.
endif.

Thanks Charles.

Greetings from Abapinho.

2 comentários a “Is that RFC system alive?”

  1. Marta Varino Diz:

    Obrigada por esta partilha. Hoje tive necessidade de usar este MF, mas atenção que os parâmetros de entrada são todos obrigatórios.

  2. Nuno Godinho Diz:

    Olá Marta, obrigado. Actualizei o código para ter todos os parâmetros obrigatórios.

Deixe um comentário


About Abapinho
Abapinho runs on WordPress
Articles (RSS) e Comments (RSS).