SAP FVD_LOAN_OL_COPY_CONTRACT Function Module for Copy Contract Data
FVD_LOAN_OL_COPY_CONTRACT is a standard fvd loan ol copy contract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Copy Contract Data 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 fvd loan ol copy contract FM, simply by entering the name FVD_LOAN_OL_COPY_CONTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_LOAN_OL
Program Name: SAPLFVD_LOAN_OL
Main Program: SAPLFVD_LOAN_OL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_LOAN_OL_COPY_CONTRACT 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 'FVD_LOAN_OL_COPY_CONTRACT'"Copy Contract Data.
EXPORTING
I_S_STEER_COPY_CONTRACT = "Specialist Control Data in Loan Copy
I_STATUS_TARGET = "IExterner Zielstatus der Anlage
* I_SOBJEKT = "Abweichender interner Schlüssel für Objekt
I_LOG_HANDLE = "Application Log: Log Handle
I_SWORKID = "Processing Unit in the Business Operations
* I_RCOMPOSE_NUMBER = "Default Values for Number Composition - Loan Copy
* I_CALL_APPL = "CAPTR: Applications of the Capital Transfer
* I_FLG_COPY_CMS = ' ' "
IMPORTING
E_NEW_RANL = "Contract Number
EXCEPTIONS
STATUS_NOT_FOUND = 1 FAILED = 2
IMPORTING Parameters details for FVD_LOAN_OL_COPY_CONTRACT
I_S_STEER_COPY_CONTRACT - Specialist Control Data in Loan Copy
Data type: STEER_COPY_CONTRACTOptional: No
Call by Reference: Yes
I_STATUS_TARGET - IExterner Zielstatus der Anlage
Data type: VVUSTATOptional: No
Call by Reference: Yes
I_SOBJEKT - Abweichender interner Schlüssel für Objekt
Data type: VVKEYOBJOptional: Yes
Call by Reference: Yes
I_LOG_HANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: No
Call by Reference: Yes
I_SWORKID - Processing Unit in the Business Operations
Data type: SWORKIDOptional: No
Call by Reference: Yes
I_RCOMPOSE_NUMBER - Default Values for Number Composition - Loan Copy
Data type: RCOMPOSE_NUMBEROptional: Yes
Call by Reference: Yes
I_CALL_APPL - CAPTR: Applications of the Capital Transfer
Data type: TB_CAPTR_APPLICATIONOptional: Yes
Call by Reference: Yes
I_FLG_COPY_CMS -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVD_LOAN_OL_COPY_CONTRACT
E_NEW_RANL - Contract Number
Data type: RANLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
STATUS_NOT_FOUND - Zielstatus nicht vorhanden
Data type:Optional: No
Call by Reference: Yes
FAILED - Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_LOAN_OL_COPY_CONTRACT 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: | ||||
| lv_e_new_ranl | TYPE RANL, " | |||
| lv_status_not_found | TYPE RANL, " | |||
| lv_i_s_steer_copy_contract | TYPE STEER_COPY_CONTRACT, " | |||
| lv_failed | TYPE STEER_COPY_CONTRACT, " | |||
| lv_i_status_target | TYPE VVUSTAT, " | |||
| lv_i_sobjekt | TYPE VVKEYOBJ, " | |||
| lv_i_log_handle | TYPE BALLOGHNDL, " | |||
| lv_i_sworkid | TYPE SWORKID, " | |||
| lv_i_rcompose_number | TYPE RCOMPOSE_NUMBER, " | |||
| lv_i_call_appl | TYPE TB_CAPTR_APPLICATION, " | |||
| lv_i_flg_copy_cms | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'FVD_LOAN_OL_COPY_CONTRACT' "Copy Contract Data |
| EXPORTING | ||
| I_S_STEER_COPY_CONTRACT | = lv_i_s_steer_copy_contract | |
| I_STATUS_TARGET | = lv_i_status_target | |
| I_SOBJEKT | = lv_i_sobjekt | |
| I_LOG_HANDLE | = lv_i_log_handle | |
| I_SWORKID | = lv_i_sworkid | |
| I_RCOMPOSE_NUMBER | = lv_i_rcompose_number | |
| I_CALL_APPL | = lv_i_call_appl | |
| I_FLG_COPY_CMS | = lv_i_flg_copy_cms | |
| IMPORTING | ||
| E_NEW_RANL | = lv_e_new_ranl | |
| EXCEPTIONS | ||
| STATUS_NOT_FOUND = 1 | ||
| FAILED = 2 | ||
| . " FVD_LOAN_OL_COPY_CONTRACT | ||
ABAP code using 7.40 inline data declarations to call FM FVD_LOAN_OL_COPY_CONTRACT
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.| DATA(ld_i_flg_copy_cms) | = ' '. | |||
Search for further information about these or an SAP related objects