cancel
Showing results for 
Search instead for 
Did you mean: 

Client Name/IP in Approval Decision Report

Former Member
0 Kudos

How to include Client name /IP in approval decision report?.I wrote this query but it output some duplicated values with all the  machine names in my domain.

SELECT USR5.ClientName,DocNum,CardCode,CardName,OWDD.OwnerID,USR5.ActionBy,WDD1.Status,OWDD.WtmCode,OWDD.Status,ODRF.DocDate,DocDueDate FROM ODRF

INNER JOIN OWDD ON ODRF.DocEntry = OWDD.DocEntry

INNER JOIN WDD1 ON OWDD.WddCode = WDD1.WddCode

INNER JOIN OUSR ON WDD1.UserID = OUSR.USERID

INNER JOIN USR5 ON OUSR.USER_CODE = USR5.UserCode

WHERE ODRF.DocDate = '20150101'

order by  DocDate

Accepted Solutions (1)

Accepted Solutions (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Try:

SELECT distinct  USR5.ClientName,DocNum,CardCode,CardName,OWDD.OwnerID,USR5.ActionBy,WDD1.Status,OWDD.WtmCode,OWDD.Status,ODRF.DocDate,DocDueDate FROM ODRF
INNER JOIN OWDD ON ODRF.DocEntry = OWDD.DocEntry

INNER JOIN WDD1 ON OWDD.WddCode = WDD1.WddCode

INNER JOIN OUSR ON WDD1.UserID = OUSR.USERID

INNER JOIN USR5 ON OUSR.USER_CODE = USR5.UserCode and OUSR.USER_CODE = USR5.[ActionBy]

where OWDD.docdate = USR5.date and ODRF.DocDate = '20150101'
order by  DocDate

Former Member
0 Kudos

Nagarajan,

But Please check the output i getting.There is no way 'Ananthu-PC' & 'SAJI ' will do the approval.Think that something went wrong in this query. I'm getting the same issue while using USR5 on any queries.Also please include originator user name .

kothandaraman_nagarajan
Active Contributor
0 Kudos

Is it possible to post your approval decision report here to check?

Former Member
0 Kudos

Nagarajan ,

Sure .Please see the Scrn. Shot.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Thanks for attachment. Again tested my query and getting required result.

Test above query in test DB  and let me know if any finding.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Any update?

Former Member
0 Kudos

Nagarajan ,

The  issue is still there.Many sap users are seems as logged in from different client machines like in the screen shot provided .

Answers (1)

Answers (1)

former_member209066
Active Contributor
0 Kudos

Hi,

Check This

SELECT  Distinct USR5.ClientName,USR5.ClientIP,DocNum,CardCode,CardName,OWDD.OwnerID,USR5.ActionBy,WDD1.Status,OWDD.WtmCode,OWDD.Status,ODRF.DocDate,DocDueDate FROM ODRF

INNER JOIN OWDD ON ODRF.DocEntry = OWDD.DocEntry

INNER JOIN WDD1 ON OWDD.WddCode = WDD1.WddCode

INNER JOIN OUSR ON WDD1.UserID = OUSR.USERID

INNER JOIN USR5 ON OUSR.USER_CODE = USR5.UserCode

WHERE ODRF.DocDate = '20150101'

order by  DocDate

Thanks,

Nithi

Former Member
0 Kudos

Also tried the same .But its not working .Same issue

former_member209066
Active Contributor
0 Kudos

Hi,

Please post Screenshot.

Thanks,

Nithi

Former Member
0 Kudos

Nithi ,

Please see the Scr.Shot