SAP SUSP_COPY_USOBX_AND_USOBT Function Module for









SUSP_COPY_USOBX_AND_USOBT is a standard susp copy usobx and usobt 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 susp copy usobx and usobt FM, simply by entering the name SUSP_COPY_USOBX_AND_USOBT into the relevant SAP transaction such as SE37 or SE38.

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



Function SUSP_COPY_USOBX_AND_USOBT 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 'SUSP_COPY_USOBX_AND_USOBT'"
EXPORTING
NAME = "Name of transaction/report...
EU_TYPE = "Type: TR=transaction, RE=report..
TARGET_NAME = "Name of target transaction/report ...

EXCEPTIONS
NAME_DOES_NOT_EXIST = 1 NOT_AUTHORIZED = 2 LOCKED_ENTRY = 3 ERROR_IN_LOCK_MANAGEMENT = 4 NO_TARGET_NAME = 5 TARGET_EXISTS = 6
.



IMPORTING Parameters details for SUSP_COPY_USOBX_AND_USOBT

NAME - Name of transaction/report...

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

EU_TYPE - Type: TR=transaction, RE=report..

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

TARGET_NAME - Name of target transaction/report ...

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

EXCEPTIONS details

NAME_DOES_NOT_EXIST - Entry for name does not exist

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

NOT_AUTHORIZED - No authorization

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

LOCKED_ENTRY - Entry is locked by another user

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

ERROR_IN_LOCK_MANAGEMENT - Error in lock management

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

NO_TARGET_NAME - No target name specified

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

TARGET_EXISTS - Entries for target name exist; no copying

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

Copy and paste ABAP code example for SUSP_COPY_USOBX_AND_USOBT 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_name  TYPE USOBT-NAME, "   
lv_name_does_not_exist  TYPE USOBT, "   
lv_eu_type  TYPE USOBT-TYPE, "   
lv_not_authorized  TYPE USOBT, "   
lv_target_name  TYPE USOBT-NAME, "   
lv_locked_entry  TYPE USOBT, "   
lv_error_in_lock_management  TYPE USOBT, "   
lv_no_target_name  TYPE USOBT, "   
lv_target_exists  TYPE USOBT. "   

  CALL FUNCTION 'SUSP_COPY_USOBX_AND_USOBT'  "
    EXPORTING
         NAME = lv_name
         EU_TYPE = lv_eu_type
         TARGET_NAME = lv_target_name
    EXCEPTIONS
        NAME_DOES_NOT_EXIST = 1
        NOT_AUTHORIZED = 2
        LOCKED_ENTRY = 3
        ERROR_IN_LOCK_MANAGEMENT = 4
        NO_TARGET_NAME = 5
        TARGET_EXISTS = 6
. " SUSP_COPY_USOBX_AND_USOBT




ABAP code using 7.40 inline data declarations to call FM SUSP_COPY_USOBX_AND_USOBT

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 NAME FROM USOBT INTO @DATA(ld_name).
 
 
"SELECT single TYPE FROM USOBT INTO @DATA(ld_eu_type).
 
 
"SELECT single NAME FROM USOBT INTO @DATA(ld_target_name).
 
 
 
 
 


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!