SAP HR_CONVERT_DIT Function Module for









HR_CONVERT_DIT is a standard hr convert dit 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 dit FM, simply by entering the name HR_CONVERT_DIT into the relevant SAP transaction such as SE37 or SE38.

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



Function HR_CONVERT_DIT 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_DIT'"
EXPORTING
PERNR = "
JAHR = "

IMPORTING
ANZAHL = "

TABLES
DIT = "
DBKS = "
FLAG = "
DSAP = "
DSME = "
DBME = "
DBNA = "
DBAN = "
DBGB = "
DBSO = "
DBEU = "

EXCEPTIONS
S11_NOT_FOUND = 1 S13_NOT_FOUND = 2 NO_CONVERSION = 3
.



IMPORTING Parameters details for HR_CONVERT_DIT

PERNR -

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

JAHR -

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

EXPORTING Parameters details for HR_CONVERT_DIT

ANZAHL -

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

TABLES Parameters details for HR_CONVERT_DIT

DIT -

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

DBKS -

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

FLAG -

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

DSAP -

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

DSME -

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

DBME -

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

DBNA -

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

DBAN -

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

DBGB -

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

DBSO -

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

DBEU -

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

EXCEPTIONS details

S11_NOT_FOUND -

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

S13_NOT_FOUND -

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

NO_CONVERSION -

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

Copy and paste ABAP code example for HR_CONVERT_DIT 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_dit  TYPE STANDARD TABLE OF PC211, "   
lv_pernr  TYPE PD3DSAP-PERNR, "   
lv_anzahl  TYPE HRD3KEY-MNR, "   
lv_s11_not_found  TYPE HRD3KEY, "   
lt_dbks  TYPE STANDARD TABLE OF PD3DBKS, "   
lt_flag  TYPE STANDARD TABLE OF PD3FLAG, "   
lt_dsap  TYPE STANDARD TABLE OF PD3DSAP, "   
lv_jahr  TYPE PD3DSAP-JAHR, "   
lv_s13_not_found  TYPE PD3DSAP, "   
lt_dsme  TYPE STANDARD TABLE OF PD3DSME, "   
lv_no_conversion  TYPE PD3DSME, "   
lt_dbme  TYPE STANDARD TABLE OF PD3DBME, "   
lt_dbna  TYPE STANDARD TABLE OF PD3DBNA, "   
lt_dban  TYPE STANDARD TABLE OF PD3DBAN, "   
lt_dbgb  TYPE STANDARD TABLE OF PD3DBGB, "   
lt_dbso  TYPE STANDARD TABLE OF PD3DBSO, "   
lt_dbeu  TYPE STANDARD TABLE OF PD3DBEU. "   

  CALL FUNCTION 'HR_CONVERT_DIT'  "
    EXPORTING
         PERNR = lv_pernr
         JAHR = lv_jahr
    IMPORTING
         ANZAHL = lv_anzahl
    TABLES
         DIT = lt_dit
         DBKS = lt_dbks
         FLAG = lt_flag
         DSAP = lt_dsap
         DSME = lt_dsme
         DBME = lt_dbme
         DBNA = lt_dbna
         DBAN = lt_dban
         DBGB = lt_dbgb
         DBSO = lt_dbso
         DBEU = lt_dbeu
    EXCEPTIONS
        S11_NOT_FOUND = 1
        S13_NOT_FOUND = 2
        NO_CONVERSION = 3
. " HR_CONVERT_DIT




ABAP code using 7.40 inline data declarations to call FM HR_CONVERT_DIT

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 PD3DSAP INTO @DATA(ld_pernr).
 
"SELECT single MNR FROM HRD3KEY INTO @DATA(ld_anzahl).
 
 
 
 
 
"SELECT single JAHR FROM PD3DSAP INTO @DATA(ld_jahr).
 
 
 
 
 
 
 
 
 
 


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!