SAP HRIQ_READ_MAILADD_FOR_ORGUNITS Function Module for Read Mail Address (Infotype 1032) for Organizational Units









HRIQ_READ_MAILADD_FOR_ORGUNITS is a standard hriq read mailadd for orgunits SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Mail Address (Infotype 1032) for Organizational Units 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 hriq read mailadd for orgunits FM, simply by entering the name HRIQ_READ_MAILADD_FOR_ORGUNITS into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRPIQ00TOOL1
Program Name: SAPLHRPIQ00TOOL1
Main Program: SAPLHRPIQ00TOOL1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HRIQ_READ_MAILADD_FOR_ORGUNITS 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 'HRIQ_READ_MAILADD_FOR_ORGUNITS'"Read Mail Address (Infotype 1032) for Organizational Units
EXPORTING
* SUBTY = ' ' "Subtype
* BEGDA = '19000101' "Start Date
* ENDDA = '99991231' "End Date
* ISTAT = ' ' "Planning Status
* STRU_AUTH = ' ' "Structural Authorization On/Off

TABLES
OBJECTS = "
P1032 = "

EXCEPTIONS
NOTHING_FOUND = 1 INTERNAL_ERROR = 2
.



IMPORTING Parameters details for HRIQ_READ_MAILADD_FOR_ORGUNITS

SUBTY - Subtype

Data type: PLOG-SUBTY
Default: ' '
Optional: Yes
Call by Reference: Yes

BEGDA - Start Date

Data type: PLOG-BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: Yes

ENDDA - End Date

Data type: PLOG-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: Yes

ISTAT - Planning Status

Data type: PLOG-ISTAT
Default: ' '
Optional: Yes
Call by Reference: Yes

STRU_AUTH - Structural Authorization On/Off

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HRIQ_READ_MAILADD_FOR_ORGUNITS

OBJECTS -

Data type: HROBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

P1032 -

Data type: P1032
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOTHING_FOUND - No Data Found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - Internal error occurred

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HRIQ_READ_MAILADD_FOR_ORGUNITS 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_subty  TYPE PLOG-SUBTY, "   ' '
lt_objects  TYPE STANDARD TABLE OF HROBJECT, "   
lv_nothing_found  TYPE HROBJECT, "   
lv_begda  TYPE PLOG-BEGDA, "   '19000101'
lt_p1032  TYPE STANDARD TABLE OF P1032, "   
lv_internal_error  TYPE P1032, "   
lv_endda  TYPE PLOG-ENDDA, "   '99991231'
lv_istat  TYPE PLOG-ISTAT, "   ' '
lv_stru_auth  TYPE XFELD. "   SPACE

  CALL FUNCTION 'HRIQ_READ_MAILADD_FOR_ORGUNITS'  "Read Mail Address (Infotype 1032) for Organizational Units
    EXPORTING
         SUBTY = lv_subty
         BEGDA = lv_begda
         ENDDA = lv_endda
         ISTAT = lv_istat
         STRU_AUTH = lv_stru_auth
    TABLES
         OBJECTS = lt_objects
         P1032 = lt_p1032
    EXCEPTIONS
        NOTHING_FOUND = 1
        INTERNAL_ERROR = 2
. " HRIQ_READ_MAILADD_FOR_ORGUNITS




ABAP code using 7.40 inline data declarations to call FM HRIQ_READ_MAILADD_FOR_ORGUNITS

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 SUBTY FROM PLOG INTO @DATA(ld_subty).
DATA(ld_subty) = ' '.
 
 
 
"SELECT single BEGDA FROM PLOG INTO @DATA(ld_begda).
DATA(ld_begda) = '19000101'.
 
 
 
"SELECT single ENDDA FROM PLOG INTO @DATA(ld_endda).
DATA(ld_endda) = '99991231'.
 
"SELECT single ISTAT FROM PLOG INTO @DATA(ld_istat).
DATA(ld_istat) = ' '.
 
DATA(ld_stru_auth) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!