SAP HR_BEN_GET_MISCEL_OFFER Function Module for









HR_BEN_GET_MISCEL_OFFER is a standard hr ben get miscel offer 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 hr ben get miscel offer FM, simply by entering the name HR_BEN_GET_MISCEL_OFFER into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_BEN_GET_MISCEL_OFFER 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 'HR_BEN_GET_MISCEL_OFFER'"
EXPORTING
PERNR = "
DATUM = "
* EVENT_DESCRIPTION = "
ENROLLMENT_TYPE = "
DESIRED_CURRENCY = "
* DESIRED_PERIOD = "
* PROCESS_BEGDA = "
* PROCESS_ENDDA = "
REACTION = "

IMPORTING
SUBRC = "

TABLES
MISCEL_OFFER = "
ERROR_TABLE = "
.



IMPORTING Parameters details for HR_BEN_GET_MISCEL_OFFER

PERNR -

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

DATUM -

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

EVENT_DESCRIPTION -

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

ENROLLMENT_TYPE -

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

DESIRED_CURRENCY -

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

DESIRED_PERIOD -

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

PROCESS_BEGDA -

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

PROCESS_ENDDA -

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

REACTION -

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

EXPORTING Parameters details for HR_BEN_GET_MISCEL_OFFER

SUBRC -

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

TABLES Parameters details for HR_BEN_GET_MISCEL_OFFER

MISCEL_OFFER -

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

ERROR_TABLE -

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

Copy and paste ABAP code example for HR_BEN_GET_MISCEL_OFFER 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_pernr  TYPE PSKEY-PERNR, "   
lv_subrc  TYPE SY-SUBRC, "   
lt_miscel_offer  TYPE STANDARD TABLE OF RPBEN_OE, "   
lv_datum  TYPE SY-DATUM, "   
lt_error_table  TYPE STANDARD TABLE OF RPBENERR, "   
lv_event_description  TYPE RPBENEVENT, "   
lv_enrollment_type  TYPE RPBENRPT01-ENRTY, "   
lv_desired_currency  TYPE T5UD3-CURRE, "   
lv_desired_period  TYPE T549R-ZEINH, "   
lv_process_begda  TYPE SYDATUM, "   
lv_process_endda  TYPE SYDATUM, "   
lv_reaction  TYPE SY-MSGTY. "   

  CALL FUNCTION 'HR_BEN_GET_MISCEL_OFFER'  "
    EXPORTING
         PERNR = lv_pernr
         DATUM = lv_datum
         EVENT_DESCRIPTION = lv_event_description
         ENROLLMENT_TYPE = lv_enrollment_type
         DESIRED_CURRENCY = lv_desired_currency
         DESIRED_PERIOD = lv_desired_period
         PROCESS_BEGDA = lv_process_begda
         PROCESS_ENDDA = lv_process_endda
         REACTION = lv_reaction
    IMPORTING
         SUBRC = lv_subrc
    TABLES
         MISCEL_OFFER = lt_miscel_offer
         ERROR_TABLE = lt_error_table
. " HR_BEN_GET_MISCEL_OFFER




ABAP code using 7.40 inline data declarations to call FM HR_BEN_GET_MISCEL_OFFER

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 PERNR FROM PSKEY INTO @DATA(ld_pernr).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_datum).
 
 
 
"SELECT single ENRTY FROM RPBENRPT01 INTO @DATA(ld_enrollment_type).
 
"SELECT single CURRE FROM T5UD3 INTO @DATA(ld_desired_currency).
 
"SELECT single ZEINH FROM T549R INTO @DATA(ld_desired_period).
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_reaction).
 


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!