SAP RSTLOGO_COPY_TLOGO_OBJECT Function Module for BIW: Copy TLOGO Object with OBJVERS
RSTLOGO_COPY_TLOGO_OBJECT is a standard rstlogo copy tlogo object SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BIW: Copy TLOGO Object with OBJVERS processing and below is the pattern details for this FM, 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 rstlogo copy tlogo object FM, simply by entering the name RSTLOGO_COPY_TLOGO_OBJECT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSTLOGO
Program Name: SAPLRSTLOGO
Main Program: SAPLRSTLOGO
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSTLOGO_COPY_TLOGO_OBJECT 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 'RSTLOGO_COPY_TLOGO_OBJECT'"BIW: Copy TLOGO Object with OBJVERS.
EXPORTING
I_OBJTP = "
I_OBJNM = "
* I_LANGU = '*' "
* I_FROM_OBJVERS = RS_C_OBJVERS-ACTIVE "
* I_TO_OBJVERS = RS_C_OBJVERS-DELIVERY "
* I_DEL_BEFORE_COPY = RS_C_FALSE "= 'X': Delete Target Version Before Copying
* I_RAISE = RS_C_TRUE "Boolean
CHANGING
* C_T_MSG = "
EXCEPTIONS
WRONG_OBJTP = 1 X_MESSAGE = 2 SUBROUTINE_POOL_FULL = 3 ILLEGAL_INPUT = 4 ILLEGAL_OBJECT = 5 FATAL_ERROR = 6 OBJECT_NOT_FOUND = 7 OBJECT_ALREADY_EXISTS = 8
IMPORTING Parameters details for RSTLOGO_COPY_TLOGO_OBJECT
I_OBJTP -
Data type: E071-OBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_OBJNM -
Data type: E071-OBJ_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_LANGU -
Data type: SY-LANGUDefault: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FROM_OBJVERS -
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TO_OBJVERS -
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-DELIVERY
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DEL_BEFORE_COPY - = 'X': Delete Target Version Before Copying
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_RAISE - Boolean
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for RSTLOGO_COPY_TLOGO_OBJECT
C_T_MSG -
Data type: RS_T_MSGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_OBJTP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
X_MESSAGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SUBROUTINE_POOL_FULL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_INPUT -
Data type:Optional: No
Call by Reference: Yes
ILLEGAL_OBJECT -
Data type:Optional: No
Call by Reference: Yes
FATAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
OBJECT_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
OBJECT_ALREADY_EXISTS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSTLOGO_COPY_TLOGO_OBJECT 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_t_msg | TYPE RS_T_MSG, " | |||
lv_i_objtp | TYPE E071-OBJECT, " | |||
lv_wrong_objtp | TYPE E071, " | |||
lv_i_objnm | TYPE E071-OBJ_NAME, " | |||
lv_x_message | TYPE E071, " | |||
lv_i_langu | TYPE SY-LANGU, " '*' | |||
lv_subroutine_pool_full | TYPE SY, " | |||
lv_illegal_input | TYPE SY, " | |||
lv_i_from_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
lv_i_to_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-DELIVERY | |||
lv_illegal_object | TYPE RS_OBJVERS, " | |||
lv_fatal_error | TYPE RS_OBJVERS, " | |||
lv_i_del_before_copy | TYPE RS_BOOL, " RS_C_FALSE | |||
lv_i_raise | TYPE RS_BOOL, " RS_C_TRUE | |||
lv_object_not_found | TYPE RS_BOOL, " | |||
lv_object_already_exists | TYPE RS_BOOL. " |
  CALL FUNCTION 'RSTLOGO_COPY_TLOGO_OBJECT' "BIW: Copy TLOGO Object with OBJVERS |
EXPORTING | ||
I_OBJTP | = lv_i_objtp | |
I_OBJNM | = lv_i_objnm | |
I_LANGU | = lv_i_langu | |
I_FROM_OBJVERS | = lv_i_from_objvers | |
I_TO_OBJVERS | = lv_i_to_objvers | |
I_DEL_BEFORE_COPY | = lv_i_del_before_copy | |
I_RAISE | = lv_i_raise | |
CHANGING | ||
C_T_MSG | = lv_c_t_msg | |
EXCEPTIONS | ||
WRONG_OBJTP = 1 | ||
X_MESSAGE = 2 | ||
SUBROUTINE_POOL_FULL = 3 | ||
ILLEGAL_INPUT = 4 | ||
ILLEGAL_OBJECT = 5 | ||
FATAL_ERROR = 6 | ||
OBJECT_NOT_FOUND = 7 | ||
OBJECT_ALREADY_EXISTS = 8 | ||
. " RSTLOGO_COPY_TLOGO_OBJECT |
ABAP code using 7.40 inline data declarations to call FM RSTLOGO_COPY_TLOGO_OBJECT
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 OBJECT FROM E071 INTO @DATA(ld_i_objtp). | ||||
"SELECT single OBJ_NAME FROM E071 INTO @DATA(ld_i_objnm). | ||||
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu). | ||||
DATA(ld_i_langu) | = '*'. | |||
DATA(ld_i_from_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
DATA(ld_i_to_objvers) | = RS_C_OBJVERS-DELIVERY. | |||
DATA(ld_i_del_before_copy) | = RS_C_FALSE. | |||
DATA(ld_i_raise) | = RS_C_TRUE. | |||
Search for further information about these or an SAP related objects