SAP HR_AT_GET_ORG_DATA Function Module for
HR_AT_GET_ORG_DATA is a standard hr at get org data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for hr at get org data FM, simply by entering the name HR_AT_GET_ORG_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: 0PAM
Program Name: SAPL0PAM
Main Program: SAPL0PAM
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_AT_GET_ORG_DATA pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'HR_AT_GET_ORG_DATA'".
EXPORTING
ORG_IN = "
IMPORTING
BUKRS = "
BTRTL_DATA = "
LOHNB_DATA = "
ADDRESSE = "
ADDRESS_DETAIL = "
ADDRESS_COMP = "
EXCEPTIONS
T5A0P_DATA_NOT_FOUND = 1 T5A0A_DATA_NOT_FOUND = 2 T5A0P_LOHNB_NOT_SPECIFIED = 3 T5A0A_ANKEY_NOT_SPECIFIED = 4 ADDRESS_NOT_FOUND_IN_T536C = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPL0PAM_001 HR-AT: Customer Exit for HR_AT_GET_ORG_DATA
IMPORTING Parameters details for HR_AT_GET_ORG_DATA
ORG_IN -
Data type: P03_ORGDAOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_AT_GET_ORG_DATA
BUKRS -
Data type: BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
BTRTL_DATA -
Data type: T5A0POptional: No
Call by Reference: No ( called with pass by value option)
LOHNB_DATA -
Data type: T5A0AOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESSE -
Data type: ADRSOptional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_DETAIL -
Data type: SADROptional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_COMP -
Data type: HRADDRESS_COMPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
T5A0P_DATA_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T5A0A_DATA_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T5A0P_LOHNB_NOT_SPECIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T5A0A_ANKEY_NOT_SPECIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ADDRESS_NOT_FOUND_IN_T536C -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_AT_GET_ORG_DATA Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lv_bukrs | TYPE BUKRS, " | |||
lv_org_in | TYPE P03_ORGDA, " | |||
lv_t5a0p_data_not_found | TYPE P03_ORGDA, " | |||
lv_btrtl_data | TYPE T5A0P, " | |||
lv_t5a0a_data_not_found | TYPE T5A0P, " | |||
lv_lohnb_data | TYPE T5A0A, " | |||
lv_t5a0p_lohnb_not_specified | TYPE T5A0A, " | |||
lv_addresse | TYPE ADRS, " | |||
lv_t5a0a_ankey_not_specified | TYPE ADRS, " | |||
lv_address_detail | TYPE SADR, " | |||
lv_address_not_found_in_t536c | TYPE SADR, " | |||
lv_address_comp | TYPE HRADDRESS_COMP. " |
  CALL FUNCTION 'HR_AT_GET_ORG_DATA' " |
EXPORTING | ||
ORG_IN | = lv_org_in | |
IMPORTING | ||
BUKRS | = lv_bukrs | |
BTRTL_DATA | = lv_btrtl_data | |
LOHNB_DATA | = lv_lohnb_data | |
ADDRESSE | = lv_addresse | |
ADDRESS_DETAIL | = lv_address_detail | |
ADDRESS_COMP | = lv_address_comp | |
EXCEPTIONS | ||
T5A0P_DATA_NOT_FOUND = 1 | ||
T5A0A_DATA_NOT_FOUND = 2 | ||
T5A0P_LOHNB_NOT_SPECIFIED = 3 | ||
T5A0A_ANKEY_NOT_SPECIFIED = 4 | ||
ADDRESS_NOT_FOUND_IN_T536C = 5 | ||
. " HR_AT_GET_ORG_DATA |
ABAP code using 7.40 inline data declarations to call FM HR_AT_GET_ORG_DATA
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects