SAP ISU_O_CONTRACT_OPEN Function Module for INTERNAL: Opens Processing of a Contract









ISU_O_CONTRACT_OPEN is a standard isu o contract open SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Opens Processing of a Contract 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 isu o contract open FM, simply by entering the name ISU_O_CONTRACT_OPEN into the relevant SAP transaction such as SE37 or SE38.

Function Group: ES20
Program Name: SAPLES20
Main Program: SAPLES20
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISU_O_CONTRACT_OPEN 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 'ISU_O_CONTRACT_OPEN'"INTERNAL: Opens Processing of a Contract
EXPORTING
X_VERTRAG = "Contract Number
* X_NO_OTHER = "
* X_NOFULLSCREEN = 'X' "
* X_INTSAVE = "
* X_TXJCD_ACTIVE = 'I' "
* X_CONTR = "External Control Data for Contract
* X_SPARTE = "Division
* X_BUKRS = "Company Code
X_WMODE = "
* X_AUTO = "
* X_DB_EVER = "
* X_UPD_ONLINE = "Indicator: Update Directly Online
* X_NO_DIALOG = "Indicator: no dialog
* X_NO_CHANGE = "Switch to change mode not possible in display mode

IMPORTING
Y_OBJ = "Contract Data
Y_AUTO = "Automation data
Y_WMODE = "

EXCEPTIONS
NOT_FOUND = 1 EXISTING = 2 FOREIGN_LOCK = 3 KEY_INVALID = 4 NUMBER_ERROR = 5 SYSTEM_ERROR = 6 NOT_QUALIFIED = 7 NOT_AUTHORIZED = 8
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLES20_001 IS-U: User-Defined Checks in Screen Fields
EXIT_SAPLES20_002 IS-U: User-Defined Preassignment of Screen Fields
EXIT_SAPLES20_003 IS-U: User Exit PBO: PBO for Customer Subscreen
EXIT_SAPLES20_004 IS-U: User Exit PAI_BEFORE: Prepares the CALL SUBSCREEN PAI
EXIT_SAPLES20_005 IS-U: User Exit PAI_AFTER: Closes the CALL SUBSCREEN PAI
EXIT_SAPLES20_006 IS-U: User Exit OPEN: Opens Customer Object Processing
EXIT_SAPLES20_007 IS-U: User Exit INPUT: Checks and Copies Entries on Customer Subscreen
EXIT_SAPLES20_008 IS-U: User Exit PREPARE_CLOSE: Prepares Closing of Customer Data
EXIT_SAPLES20_009 IS-U: User Exit ACTION: Actions of Customer Subscreen
EXIT_SAPLES20_010 IS-U: User Exit CLOSE: Ends Customer Data Processing

IMPORTING Parameters details for ISU_O_CONTRACT_OPEN

X_VERTRAG - Contract Number

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

X_NO_OTHER -

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

X_NOFULLSCREEN -

Data type: KENNZX
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_INTSAVE -

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

X_TXJCD_ACTIVE -

Data type: KENNZX
Default: 'I'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_CONTR - External Control Data for Contract

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

X_SPARTE - Division

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

X_BUKRS - Company Code

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

X_WMODE -

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

X_AUTO -

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

X_DB_EVER -

Data type: EVER
Optional: Yes
Call by Reference: Yes

X_UPD_ONLINE - Indicator: Update Directly Online

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

X_NO_DIALOG - Indicator: no dialog

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

X_NO_CHANGE - Switch to change mode not possible in display mode

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

EXPORTING Parameters details for ISU_O_CONTRACT_OPEN

Y_OBJ - Contract Data

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

Y_AUTO - Automation data

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

Y_WMODE -

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

EXCEPTIONS details

NOT_FOUND - Contract Not Found

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

EXISTING -

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

FOREIGN_LOCK -

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

KEY_INVALID -

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

NUMBER_ERROR - Error in number assignment

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

SYSTEM_ERROR - General system error

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

NOT_QUALIFIED -

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

NOT_AUTHORIZED -

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

