SAP Function Modules

ISU_PAYSCHEME_TERMINATE SAP Function module - Stop Payment Scheme







ISU_PAYSCHEME_TERMINATE 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_PAYSCHEME_TERMINATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ISU_PAYSCHEME_TERMINATE - ISU PAYSCHEME TERMINATE





CALL FUNCTION 'ISU_PAYSCHEME_TERMINATE' "Stop Payment Scheme
  EXPORTING
    x_opbel =                   " eabpl-opbel   Number of Payment Scheme to Be Stopped
    x_stop_date =               " sy-datum      Date, on which the Payment Scheme Is to Be Stopped
*   x_no_dialog = SPACE         " regen-no_dialog  Suppress maintenance screens
*   x_no_commit = SPACE         " regen-no_commit  Do not execute COMMIT
*   x_obj =                     " isu25_paymentscheme
*   x_termreason = SPACE        " eabp-termreason  Payment Scheme: Cancellation Reason
*   x_check_print = SPACE       " regen-kennzx  Print Query
*   x_massrun = SPACE           " regen-kennzx  Mass Run
*   x_deac = SPACE              " regen-kennzx  Deactivation and Account Maintenance
*   x_no_update =               " regen-no_update  Suppress database update
  IMPORTING
    y_ps_stopped =              " c             Space = Paym. Scheme Has Not Been Stopped, 'X' = Paym. Scheme Has Been Stopped
    y_exit_type =               " regen-exit_type  Function with which editing was exited
    y_db_update =               " regen-db_update  Database Updated (X) or not (SPACE)
    y_obj =                     " isu25_paymentscheme
* TABLES
*   yt_fkkop_ps =               " fkkop
*   yt_fkkop_bill =             " fkkop
*   yt_eabp_chg =               " eabp          Budget Billing Plan
*   yt_eabpl_chg =              " eabpl
* CHANGING
*   xy_eabp =                   " eabp
  EXCEPTIONS
    INPUT_ERROR = 1             "               Data invalid
    SYSTEM_ERROR = 2            "               Program error
    FOREIGN_LOCK = 3            "               Object Locked
    NOT_AUTHORIZED = 4          "               No authorization
    TERMINATED = 5              "               Processing Terminated
    .  "  ISU_PAYSCHEME_TERMINATE

ABAP code example for Function Module ISU_PAYSCHEME_TERMINATE





The ABAP code below is a full code listing to execute function module ISU_PAYSCHEME_TERMINATE 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_ps_stopped  TYPE C ,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
ld_y_db_update  TYPE REGEN-DB_UPDATE ,
ld_y_obj  TYPE ISU25_PAYMENTSCHEME ,
it_yt_fkkop_ps  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_yt_fkkop_ps  LIKE LINE OF it_yt_fkkop_ps ,
it_yt_fkkop_bill  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_yt_fkkop_bill  LIKE LINE OF it_yt_fkkop_bill ,
it_yt_eabp_chg  TYPE STANDARD TABLE OF EABP,"TABLES PARAM
wa_yt_eabp_chg  LIKE LINE OF it_yt_eabp_chg ,
it_yt_eabpl_chg  TYPE STANDARD TABLE OF EABPL,"TABLES PARAM
wa_yt_eabpl_chg  LIKE LINE OF it_yt_eabpl_chg .

DATA(ld_xy_eabp) = 'Check type of data required'.

SELECT single OPBEL
FROM EABPL
INTO @DATA(ld_x_opbel).

DATA(ld_x_stop_date) = '20210129'.

DATA(ld_x_no_dialog) = some text here

DATA(ld_x_no_commit) = some text here
DATA(ld_x_obj) = '20210129'.

SELECT single TERMREASON
FROM EABP
INTO @DATA(ld_x_termreason).


DATA(ld_x_check_print) = some text here

DATA(ld_x_massrun) = some text here

DATA(ld_x_deac) = some text here

DATA(ld_x_no_update) = some text here

"populate fields of struture and append to itab
append wa_yt_fkkop_ps to it_yt_fkkop_ps.

"populate fields of struture and append to itab
append wa_yt_fkkop_bill to it_yt_fkkop_bill.

