SAP FVD_LOAN_OL_GET_ALL_FOR_CONTR Function Module for Compile Data for SAPMF67A
FVD_LOAN_OL_GET_ALL_FOR_CONTR is a standard fvd loan ol get all for contr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Compile Data for SAPMF67A 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 get all for contr FM, simply by entering the name FVD_LOAN_OL_GET_ALL_FOR_CONTR 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_GET_ALL_FOR_CONTR 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_GET_ALL_FOR_CONTR'"Compile Data for SAPMF67A.
EXPORTING
I_S_VDARL_KEY = "VDARL Key Structure
I_SWORKID = "Processing Unit in the Business Operations
* I_STATE = 'C' "Single-Character Flag
* I_FLG_COPY_CMS = ' ' "
IMPORTING
E_S_VDARL = "Loan
E_S_VDARLDVS = "Print and Dispatch Control Data for VDARL
E_TAB_VDARLOBJ = "Table Type Objects VDARLOBJ
E_TAB_VDARLSIC = "Table Type Collaterals VDARLSIC
E_TAB_VDAVIS = "Table Type for VDAVIS
E_TAB_VDDUNN = "Table Type for VDDUNN
E_TAB_VDHGRPF = "Table Type for Table VDHGRPF
E_TAB_VDRISKCLASS = "Table Type for VDRISKCLASS
E_TAB_VDSONSI = "Special arrangements
E_TAB_VDZSB = "Table Type for Table VDZSB
E_TAB_VDZV = "Table Type for VDZV
E_TAB_VZZKOKO = "Table Type for Table VZZKOKO
E_TAB_VIGBA3 = "Table Type for Table VIGBA3
E_TAB_VZBAVF = "Table Type for VZBAVF
E_TAB_VZBAVV = "Table Type for VZBAVV
E_TAB_VZZUSP = "Standard Table Type for VZZUSP
E_S_VZSORT = "Sort Values for Object
E_S_VDAKTE = "File with documents for loan allocation
E_TAB_VDUNTR = "Table Type for Table VDUNTR
E_TAB_FO_XVZZKOPO = "Table Type for Table VZZKOPO with Update Indicator
E_TAB_FO_YVZZKOPO = "Table Type for Table VZZKOPO with Update Indicator
E_TAB_SCHEDULE = "Table of Dates for Periodic Tasks
E_TAB_VVZZKOPO = "Table Type for Table VVZZKOPO
E_TAB_VZZKOPO = "Table Type for Table VZZKOPO
E_TAB_VZZKOPA = "Table Type for Table VZZKOPA
E_TAB_VZZBEPP = "Table Type for Structure VZZBEPP
E_TAB_VDBEPP = "Table Type for Table VDBEPP
E_TAB_VDGPO = "Business Partner Assignment
E_TAB_VDGPODEB = "Table Type for VDGPODEB
EXCEPTIONS
FAILED = 1 INPUT_NOT_FILLED = 2 NOT_FOUND = 3
IMPORTING Parameters details for FVD_LOAN_OL_GET_ALL_FOR_CONTR
I_S_VDARL_KEY - VDARL Key Structure
Data type: VDARL_KEYOptional: No
Call by Reference: Yes
I_SWORKID - Processing Unit in the Business Operations
Data type: SWORKIDOptional: No
Call by Reference: Yes
I_STATE - Single-Character Flag
Data type: CHAR1Default: 'C'
Optional: 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_GET_ALL_FOR_CONTR
E_S_VDARL - Loan
Data type: VDARLOptional: No
Call by Reference: Yes
E_S_VDARLDVS - Print and Dispatch Control Data for VDARL
Data type: VDARLDVSOptional: No
Call by Reference: Yes
E_TAB_VDARLOBJ - Table Type Objects VDARLOBJ
Data type: TRTY_VDARLOBJOptional: No
Call by Reference: Yes
E_TAB_VDARLSIC - Table Type Collaterals VDARLSIC
Data type: TRTY_VDARLSICOptional: No
Call by Reference: Yes
E_TAB_VDAVIS - Table Type for VDAVIS
Data type: TRTY_VDAVISOptional: No
Call by Reference: Yes
E_TAB_VDDUNN - Table Type for VDDUNN
Data type: TRTY_VDDUNNOptional: No
Call by Reference: Yes
E_TAB_VDHGRPF - Table Type for Table VDHGRPF
Data type: TRTY_VDHGRPFOptional: No
Call by Reference: Yes
E_TAB_VDRISKCLASS - Table Type for VDRISKCLASS
Data type: TRTY_VDRISKCLASSOptional: No
Call by Reference: Yes
E_TAB_VDSONSI - Special arrangements
Data type: TRTY_VDSONSIOptional: No
Call by Reference: Yes
E_TAB_VDZSB - Table Type for Table VDZSB
Data type: TRTY_VDZSBOptional: No
Call by Reference: Yes
E_TAB_VDZV - Table Type for VDZV
Data type: TRTY_VDZVOptional: No
Call by Reference: Yes
E_TAB_VZZKOKO - Table Type for Table VZZKOKO
Data type: TRTY_VZZKOKOOptional: No
Call by Reference: Yes
E_TAB_VIGBA3 - Table Type for Table VIGBA3
Data type: TRTY_VIGBA3Optional: No
Call by Reference: Yes
E_TAB_VZBAVF - Table Type for VZBAVF
Data type: TRTY_VZBAVFOptional: No
Call by Reference: Yes
E_TAB_VZBAVV - Table Type for VZBAVV
Data type: TRTY_VZBAVVOptional: No
Call by Reference: Yes
E_TAB_VZZUSP - Standard Table Type for VZZUSP
Data type: TRTY_VZZUSPOptional: No
Call by Reference: Yes
E_S_VZSORT - Sort Values for Object
Data type: VZSORTOptional: No
Call by Reference: Yes
E_S_VDAKTE - File with documents for loan allocation
Data type: VDAKTEOptional: No
Call by Reference: Yes
E_TAB_VDUNTR - Table Type for Table VDUNTR
Data type: TRTY_VDUNTROptional: No
Call by Reference: Yes
E_TAB_FO_XVZZKOPO - Table Type for Table VZZKOPO with Update Indicator
Data type: TRTY_VZZKOPO_UPDATEOptional: No
Call by Reference: Yes
E_TAB_FO_YVZZKOPO - Table Type for Table VZZKOPO with Update Indicator
Data type: TRTY_VZZKOPO_UPDATEOptional: No
Call by Reference: Yes
E_TAB_SCHEDULE - Table of Dates for Periodic Tasks
Data type: TRTY_RVD_SCHEDULEOptional: No
Call by Reference: Yes
E_TAB_VVZZKOPO - Table Type for Table VVZZKOPO
Data type: TRTY_VVZZKOPOOptional: No
Call by Reference: Yes
E_TAB_VZZKOPO - Table Type for Table VZZKOPO
Data type: TRTY_VZZKOPOOptional: No
Call by Reference: Yes
E_TAB_VZZKOPA - Table Type for Table VZZKOPA
Data type: TRTY_VZZKOPAOptional: No
Call by Reference: Yes
E_TAB_VZZBEPP - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
E_TAB_VDBEPP - Table Type for Table VDBEPP
Data type: TRTY_VDBEPPOptional: No
Call by Reference: Yes
E_TAB_VDGPO - Business Partner Assignment
Data type: TRTY_VDGPOOptional: No
Call by Reference: Yes
E_TAB_VDGPODEB - Table Type for VDGPODEB
Data type: TRTY_VDGPODEBOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED - Error
Data type:Optional: No
Call by Reference: Yes
INPUT_NOT_FILLED - Input parameter missing
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND - Loan not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_LOAN_OL_GET_ALL_FOR_CONTR 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_failed | TYPE STRING, " | |||
| lv_e_s_vdarl | TYPE VDARL, " | |||
| lv_i_s_vdarl_key | TYPE VDARL_KEY, " | |||
| lv_e_s_vdarldvs | TYPE VDARLDVS, " | |||
| lv_e_tab_vdarlobj | TYPE TRTY_VDARLOBJ, " | |||
| lv_e_tab_vdarlsic | TYPE TRTY_VDARLSIC, " | |||
| lv_e_tab_vdavis | TYPE TRTY_VDAVIS, " | |||
| lv_e_tab_vddunn | TYPE TRTY_VDDUNN, " | |||
| lv_e_tab_vdhgrpf | TYPE TRTY_VDHGRPF, " | |||
| lv_e_tab_vdriskclass | TYPE TRTY_VDRISKCLASS, " | |||
| lv_e_tab_vdsonsi | TYPE TRTY_VDSONSI, " | |||
| lv_e_tab_vdzsb | TYPE TRTY_VDZSB, " | |||
| lv_e_tab_vdzv | TYPE TRTY_VDZV, " | |||
| lv_i_sworkid | TYPE SWORKID, " | |||
| lv_e_tab_vzzkoko | TYPE TRTY_VZZKOKO, " | |||
| lv_input_not_filled | TYPE TRTY_VZZKOKO, " | |||
| lv_e_tab_vigba3 | TYPE TRTY_VIGBA3, " | |||
| lv_e_tab_vzbavf | TYPE TRTY_VZBAVF, " | |||
| lv_e_tab_vzbavv | TYPE TRTY_VZBAVV, " | |||
| lv_e_tab_vzzusp | TYPE TRTY_VZZUSP, " | |||
| lv_e_s_vzsort | TYPE VZSORT, " | |||
| lv_e_s_vdakte | TYPE VDAKTE, " | |||
| lv_e_tab_vduntr | TYPE TRTY_VDUNTR, " | |||
| lv_e_tab_fo_xvzzkopo | TYPE TRTY_VZZKOPO_UPDATE, " | |||
| lv_e_tab_fo_yvzzkopo | TYPE TRTY_VZZKOPO_UPDATE, " | |||
| lv_e_tab_schedule | TYPE TRTY_RVD_SCHEDULE, " | |||
| lv_i_state | TYPE CHAR1, " 'C' | |||
| lv_not_found | TYPE CHAR1, " | |||
| lv_e_tab_vvzzkopo | TYPE TRTY_VVZZKOPO, " | |||
| lv_e_tab_vzzkopo | TYPE TRTY_VZZKOPO, " | |||
| lv_i_flg_copy_cms | TYPE XFELD, " SPACE | |||
| lv_e_tab_vzzkopa | TYPE TRTY_VZZKOPA, " | |||
| lv_e_tab_vzzbepp | TYPE TRTY_VZZBEPP, " | |||
| lv_e_tab_vdbepp | TYPE TRTY_VDBEPP, " | |||
| lv_e_tab_vdgpo | TYPE TRTY_VDGPO, " | |||
| lv_e_tab_vdgpodeb | TYPE TRTY_VDGPODEB. " |
|   CALL FUNCTION 'FVD_LOAN_OL_GET_ALL_FOR_CONTR' "Compile Data for SAPMF67A |
| EXPORTING | ||
| I_S_VDARL_KEY | = lv_i_s_vdarl_key | |
| I_SWORKID | = lv_i_sworkid | |
| I_STATE | = lv_i_state | |
| I_FLG_COPY_CMS | = lv_i_flg_copy_cms | |
| IMPORTING | ||
| E_S_VDARL | = lv_e_s_vdarl | |
| E_S_VDARLDVS | = lv_e_s_vdarldvs | |
| E_TAB_VDARLOBJ | = lv_e_tab_vdarlobj | |
| E_TAB_VDARLSIC | = lv_e_tab_vdarlsic | |
| E_TAB_VDAVIS | = lv_e_tab_vdavis | |
| E_TAB_VDDUNN | = lv_e_tab_vddunn | |
| E_TAB_VDHGRPF | = lv_e_tab_vdhgrpf | |
| E_TAB_VDRISKCLASS | = lv_e_tab_vdriskclass | |
| E_TAB_VDSONSI | = lv_e_tab_vdsonsi | |
| E_TAB_VDZSB | = lv_e_tab_vdzsb | |
| E_TAB_VDZV | = lv_e_tab_vdzv | |
| E_TAB_VZZKOKO | = lv_e_tab_vzzkoko | |
| E_TAB_VIGBA3 | = lv_e_tab_vigba3 | |
| E_TAB_VZBAVF | = lv_e_tab_vzbavf | |
| E_TAB_VZBAVV | = lv_e_tab_vzbavv | |
| E_TAB_VZZUSP | = lv_e_tab_vzzusp | |
| E_S_VZSORT | = lv_e_s_vzsort | |
| E_S_VDAKTE | = lv_e_s_vdakte | |
| E_TAB_VDUNTR | = lv_e_tab_vduntr | |
| E_TAB_FO_XVZZKOPO | = lv_e_tab_fo_xvzzkopo | |
| E_TAB_FO_YVZZKOPO | = lv_e_tab_fo_yvzzkopo | |
| E_TAB_SCHEDULE | = lv_e_tab_schedule | |
| E_TAB_VVZZKOPO | = lv_e_tab_vvzzkopo | |
| E_TAB_VZZKOPO | = lv_e_tab_vzzkopo | |
| E_TAB_VZZKOPA | = lv_e_tab_vzzkopa | |
| E_TAB_VZZBEPP | = lv_e_tab_vzzbepp | |
| E_TAB_VDBEPP | = lv_e_tab_vdbepp | |
| E_TAB_VDGPO | = lv_e_tab_vdgpo | |
| E_TAB_VDGPODEB | = lv_e_tab_vdgpodeb | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| INPUT_NOT_FILLED = 2 | ||
| NOT_FOUND = 3 | ||
| . " FVD_LOAN_OL_GET_ALL_FOR_CONTR | ||
ABAP code using 7.40 inline data declarations to call FM FVD_LOAN_OL_GET_ALL_FOR_CONTR
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_state) | = 'C'. | |||
| DATA(ld_i_flg_copy_cms) | = ' '. | |||
Search for further information about these or an SAP related objects