SAP RP_CHECK_TAX_GROUPING Function Module for Checks if a change in tax grouping has occured in the reporting period
RP_CHECK_TAX_GROUPING is a standard rp check tax grouping SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks if a change in tax grouping has occured in the reporting period 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 rp check tax grouping FM, simply by entering the name RP_CHECK_TAX_GROUPING into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPAYPH
Program Name: SAPLHRPAYPH
Main Program: SAPLHRPAYPH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RP_CHECK_TAX_GROUPING 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 'RP_CHECK_TAX_GROUPING'"Checks if a change in tax grouping has occured in the reporting period.
EXPORTING
FIRST_DAY = "Start Date
LAST_DAY = "End Date
SELECTION_GROUP = "Tax grouping
CODE_GROUP = "
PERNR_NO = "Personnel number
IMPORTING
CHANGED_FIRSTDAY = "Start Date
CHANGED_LASTDAY = "End Date
EXCEPTIONS
NO_CHANGE = 1 NOT_FOUND = 2 INVALID_CODE = 3 REP_GRP_CHANGED = 4 TAX_GRP_CHANGED = 5 OTHER = 6
IMPORTING Parameters details for RP_CHECK_TAX_GROUPING
FIRST_DAY - Start Date
Data type: T7PH0A-BEGDAOptional: No
Call by Reference: No ( called with pass by value option)
LAST_DAY - End Date
Data type: T7PH0A-ENDDAOptional: No
Call by Reference: No ( called with pass by value option)
SELECTION_GROUP - Tax grouping
Data type: T7PH0A-TXGRPOptional: No
Call by Reference: No ( called with pass by value option)
CODE_GROUP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERNR_NO - Personnel number
Data type: PERNR-PERNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RP_CHECK_TAX_GROUPING
CHANGED_FIRSTDAY - Start Date
Data type: T7PH0A-BEGDAOptional: No
Call by Reference: Yes
CHANGED_LASTDAY - End Date
Data type: T7PH0A-ENDDAOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_CHANGE - No change in tax grouping
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND - Report groupings not found
Data type:Optional: No
Call by Reference: Yes
INVALID_CODE - Invalid report grouping
Data type:Optional: No
Call by Reference: Yes
REP_GRP_CHANGED - Report grouping has changed
Data type:Optional: No
Call by Reference: Yes
TAX_GRP_CHANGED - Tax grouping has changed
Data type:Optional: No
Call by Reference: Yes
OTHER - Other
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RP_CHECK_TAX_GROUPING 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_first_day | TYPE T7PH0A-BEGDA, " | |||
lv_no_change | TYPE T7PH0A, " | |||
lv_changed_firstday | TYPE T7PH0A-BEGDA, " | |||
lv_last_day | TYPE T7PH0A-ENDDA, " | |||
lv_not_found | TYPE T7PH0A, " | |||
lv_changed_lastday | TYPE T7PH0A-ENDDA, " | |||
lv_invalid_code | TYPE T7PH0A, " | |||
lv_selection_group | TYPE T7PH0A-TXGRP, " | |||
lv_code_group | TYPE T7PH0A, " | |||
lv_rep_grp_changed | TYPE T7PH0A, " | |||
lv_pernr_no | TYPE PERNR-PERNR, " | |||
lv_tax_grp_changed | TYPE PERNR, " | |||
lv_other | TYPE PERNR. " |
  CALL FUNCTION 'RP_CHECK_TAX_GROUPING' "Checks if a change in tax grouping has occured in the reporting period |
EXPORTING | ||
FIRST_DAY | = lv_first_day | |
LAST_DAY | = lv_last_day | |
SELECTION_GROUP | = lv_selection_group | |
CODE_GROUP | = lv_code_group | |
PERNR_NO | = lv_pernr_no | |
IMPORTING | ||
CHANGED_FIRSTDAY | = lv_changed_firstday | |
CHANGED_LASTDAY | = lv_changed_lastday | |
EXCEPTIONS | ||
NO_CHANGE = 1 | ||
NOT_FOUND = 2 | ||
INVALID_CODE = 3 | ||
REP_GRP_CHANGED = 4 | ||
TAX_GRP_CHANGED = 5 | ||
OTHER = 6 | ||
. " RP_CHECK_TAX_GROUPING |
ABAP code using 7.40 inline data declarations to call FM RP_CHECK_TAX_GROUPING
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 BEGDA FROM T7PH0A INTO @DATA(ld_first_day). | ||||
"SELECT single BEGDA FROM T7PH0A INTO @DATA(ld_changed_firstday). | ||||
"SELECT single ENDDA FROM T7PH0A INTO @DATA(ld_last_day). | ||||
"SELECT single ENDDA FROM T7PH0A INTO @DATA(ld_changed_lastday). | ||||
"SELECT single TXGRP FROM T7PH0A INTO @DATA(ld_selection_group). | ||||
"SELECT single PERNR FROM PERNR INTO @DATA(ld_pernr_no). | ||||
Search for further information about these or an SAP related objects