How to Find Org. unit of user after it was deleted from PPOMA_CRM
I have a requirement like to find the ORg. unit of a user(either using any table or fm) after it was deleted from PPOMA_CRM in SAP CRM system.
Please suggest any function module or table name from which I can get the org. unit of a user even after it was deleted from PPOMA_CRM.
I know that user deatils are stored in cl_crmd_om and its org. structure relationships are stored in cl_crmd_relat.But the entry in cl_crmd_relat was deleted after the user removed from org. structure.
Thanks in advance.
Pradeep Parida replied
We can use following approach to find out the Org. unit of user even after it was deleted from PPOMA_CRM.
I/P: User Name
HRP1001-OBJID=CRMD_CL_OM-OBJID Where HRP1001-SCLAS=’S’.
(If multiple entries exist, then chose the entry with latest end date)
O/P: Org. unit (CRMD_CL_RELAT- OBJID_PARENT)