address number from a organizational unit
We have the following problem in SRM 7:
We use the function RH_GET_ORG_ASSIGNMENT. The function returns the id from a organizational unit. Now we need the address number from the organizational unit. Exists is a function to returns the address number from a organizational unit?
Is the address number from the organizational unit contains in the table usr21?
Ricardo Romero Mata replied
Try the following:
- Use FM RH_GET_ORG_ASSIGNMENT to get the OTYPE and OBJID of your organizational unit.
- go to table HRP1001 with: OTYPE OBJID and SCLAS = 'BP' to get the bussiness partner of your Org. unit.
- go to table BUT020 with the partner HRP1001-SOBID to get the address number.
- go to table ADRC with this addr. number.
Hope this help you.