SAP BAPI_EMPSUPANAU_CREATE Function Module for Create Superannuation Australia
BAPI_EMPSUPANAU_CREATE is a standard bapi empsupanau create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Superannuation Australia 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 empsupanau create FM, simply by entering the name BAPI_EMPSUPANAU_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: PSUP
Program Name: SAPLPSUP
Main Program:
Appliation area: P
Release date: 07-Feb-2000
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_EMPSUPANAU_CREATE 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_EMPSUPANAU_CREATE'"Create Superannuation Australia.
EXPORTING
INEMPLOYEENUMBER = "Personnel Number
* MEDICALCLASSIFICATION = "Superannuation Medical Classification
* REASONCODE = "Superannuation Reason Code
* SALARYUSAGE = "Superannuation Salary Usage
* PERIODSALARY = "Superannuation Period Salary
* EMPLOYEECONTRIBPERCENTAGE = "Superannuation Employee Contribution Percentage
* EMPLOYEECONTRIBAMOUNT = "Superannuation Employee Contribution Amount
* SUPFACTORINGMETHOD = "Superannuation Australia Factoring Method
* COMFACTORINGMETHOD = "Superannuation Australia Factoring Method
* EMPFACTORINGMETHOD = "Superannuation Australia Factoring Method
* NOCOMMIT = "COMMIT control at BAPI interface
INVALIDITYBEGIN = "Start date
INVALIDITYEND = "End Date
* FUNDCODE = "Superannuation Fund Code
* MEMBERSHIPNUMBER = "Superannuation Fund Membership Number Australia
* EMPLOYERCONTRIBPERCENTAGE = "Superannuation Default Contribution Percentage
* EMPLOYERCONTRIBAMOUNT = "Superannuation Contribution Amount
* FUNDEXCLUSIONFLAG = "Superannuation Fund Exclusion Flag Australia
* JOINEDDATE = "Superannuation Fund Joined Date
IMPORTING
RETURN = "Structure for return code
EMPLOYEENUMBER = "Personnel Number
SUBTYPE = "Subtype
OBJECTID = "Object identification
LOCKINDICATOR = "Lock indicator for HR master record
VALIDITYBEGIN = "Start date
VALIDITYEND = "End Date
RECORDNUMBER = "Number of infotype record with same key
IMPORTING Parameters details for BAPI_EMPSUPANAU_CREATE
INEMPLOYEENUMBER - Personnel Number
Data type: BAPIP0220-PERNROptional: No
Call by Reference: No ( called with pass by value option)
MEDICALCLASSIFICATION - Superannuation Medical Classification
Data type: BAPIP0220-MEDCLOptional: Yes
Call by Reference: No ( called with pass by value option)
REASONCODE - Superannuation Reason Code
Data type: BAPIP0220-REASCOptional: Yes
Call by Reference: No ( called with pass by value option)
SALARYUSAGE - Superannuation Salary Usage
Data type: BAPIP0220-SUPSCOptional: Yes
Call by Reference: No ( called with pass by value option)
PERIODSALARY - Superannuation Period Salary
Data type: BAPIP0220-SUPESOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYEECONTRIBPERCENTAGE - Superannuation Employee Contribution Percentage
Data type: BAPIP0220-EMPCNOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYEECONTRIBAMOUNT - Superannuation Employee Contribution Amount
Data type: BAPIP0220-EMPAMOptional: Yes
Call by Reference: No ( called with pass by value option)
SUPFACTORINGMETHOD - Superannuation Australia Factoring Method
Data type: BAPIP0220-SUPFROptional: Yes
Call by Reference: No ( called with pass by value option)
COMFACTORINGMETHOD - Superannuation Australia Factoring Method
Data type: BAPIP0220-COMFROptional: Yes
Call by Reference: No ( called with pass by value option)
EMPFACTORINGMETHOD - Superannuation Australia Factoring Method
Data type: BAPIP0220-EMPFROptional: Yes
Call by Reference: No ( called with pass by value option)
NOCOMMIT - COMMIT control at BAPI interface
Data type: BAPI_STAND-NO_COMMITOptional: Yes
Call by Reference: No ( called with pass by value option)
INVALIDITYBEGIN - Start date
Data type: BAPIP0220-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
INVALIDITYEND - End Date
Data type: BAPIP0220-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
FUNDCODE - Superannuation Fund Code
Data type: BAPIP0220-FCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
MEMBERSHIPNUMBER - Superannuation Fund Membership Number Australia
Data type: BAPIP0220-MEMNOOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYERCONTRIBPERCENTAGE - Superannuation Default Contribution Percentage
Data type: BAPIP0220-DPCONOptional: Yes
Call by Reference: No ( called with pass by value option)
EMPLOYERCONTRIBAMOUNT - Superannuation Contribution Amount
Data type: BAPIP0220-CONAMOptional: Yes
Call by Reference: No ( called with pass by value option)
FUNDEXCLUSIONFLAG - Superannuation Fund Exclusion Flag Australia
Data type: BAPIP0220-EXCLFOptional: Yes
Call by Reference: No ( called with pass by value option)
JOINEDDATE - Superannuation Fund Joined Date
Data type: BAPIP0220-JONIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_EMPSUPANAU_CREATE
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
EMPLOYEENUMBER - Personnel Number
Data type: BAPIP0220-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0220-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object identification
Data type: BAPIP0220-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0220-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Start date
Data type: BAPIP0220-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - End Date
Data type: BAPIP0220-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record with same key
Data type: BAPIP0220-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_EMPSUPANAU_CREATE 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_return | TYPE BAPIRETURN1, " | |||
| lv_inemployeenumber | TYPE BAPIP0220-PERNR, " | |||
| lv_medicalclassification | TYPE BAPIP0220-MEDCL, " | |||
| lv_reasoncode | TYPE BAPIP0220-REASC, " | |||
| lv_salaryusage | TYPE BAPIP0220-SUPSC, " | |||
| lv_periodsalary | TYPE BAPIP0220-SUPES, " | |||
| lv_employeecontribpercentage | TYPE BAPIP0220-EMPCN, " | |||
| lv_employeecontribamount | TYPE BAPIP0220-EMPAM, " | |||
| lv_supfactoringmethod | TYPE BAPIP0220-SUPFR, " | |||
| lv_comfactoringmethod | TYPE BAPIP0220-COMFR, " | |||
| lv_empfactoringmethod | TYPE BAPIP0220-EMPFR, " | |||
| lv_nocommit | TYPE BAPI_STAND-NO_COMMIT, " | |||
| lv_employeenumber | TYPE BAPIP0220-PERNR, " | |||
| lv_invaliditybegin | TYPE BAPIP0220-BEGDA, " | |||
| lv_subtype | TYPE BAPIP0220-SUBTY, " | |||
| lv_invalidityend | TYPE BAPIP0220-ENDDA, " | |||
| lv_fundcode | TYPE BAPIP0220-FCODE, " | |||
| lv_objectid | TYPE BAPIP0220-OBJPS, " | |||
| lv_lockindicator | TYPE BAPIP0220-SPRPS, " | |||
| lv_membershipnumber | TYPE BAPIP0220-MEMNO, " | |||
| lv_validitybegin | TYPE BAPIP0220-BEGDA, " | |||
| lv_employercontribpercentage | TYPE BAPIP0220-DPCON, " | |||
| lv_validityend | TYPE BAPIP0220-ENDDA, " | |||
| lv_employercontribamount | TYPE BAPIP0220-CONAM, " | |||
| lv_recordnumber | TYPE BAPIP0220-SEQNR, " | |||
| lv_fundexclusionflag | TYPE BAPIP0220-EXCLF, " | |||
| lv_joineddate | TYPE BAPIP0220-JONID. " |
|   CALL FUNCTION 'BAPI_EMPSUPANAU_CREATE' "Create Superannuation Australia |
| EXPORTING | ||
| INEMPLOYEENUMBER | = lv_inemployeenumber | |
| MEDICALCLASSIFICATION | = lv_medicalclassification | |
| REASONCODE | = lv_reasoncode | |
| SALARYUSAGE | = lv_salaryusage | |
| PERIODSALARY | = lv_periodsalary | |
| EMPLOYEECONTRIBPERCENTAGE | = lv_employeecontribpercentage | |
| EMPLOYEECONTRIBAMOUNT | = lv_employeecontribamount | |
| SUPFACTORINGMETHOD | = lv_supfactoringmethod | |
| COMFACTORINGMETHOD | = lv_comfactoringmethod | |
| EMPFACTORINGMETHOD | = lv_empfactoringmethod | |
| NOCOMMIT | = lv_nocommit | |
| INVALIDITYBEGIN | = lv_invaliditybegin | |
| INVALIDITYEND | = lv_invalidityend | |
| FUNDCODE | = lv_fundcode | |
| MEMBERSHIPNUMBER | = lv_membershipnumber | |
| EMPLOYERCONTRIBPERCENTAGE | = lv_employercontribpercentage | |
| EMPLOYERCONTRIBAMOUNT | = lv_employercontribamount | |
| FUNDEXCLUSIONFLAG | = lv_fundexclusionflag | |
| JOINEDDATE | = lv_joineddate | |
| IMPORTING | ||
| RETURN | = lv_return | |
| EMPLOYEENUMBER | = lv_employeenumber | |
| SUBTYPE | = lv_subtype | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYBEGIN | = lv_validitybegin | |
| VALIDITYEND | = lv_validityend | |
| RECORDNUMBER | = lv_recordnumber | |
| . " BAPI_EMPSUPANAU_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_EMPSUPANAU_CREATE
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 BAPIP0220 INTO @DATA(ld_inemployeenumber). | ||||
| "SELECT single MEDCL FROM BAPIP0220 INTO @DATA(ld_medicalclassification). | ||||
| "SELECT single REASC FROM BAPIP0220 INTO @DATA(ld_reasoncode). | ||||
| "SELECT single SUPSC FROM BAPIP0220 INTO @DATA(ld_salaryusage). | ||||
| "SELECT single SUPES FROM BAPIP0220 INTO @DATA(ld_periodsalary). | ||||
| "SELECT single EMPCN FROM BAPIP0220 INTO @DATA(ld_employeecontribpercentage). | ||||
| "SELECT single EMPAM FROM BAPIP0220 INTO @DATA(ld_employeecontribamount). | ||||
| "SELECT single SUPFR FROM BAPIP0220 INTO @DATA(ld_supfactoringmethod). | ||||
| "SELECT single COMFR FROM BAPIP0220 INTO @DATA(ld_comfactoringmethod). | ||||
| "SELECT single EMPFR FROM BAPIP0220 INTO @DATA(ld_empfactoringmethod). | ||||
| "SELECT single NO_COMMIT FROM BAPI_STAND INTO @DATA(ld_nocommit). | ||||
| "SELECT single PERNR FROM BAPIP0220 INTO @DATA(ld_employeenumber). | ||||
| "SELECT single BEGDA FROM BAPIP0220 INTO @DATA(ld_invaliditybegin). | ||||
| "SELECT single SUBTY FROM BAPIP0220 INTO @DATA(ld_subtype). | ||||
| "SELECT single ENDDA FROM BAPIP0220 INTO @DATA(ld_invalidityend). | ||||
| "SELECT single FCODE FROM BAPIP0220 INTO @DATA(ld_fundcode). | ||||
| "SELECT single OBJPS FROM BAPIP0220 INTO @DATA(ld_objectid). | ||||
| "SELECT single SPRPS FROM BAPIP0220 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single MEMNO FROM BAPIP0220 INTO @DATA(ld_membershipnumber). | ||||
| "SELECT single BEGDA FROM BAPIP0220 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single DPCON FROM BAPIP0220 INTO @DATA(ld_employercontribpercentage). | ||||
| "SELECT single ENDDA FROM BAPIP0220 INTO @DATA(ld_validityend). | ||||
| "SELECT single CONAM FROM BAPIP0220 INTO @DATA(ld_employercontribamount). | ||||
| "SELECT single SEQNR FROM BAPIP0220 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single EXCLF FROM BAPIP0220 INTO @DATA(ld_fundexclusionflag). | ||||
| "SELECT single JONID FROM BAPIP0220 INTO @DATA(ld_joineddate). | ||||
Search for further information about these or an SAP related objects