SAP HR_BEN_PROVIDE_DATA_0200 Function Module for









HR_BEN_PROVIDE_DATA_0200 is a standard hr ben provide data 0200 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 provide data 0200 FM, simply by entering the name HR_BEN_PROVIDE_DATA_0200 into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_BEN_PROVIDE_DATA_0200 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_PROVIDE_DATA_0200'"
EXPORTING
* EVENT_DESCRIPTION = "
* ENROLLMENT_TYPE = 'O' "
* TXT_ENROLLMENT_REASON = "
* COB_SUBTY = "
* COB_OBJPS = "
* COB_OFFER_TYPE = "
* COB_BNAME = "

TABLES
* CREDIT_OFFER = "
* INVESTMENTS_OFFER = "
OFFER_ERRORS = "
* HEALTH_OFFER = "
* INSURE_OFFER = "
* SAVING_OFFER = "
* SPENDA_OFFER = "
* MISCEL_OFFER = "
* STOCKP_OFFER = "
* DEPENDENTS_OFFER = "
* BENEFICIARIES_OFFER = "
.



IMPORTING Parameters details for HR_BEN_PROVIDE_DATA_0200

EVENT_DESCRIPTION -

Data type: RPBENEVENT
Optional: Yes
Call by Reference: Yes

ENROLLMENT_TYPE -

Data type: BEN_ENRTYP
Default: 'O'
Optional: Yes
Call by Reference: Yes

TXT_ENROLLMENT_REASON -

Data type: RPBENEVENT-TXT_EVENT
Optional: Yes
Call by Reference: Yes

COB_SUBTY -

Data type: SUBTY
Optional: Yes
Call by Reference: Yes

COB_OBJPS -

Data type: OBJPS
Optional: Yes
Call by Reference: Yes

COB_OFFER_TYPE -

Data type: C
Optional: Yes
Call by Reference: Yes

COB_BNAME -

Data type: RPCOBDYNP-BNAME
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HR_BEN_PROVIDE_DATA_0200

CREDIT_OFFER -

Data type: RPBEN_O1
Optional: Yes
Call by Reference: Yes

INVESTMENTS_OFFER -

Data type: RPBENOIV
Optional: Yes
Call by Reference: Yes

OFFER_ERRORS -

Data type: RPBENERR
Optional: No
Call by Reference: Yes

HEALTH_OFFER -

Data type: RPBEN_OA
Optional: Yes
Call by Reference: Yes

INSURE_OFFER -

Data type: RPBEN_OB
Optional: Yes
Call by Reference: Yes

SAVING_OFFER -

Data type: RPBEN_OC
Optional: Yes
Call by Reference: Yes

SPENDA_OFFER -

Data type: RPBEN_OD
Optional: Yes
Call by Reference: Yes

MISCEL_OFFER -

Data type: RPBEN_OE
Optional: Yes
Call by Reference: Yes

STOCKP_OFFER -

Data type: RPBEN_OF
Optional: Yes
Call by Reference: Yes

DEPENDENTS_OFFER -

Data type: RPBENODP
Optional: Yes
Call by Reference: Yes

BENEFICIARIES_OFFER -

Data type: RPBENOBF
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for HR_BEN_PROVIDE_DATA_0200 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_credit_offer  TYPE STANDARD TABLE OF RPBEN_O1, "   
lv_event_description  TYPE RPBENEVENT, "   
lt_investments_offer  TYPE STANDARD TABLE OF RPBENOIV, "   
lt_offer_errors  TYPE STANDARD TABLE OF RPBENERR, "   
lt_health_offer  TYPE STANDARD TABLE OF RPBEN_OA, "   
lv_enrollment_type  TYPE BEN_ENRTYP, "   'O'
lt_insure_offer  TYPE STANDARD TABLE OF RPBEN_OB, "   
lv_txt_enrollment_reason  TYPE RPBENEVENT-TXT_EVENT, "   
lv_cob_subty  TYPE SUBTY, "   
lt_saving_offer  TYPE STANDARD TABLE OF RPBEN_OC, "   
lv_cob_objps  TYPE OBJPS, "   
lt_spenda_offer  TYPE STANDARD TABLE OF RPBEN_OD, "   
lt_miscel_offer  TYPE STANDARD TABLE OF RPBEN_OE, "   
lv_cob_offer_type  TYPE C, "   
lv_cob_bname  TYPE RPCOBDYNP-BNAME, "   
lt_stockp_offer  TYPE STANDARD TABLE OF RPBEN_OF, "   
lt_dependents_offer  TYPE STANDARD TABLE OF RPBENODP, "   
lt_beneficiaries_offer  TYPE STANDARD TABLE OF RPBENOBF. "   

  CALL FUNCTION 'HR_BEN_PROVIDE_DATA_0200'  "
    EXPORTING
         EVENT_DESCRIPTION = lv_event_description
         ENROLLMENT_TYPE = lv_enrollment_type
         TXT_ENROLLMENT_REASON = lv_txt_enrollment_reason
         COB_SUBTY = lv_cob_subty
         COB_OBJPS = lv_cob_objps
         COB_OFFER_TYPE = lv_cob_offer_type
         COB_BNAME = lv_cob_bname
    TABLES
         CREDIT_OFFER = lt_credit_offer
         INVESTMENTS_OFFER = lt_investments_offer
         OFFER_ERRORS = lt_offer_errors
         HEALTH_OFFER = lt_health_offer
         INSURE_OFFER = lt_insure_offer
         SAVING_OFFER = lt_saving_offer
         SPENDA_OFFER = lt_spenda_offer
         MISCEL_OFFER = lt_miscel_offer
         STOCKP_OFFER = lt_stockp_offer
         DEPENDENTS_OFFER = lt_dependents_offer
         BENEFICIARIES_OFFER = lt_beneficiaries_offer
. " HR_BEN_PROVIDE_DATA_0200




ABAP code using 7.40 inline data declarations to call FM HR_BEN_PROVIDE_DATA_0200

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_enrollment_type) = 'O'.
 
 
"SELECT single TXT_EVENT FROM RPBENEVENT INTO @DATA(ld_txt_enrollment_reason).
 
 
 
 
 
 
 
"SELECT single BNAME FROM RPCOBDYNP INTO @DATA(ld_cob_bname).
 
 
 
 


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!