SAP Function Modules

ISU_SAMPLE_R971 SAP Function module







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

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


Pattern for FM ISU_SAMPLE_R971 - ISU SAMPLE R971





CALL FUNCTION 'ISU_SAMPLE_R971' "
  EXPORTING
*   x_callprog =                "               Type of LPC (0 = installment plan, 1 = regular)
    x_fkkvkp =                  " fkkvkp        Contract account
  IMPORTING
    y_bukrs =                   " fkkop-bukrs   Company code to be used
    y_spart =                   " fkkop-spart   Division to be used
    y_kofiz =                   " fkkop-kofiz   Classification feature to be used
    y_vtref =                   " fkkop-vtref   Contract reference in FI-CA format to be used
  TABLES
    t_fkkop =                   " fkkop         Items for which charge was levied
    t_ever =                    " ever          All contracts of contract account
    .  "  ISU_SAMPLE_R971

ABAP code example for Function Module ISU_SAMPLE_R971





The ABAP code below is a full code listing to execute function module ISU_SAMPLE_R971 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_bukrs  TYPE FKKOP-BUKRS ,
ld_y_spart  TYPE FKKOP-SPART ,
ld_y_kofiz  TYPE FKKOP-KOFIZ ,
ld_y_vtref  TYPE FKKOP-VTREF ,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP,"TABLES PARAM
wa_t_fkkop  LIKE LINE OF it_t_fkkop ,
it_t_ever  TYPE STANDARD TABLE OF EVER,"TABLES PARAM
wa_t_ever  LIKE LINE OF it_t_ever .

DATA(ld_x_callprog) = 'some text here'.
DATA(ld_x_fkkvkp) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.

"populate fields of struture and append to itab
append wa_t_ever to it_t_ever. . CALL FUNCTION 'ISU_SAMPLE_R971' EXPORTING * x_callprog = ld_x_callprog x_fkkvkp = ld_x_fkkvkp IMPORTING y_bukrs = ld_y_bukrs y_spart = ld_y_spart y_kofiz = ld_y_kofiz y_vtref = ld_y_vtref TABLES t_fkkop = it_t_fkkop t_ever = it_t_ever . " ISU_SAMPLE_R971
IF SY-SUBRC EQ 0. "All OK 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_bukrs  TYPE FKKOP-BUKRS ,
ld_x_callprog  TYPE STRING ,
it_t_fkkop  TYPE STANDARD TABLE OF FKKOP ,
wa_t_fkkop  LIKE LINE OF it_t_fkkop,
ld_y_spart  TYPE FKKOP-SPART ,
ld_x_fkkvkp  TYPE FKKVKP ,
it_t_ever  TYPE STANDARD TABLE OF EVER ,
wa_t_ever  LIKE LINE OF it_t_ever,
ld_y_kofiz  TYPE FKKOP-KOFIZ ,
ld_y_vtref  TYPE FKKOP-VTREF .

ld_x_callprog = 'some text here'.

"populate fields of struture and append to itab
append wa_t_fkkop to it_t_fkkop.
ld_x_fkkvkp = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_ever to it_t_ever.

SAP Documentation for FM ISU_SAMPLE_R971


This event is called when the charges are determined in IS-U invoicing. It is used both for the charges on items in installment plans and for ...See here for full SAP fm documentation

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