SAP HR_CONVERT_2001_INTO_AB_TECH Function Module for









HR_CONVERT_2001_INTO_AB_TECH is a standard hr convert 2001 into ab tech SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 convert 2001 into ab tech FM, simply by entering the name HR_CONVERT_2001_INTO_AB_TECH into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRTIM00ABSENCE
Program Name: SAPLHRTIM00ABSENCE
Main Program: SAPLHRTIM00ABSENCE
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HR_CONVERT_2001_INTO_AB_TECH 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_CONVERT_2001_INTO_AB_TECH'"
EXPORTING
P_PERNR = "
BEGDA = "
ENDDA = "
PBEGD = "
* PAYTY = ' ' "
MOLGA = "
* SPLIT_PARM = ' ' "
* INAC_PARM = 'INAC' "
* SW_PROT = "

TABLES
I2001 = "
IWPBP = "
AB = "
* VAC_REF = "
* ALP = "
* PLOG_TEXT = "

EXCEPTIONS
QUOTA_SPLIT_ERROR = 1 CUSTOMIZING_ERROR = 2 NO_VALID_CUSTOMIZING = 3 INACTIVE_ERROR = 4
.



IMPORTING Parameters details for HR_CONVERT_2001_INTO_AB_TECH

P_PERNR -

Data type: PERNR-PERNR
Optional: No
Call by Reference: Yes

BEGDA -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

ENDDA -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

PBEGD -

Data type: SY-DATUM
Optional: No
Call by Reference: Yes

PAYTY -

Data type: PAYTY
Default: ' '
Optional: Yes
Call by Reference: Yes

MOLGA -

Data type: T500L-MOLGA
Optional: No
Call by Reference: Yes

SPLIT_PARM -

Data type: PCAL_AS-PARM3
Default: ' '
Optional: Yes
Call by Reference: Yes

INAC_PARM -

Data type: PCAL_AS-PARM4
Default: 'INAC'
Optional: Yes
Call by Reference: Yes

SW_PROT -

Data type: C
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for HR_CONVERT_2001_INTO_AB_TECH

I2001 -

Data type: P2001
Optional: No
Call by Reference: No ( called with pass by value option)

IWPBP -

Data type: PC205
Optional: No
Call by Reference: No ( called with pass by value option)

AB -

Data type: PC20I
Optional: No
Call by Reference: No ( called with pass by value option)

VAC_REF -

Data type: PTMAB_VAC_REF_TAB
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALP -

Data type: PC20E
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLOG_TEXT -

Data type: PLOG_TEXT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

QUOTA_SPLIT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CUSTOMIZING_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_VALID_CUSTOMIZING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INACTIVE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HR_CONVERT_2001_INTO_AB_TECH 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:
lt_i2001  TYPE STANDARD TABLE OF P2001, "   
lv_p_pernr  TYPE PERNR-PERNR, "   
lv_quota_split_error  TYPE PERNR, "   
lv_begda  TYPE SY-DATUM, "   
lt_iwpbp  TYPE STANDARD TABLE OF PC205, "   
lv_customizing_error  TYPE PC205, "   
lt_ab  TYPE STANDARD TABLE OF PC20I, "   
lv_endda  TYPE SY-DATUM, "   
lv_no_valid_customizing  TYPE SY, "   
lv_pbegd  TYPE SY-DATUM, "   
lt_vac_ref  TYPE STANDARD TABLE OF PTMAB_VAC_REF_TAB, "   
lv_inactive_error  TYPE PTMAB_VAC_REF_TAB, "   
lt_alp  TYPE STANDARD TABLE OF PC20E, "   
lv_payty  TYPE PAYTY, "   ' '
lv_molga  TYPE T500L-MOLGA, "   
lt_plog_text  TYPE STANDARD TABLE OF PLOG_TEXT, "   
lv_split_parm  TYPE PCAL_AS-PARM3, "   ' '
lv_inac_parm  TYPE PCAL_AS-PARM4, "   'INAC'
lv_sw_prot  TYPE C. "   

  CALL FUNCTION 'HR_CONVERT_2001_INTO_AB_TECH'  "
    EXPORTING
         P_PERNR = lv_p_pernr
         BEGDA = lv_begda
         ENDDA = lv_endda
         PBEGD = lv_pbegd
         PAYTY = lv_payty
         MOLGA = lv_molga
         SPLIT_PARM = lv_split_parm
         INAC_PARM = lv_inac_parm
         SW_PROT = lv_sw_prot
    TABLES
         I2001 = lt_i2001
         IWPBP = lt_iwpbp
         AB = lt_ab
         VAC_REF = lt_vac_ref
         ALP = lt_alp
         PLOG_TEXT = lt_plog_text
    EXCEPTIONS
        QUOTA_SPLIT_ERROR = 1
        CUSTOMIZING_ERROR = 2
        NO_VALID_CUSTOMIZING = 3
        INACTIVE_ERROR = 4
. " HR_CONVERT_2001_INTO_AB_TECH




ABAP code using 7.40 inline data declarations to call FM HR_CONVERT_2001_INTO_AB_TECH

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 PERNR INTO @DATA(ld_p_pernr).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_begda).
 
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_endda).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_pbegd).
 
 
 
 
DATA(ld_payty) = ' '.
 
"SELECT single MOLGA FROM T500L INTO @DATA(ld_molga).
 
 
"SELECT single PARM3 FROM PCAL_AS INTO @DATA(ld_split_parm).
DATA(ld_split_parm) = ' '.
 
"SELECT single PARM4 FROM PCAL_AS INTO @DATA(ld_inac_parm).
DATA(ld_inac_parm) = 'INAC'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!