!--a11y-->
RfcDispatch
で動作する RFC サーバプログラム
/*
メインプログラム */rfc_handle =
RfcAccept (...); /* RFC 接続の受け入れ */if (rfc_handle == RFC_HANDLE_NULL) /*
リターンコードのチェック */rfc_rc =
RfcInstallFunction ( ’ ABC ’ , abc_function , ...);if (rfc_rc != RFC_OK) /*
リターンコードのチェック */実行
/* 接続が閉じるか終了するまで、 */}
while ( rfc_rc == RFC_OK ); /* 実行を */ /* 待機。 */RfcClose
(...); /* RFC 接続を閉じる */
/* RFC
機能 : ’ ABC ’ */static RFC_RC
abc_function (RFC_HANDLE rfc_handle)rfc_error_handling(
” RfcGetData ” );... /* RFC
データの処理 */rfc_rc =
RfcSendData (...); /*ABAP プログラムに結果をレポート */return 0; /* RFC
ライブラリへ戻る */
