var suchDev;
string indexSM;
var Smess;
string finde;
var stelle;
var stelle2;
var geraet=dom.GetObject(28);!    ===  Alle System ServiceMeldungen

foreach(indexSM, geraet.EnumUsedIDs())
{
  Smess=dom.GetObject(indexSM);
  if(Smess.State())
  {!   ===  Wenn Status aktiv dann...
    finde="BidCos-RF." # Smess.Name().Substr(3);
    suchDev=dom.GetObject(finde);
    Write(Smess.Timestamp().Format("%Y-%m-%d %H:%M")#";");
    var istDev=dom.GetObject(suchDev.Device());
    stelle=istDev.Name().Find(":");
    stelle2=Smess.Name().Find(".");
    Write(istDev.Name().Substr(0,stelle) # ";");
    WriteLine(Smess.Name().Substr(stelle2+1));
  }
}
