SAP Function Modules

ISU_SAMPLE_R513 SAP Function module - Adjust Payment Scheme in Periodic/Interim Billing







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

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


Pattern for FM ISU_SAMPLE_R513 - ISU SAMPLE R513





CALL FUNCTION 'ISU_SAMPLE_R513' "Adjust Payment Scheme in Periodic/Interim Billing
  EXPORTING
    x_chg_date =                " sy-datum      Earliest Possible Date, from Which the Adjustment Can Be Effective
    x_obj =                     " isu25_paymentscheme  Control Parameters and Data for Payment Scheme
    x_abrtyp =                  " e_abrtyp      Billing Transaction for Adjustment Limits in Payment Scheme
  TABLES
    xt_ps =                     " isu25_ps_displ_tab  All Payment Schemes to Be Observed in an Invoicing Unit
    yt_ps_adjust =              " isu25_ps_adjust_tab  Payment Scheme with the New Document Lines
    xt_ext =                    " eabpl         Table of Extrapolation Amounts from Event R511
*   xt_amount =                 " eps_bfa_amount  Contains the Bill Amount to Be Copied to Payment Scheme During Periodic Billing
  EXCEPTIONS
    ERROR = 1                   "
    .  "  ISU_SAMPLE_R513

ABAP code example for Function Module ISU_SAMPLE_R513





The ABAP code below is a full code listing to execute function module ISU_SAMPLE_R513 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:
it_xt_ps  TYPE STANDARD TABLE OF ISU25_PS_DISPL_TAB,"TABLES PARAM
wa_xt_ps  LIKE LINE OF it_xt_ps ,
it_yt_ps_adjust  TYPE STANDARD TABLE OF ISU25_PS_ADJUST_TAB,"TABLES PARAM
wa_yt_ps_adjust  LIKE LINE OF it_yt_ps_adjust ,
it_xt_ext  TYPE STANDARD TABLE OF EABPL,"TABLES PARAM
wa_xt_ext  LIKE LINE OF it_xt_ext ,
it_xt_amount  TYPE STANDARD TABLE OF EPS_BFA_AMOUNT,"TABLES PARAM
wa_xt_amount  LIKE LINE OF it_xt_amount .

DATA(ld_x_chg_date) = '20210129'.
DATA(ld_x_obj) = '20210129'.
DATA(ld_x_abrtyp) = '20210129'.

"populate fields of struture and append to itab
append wa_xt_ps to it_xt_ps.

"populate fields of struture and append to itab
append wa_yt_ps_adjust to it_yt_ps_adjust.

"populate fields of struture and append to itab
append wa_xt_ext to it_xt_ext.

"populate fields of struture and append to itab
append wa_xt_amount to it_xt_amount. . CALL FUNCTION 'ISU_SAMPLE_R513' EXPORTING x_chg_date = ld_x_chg_date x_obj = ld_x_obj x_abrtyp = ld_x_abrtyp TABLES xt_ps = it_xt_ps yt_ps_adjust = it_yt_ps_adjust xt_ext = it_xt_ext * xt_amount = it_xt_amount EXCEPTIONS ERROR = 1 . " ISU_SAMPLE_R513
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_x_chg_date  TYPE SY-DATUM ,
it_xt_ps  TYPE STANDARD TABLE OF ISU25_PS_DISPL_TAB ,
wa_xt_ps  LIKE LINE OF it_xt_ps,
ld_x_obj  TYPE ISU25_PAYMENTSCHEME ,
it_yt_ps_adjust  TYPE STANDARD TABLE OF ISU25_PS_ADJUST_TAB ,
wa_yt_ps_adjust  LIKE LINE OF it_yt_ps_adjust,
ld_x_abrtyp  TYPE E_ABRTYP ,
it_xt_ext  TYPE STANDARD TABLE OF EABPL ,
wa_xt_ext  LIKE LINE OF it_xt_ext,
it_xt_amount  TYPE STANDARD TABLE OF EPS_BFA_AMOUNT ,
wa_xt_amount  LIKE LINE OF it_xt_amount.

ld_x_chg_date = '20210129'.

"populate fields of struture and append to itab
append wa_xt_ps to it_xt_ps.
ld_x_obj = '20210129'.

"populate fields of struture and append to itab
append wa_yt_ps_adjust to it_yt_ps_adjust.
ld_x_abrtyp = '20210129'.

"populate fields of struture and append to itab
append wa_xt_ext to it_xt_ext.

"populate fields of struture and append to itab
append wa_xt_amount to it_xt_amount.

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_SAMPLE_R513 or its description.