Skip to Content
avatar image
Former Member

Obtaining Org Unit from Business Partner number

Hi, I am trying to obtain an org unit object id from the bp number that is created when the org unit is created. I am in a BP BADI, so I only have the bp number, and am in the process of creating a new org unit when the BADI is called. I have tried to use RH_STRUC_GET but because we are in the creation process this does not retrieve any results. I understand that this fm reads a buffer to get its results, and the org unit is obviously not in the buffer at this time.

Could anyone help me to find a function module that will find the org unit in this case?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 10, 2007 at 07:27 PM

    I am not sure of the BADI, but did u try by searching through SE16 - HRP1001 table?

    Try this way on the screen- enter the following values.

    Rel.obj.type : 'BP'

    ID rel.object : BP obj ID.

    and do an open search to pull the Org unit related to the given BP.

    If this is helpful, pl do reward.

    Thanks

    Narasimha

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ratikant,

      Thanks for your suggestion. This may work if I was looking for an employee's org unit, but I was actually looking for the BP record for the org. unit that was being created. It would also depend on whether this function module would work before the save and commit has occurred.

      I cannot test you solution since I managed to implement a work around where I saved the org unit using a funtion group in another(earlier) BADI so that I could retrieve it in this BADI. This has been tested and implemented and I don't want to cahnge what is already working!

      Many thanks though!