SAP HRHAP_C_IT1002_READ_SINGLE Function Module for









HRHAP_C_IT1002_READ_SINGLE is a standard hrhap c it1002 read single 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 hrhap c it1002 read single FM, simply by entering the name HRHAP_C_IT1002_READ_SINGLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRHAP_C_IF_ELEMENTS_BASIC
Program Name: SAPLHRHAP_C_IF_ELEMENTS_BASIC
Main Program: SAPLHRHAP_C_IF_ELEMENTS_BASIC
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function HRHAP_C_IT1002_READ_SINGLE 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 'HRHAP_C_IT1002_READ_SINGLE'"
EXPORTING
PLVAR = "Plan Version
OTYPE = "Object Type
OBJID = "Object ID
* STTAG = SY-DATUM "Date
* SUBTY = '0001' "
* LANGU = SY-LANGU "

IMPORTING
CHANGED_LANGU = "
DESCR_BEGDA = "Start Date
DESCR_ENDDA = "To date
CHANGE_DATE = "Last Changed On
CHANGE_USER = "

TABLES
PTXT1002 = "
* LANGU_TAB = "

EXCEPTIONS
NOTHING_FOUND = 1 INFTY_EMPTY = 2 UNDEFINED = 3
.



IMPORTING Parameters details for HRHAP_C_IT1002_READ_SINGLE

PLVAR - Plan Version

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

OTYPE - Object Type

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

OBJID - Object ID

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

STTAG - Date

Data type: HRP1000-BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

SUBTY -

Data type: HRP1002-SUBTY
Default: '0001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGU -

Data type: HRP1002-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for HRHAP_C_IT1002_READ_SINGLE

CHANGED_LANGU -

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

DESCR_BEGDA - Start Date

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

DESCR_ENDDA - To date

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

CHANGE_DATE - Last Changed On

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

CHANGE_USER -

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

TABLES Parameters details for HRHAP_C_IT1002_READ_SINGLE

PTXT1002 -

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

LANGU_TAB -

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

EXCEPTIONS details

NOTHING_FOUND - Nothing found

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

INFTY_EMPTY -

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

UNDEFINED - Other Error

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

Copy and paste ABAP code example for HRHAP_C_IT1002_READ_SINGLE 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_plvar  TYPE HRP1000-PLVAR, "   
lt_ptxt1002  TYPE STANDARD TABLE OF PT1002, "   
lv_changed_langu  TYPE HRP1002-LANGU, "   
lv_nothing_found  TYPE HRP1002, "   
lv_otype  TYPE HRP1000-OTYPE, "   
lt_langu_tab  TYPE STANDARD TABLE OF T002T, "   
lv_descr_begda  TYPE P1002-BEGDA, "   
lv_infty_empty  TYPE P1002, "   
lv_objid  TYPE HRP1000-OBJID, "   
lv_undefined  TYPE HRP1000, "   
lv_descr_endda  TYPE P1002-ENDDA, "   
lv_sttag  TYPE HRP1000-BEGDA, "   SY-DATUM
lv_change_date  TYPE HAP_CHANGE_DATE, "   
lv_subty  TYPE HRP1002-SUBTY, "   '0001'
lv_change_user  TYPE HAP_CHANGE_USER, "   
lv_langu  TYPE HRP1002-LANGU. "   SY-LANGU

  CALL FUNCTION 'HRHAP_C_IT1002_READ_SINGLE'  "
    EXPORTING
         PLVAR = lv_plvar
         OTYPE = lv_otype
         OBJID = lv_objid
         STTAG = lv_sttag
         SUBTY = lv_subty
         LANGU = lv_langu
    IMPORTING
         CHANGED_LANGU = lv_changed_langu
         DESCR_BEGDA = lv_descr_begda
         DESCR_ENDDA = lv_descr_endda
         CHANGE_DATE = lv_change_date
         CHANGE_USER = lv_change_user
    TABLES
         PTXT1002 = lt_ptxt1002
         LANGU_TAB = lt_langu_tab
    EXCEPTIONS
        NOTHING_FOUND = 1
        INFTY_EMPTY = 2
        UNDEFINED = 3
. " HRHAP_C_IT1002_READ_SINGLE




ABAP code using 7.40 inline data declarations to call FM HRHAP_C_IT1002_READ_SINGLE

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 PLVAR FROM HRP1000 INTO @DATA(ld_plvar).
 
 
"SELECT single LANGU FROM HRP1002 INTO @DATA(ld_changed_langu).
 
 
"SELECT single OTYPE FROM HRP1000 INTO @DATA(ld_otype).
 
 
"SELECT single BEGDA FROM P1002 INTO @DATA(ld_descr_begda).
 
 
"SELECT single OBJID FROM HRP1000 INTO @DATA(ld_objid).
 
 
"SELECT single ENDDA FROM P1002 INTO @DATA(ld_descr_endda).
 
"SELECT single BEGDA FROM HRP1000 INTO @DATA(ld_sttag).
DATA(ld_sttag) = SY-DATUM.
 
 
"SELECT single SUBTY FROM HRP1002 INTO @DATA(ld_subty).
DATA(ld_subty) = '0001'.
 
 
"SELECT single LANGU FROM HRP1002 INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 


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!