SAP HRDSYS_LOIO_CREATE Function Module for









HRDSYS_LOIO_CREATE is a standard hrdsys loio create 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 hrdsys loio create FM, simply by entering the name HRDSYS_LOIO_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function HRDSYS_LOIO_CREATE 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 'HRDSYS_LOIO_CREATE'"
EXPORTING
* CLIENT = SY-MANDT "
* MOLGA = ' ' "
ONAME = "
OTYPE = "
* ORIGINAL_LANGU = SY-LANGU "
* DESCRIPTION = "
* TRANSPORTFLAG = ' ' "
* WI_TRKORR = "
* FLAG_CUST_OBJECT = ' ' "

IMPORTING
LOIO_ID = "
TADIR_ML = "
EXIST_ALREADY = "
WE_TRKORR = "

EXCEPTIONS
INTERNAL_ERROR = 1 WRONG_OTYPE = 2
.



IMPORTING Parameters details for HRDSYS_LOIO_CREATE

CLIENT -

Data type: DSYS_PHHEAD_C_CD-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MOLGA -

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

ONAME -

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

OTYPE -

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

ORIGINAL_LANGU -

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

DESCRIPTION -

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

TRANSPORTFLAG -

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

WI_TRKORR -

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

FLAG_CUST_OBJECT -

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

EXPORTING Parameters details for HRDSYS_LOIO_CREATE

LOIO_ID -

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

TADIR_ML -

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

EXIST_ALREADY -

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

WE_TRKORR -

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

EXCEPTIONS details

INTERNAL_ERROR -

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

WRONG_OTYPE -

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

Copy and paste ABAP code example for HRDSYS_LOIO_CREATE 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_client  TYPE DSYS_PHHEAD_C_CD-MANDT, "   SY-MANDT
lv_loio_id  TYPE SDOKOBJECT, "   
lv_internal_error  TYPE SDOKOBJECT, "   
lv_molga  TYPE C, "   SPACE
lv_tadir_ml  TYPE SY-LANGU, "   
lv_wrong_otype  TYPE SY, "   
lv_oname  TYPE C, "   
lv_exist_already  TYPE C, "   
lv_otype  TYPE C, "   
lv_we_trkorr  TYPE E070-TRKORR, "   
lv_original_langu  TYPE SY-LANGU, "   SY-LANGU
lv_description  TYPE C, "   
lv_transportflag  TYPE C, "   SPACE
lv_wi_trkorr  TYPE E070-TRKORR, "   
lv_flag_cust_object  TYPE C. "   SPACE

  CALL FUNCTION 'HRDSYS_LOIO_CREATE'  "
    EXPORTING
         CLIENT = lv_client
         MOLGA = lv_molga
         ONAME = lv_oname
         OTYPE = lv_otype
         ORIGINAL_LANGU = lv_original_langu
         DESCRIPTION = lv_description
         TRANSPORTFLAG = lv_transportflag
         WI_TRKORR = lv_wi_trkorr
         FLAG_CUST_OBJECT = lv_flag_cust_object
    IMPORTING
         LOIO_ID = lv_loio_id
         TADIR_ML = lv_tadir_ml
         EXIST_ALREADY = lv_exist_already
         WE_TRKORR = lv_we_trkorr
    EXCEPTIONS
        INTERNAL_ERROR = 1
        WRONG_OTYPE = 2
. " HRDSYS_LOIO_CREATE




ABAP code using 7.40 inline data declarations to call FM HRDSYS_LOIO_CREATE

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 MANDT FROM DSYS_PHHEAD_C_CD INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
 
DATA(ld_molga) = ' '.
 
"SELECT single LANGU FROM SY INTO @DATA(ld_tadir_ml).
 
 
 
 
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_we_trkorr).
 
"SELECT single LANGU FROM SY INTO @DATA(ld_original_langu).
DATA(ld_original_langu) = SY-LANGU.
 
 
DATA(ld_transportflag) = ' '.
 
"SELECT single TRKORR FROM E070 INTO @DATA(ld_wi_trkorr).
 
DATA(ld_flag_cust_object) = ' '.
 


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!