SAP HRSP_GET_AD_HOC_INFO_COL Function Module for
HRSP_GET_AD_HOC_INFO_COL is a standard hrsp get ad hoc info col 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 hrsp get ad hoc info col FM, simply by entering the name HRSP_GET_AD_HOC_INFO_COL into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHEC
Program Name: SAPLRHEC
Main Program: SAPLRHEC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function HRSP_GET_AD_HOC_INFO_COL 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 'HRSP_GET_AD_HOC_INFO_COL'".
EXPORTING
IM_INFOCOL_NAME = "
IM_ALL_PERNR = "
* IM_SELECTED_PERNR = "
IM_BEGDA = "
IM_ENDDA = "
IM_PEINS_PSDCI = "
IM_FILL_INFO_COL = "
CHANGING
CH_AD_HOC_INFO = "
CH_IMPORT_B2_DONE = "
CH_IMPORT_B2_PP_DONE = "
TABLES
* BUFFER_SALDO = "
* PREV_SALDO = "
* BUFFER_ZL = "
* PREV_ZL = "
* EMPLOYEE_DEDUCTION = "
IMPORTING Parameters details for HRSP_GET_AD_HOC_INFO_COL
IM_INFOCOL_NAME -
Data type: HRSP_INFOKEYOptional: No
Call by Reference: Yes
IM_ALL_PERNR -
Data type: HRSP_T_PERNROptional: No
Call by Reference: Yes
IM_SELECTED_PERNR -
Data type: HRSP_T_PERNROptional: Yes
Call by Reference: Yes
IM_BEGDA -
Data type: BEGDATUMOptional: No
Call by Reference: Yes
IM_ENDDA -
Data type: ENDDATUMOptional: No
Call by Reference: Yes
IM_PEINS_PSDCI -
Data type: CHAR1Optional: No
Call by Reference: Yes
IM_FILL_INFO_COL -
Data type: CHAR1Optional: No
Call by Reference: Yes
CHANGING Parameters details for HRSP_GET_AD_HOC_INFO_COL
CH_AD_HOC_INFO -
Data type: HRSP_INFOTABLEOptional: No
Call by Reference: Yes
CH_IMPORT_B2_DONE -
Data type: CHAR1Optional: No
Call by Reference: Yes
CH_IMPORT_B2_PP_DONE -
Data type: CHAR1Optional: No
Call by Reference: Yes
TABLES Parameters details for HRSP_GET_AD_HOC_INFO_COL
BUFFER_SALDO -
Data type: HRSP_BUFFER_SALDOOptional: Yes
Call by Reference: Yes
PREV_SALDO -
Data type: HRSP_PREV_SALDOOptional: Yes
Call by Reference: Yes
BUFFER_ZL -
Data type: HRSP_BUFFER_ZLOptional: Yes
Call by Reference: Yes
PREV_ZL -
Data type: HRSP_PREV_ZLOptional: Yes
Call by Reference: Yes
EMPLOYEE_DEDUCTION -
Data type: WFP_EMPLOYEE_DEDUCTIONOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HRSP_GET_AD_HOC_INFO_COL 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: | ||||
lt_buffer_saldo | TYPE STANDARD TABLE OF HRSP_BUFFER_SALDO, " | |||
lv_ch_ad_hoc_info | TYPE HRSP_INFOTABLE, " | |||
lv_im_infocol_name | TYPE HRSP_INFOKEY, " | |||
lt_prev_saldo | TYPE STANDARD TABLE OF HRSP_PREV_SALDO, " | |||
lv_im_all_pernr | TYPE HRSP_T_PERNR, " | |||
lv_ch_import_b2_done | TYPE CHAR1, " | |||
lt_buffer_zl | TYPE STANDARD TABLE OF HRSP_BUFFER_ZL, " | |||
lv_im_selected_pernr | TYPE HRSP_T_PERNR, " | |||
lv_ch_import_b2_pp_done | TYPE CHAR1, " | |||
lt_prev_zl | TYPE STANDARD TABLE OF HRSP_PREV_ZL, " | |||
lv_im_begda | TYPE BEGDATUM, " | |||
lv_im_endda | TYPE ENDDATUM, " | |||
lt_employee_deduction | TYPE STANDARD TABLE OF WFP_EMPLOYEE_DEDUCTION, " | |||
lv_im_peins_psdci | TYPE CHAR1, " | |||
lv_im_fill_info_col | TYPE CHAR1. " |
  CALL FUNCTION 'HRSP_GET_AD_HOC_INFO_COL' " |
EXPORTING | ||
IM_INFOCOL_NAME | = lv_im_infocol_name | |
IM_ALL_PERNR | = lv_im_all_pernr | |
IM_SELECTED_PERNR | = lv_im_selected_pernr | |
IM_BEGDA | = lv_im_begda | |
IM_ENDDA | = lv_im_endda | |
IM_PEINS_PSDCI | = lv_im_peins_psdci | |
IM_FILL_INFO_COL | = lv_im_fill_info_col | |
CHANGING | ||
CH_AD_HOC_INFO | = lv_ch_ad_hoc_info | |
CH_IMPORT_B2_DONE | = lv_ch_import_b2_done | |
CH_IMPORT_B2_PP_DONE | = lv_ch_import_b2_pp_done | |
TABLES | ||
BUFFER_SALDO | = lt_buffer_saldo | |
PREV_SALDO | = lt_prev_saldo | |
BUFFER_ZL | = lt_buffer_zl | |
PREV_ZL | = lt_prev_zl | |
EMPLOYEE_DEDUCTION | = lt_employee_deduction | |
. " HRSP_GET_AD_HOC_INFO_COL |
ABAP code using 7.40 inline data declarations to call FM HRSP_GET_AD_HOC_INFO_COL
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.Search for further information about these or an SAP related objects