SAP HR_PL_D_MY_OTAX Function Module for Display results table OTAX
HR_PL_D_MY_OTAX is a standard hr pl d my otax SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display results table OTAX 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 hr pl d my otax FM, simply by entering the name HR_PL_D_MY_OTAX into the relevant SAP transaction such as SE37 or SE38.
Function Group: 31MY
Program Name: SAPL31MY
Main Program: SAPL31MY
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function HR_PL_D_MY_OTAX 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 'HR_PL_D_MY_OTAX'"Display results table OTAX.
EXPORTING
IMP_INTCA = "
* IMP_MODIF = "
* IMP_BEGDA = "
* IMP_ENDDA = '99991231' "
* IMP_PSEARCH = "
* IMP_OFFSET = 1 "
* IMP_MARKTAB = "
IMP_CURRENCY = "
IMP_TABLE = "
* IMP_LOOK = "
* IMP_DETAIL = 'X' "
* IMP_PROCESS = "
* IMP_SEARCH = "
* IMP_LEVEL = 1 "
IMPORTING
EXP_NODETAIL = "
TABLES
* IMP_PTEXT = "
* IMP_HITLIST = "Hit List After Search in Payroll Log / Time Evaluation Log
IMPORTING Parameters details for HR_PL_D_MY_OTAX
IMP_INTCA -
Data type: T500L-INTCAOptional: No
Call by Reference: Yes
IMP_MODIF -
Data type: HRPLOG_MODIFOptional: Yes
Call by Reference: Yes
IMP_BEGDA -
Data type: DOptional: Yes
Call by Reference: Yes
IMP_ENDDA -
Data type: DDefault: '99991231'
Optional: Yes
Call by Reference: Yes
IMP_PSEARCH -
Data type: SY-LISELOptional: Yes
Call by Reference: Yes
IMP_OFFSET -
Data type: IDefault: 1
Optional: Yes
Call by Reference: Yes
IMP_MARKTAB -
Data type: HRPLOG_MARKTABOptional: Yes
Call by Reference: Yes
IMP_CURRENCY -
Data type: WAERSOptional: No
Call by Reference: Yes
IMP_TABLE -
Data type:Optional: No
Call by Reference: Yes
IMP_LOOK -
Data type: RPUXXXXX-KR_FELD2Optional: Yes
Call by Reference: Yes
IMP_DETAIL -
Data type: RPUXXXXX-KR_FELD2Default: 'X'
Optional: Yes
Call by Reference: Yes
IMP_PROCESS -
Data type: RPUXXXXX-KR_FELD2Optional: Yes
Call by Reference: Yes
IMP_SEARCH -
Data type: RPUXXXXX-KR_FELD2Optional: Yes
Call by Reference: Yes
IMP_LEVEL -
Data type: PLOG_TEXT-TLEVELDefault: 1
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_PL_D_MY_OTAX
EXP_NODETAIL -
Data type: RP_XFELDOptional: No
Call by Reference: Yes
TABLES Parameters details for HR_PL_D_MY_OTAX
IMP_PTEXT -
Data type: PLOG_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
IMP_HITLIST - Hit List After Search in Payroll Log / Time Evaluation Log
Data type: HRPLOG_HITLISTOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for HR_PL_D_MY_OTAX 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_imp_intca | TYPE T500L-INTCA, " | |||
lv_imp_modif | TYPE HRPLOG_MODIF, " | |||
lv_imp_begda | TYPE D, " | |||
lv_imp_endda | TYPE D, " '99991231' | |||
lv_imp_psearch | TYPE SY-LISEL, " | |||
lv_imp_offset | TYPE I, " 1 | |||
lv_exp_nodetail | TYPE RP_XFELD, " | |||
lt_imp_ptext | TYPE STANDARD TABLE OF PLOG_TEXT, " | |||
lt_imp_hitlist | TYPE STANDARD TABLE OF HRPLOG_HITLIST, " | |||
lv_imp_marktab | TYPE HRPLOG_MARKTAB, " | |||
lv_imp_currency | TYPE WAERS, " | |||
lv_imp_table | TYPE WAERS, " | |||
lv_imp_look | TYPE RPUXXXXX-KR_FELD2, " | |||
lv_imp_detail | TYPE RPUXXXXX-KR_FELD2, " 'X' | |||
lv_imp_process | TYPE RPUXXXXX-KR_FELD2, " | |||
lv_imp_search | TYPE RPUXXXXX-KR_FELD2, " | |||
lv_imp_level | TYPE PLOG_TEXT-TLEVEL. " 1 |
  CALL FUNCTION 'HR_PL_D_MY_OTAX' "Display results table OTAX |
EXPORTING | ||
IMP_INTCA | = lv_imp_intca | |
IMP_MODIF | = lv_imp_modif | |
IMP_BEGDA | = lv_imp_begda | |
IMP_ENDDA | = lv_imp_endda | |
IMP_PSEARCH | = lv_imp_psearch | |
IMP_OFFSET | = lv_imp_offset | |
IMP_MARKTAB | = lv_imp_marktab | |
IMP_CURRENCY | = lv_imp_currency | |
IMP_TABLE | = lv_imp_table | |
IMP_LOOK | = lv_imp_look | |
IMP_DETAIL | = lv_imp_detail | |
IMP_PROCESS | = lv_imp_process | |
IMP_SEARCH | = lv_imp_search | |
IMP_LEVEL | = lv_imp_level | |
IMPORTING | ||
EXP_NODETAIL | = lv_exp_nodetail | |
TABLES | ||
IMP_PTEXT | = lt_imp_ptext | |
IMP_HITLIST | = lt_imp_hitlist | |
. " HR_PL_D_MY_OTAX |
ABAP code using 7.40 inline data declarations to call FM HR_PL_D_MY_OTAX
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 INTCA FROM T500L INTO @DATA(ld_imp_intca). | ||||
DATA(ld_imp_endda) | = '99991231'. | |||
"SELECT single LISEL FROM SY INTO @DATA(ld_imp_psearch). | ||||
DATA(ld_imp_offset) | = 1. | |||
"SELECT single KR_FELD2 FROM RPUXXXXX INTO @DATA(ld_imp_look). | ||||
"SELECT single KR_FELD2 FROM RPUXXXXX INTO @DATA(ld_imp_detail). | ||||
DATA(ld_imp_detail) | = 'X'. | |||
"SELECT single KR_FELD2 FROM RPUXXXXX INTO @DATA(ld_imp_process). | ||||
"SELECT single KR_FELD2 FROM RPUXXXXX INTO @DATA(ld_imp_search). | ||||
"SELECT single TLEVEL FROM PLOG_TEXT INTO @DATA(ld_imp_level). | ||||
DATA(ld_imp_level) | = 1. | |||
Search for further information about these or an SAP related objects