SAP HRIQ_P1001_SUBTY_OBJ_GET Function Module for IQ: Read All Relationships for Object (Internal)









HRIQ_P1001_SUBTY_OBJ_GET is a standard hriq p1001 subty obj get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IQ: Read All Relationships for Object (Internal) 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 p1001 subty obj get FM, simply by entering the name HRIQ_P1001_SUBTY_OBJ_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function HRIQ_P1001_SUBTY_OBJ_GET 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_P1001_SUBTY_OBJ_GET'"IQ: Read All Relationships for Object (Internal)
EXPORTING
OBJECT = "Object
* AUTH_SOBID = ' ' "
SUBTY = "
* BEGDA = '19000101' "Valid-From Date
* ENDDA = '99991231' "Valid-To Date
* P_ISTAT = ' ' "Planning Status
* ADATA = 'X' "Checkbox
* RELAT_OBJECT = "
* AUTHORITY = 'DISP' "
* WITH_STRU_AUTH = 'X' "

TABLES
P1001_TAB = "

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for HRIQ_P1001_SUBTY_OBJ_GET

OBJECT - Object

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

AUTH_SOBID -

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

SUBTY -

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

BEGDA - Valid-From Date

Data type: PLOG-BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDDA - Valid-To Date

Data type: PLOG-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

P_ISTAT - Planning Status

Data type: PLOG-ISTAT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADATA - Checkbox

Data type: HRRHDB-ADATA
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RELAT_OBJECT -

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

AUTHORITY -

Data type:
Default: 'DISP'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_STRU_AUTH -

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for HRIQ_P1001_SUBTY_OBJ_GET

P1001_TAB -

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

EXCEPTIONS details

INTERNAL_ERROR - Internal Error

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

Copy and paste ABAP code example for HRIQ_P1001_SUBTY_OBJ_GET 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_object  TYPE HROBJECT, "   
lt_p1001_tab  TYPE STANDARD TABLE OF P1001, "   
lv_internal_error  TYPE P1001, "   
lv_auth_sobid  TYPE P1001, "   SPACE
lv_subty  TYPE PLOG-SUBTY, "   
lv_begda  TYPE PLOG-BEGDA, "   '19000101'
lv_endda  TYPE PLOG-ENDDA, "   '99991231'
lv_p_istat  TYPE PLOG-ISTAT, "   SPACE
lv_adata  TYPE HRRHDB-ADATA, "   'X'
lv_relat_object  TYPE HROBJECT, "   
lv_authority  TYPE HROBJECT, "   'DISP'
lv_with_stru_auth  TYPE HROBJECT. "   'X'

  CALL FUNCTION 'HRIQ_P1001_SUBTY_OBJ_GET'  "IQ: Read All Relationships for Object (Internal)
    EXPORTING
         OBJECT = lv_object
         AUTH_SOBID = lv_auth_sobid
         SUBTY = lv_subty
         BEGDA = lv_begda
         ENDDA = lv_endda
         P_ISTAT = lv_p_istat
         ADATA = lv_adata
         RELAT_OBJECT = lv_relat_object
         AUTHORITY = lv_authority
         WITH_STRU_AUTH = lv_with_stru_auth
    TABLES
         P1001_TAB = lt_p1001_tab
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " HRIQ_P1001_SUBTY_OBJ_GET




ABAP code using 7.40 inline data declarations to call FM HRIQ_P1001_SUBTY_OBJ_GET

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.

 
 
 
DATA(ld_auth_sobid) = ' '.
 
"SELECT single SUBTY FROM PLOG INTO @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_p_istat).
DATA(ld_p_istat) = ' '.
 
"SELECT single ADATA FROM HRRHDB INTO @DATA(ld_adata).
DATA(ld_adata) = 'X'.
 
 
DATA(ld_authority) = 'DISP'.
 
DATA(ld_with_stru_auth) = 'X'.
 


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!