SAP HR_NO_AA_REG_PROVIDE Function Module for Return list with all relevant data for AA-register
HR_NO_AA_REG_PROVIDE is a standard hr no aa reg provide SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Return list with all relevant data for AA-register processing and below is the pattern details for this FM, 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 no aa reg provide FM, simply by entering the name HR_NO_AA_REG_PROVIDE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HR_NO_AA_REGISTER
Program Name: SAPLHR_NO_AA_REGISTER
Main Program: SAPLHR_NO_AA_REGISTER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_NO_AA_REG_PROVIDE 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_NO_AA_REG_PROVIDE'"Return list with all relevant data for AA-register.
EXPORTING
PERNR = "Personnel Number
BEGDA = "Start Date
ENDDA = "End Date
* LOPEND = ' ' "Return result in Statuskontroll or Løpende Meldingsgang format
* FDNUM = "Personnel ID Number
IMPORTING
SUBRC = "Errors during processing
LAST_ACTIVE_DATE = "Start Date
CHANGING
* SEL_ORGJ = "Legal org. number (juridisk nummer)
TABLES
AA_MASTER_DATA = "Result structure for AA-Registeret - relevant master data
I0041 = "HR Master Record: Infotype 0041 (Date Specifications)
* ERROR = "Transfer table for HR error handling
I0000 = "HR Master Record: Infotype 0000 (Actions)
I0001 = "HR Master Record: Infotype 0001 (Org. Assignment)
I0007 = "HR Master Record: Infotype 0007 (Planned Working Time)
I2001 = "HR Time Record: Absences Infotype (2001)
* I0033 = "Infotype 0033: Statistics Exceptions
* I2010 = "HR Time Record: Infotype 2010 (Employee Remuneration Info.)
* I0509 = "HR-AU-PS: Master Data (Higher Duty Allowance)
* I0008 = "HR Master Record: Infotype 0008 (Basic Pay)
EXCEPTIONS
WRONG_IMPORT_PARAMETER = 1 NO_INFOTYPE_DATA = 2
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_SAPLHR_NO_AA_REGISTER_001 HR-NO: Flexible handling of worktime
IMPORTING Parameters details for HR_NO_AA_REG_PROVIDE
PERNR - Personnel Number
Data type: P0000-PERNROptional: No
Call by Reference: No ( called with pass by value option)
BEGDA - Start Date
Data type: P0000-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
ENDDA - End Date
Data type: P0000-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
LOPEND - Return result in Statuskontroll or Løpende Meldingsgang format
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FDNUM - Personnel ID Number
Data type: P0002-PERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HR_NO_AA_REG_PROVIDE
SUBRC - Errors during processing
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
LAST_ACTIVE_DATE - Start Date
Data type: P0001-BEGDAOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_NO_AA_REG_PROVIDE
SEL_ORGJ - Legal org. number (juridisk nummer)
Data type: T5V2M-ORGJUOptional: Yes
Call by Reference: Yes
TABLES Parameters details for HR_NO_AA_REG_PROVIDE
AA_MASTER_DATA - Result structure for AA-Registeret - relevant master data
Data type: P20_AAREGOptional: No
Call by Reference: Yes
I0041 - HR Master Record: Infotype 0041 (Date Specifications)
Data type: P0041Optional: No
Call by Reference: Yes
ERROR - Transfer table for HR error handling
Data type: HRERROROptional: Yes
Call by Reference: Yes
I0000 - HR Master Record: Infotype 0000 (Actions)
Data type: P0000Optional: No
Call by Reference: Yes
I0001 - HR Master Record: Infotype 0001 (Org. Assignment)
Data type: P0001Optional: No
Call by Reference: Yes
I0007 - HR Master Record: Infotype 0007 (Planned Working Time)
Data type: P0007Optional: No
Call by Reference: Yes
I2001 - HR Time Record: Absences Infotype (2001)
Data type: P2001Optional: No
Call by Reference: Yes
I0033 - Infotype 0033: Statistics Exceptions
Data type: P0033Optional: Yes
Call by Reference: Yes
I2010 - HR Time Record: Infotype 2010 (Employee Remuneration Info.)
Data type: P2010Optional: Yes
Call by Reference: Yes
I0509 - HR-AU-PS: Master Data (Higher Duty Allowance)
Data type: P0509Optional: Yes
Call by Reference: Yes
I0008 - HR Master Record: Infotype 0008 (Basic Pay)
Data type: P0008Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_IMPORT_PARAMETER - Function module called with missing parameters.
Data type:Optional: No
Call by Reference: Yes
NO_INFOTYPE_DATA - There is no information on infotype 0/1/7 available.
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_NO_AA_REG_PROVIDE 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_pernr | TYPE P0000-PERNR, " | |||
lv_subrc | TYPE SY-SUBRC, " | |||
lv_sel_orgj | TYPE T5V2M-ORGJU, " | |||
lt_aa_master_data | TYPE STANDARD TABLE OF P20_AAREG, " | |||
lv_wrong_import_parameter | TYPE P20_AAREG, " | |||
lt_i0041 | TYPE STANDARD TABLE OF P0041, " | |||
lt_error | TYPE STANDARD TABLE OF HRERROR, " | |||
lv_begda | TYPE P0000-BEGDA, " | |||
lt_i0000 | TYPE STANDARD TABLE OF P0000, " | |||
lv_last_active_date | TYPE P0001-BEGDA, " | |||
lv_no_infotype_data | TYPE P0001, " | |||
lv_endda | TYPE P0000-ENDDA, " | |||
lt_i0001 | TYPE STANDARD TABLE OF P0001, " | |||
lt_i0007 | TYPE STANDARD TABLE OF P0007, " | |||
lv_lopend | TYPE XFELD, " SPACE | |||
lv_fdnum | TYPE P0002-PERID, " | |||
lt_i2001 | TYPE STANDARD TABLE OF P2001, " | |||
lt_i0033 | TYPE STANDARD TABLE OF P0033, " | |||
lt_i2010 | TYPE STANDARD TABLE OF P2010, " | |||
lt_i0509 | TYPE STANDARD TABLE OF P0509, " | |||
lt_i0008 | TYPE STANDARD TABLE OF P0008. " |
  CALL FUNCTION 'HR_NO_AA_REG_PROVIDE' "Return list with all relevant data for AA-register |
