SAP XI: SQL Queries to Check Messages in AFW

Number of Messages by Status:

select status, count(1) as
current_number from sap[sid]db.xi_af_msg
group by status;

STATUS CURRENT_NUMBER
------------ --------------
DLNG 20
DLVD 460529
FAIL 19
NDLV 17
TBDL 64

Messages With a Particular Status (ex: NDLV):

select count(1) from
sap[sid]db.xi_af_msg
where status like 'NDLV';

COUNT(1)
----------
17

Messages Processed after a Certain Time:

select * from
sap[sid]db.xi_af_msg
where sent_recv_time > [time]
and node = [node id];

These tables don't seem to exist in PI 7.1 with the same name


Edit:
BC_MSG is the table name in PI 7.1. Thanks to JustMe for providing the table name.

Comments

  1. Hello,

    It tried to turn it off and on again :)

    The same table in PI 7.1 is BC_MSG

    ReplyDelete

Post a Comment

Popular posts from this blog

OS/DB Migration - CMD. STR, TOC, EXT, R3load, DDLDBS.TPL and more

Fixing Inconsistent Table - Table activation fails due to inconsistency between DD and DB

301 Redirect Using SAP Web Dispatcher