Copy and paste ABAP code example for ISU_O_CONTRACT_OPEN 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_y_obj  TYPE ISU01_CONTRACT, "   
lv_not_found  TYPE ISU01_CONTRACT, "   
lv_x_vertrag  TYPE EVER-VERTRAG, "   
lv_x_no_other  TYPE REGEN-NO_OTHER, "   
lv_x_nofullscreen  TYPE KENNZX, "   'X'
lv_x_intsave  TYPE KENNZX, "   
lv_x_txjcd_active  TYPE KENNZX, "   'I'
lv_x_contr  TYPE ECONTRACT_CONTR, "   
lv_y_auto  TYPE ISU01_CONTRACT_AUTO, "   
lv_existing  TYPE ISU01_CONTRACT_AUTO, "   
lv_x_sparte  TYPE EVER-SPARTE, "   
lv_x_bukrs  TYPE EVER-BUKRS, "   
lv_y_wmode  TYPE REGEN-WMODE, "   
lv_foreign_lock  TYPE REGEN, "   
lv_x_wmode  TYPE REGEN-WMODE, "   
lv_key_invalid  TYPE REGEN, "   
lv_x_auto  TYPE ISU01_CONTRACT_AUTO, "   
lv_number_error  TYPE ISU01_CONTRACT_AUTO, "   
lv_x_db_ever  TYPE EVER, "   
lv_system_error  TYPE EVER, "   
lv_x_upd_online  TYPE REGEN-UPD_ONLINE, "   
lv_not_qualified  TYPE REGEN, "   
lv_x_no_dialog  TYPE REGEN-NO_DIALOG, "   
lv_not_authorized  TYPE REGEN, "   
lv_x_no_change  TYPE REGEN-NO_CHANGE. "   

  CALL FUNCTION 'ISU_O_CONTRACT_OPEN'  "INTERNAL: Opens Processing of a Contract
    EXPORTING
         X_VERTRAG = lv_x_vertrag
         X_NO_OTHER = lv_x_no_other
         X_NOFULLSCREEN = lv_x_nofullscreen
         X_INTSAVE = lv_x_intsave
         X_TXJCD_ACTIVE = lv_x_txjcd_active
         X_CONTR = lv_x_contr
         X_SPARTE = lv_x_sparte
         X_BUKRS = lv_x_bukrs
         X_WMODE = lv_x_wmode
         X_AUTO = lv_x_auto
         X_DB_EVER = lv_x_db_ever
         X_UPD_ONLINE = lv_x_upd_online
         X_NO_DIALOG = lv_x_no_dialog
         X_NO_CHANGE = lv_x_no_change
    IMPORTING
         Y_OBJ = lv_y_obj
         Y_AUTO = lv_y_auto
         Y_WMODE = lv_y_wmode
    EXCEPTIONS
        NOT_FOUND = 1
        EXISTING = 2
        FOREIGN_LOCK = 3
        KEY_INVALID = 4
        NUMBER_ERROR = 5
        SYSTEM_ERROR = 6
        NOT_QUALIFIED = 7
        NOT_AUTHORIZED = 8
. " ISU_O_CONTRACT_OPEN




ABAP code using 7.40 inline data declarations to call FM ISU_O_CONTRACT_OPEN

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 VERTRAG FROM EVER INTO @DATA(ld_x_vertrag).
 
"SELECT single NO_OTHER FROM REGEN INTO @DATA(ld_x_no_other).
 
DATA(ld_x_nofullscreen) = 'X'.
 
 
DATA(ld_x_txjcd_active) = 'I'.
 
 
 
 
"SELECT single SPARTE FROM EVER INTO @DATA(ld_x_sparte).
 
"SELECT single BUKRS FROM EVER INTO @DATA(ld_x_bukrs).
 
"SELECT single WMODE FROM REGEN INTO @DATA(ld_y_wmode).
 
 
"SELECT single WMODE FROM REGEN INTO @DATA(ld_x_wmode).
 
 
 
 
 
 
"SELECT single UPD_ONLINE FROM REGEN INTO @DATA(ld_x_upd_online).
 
 
"SELECT single NO_DIALOG FROM REGEN INTO @DATA(ld_x_no_dialog).
 
 
"SELECT single NO_CHANGE FROM REGEN INTO @DATA(ld_x_no_change).
 


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!