SAP BAPI_BEN_BUS3029_CREATE_PLANS Function Module for Enroll employee









BAPI_BEN_BUS3029_CREATE_PLANS is a standard bapi ben bus3029 create plans SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Enroll employee 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 bapi ben bus3029 create plans FM, simply by entering the name BAPI_BEN_BUS3029_CREATE_PLANS into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRBEN00BUS3029
Program Name: SAPLHRBEN00BUS3029
Main Program:
Appliation area: P
Release date: 25-Sep-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BEN_BUS3029_CREATE_PLANS 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 'BAPI_BEN_BUS3029_CREATE_PLANS'"Enroll employee
EXPORTING
EMPLOYEENUMBER = "Employee's personnel number
* DATEOFVALIDITY = "Validity Date
EVENT = "Adjustment reason
* NOCOMMIT = "COMMIT control at BAPI interface

IMPORTING
EMPLOYEENUMBER = "Employee's personnel number
DATEOFVALIDITY = "Validity Date
RETURN = "Return

TABLES
* CREDIT_SELECTION = "Credit selection
* INVEST_SELECTION = "Investment selection
* HEALTH_SELECTION = "Health plan selection
* INSURANCE_SELECTION = "Insurance plan selection
* SAVINGS_SELECTION = "Savings plan selection
* SPENDING_SELECTION = "FSA selection
* MISCEL_SELECTION = "Miscellaneous plan selection
* STOCKP_SELECTION = "Stock purchase plan selection
* DEPEND_SELECTION = "Dependent selection
* BENEF_SELECTION = "Beneficiary selection
.



IMPORTING Parameters details for BAPI_BEN_BUS3029_CREATE_PLANS

EMPLOYEENUMBER - Employee's personnel number

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

DATEOFVALIDITY - Validity Date

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

EVENT - Adjustment reason

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

NOCOMMIT - COMMIT control at BAPI interface

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

EXPORTING Parameters details for BAPI_BEN_BUS3029_CREATE_PLANS

EMPLOYEENUMBER - Employee's personnel number

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

DATEOFVALIDITY - Validity Date

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

RETURN - Return

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

TABLES Parameters details for BAPI_BEN_BUS3029_CREATE_PLANS

CREDIT_SELECTION - Credit selection

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

INVEST_SELECTION - Investment selection

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

HEALTH_SELECTION - Health plan selection

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

INSURANCE_SELECTION - Insurance plan selection

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

SAVINGS_SELECTION - Savings plan selection

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

SPENDING_SELECTION - FSA selection

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

MISCEL_SELECTION - Miscellaneous plan selection

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

STOCKP_SELECTION - Stock purchase plan selection

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

DEPEND_SELECTION - Dependent selection

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

BENEF_SELECTION - Beneficiary selection

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

Copy and paste ABAP code example for BAPI_BEN_BUS3029_CREATE_PLANS 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_employeenumber  TYPE BAPIBEN_OA-PERSON_NO, "   
lv_employeenumber  TYPE BAPIBEN_OA-PERSON_NO, "   
lt_credit_selection  TYPE STANDARD TABLE OF BAPIBEN_S1, "   
lt_invest_selection  TYPE STANDARD TABLE OF BAPIBENSIV, "   
lv_dateofvalidity  TYPE BAPIBEN_OA-VALID_DATE, "   
lv_dateofvalidity  TYPE BAPIBEN_OA-VALID_DATE, "   
lt_health_selection  TYPE STANDARD TABLE OF BAPIBEN_SA, "   
lv_event  TYPE BAPIBENEVT, "   
lv_return  TYPE BAPIRETURN1, "   
lt_insurance_selection  TYPE STANDARD TABLE OF BAPIBEN_SB, "   
lv_nocommit  TYPE BAPI_STAND-NO_COMMIT, "   
lt_savings_selection  TYPE STANDARD TABLE OF BAPIBEN_SC, "   
lt_spending_selection  TYPE STANDARD TABLE OF BAPIBEN_SD, "   
lt_miscel_selection  TYPE STANDARD TABLE OF BAPIBEN_SE, "   
lt_stockp_selection  TYPE STANDARD TABLE OF BAPIBEN_SF, "   
lt_depend_selection  TYPE STANDARD TABLE OF BAPIBENSDP, "   
lt_benef_selection  TYPE STANDARD TABLE OF BAPIBENSBF. "   

  CALL FUNCTION 'BAPI_BEN_BUS3029_CREATE_PLANS'  "Enroll employee
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         DATEOFVALIDITY = lv_dateofvalidity
         EVENT = lv_event
         NOCOMMIT = lv_nocommit
    IMPORTING
         EMPLOYEENUMBER = lv_employeenumber
         DATEOFVALIDITY = lv_dateofvalidity
         RETURN = lv_return
    TABLES
         CREDIT_SELECTION = lt_credit_selection
         INVEST_SELECTION = lt_invest_selection
         HEALTH_SELECTION = lt_health_selection
         INSURANCE_SELECTION = lt_insurance_selection
         SAVINGS_SELECTION = lt_savings_selection
         SPENDING_SELECTION = lt_spending_selection
         MISCEL_SELECTION = lt_miscel_selection
         STOCKP_SELECTION = lt_stockp_selection
         DEPEND_SELECTION = lt_depend_selection
         BENEF_SELECTION = lt_benef_selection
. " BAPI_BEN_BUS3029_CREATE_PLANS




ABAP code using 7.40 inline data declarations to call FM BAPI_BEN_BUS3029_CREATE_PLANS

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 PERSON_NO FROM BAPIBEN_OA INTO @DATA(ld_employeenumber).
 
"SELECT single PERSON_NO FROM BAPIBEN_OA INTO @DATA(ld_employeenumber).
 
 
 
"SELECT single VALID_DATE FROM BAPIBEN_OA INTO @DATA(ld_dateofvalidity).
 
"SELECT single VALID_DATE FROM BAPIBEN_OA INTO @DATA(ld_dateofvalidity).
 
 
 
 
 
"SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit).
 
 
 
 
 
 
 


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!