This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Determine the data relation between SAPGroup and SAPTransaction

Hi All

we do have a larger SAP environment connected to our Q1IM system. The whole environment is synchronized down to the transaction level. We now need to determine which SAP roles contain which transactions and vice versa. I did came up with the following query:

Select t.Ident_SAPTransaction, t.Description, g.GroupName, g.Description

from SAPTransaction t join SAPTransactionHasSAPAuthObject sthsao

on t.UID_SAPTransaction = sthsao.UID_SAPTransaction

join SAPGroupHasAuthObjectElem sghaoe on sghaoe.UID_SAPAuthObject = sthsao.UID_SAPAuthObject

join SAPGroup g on g.UID_SAPGroup = sghaoe.UID_SAPGroup

Does that look correct?

Parents
  • Hi Carsten,

    with your statement you will get the assignments of the transactions to the PROFILES.

    If you need the assignments to the ROLES you need 2 additional joins, e.g.:

    Select t.Ident_SAPTransaction, t.Description, gp.GroupName as 'Profile', gr.GroupName as 'Role'

    from SAPTransaction t

    join SAPTransactionHasSAPAuthObject sthsao on t.UID_SAPTransaction = sthsao.UID_SAPTransaction

    join SAPGroupHasAuthObjectElem sghaoe on sghaoe.UID_SAPAuthObject = sthsao.UID_SAPAuthObject

    join SAPGroup gp /*profile*/ on gp.UID_SAPGroup = sghaoe.UID_SAPGroup

    join SAPGroupInSAPGroup gig on gp.UID_SAPGroup = gig.UID_SAPGroupChild

    join SAPGroup gr /*role*/ on gig.UID_SAPGroupParent = gr.UID_SAPGroup

    Best regards,

    Steffen

Reply
  • Hi Carsten,

    with your statement you will get the assignments of the transactions to the PROFILES.

    If you need the assignments to the ROLES you need 2 additional joins, e.g.:

    Select t.Ident_SAPTransaction, t.Description, gp.GroupName as 'Profile', gr.GroupName as 'Role'

    from SAPTransaction t

    join SAPTransactionHasSAPAuthObject sthsao on t.UID_SAPTransaction = sthsao.UID_SAPTransaction

    join SAPGroupHasAuthObjectElem sghaoe on sghaoe.UID_SAPAuthObject = sthsao.UID_SAPAuthObject

    join SAPGroup gp /*profile*/ on gp.UID_SAPGroup = sghaoe.UID_SAPGroup

    join SAPGroupInSAPGroup gig on gp.UID_SAPGroup = gig.UID_SAPGroupChild

    join SAPGroup gr /*role*/ on gig.UID_SAPGroupParent = gr.UID_SAPGroup

    Best regards,

    Steffen

Children
No Data