0 Flares Twitter 0 Facebook 0 Filament.io 0 Flares ×

Bom dia

Dica básica, porém bem interessante para quem quer levantar os usuários e suas responsabilidades no EBS:

Como apps:

SELECT
SUBSTR(USU.USER_NAME,1,30) AS NAME,
SUBSTR(APPL.APPLICATION_SHORT_NAME,1,15) AS APPLICATION_SHORT_NAME,
SUBSTR(APPLTL.APPLICATION_NAME,1,50) AS APPLICATION_NAME,
RESP.RESPONSIBILITY_KEY,
RESPTL.RESPONSIBILITY_NAME
FROM
APPS.FND_USER_RESP_GROUPS_DIRECT URESP
JOIN APPS.FND_USER USU ON
USU.USER_ID = URESP.USER_ID
JOIN APPS.FND_RESPONSIBILITY RESP ON
RESP.RESPONSIBILITY_ID = URESP.RESPONSIBILITY_ID AND
RESP.APPLICATION_ID = URESP.RESPONSIBILITY_APPLICATION_ID
JOIN APPS.FND_RESPONSIBILITY_TL RESPTL ON
RESPTL.RESPONSIBILITY_ID = URESP.RESPONSIBILITY_ID AND
RESPTL.APPLICATION_ID = URESP.RESPONSIBILITY_APPLICATION_ID
JOIN APPS.FND_APPLICATION APPL ON
APPL.APPLICATION_ID = RESP.APPLICATION_ID
JOIN APPS.FND_APPLICATION_TL APPLTL ON
APPLTL.APPLICATION_ID = RESP.APPLICATION_ID
WHERE
RESP.END_DATE IS NULL AND
RESPTL.LANGUAGE = ‘PTB’ AND
APPLTL.LANGUAGE = ‘PTB’ AND
USU.END_DATE IS NULL AND
RESP.END_DATE IS NULL AND
URESP.END_DATE IS NULL AND
USU.USER_NAME != ‘SYSADMIN’
ORDER BY
APPL.APPLICATION_SHORT_NAME,
APPLTL.APPLICATION_NAME,
USU.USER_NAME;

Aqui não está sendo considerado o SYSADMIN e somente está sendo filtrado o que é PTB. Com algumas alterações fica fácil de conseguir várias informações.

Claro que existe também um concurrent no EBS que gera um relatório com essa informação. Essa maneira acima é apenas mais uma forma de conseguir as responsabilidades dos usuários.

Até amanhã…

Abraço
Mario

Leave a Reply

Your email address will not be published. Required fields are marked *