SAP Function Modules

BAPI_BEN_BUS3029_DELETE_PLANS SAP Function module - Cancel EE enrollment







BAPI_BEN_BUS3029_DELETE_PLANS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_BEN_BUS3029_DELETE_PLANS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: HRBEN00BUS3029
Released Date: 25.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_BEN_BUS3029_DELETE_PLANS - BAPI BEN BUS3029 DELETE PLANS





CALL FUNCTION 'BAPI_BEN_BUS3029_DELETE_PLANS' "Cancel EE enrollment
  EXPORTING
    employeenumber =            " bapiben_oa-person_no  Employee's personnel number
*   nocommit =                  " bapi_stand-no_commit  COMMIT control at BAPI interface
  IMPORTING
    return =                    " bapireturn1   Return
* TABLES
*   credit_selection =          " bapiben_s1    Credit selection
*   health_selection =          " bapiben_sa    Health plan selection
*   insurance_selection =       " bapiben_sb    Insurance plan selection
*   savings_selection =         " bapiben_sc    Savings plan selection
*   spending_selection =        " bapiben_sd    FSA selection
*   miscel_selection =          " bapiben_se    Miscellaneous plan selection
*   stockp_selection =          " bapiben_sf    Stock purchase plan selection
    .  "  BAPI_BEN_BUS3029_DELETE_PLANS

ABAP code example for Function Module BAPI_BEN_BUS3029_DELETE_PLANS





The ABAP code below is a full code listing to execute function module BAPI_BEN_BUS3029_DELETE_PLANS including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_return  TYPE BAPIRETURN1 ,
it_credit_selection  TYPE STANDARD TABLE OF BAPIBEN_S1,"TABLES PARAM
wa_credit_selection  LIKE LINE OF it_credit_selection ,
it_health_selection  TYPE STANDARD TABLE OF BAPIBEN_SA,"TABLES PARAM
wa_health_selection  LIKE LINE OF it_health_selection ,
it_insurance_selection  TYPE STANDARD TABLE OF BAPIBEN_SB,"TABLES PARAM
wa_insurance_selection  LIKE LINE OF it_insurance_selection ,
it_savings_selection  TYPE STANDARD TABLE OF BAPIBEN_SC,"TABLES PARAM
wa_savings_selection  LIKE LINE OF it_savings_selection ,
it_spending_selection  TYPE STANDARD TABLE OF BAPIBEN_SD,"TABLES PARAM
wa_spending_selection  LIKE LINE OF it_spending_selection ,
it_miscel_selection  TYPE STANDARD TABLE OF BAPIBEN_SE,"TABLES PARAM
wa_miscel_selection  LIKE LINE OF it_miscel_selection ,
it_stockp_selection  TYPE STANDARD TABLE OF BAPIBEN_SF,"TABLES PARAM
wa_stockp_selection  LIKE LINE OF it_stockp_selection .


DATA(ld_employeenumber) = Check type of data required

DATA(ld_nocommit) = some text here

"populate fields of struture and append to itab
append wa_credit_selection to it_credit_selection.

"populate fields of struture and append to itab
append wa_health_selection to it_health_selection.

"populate fields of struture and append to itab
append wa_insurance_selection to it_insurance_selection.

"populate fields of struture and append to itab
append wa_savings_selection to it_savings_selection.

"populate fields of struture and append to itab
append wa_spending_selection to it_spending_selection.

"populate fields of struture and append to itab
append wa_miscel_selection to it_miscel_selection.

"populate fields of struture and append to itab
append wa_stockp_selection to it_stockp_selection. . CALL FUNCTION 'BAPI_BEN_BUS3029_DELETE_PLANS' EXPORTING employeenumber = ld_employeenumber * nocommit = ld_nocommit IMPORTING return = ld_return * TABLES * credit_selection = it_credit_selection * health_selection = it_health_selection * insurance_selection = it_insurance_selection * savings_selection = it_savings_selection * spending_selection = it_spending_selection * miscel_selection = it_miscel_selection * stockp_selection = it_stockp_selection . " BAPI_BEN_BUS3029_DELETE_PLANS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return  TYPE BAPIRETURN1 ,
ld_employeenumber  TYPE BAPIBEN_OA-PERSON_NO ,
it_credit_selection  TYPE STANDARD TABLE OF BAPIBEN_S1 ,
wa_credit_selection  LIKE LINE OF it_credit_selection,
ld_nocommit  TYPE BAPI_STAND-NO_COMMIT ,
it_health_selection  TYPE STANDARD TABLE OF BAPIBEN_SA ,
wa_health_selection  LIKE LINE OF it_health_selection,
it_insurance_selection  TYPE STANDARD TABLE OF BAPIBEN_SB ,
wa_insurance_selection  LIKE LINE OF it_insurance_selection,
it_savings_selection  TYPE STANDARD TABLE OF BAPIBEN_SC ,
wa_savings_selection  LIKE LINE OF it_savings_selection,
it_spending_selection  TYPE STANDARD TABLE OF BAPIBEN_SD ,
wa_spending_selection  LIKE LINE OF it_spending_selection,
it_miscel_selection  TYPE STANDARD TABLE OF BAPIBEN_SE ,
wa_miscel_selection  LIKE LINE OF it_miscel_selection,
it_stockp_selection  TYPE STANDARD TABLE OF BAPIBEN_SF ,
wa_stockp_selection  LIKE LINE OF it_stockp_selection.


ld_employeenumber = Check type of data required

"populate fields of struture and append to itab
append wa_credit_selection to it_credit_selection.

ld_nocommit = some text here

"populate fields of struture and append to itab
append wa_health_selection to it_health_selection.

"populate fields of struture and append to itab
append wa_insurance_selection to it_insurance_selection.

"populate fields of struture and append to itab
append wa_savings_selection to it_savings_selection.

"populate fields of struture and append to itab
append wa_spending_selection to it_spending_selection.

"populate fields of struture and append to itab
append wa_miscel_selection to it_miscel_selection.

"populate fields of struture and append to itab
append wa_stockp_selection to it_stockp_selection.

SAP Documentation for FM BAPI_BEN_BUS3029_DELETE_PLANS


This function module is used as the basis for the BAPI method EmployeeBenefit.DeletePlans. ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_BEN_BUS3029_DELETE_PLANS or its description.