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

Function BAPI_EMPTAXAU_GETDETAIL 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_EMPTAXAU_GETDETAIL'"Read Tax Australia.
EXPORTING
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
IMPORTING
RETURN = "Structure for return code
TAXREBATEAMOUNT = "Tax Rebate Amount
TAXFILENUMBER = "Tax File Number (TFN)
DATETFNPROVIDED = "Date tax file number was provided
TAXSCALE = "Tax Scale
HECSCONTRIBUTOR = "HECS Contributor
GROUPCERTIFICATEISSUED = "Group Certificate Issued
MEDICARELEVYEXEMPTION = "Medicare Levy Exemption
NUMBEROFDEPENDANTS = "Number of Dependants
TAXREBATE = "Rebate Key
IMPORTING Parameters details for BAPI_EMPTAXAU_GETDETAIL
EMPLOYEENUMBER - Personnel number
Data type: BAPIP0188-PERNROptional: No
Call by Reference: No ( called with pass by value option)
SUBTYPE - Subtype
Data type: BAPIP0188-SUBTYOptional: No
Call by Reference: No ( called with pass by value option)
OBJECTID - Object identification
Data type: BAPIP0188-OBJPSOptional: No
Call by Reference: No ( called with pass by value option)
LOCKINDICATOR - Lock indicator for HR master record
Data type: BAPIP0188-SPRPSOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYBEGIN - Start date
Data type: BAPIP0188-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
VALIDITYEND - End Date
Data type: BAPIP0188-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
RECORDNUMBER - Number of infotype record
Data type: BAPIP0188-SEQNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_EMPTAXAU_GETDETAIL
RETURN - Structure for return code
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TAXREBATEAMOUNT - Tax Rebate Amount
Data type: BAPIP0188-TAXFIOptional: No
Call by Reference: No ( called with pass by value option)
TAXFILENUMBER - Tax File Number (TFN)
Data type: BAPIP0188-TAXFNOptional: No
Call by Reference: No ( called with pass by value option)
DATETFNPROVIDED - Date tax file number was provided
Data type: BAPIP0188-TFNDPOptional: No
Call by Reference: No ( called with pass by value option)
TAXSCALE - Tax Scale
Data type: BAPIP0188-TAXSCOptional: No
Call by Reference: No ( called with pass by value option)
HECSCONTRIBUTOR - HECS Contributor
Data type: BAPIP0188-HECSFOptional: No
Call by Reference: No ( called with pass by value option)
GROUPCERTIFICATEISSUED - Group Certificate Issued
Data type: BAPIP0188-GCISSOptional: No
Call by Reference: No ( called with pass by value option)
MEDICARELEVYEXEMPTION - Medicare Levy Exemption
Data type: BAPIP0188-MEDEXOptional: No
Call by Reference: No ( called with pass by value option)
NUMBEROFDEPENDANTS - Number of Dependants
Data type: BAPIP0188-NODEPOptional: No
Call by Reference: No ( called with pass by value option)
TAXREBATE - Rebate Key
Data type: BAPIP0188-REBATOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_EMPTAXAU_GETDETAIL 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_employeenumber | TYPE BAPIP0188-PERNR, " | |||
| lv_taxrebateamount | TYPE BAPIP0188-TAXFI, " | |||
| lv_subtype | TYPE BAPIP0188-SUBTY, " | |||
| lv_taxfilenumber | TYPE BAPIP0188-TAXFN, " | |||
| lv_objectid | TYPE BAPIP0188-OBJPS, " | |||
| lv_datetfnprovided | TYPE BAPIP0188-TFNDP, " | |||
| lv_taxscale | TYPE BAPIP0188-TAXSC, " | |||
| lv_lockindicator | TYPE BAPIP0188-SPRPS, " | |||
| lv_validitybegin | TYPE BAPIP0188-BEGDA, " | |||
| lv_hecscontributor | TYPE BAPIP0188-HECSF, " | |||
| lv_validityend | TYPE BAPIP0188-ENDDA, " | |||
| lv_groupcertificateissued | TYPE BAPIP0188-GCISS, " | |||
| lv_recordnumber | TYPE BAPIP0188-SEQNR, " | |||
| lv_medicarelevyexemption | TYPE BAPIP0188-MEDEX, " | |||
| lv_numberofdependants | TYPE BAPIP0188-NODEP, " | |||
| lv_taxrebate | TYPE BAPIP0188-REBAT. " |
|   CALL FUNCTION 'BAPI_EMPTAXAU_GETDETAIL' "Read Tax Australia |
| EXPORTING | ||
| EMPLOYEENUMBER | = lv_employeenumber | |
| SUBTYPE | = lv_subtype | |
| OBJECTID | = lv_objectid | |
| LOCKINDICATOR | = lv_lockindicator | |
| VALIDITYBEGIN | = lv_validitybegin | |
| VALIDITYEND | = lv_validityend | |
| RECORDNUMBER | = lv_recordnumber | |
| IMPORTING | ||
| RETURN | = lv_return | |
| TAXREBATEAMOUNT | = lv_taxrebateamount | |
| TAXFILENUMBER | = lv_taxfilenumber | |
| DATETFNPROVIDED | = lv_datetfnprovided | |
| TAXSCALE | = lv_taxscale | |
| HECSCONTRIBUTOR | = lv_hecscontributor | |
| GROUPCERTIFICATEISSUED | = lv_groupcertificateissued | |
| MEDICARELEVYEXEMPTION | = lv_medicarelevyexemption | |
| NUMBEROFDEPENDANTS | = lv_numberofdependants | |
| TAXREBATE | = lv_taxrebate | |
| . " BAPI_EMPTAXAU_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_EMPTAXAU_GETDETAIL
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 BAPIP0188 INTO @DATA(ld_employeenumber). | ||||
| "SELECT single TAXFI FROM BAPIP0188 INTO @DATA(ld_taxrebateamount). | ||||
| "SELECT single SUBTY FROM BAPIP0188 INTO @DATA(ld_subtype). | ||||
| "SELECT single TAXFN FROM BAPIP0188 INTO @DATA(ld_taxfilenumber). | ||||
| "SELECT single OBJPS FROM BAPIP0188 INTO @DATA(ld_objectid). | ||||
| "SELECT single TFNDP FROM BAPIP0188 INTO @DATA(ld_datetfnprovided). | ||||
| "SELECT single TAXSC FROM BAPIP0188 INTO @DATA(ld_taxscale). | ||||
| "SELECT single SPRPS FROM BAPIP0188 INTO @DATA(ld_lockindicator). | ||||
| "SELECT single BEGDA FROM BAPIP0188 INTO @DATA(ld_validitybegin). | ||||
| "SELECT single HECSF FROM BAPIP0188 INTO @DATA(ld_hecscontributor). | ||||
| "SELECT single ENDDA FROM BAPIP0188 INTO @DATA(ld_validityend). | ||||
| "SELECT single GCISS FROM BAPIP0188 INTO @DATA(ld_groupcertificateissued). | ||||
| "SELECT single SEQNR FROM BAPIP0188 INTO @DATA(ld_recordnumber). | ||||
| "SELECT single MEDEX FROM BAPIP0188 INTO @DATA(ld_medicarelevyexemption). | ||||
| "SELECT single NODEP FROM BAPIP0188 INTO @DATA(ld_numberofdependants). | ||||
| "SELECT single REBAT FROM BAPIP0188 INTO @DATA(ld_taxrebate). | ||||
Search for further information about these or an SAP related objects