Open all | Close all

Getting the LATEST information!

To ensure you are getting the latest information please vist this page on the new domain for SAP Development


Retrieve Organisation unit from HR selection screen

Simply use the code below to retrieve org. unit from standard HR selection screen. When using
logical database PNP

*Retrieve Org. Unit from selection screen
DATA: gd_orgunit like p0001-orgeh.

    read table pnpobjid index 1.
    if sy-subrc eq 0.
      gd_orgunit = pnpobjid-low.
    endif.