SAP SWO_OBJTYPE_DEVCLASS_MOVE Function Module for









SWO_OBJTYPE_DEVCLASS_MOVE is a standard swo objtype devclass move 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 swo objtype devclass move FM, simply by entering the name SWO_OBJTYPE_DEVCLASS_MOVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SWOS
Program Name: SAPLSWOS
Main Program: SAPLSWOS
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SWO_OBJTYPE_DEVCLASS_MOVE 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 'SWO_OBJTYPE_DEVCLASS_MOVE'"
EXPORTING
OBJTYPE = "Object type name
NEW_DEVCLASS = "New development class
AUTHOR = "

IMPORTING
CORRNUM = "Correction
ET_ERROR = "
EV_ERROR_STATUS = "

EXCEPTIONS
NOT_FOUND = 1 PERMISSION_FAILURE = 2 OBJECTTYPE_IS_RELEASED = 3 OBJECTTYPE_IS_OBSOLETE = 4 MOVE_ERROR = 5 CANCELLED = 6 OBJECT_DEP_ERROR = 7 PARENT_IS_LOCAL = 8 SUBTYPE_IS_TRANSPORTABLE = 9
.



IMPORTING Parameters details for SWO_OBJTYPE_DEVCLASS_MOVE

OBJTYPE - Object type name

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

NEW_DEVCLASS - New development class

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

AUTHOR -

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

EXPORTING Parameters details for SWO_OBJTYPE_DEVCLASS_MOVE

CORRNUM - Correction

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

ET_ERROR -

Data type: TRTAD_XDEVC_ERRORS
Optional: No
Call by Reference: Yes

EV_ERROR_STATUS -

Data type: TRPARI-S_CHECKED
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND -

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

PERMISSION_FAILURE -

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

OBJECTTYPE_IS_RELEASED -

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

OBJECTTYPE_IS_OBSOLETE -

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

MOVE_ERROR -

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

CANCELLED - Action was cancelled

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

OBJECT_DEP_ERROR -

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

PARENT_IS_LOCAL -

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

SUBTYPE_IS_TRANSPORTABLE -

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

Copy and paste ABAP code example for SWO_OBJTYPE_DEVCLASS_MOVE 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_corrnum  TYPE E070-TRKORR, "   
lv_objtype  TYPE RSEUAP-OBJ_NAME, "   
lv_not_found  TYPE RSEUAP, "   
lv_et_error  TYPE TRTAD_XDEVC_ERRORS, "   
lv_new_devclass  TYPE TADIR-DEVCLASS, "   
lv_permission_failure  TYPE TADIR, "   
lv_author  TYPE TADIR-AUTHOR, "   
lv_ev_error_status  TYPE TRPARI-S_CHECKED, "   
lv_objecttype_is_released  TYPE TRPARI, "   
lv_objecttype_is_obsolete  TYPE TRPARI, "   
lv_move_error  TYPE TRPARI, "   
lv_cancelled  TYPE TRPARI, "   
lv_object_dep_error  TYPE TRPARI, "   
lv_parent_is_local  TYPE TRPARI, "   
lv_subtype_is_transportable  TYPE TRPARI. "   

  CALL FUNCTION 'SWO_OBJTYPE_DEVCLASS_MOVE'  "
    EXPORTING
         OBJTYPE = lv_objtype
         NEW_DEVCLASS = lv_new_devclass
         AUTHOR = lv_author
    IMPORTING
         CORRNUM = lv_corrnum
         ET_ERROR = lv_et_error
         EV_ERROR_STATUS = lv_ev_error_status
    EXCEPTIONS
        NOT_FOUND = 1
        PERMISSION_FAILURE = 2
        OBJECTTYPE_IS_RELEASED = 3
        OBJECTTYPE_IS_OBSOLETE = 4
        MOVE_ERROR = 5
        CANCELLED = 6
        OBJECT_DEP_ERROR = 7
        PARENT_IS_LOCAL = 8
        SUBTYPE_IS_TRANSPORTABLE = 9
. " SWO_OBJTYPE_DEVCLASS_MOVE




ABAP code using 7.40 inline data declarations to call FM SWO_OBJTYPE_DEVCLASS_MOVE

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 TRKORR FROM E070 INTO @DATA(ld_corrnum).
 
"SELECT single OBJ_NAME FROM RSEUAP INTO @DATA(ld_objtype).
 
 
 
"SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_new_devclass).
 
 
"SELECT single AUTHOR FROM TADIR INTO @DATA(ld_author).
 
"SELECT single S_CHECKED FROM TRPARI INTO @DATA(ld_ev_error_status).
 
 
 
 
 
 
 
 


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!