SAP ISU_SAMPLE_R971 Function Module for
ISU_SAMPLE_R971 is a standard isu sample r971 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 sample r971 FM, simply by entering the name ISU_SAMPLE_R971 into the relevant SAP transaction such as SE37 or SE38.
Function Group: E21E
Program Name: SAPLE21E
Main Program: SAPLE21E
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_SAMPLE_R971 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_SAMPLE_R971'".
EXPORTING
* X_CALLPROG = "Type of LPC (0 = installment plan, 1 = regular)
X_FKKVKP = "Contract account
IMPORTING
Y_BUKRS = "Company code to be used
Y_SPART = "Division to be used
Y_KOFIZ = "Classification feature to be used
Y_VTREF = "Contract reference in FI-CA format to be used
TABLES
T_FKKOP = "Items for which charge was levied
T_EVER = "All contracts of contract account
IMPORTING Parameters details for ISU_SAMPLE_R971
X_CALLPROG - Type of LPC (0 = installment plan, 1 = regular)
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
X_FKKVKP - Contract account
Data type: FKKVKPOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISU_SAMPLE_R971
Y_BUKRS - Company code to be used
Data type: FKKOP-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
Y_SPART - Division to be used
Data type: FKKOP-SPARTOptional: No
Call by Reference: No ( called with pass by value option)
Y_KOFIZ - Classification feature to be used
Data type: FKKOP-KOFIZOptional: No
Call by Reference: No ( called with pass by value option)
Y_VTREF - Contract reference in FI-CA format to be used
Data type: FKKOP-VTREFOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISU_SAMPLE_R971
T_FKKOP - Items for which charge was levied
Data type: FKKOPOptional: No
Call by Reference: No ( called with pass by value option)
T_EVER - All contracts of contract account
Data type: EVEROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISU_SAMPLE_R971 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: | ||||
| lt_t_fkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_y_bukrs | TYPE FKKOP-BUKRS, " | |||
| lv_x_callprog | TYPE FKKOP, " | |||
| lt_t_ever | TYPE STANDARD TABLE OF EVER, " | |||
| lv_y_spart | TYPE FKKOP-SPART, " | |||
| lv_x_fkkvkp | TYPE FKKVKP, " | |||
| lv_y_kofiz | TYPE FKKOP-KOFIZ, " | |||
| lv_y_vtref | TYPE FKKOP-VTREF. " |
|   CALL FUNCTION 'ISU_SAMPLE_R971' " |
| EXPORTING | ||
| X_CALLPROG | = lv_x_callprog | |
| X_FKKVKP | = lv_x_fkkvkp | |
| IMPORTING | ||
| Y_BUKRS | = lv_y_bukrs | |
| Y_SPART | = lv_y_spart | |
| Y_KOFIZ | = lv_y_kofiz | |
| Y_VTREF | = lv_y_vtref | |
| TABLES | ||
| T_FKKOP | = lt_t_fkkop | |
| T_EVER | = lt_t_ever | |
| . " ISU_SAMPLE_R971 | ||
ABAP code using 7.40 inline data declarations to call FM ISU_SAMPLE_R971
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 BUKRS FROM FKKOP INTO @DATA(ld_y_bukrs). | ||||
| "SELECT single SPART FROM FKKOP INTO @DATA(ld_y_spart). | ||||
| "SELECT single KOFIZ FROM FKKOP INTO @DATA(ld_y_kofiz). | ||||
| "SELECT single VTREF FROM FKKOP INTO @DATA(ld_y_vtref). | ||||
Search for further information about these or an SAP related objects