select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = ‘A’.select single txtlg from RSZELTTXT into querydet-querydesc where ELTUID = querydets-queryid and objvers = ‘A’.

loop at queryuid into querydets.select single compID from rszcompdir into querydet-querytechname where COMPUID = querydets-queryid and OBJVERS = ‘A’.select viewid from rszwview into table viewtab where compid = querydet-querytechname and objvers = ‘A’.

loop at viewtab into viewdetails. select single TXTLG from RSZWOBJTXT into viewdesc where objid = viewdetails-viewtechname.