SAP LOAN_DONATION_SPLIT Function Module for Maintain table VZZUSP (payment splitting)
LOAN_DONATION_SPLIT is a standard loan donation split SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain table VZZUSP (payment splitting) processing and below is the pattern details for this FM, 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 loan donation split FM, simply by entering the name LOAN_DONATION_SPLIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD1
Program Name: SAPLFVD1
Main Program: SAPLFVD1
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LOAN_DONATION_SPLIT 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 'LOAN_DONATION_SPLIT'"Maintain table VZZUSP (payment splitting).
EXPORTING
IVZZKOKO = "
RANTYP = "
SNUMOBJ = "
SOBJEKT = "
X_DISPLAY = "
IVDARL = "
IMPORTING
X_CHANGED = "
TABLES
AVZZUSP = "
IVVZZKOPO = "
IVZPARDEB = "Loan: Table VDGPO + Customer-Relevant Data
NVZZUSP = "
EXCEPTIONS
FLAG_DISPLAY_AND_NO_DATA = 1 FLAG_IVVZZKOPO_EMPTY = 2 FLAG_IVZPARDEB_EMPTY = 3
IMPORTING Parameters details for LOAN_DONATION_SPLIT
IVZZKOKO -
Data type: VZZKOKOOptional: No
Call by Reference: No ( called with pass by value option)
RANTYP -
Data type: TZK01-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
SNUMOBJ -
Data type: VZZUSP-SNUMOBJOptional: No
Call by Reference: No ( called with pass by value option)
SOBJEKT -
Data type: VZZUSP-SOBJEKTOptional: No
Call by Reference: No ( called with pass by value option)
X_DISPLAY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IVDARL -
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LOAN_DONATION_SPLIT
X_CHANGED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LOAN_DONATION_SPLIT
AVZZUSP -
Data type: VZZUSPOptional: No
Call by Reference: No ( called with pass by value option)
IVVZZKOPO -
Data type: VVZZKOPOOptional: No
Call by Reference: No ( called with pass by value option)
IVZPARDEB - Loan: Table VDGPO + Customer-Relevant Data
Data type: VDGPODEBOptional: No
Call by Reference: Yes
NVZZUSP -
Data type: VZZUSPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FLAG_DISPLAY_AND_NO_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FLAG_IVVZZKOPO_EMPTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FLAG_IVZPARDEB_EMPTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LOAN_DONATION_SPLIT 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_avzzusp | TYPE STANDARD TABLE OF VZZUSP, " | |||
| lv_ivzzkoko | TYPE VZZKOKO, " | |||
| lv_x_changed | TYPE VZZKOKO, " | |||
| lv_flag_display_and_no_data | TYPE VZZKOKO, " | |||
| lv_rantyp | TYPE TZK01-RANTYP, " | |||
| lt_ivvzzkopo | TYPE STANDARD TABLE OF VVZZKOPO, " | |||
| lv_flag_ivvzzkopo_empty | TYPE VVZZKOPO, " | |||
| lv_snumobj | TYPE VZZUSP-SNUMOBJ, " | |||
| lt_ivzpardeb | TYPE STANDARD TABLE OF VDGPODEB, " | |||
| lv_flag_ivzpardeb_empty | TYPE VDGPODEB, " | |||
| lt_nvzzusp | TYPE STANDARD TABLE OF VZZUSP, " | |||
| lv_sobjekt | TYPE VZZUSP-SOBJEKT, " | |||
| lv_x_display | TYPE VZZUSP, " | |||
| lv_ivdarl | TYPE VDARL. " |
|   CALL FUNCTION 'LOAN_DONATION_SPLIT' "Maintain table VZZUSP (payment splitting) |
| EXPORTING | ||
| IVZZKOKO | = lv_ivzzkoko | |
| RANTYP | = lv_rantyp | |
| SNUMOBJ | = lv_snumobj | |
| SOBJEKT | = lv_sobjekt | |
| X_DISPLAY | = lv_x_display | |
| IVDARL | = lv_ivdarl | |
| IMPORTING | ||
| X_CHANGED | = lv_x_changed | |
| TABLES | ||
| AVZZUSP | = lt_avzzusp | |
| IVVZZKOPO | = lt_ivvzzkopo | |
| IVZPARDEB | = lt_ivzpardeb | |
| NVZZUSP | = lt_nvzzusp | |
| EXCEPTIONS | ||
| FLAG_DISPLAY_AND_NO_DATA = 1 | ||
| FLAG_IVVZZKOPO_EMPTY = 2 | ||
| FLAG_IVZPARDEB_EMPTY = 3 | ||
| . " LOAN_DONATION_SPLIT | ||
ABAP code using 7.40 inline data declarations to call FM LOAN_DONATION_SPLIT
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 RANTYP FROM TZK01 INTO @DATA(ld_rantyp). | ||||
| "SELECT single SNUMOBJ FROM VZZUSP INTO @DATA(ld_snumobj). | ||||
| "SELECT single SOBJEKT FROM VZZUSP INTO @DATA(ld_sobjekt). | ||||
Search for further information about these or an SAP related objects