EXPORTING | ||
PERNR | = lv_pernr | |
BEGDA | = lv_begda | |
ENDDA | = lv_endda | |
LOPEND | = lv_lopend | |
FDNUM | = lv_fdnum | |
IMPORTING | ||
SUBRC | = lv_subrc | |
LAST_ACTIVE_DATE | = lv_last_active_date | |
CHANGING | ||
SEL_ORGJ | = lv_sel_orgj | |
TABLES | ||
AA_MASTER_DATA | = lt_aa_master_data | |
I0041 | = lt_i0041 | |
ERROR | = lt_error | |
I0000 | = lt_i0000 | |
I0001 | = lt_i0001 | |
I0007 | = lt_i0007 | |
I2001 | = lt_i2001 | |
I0033 | = lt_i0033 | |
I2010 | = lt_i2010 | |
I0509 | = lt_i0509 | |
I0008 | = lt_i0008 | |
EXCEPTIONS | ||
WRONG_IMPORT_PARAMETER = 1 | ||
NO_INFOTYPE_DATA = 2 | ||
. " HR_NO_AA_REG_PROVIDE |
ABAP code using 7.40 inline data declarations to call FM HR_NO_AA_REG_PROVIDE
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."SELECT single PERNR FROM P0000 INTO @DATA(ld_pernr). | ||||
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc). | ||||
"SELECT single ORGJU FROM T5V2M INTO @DATA(ld_sel_orgj). | ||||
"SELECT single BEGDA FROM P0000 INTO @DATA(ld_begda). | ||||
"SELECT single BEGDA FROM P0001 INTO @DATA(ld_last_active_date). | ||||
"SELECT single ENDDA FROM P0000 INTO @DATA(ld_endda). | ||||
DATA(ld_lopend) | = ' '. | |||
"SELECT single PERID FROM P0002 INTO @DATA(ld_fdnum). | ||||
Search for further information about these or an SAP related objects