SAP XI: SQL Queries to Check Messages in AFW
Number of Messages by Status:
select status, count(1) as
current_number fromsap[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) fromsap[sid]db.xi_af_msg
where status like 'NDLV';
COUNT(1)
----------
17
Messages Processed after a Certain Time:
select * fromsap[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
select status, count(1) as
current_number from
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
where status like 'NDLV';
COUNT(1)
----------
17
Messages Processed after a Certain Time:
select * from
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.
Hello,
ReplyDeleteIt tried to turn it off and on again :)
The same table in PI 7.1 is BC_MSG