SAP HRGPBS_ALL_GET_ENTRY_NO_DATE Function Module for Get single record using High/Low Date & GROUP
HRGPBS_ALL_GET_ENTRY_NO_DATE is a standard hrgpbs all get entry no date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get single record using High/Low Date & GROUP 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 hrgpbs all get entry no date FM, simply by entering the name HRGPBS_ALL_GET_ENTRY_NO_DATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRGPBS_ALL
Program Name: SAPLHRGPBS_ALL
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HRGPBS_ALL_GET_ENTRY_NO_DATE 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 'HRGPBS_ALL_GET_ENTRY_NO_DATE'"Get single record using High/Low Date & GROUP.
EXPORTING
* P_MOLGA = '08' "Country Grouping
P_ALGRP = "ALL Table Group
P_ALKEY = "ALL Table Key
* P_TEXT_REQUIRED = ' ' "Checkbox
IMPORTING
P_ALFLD = "ALL Table Field
P_ALTXT = "Text 30 characters
EXCEPTIONS
RECORD_NOT_FOUND = 1
IMPORTING Parameters details for HRGPBS_ALL_GET_ENTRY_NO_DATE
P_MOLGA - Country Grouping
Data type: MOLGADefault: '08'
Optional: No
Call by Reference: No ( called with pass by value option)
P_ALGRP - ALL Table Group
Data type: P08_ALGRPOptional: No
Call by Reference: No ( called with pass by value option)
P_ALKEY - ALL Table Key
Data type: P08_ALKEYOptional: No
Call by Reference: No ( called with pass by value option)
P_TEXT_REQUIRED - Checkbox
Data type: XFELDDefault: SPACE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HRGPBS_ALL_GET_ENTRY_NO_DATE
P_ALFLD - ALL Table Field
Data type: P08_ALFLDOptional: No
Call by Reference: Yes
P_ALTXT - Text 30 characters
Data type: TEXT30Optional: No
Call by Reference: Yes
EXCEPTIONS details
RECORD_NOT_FOUND - No Record Found for Group & Molga
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HRGPBS_ALL_GET_ENTRY_NO_DATE 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_p_alfld | TYPE P08_ALFLD, " | |||
lv_p_molga | TYPE MOLGA, " '08' | |||
lv_record_not_found | TYPE MOLGA, " | |||
lv_p_algrp | TYPE P08_ALGRP, " | |||
lv_p_altxt | TYPE TEXT30, " | |||
lv_p_alkey | TYPE P08_ALKEY, " | |||
lv_p_text_required | TYPE XFELD. " SPACE |
  CALL FUNCTION 'HRGPBS_ALL_GET_ENTRY_NO_DATE' "Get single record using High/Low Date & GROUP |
EXPORTING | ||
P_MOLGA | = lv_p_molga | |
P_ALGRP | = lv_p_algrp | |
P_ALKEY | = lv_p_alkey | |
P_TEXT_REQUIRED | = lv_p_text_required | |
IMPORTING | ||
P_ALFLD | = lv_p_alfld | |
P_ALTXT | = lv_p_altxt | |
EXCEPTIONS | ||
RECORD_NOT_FOUND = 1 | ||
. " HRGPBS_ALL_GET_ENTRY_NO_DATE |
ABAP code using 7.40 inline data declarations to call FM HRGPBS_ALL_GET_ENTRY_NO_DATE
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_p_molga) | = '08'. | |||
DATA(ld_p_text_required) | = ' '. | |||
Search for further information about these or an SAP related objects