SAP Function Modules

ISU_O_XCONT_OPEN SAP Function module - INTERNAL: Opens Processing of Contracts of a Contract Account







ISU_O_XCONT_OPEN is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name ISU_O_XCONT_OPEN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ES27
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISU_O_XCONT_OPEN - ISU O XCONT OPEN





CALL FUNCTION 'ISU_O_XCONT_OPEN' "INTERNAL: Opens Processing of Contracts of a Contract Account
  EXPORTING
*   x_account =                 " fkkvk-vkont   Contract Account
    x_wmode =                   " regen-wmode
*   x_upd_online =              " regen-upd_online  Indicator: Update Directly Online
*   x_no_dialog =               " regen-no_dialog  Indicator: no dialog
*   x_key_date =                " regen-ab      Key date
*   x_auto =                    " isu01_xcont_auto  Automation data
*   x_no_change =               " regen-no_change  Switch to change mode not possible in display mode
*   x_no_other =                " regen-no_other
  IMPORTING
    y_obj =                     " isu01_xcont
    y_auto =                    " isu01_xcont_auto  Automation data
* TABLES
*   tx_contract =               " isu01_xcont-con
  EXCEPTIONS
    NOT_FOUND = 1               "               Contract Not Found
    EXISTING = 2                "
    FOREIGN_LOCK = 3            "
    KEY_INVALID = 4             "
    NUMBER_ERROR = 5            "               Error in number assignment
    SYSTEM_ERROR = 6            "               General system error
    NOT_QUALIFIED = 7           "
    NOT_AUTHORIZED = 8          "
    .  "  ISU_O_XCONT_OPEN

ABAP code example for Function Module ISU_O_XCONT_OPEN





The ABAP code below is a full code listing to execute function module ISU_O_XCONT_OPEN including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_y_obj  TYPE ISU01_XCONT ,
ld_y_auto  TYPE ISU01_XCONT_AUTO ,
it_tx_contract  TYPE STANDARD TABLE OF ISU01_XCONT-CON,"TABLES PARAM
wa_tx_contract  LIKE LINE OF it_tx_contract .


SELECT single VKONT
FROM FKKVK
INTO @DATA(ld_x_account).


DATA(ld_x_wmode) = some text here

DATA(ld_x_upd_online) = some text here

DATA(ld_x_no_dialog) = some text here

DATA(ld_x_key_date) = 20210129
DATA(ld_x_auto) = 'Check type of data required'.

DATA(ld_x_no_change) = some text here

DATA(ld_x_no_other) = some text here

"populate fields of struture and append to itab
append wa_tx_contract to it_tx_contract. . CALL FUNCTION 'ISU_O_XCONT_OPEN' EXPORTING * x_account = ld_x_account x_wmode = ld_x_wmode * x_upd_online = ld_x_upd_online * x_no_dialog = ld_x_no_dialog * x_key_date = ld_x_key_date * x_auto = ld_x_auto * x_no_change = ld_x_no_change * x_no_other = ld_x_no_other IMPORTING y_obj = ld_y_obj y_auto = ld_y_auto * TABLES * tx_contract = it_tx_contract 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_XCONT_OPEN
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_y_obj  TYPE ISU01_XCONT ,
ld_x_account  TYPE FKKVK-VKONT ,
it_tx_contract  TYPE STANDARD TABLE OF ISU01_XCONT-CON ,
wa_tx_contract  LIKE LINE OF it_tx_contract,
ld_y_auto  TYPE ISU01_XCONT_AUTO ,
ld_x_wmode  TYPE REGEN-WMODE ,
ld_x_upd_online  TYPE REGEN-UPD_ONLINE ,
ld_x_no_dialog  TYPE REGEN-NO_DIALOG ,
ld_x_key_date  TYPE REGEN-AB ,
ld_x_auto  TYPE ISU01_XCONT_AUTO ,
ld_x_no_change  TYPE REGEN-NO_CHANGE ,
ld_x_no_other  TYPE REGEN-NO_OTHER .


SELECT single VKONT
FROM FKKVK
INTO ld_x_account.


"populate fields of struture and append to itab
append wa_tx_contract to it_tx_contract.

ld_x_wmode = some text here

ld_x_upd_online = some text here

ld_x_no_dialog = some text here

ld_x_key_date = 20210129
ld_x_auto = 'Check type of data required'.

ld_x_no_change = some text here

ld_x_no_other = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISU_O_XCONT_OPEN or its description.