SAP OSTO_UPDATE_CLASS_NEW Function Module for
OSTO_UPDATE_CLASS_NEW is a standard osto update class new 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 osto update class new FM, simply by entering the name OSTO_UPDATE_CLASS_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: OSTOOL
Program Name: SAPLOSTOOL
Main Program: SAPLOSTOOL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function OSTO_UPDATE_CLASS_NEW 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 'OSTO_UPDATE_CLASS_NEW'".
EXPORTING
I_CLASS_NAME = "
* I_FORCE = OSCON_FALSE "
* I_GET_SET = OSCON_FALSE "
* I_STATE = OSCON_FALSE "
CHANGING
* C_CORRNUM = ' ' "
EXCEPTIONS
CLASS_NOT_EXISTING = 1 CORRECTION_FAILURE = 2 LOCK_FAILED = 3 UPDATE_FAILED = 4 ACTIVATE_FAILED = 5 INTERNAL_ERROR = 6
IMPORTING Parameters details for OSTO_UPDATE_CLASS_NEW
I_CLASS_NAME -
Data type: SEOCLSNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_FORCE -
Data type: OS_BOOLEANDefault: OSCON_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GET_SET -
Data type: OS_BOOLEANDefault: OSCON_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STATE -
Data type: OS_BOOLEANDefault: OSCON_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for OSTO_UPDATE_CLASS_NEW
C_CORRNUM -
Data type: TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CLASS_NOT_EXISTING -
Data type:Optional: No
Call by Reference: Yes
CORRECTION_FAILURE -
Data type:Optional: No
Call by Reference: Yes
LOCK_FAILED -
Data type:Optional: No
Call by Reference: Yes
UPDATE_FAILED -
Data type:Optional: No
Call by Reference: Yes
ACTIVATE_FAILED -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for OSTO_UPDATE_CLASS_NEW 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_c_corrnum | TYPE TRKORR, " SPACE | |||
| lv_i_class_name | TYPE SEOCLSNAME, " | |||
| lv_class_not_existing | TYPE SEOCLSNAME, " | |||
| lv_i_force | TYPE OS_BOOLEAN, " OSCON_FALSE | |||
| lv_correction_failure | TYPE OS_BOOLEAN, " | |||
| lv_i_get_set | TYPE OS_BOOLEAN, " OSCON_FALSE | |||
| lv_lock_failed | TYPE OS_BOOLEAN, " | |||
| lv_i_state | TYPE OS_BOOLEAN, " OSCON_FALSE | |||
| lv_update_failed | TYPE OS_BOOLEAN, " | |||
| lv_activate_failed | TYPE OS_BOOLEAN, " | |||
| lv_internal_error | TYPE OS_BOOLEAN. " |
|   CALL FUNCTION 'OSTO_UPDATE_CLASS_NEW' " |
| EXPORTING | ||
| I_CLASS_NAME | = lv_i_class_name | |
| I_FORCE | = lv_i_force | |
| I_GET_SET | = lv_i_get_set | |
| I_STATE | = lv_i_state | |
| CHANGING | ||
| C_CORRNUM | = lv_c_corrnum | |
| EXCEPTIONS | ||
| CLASS_NOT_EXISTING = 1 | ||
| CORRECTION_FAILURE = 2 | ||
| LOCK_FAILED = 3 | ||
| UPDATE_FAILED = 4 | ||
| ACTIVATE_FAILED = 5 | ||
| INTERNAL_ERROR = 6 | ||
| . " OSTO_UPDATE_CLASS_NEW | ||
ABAP code using 7.40 inline data declarations to call FM OSTO_UPDATE_CLASS_NEW
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.| DATA(ld_c_corrnum) | = ' '. | |||
| DATA(ld_i_force) | = OSCON_FALSE. | |||
| DATA(ld_i_get_set) | = OSCON_FALSE. | |||
| DATA(ld_i_state) | = OSCON_FALSE. | |||
Search for further information about these or an SAP related objects