@EndUserText.label: 'CDHDR Logs'
define table function ZTF_CDHDR_LOGS
returns {
key client : abap.clnt;
key aufnr: aufnr;
username: cdusername;
FNAME: fieldname;
UpdateDate: abap.dats;
UpdateTime: abap.tims;
}
implemented by method zclget_cdhdr_logs=>zget_cdhdr_logs;
class ZCLGET_CDHDR_LOGS definition
public
final
create public .
public section.
interfaces if_amdp_marker_hdb.
class-methods zget_cdhdr_logs for table function ZTF_CDHDR_LOGS.
protected section.
private section.
ENDCLASS.
CLASS ZCLGET_CDHDR_LOGS IMPLEMENTATION.
method zget_cdhdr_logs
by database function for hdb
language sqlscript
options read-only
using cdhdr cdpos.
return
with pos as ( select max( changenr ) as chnr, FNAME from cdpos
where objectclas = 'ORDER' and
tabname = 'AFKO' and
fname = 'GSTRP'
group by objectid, FNAME)
select
hdr.mandant as client,
substring(hdr.objectid,6,12) as aufnr,
hdr.username,
pos.FNAME,
hdr.udate as UpdateDate,
hdr.utime as UpdateTime
from cdhdr as hdr , pos
where hdr.objectclas = 'ORDER' and
hdr.changenr = pos.chnr
;
endmethod.
ENDCLASS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 |