"populate fields of struture and append to itab
append wa_yt_eabp_chg to it_yt_eabp_chg.

"populate fields of struture and append to itab
append wa_yt_eabpl_chg to it_yt_eabpl_chg. . CALL FUNCTION 'ISU_PAYSCHEME_TERMINATE' EXPORTING x_opbel = ld_x_opbel x_stop_date = ld_x_stop_date * x_no_dialog = ld_x_no_dialog * x_no_commit = ld_x_no_commit * x_obj = ld_x_obj * x_termreason = ld_x_termreason * x_check_print = ld_x_check_print * x_massrun = ld_x_massrun * x_deac = ld_x_deac * x_no_update = ld_x_no_update IMPORTING y_ps_stopped = ld_y_ps_stopped y_exit_type = ld_y_exit_type y_db_update = ld_y_db_update y_obj = ld_y_obj * TABLES * yt_fkkop_ps = it_yt_fkkop_ps * yt_fkkop_bill = it_yt_fkkop_bill * yt_eabp_chg = it_yt_eabp_chg * yt_eabpl_chg = it_yt_eabpl_chg * CHANGING * xy_eabp = ld_xy_eabp EXCEPTIONS INPUT_ERROR = 1 SYSTEM_ERROR = 2 FOREIGN_LOCK = 3 NOT_AUTHORIZED = 4 TERMINATED = 5 . " ISU_PAYSCHEME_TERMINATE
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 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_xy_eabp  TYPE EABP ,
ld_y_ps_stopped  TYPE C ,
ld_x_opbel  TYPE EABPL-OPBEL ,
it_yt_fkkop_ps  TYPE STANDARD TABLE OF FKKOP ,
wa_yt_fkkop_ps  LIKE LINE OF it_yt_fkkop_ps,
ld_y_exit_type  TYPE REGEN-EXIT_TYPE ,
ld_x_stop_date  TYPE SY-DATUM ,
it_yt_fkkop_bill  TYPE STANDARD TABLE OF FKKOP ,
wa_yt_fkkop_bill  LIKE LINE OF it_yt_fkkop_bill,
ld_y_db_update  TYPE REGEN-DB_UPDATE ,
ld_x_no_dialog  TYPE REGEN-NO_DIALOG ,
it_yt_eabp_chg  TYPE STANDARD TABLE OF EABP ,
wa_yt_eabp_chg  LIKE LINE OF it_yt_eabp_chg,
ld_y_obj  TYPE ISU25_PAYMENTSCHEME ,
ld_x_no_commit  TYPE REGEN-NO_COMMIT ,
it_yt_eabpl_chg  TYPE STANDARD TABLE OF EABPL ,
wa_yt_eabpl_chg  LIKE LINE OF it_yt_eabpl_chg,
ld_x_obj  TYPE ISU25_PAYMENTSCHEME ,
ld_x_termreason  TYPE EABP-TERMREASON ,
ld_x_check_print  TYPE REGEN-KENNZX ,
ld_x_massrun  TYPE REGEN-KENNZX ,
ld_x_deac  TYPE REGEN-KENNZX ,
ld_x_no_update  TYPE REGEN-NO_UPDATE .

ld_xy_eabp = '20210129'.

SELECT single OPBEL
FROM EABPL
INTO ld_x_opbel.


"populate fields of struture and append to itab
append wa_yt_fkkop_ps to it_yt_fkkop_ps.
ld_x_stop_date = '20210129'.

"populate fields of struture and append to itab
append wa_yt_fkkop_bill to it_yt_fkkop_bill.

ld_x_no_dialog = some text here

"populate fields of struture and append to itab
append wa_yt_eabp_chg to it_yt_eabp_chg.

ld_x_no_commit = some text here

"populate fields of struture and append to itab
append wa_yt_eabpl_chg to it_yt_eabpl_chg.
ld_x_obj = '20210129'.

SELECT single TERMREASON
FROM EABP
INTO ld_x_termreason.


ld_x_check_print = some text here

ld_x_massrun = some text here

ld_x_deac = some text here

ld_x_no_update = 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_PAYSCHEME_TERMINATE or its description.