SAP FVD_FAC_OL_GET_FAC_ALL Function Module for Get all the facility details









FVD_FAC_OL_GET_FAC_ALL is a standard fvd fac ol get fac all SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get all the facility details 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 fac ol get fac all FM, simply by entering the name FVD_FAC_OL_GET_FAC_ALL into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVD_FAC_OL
Program Name: SAPLFVD_FAC_OL
Main Program: SAPLFVD_FAC_OL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FVD_FAC_OL_GET_FAC_ALL 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_FAC_OL_GET_FAC_ALL'"Get all the facility details
EXPORTING
I_COMPANY_CODE = "Company Code
* I_CONTRACT_NUMBER = "Contract Number
* I_FACILITY_GROUP_NUMBER = "Facility group number
* I_TAB_DRAWDOWN_PROD_STATUS = "Table Type for TZC37 (Status Definition)
* I_FLG_FACILITY = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

IMPORTING
E_STR_FACILITIES = "Loans
E_TAB_SUBFACILITY = "Table Type for VDSUBFACILITY
E_TAB_DRAWDOWNS = "Table Type for Table VDARL
E_TAB_DD_SF_LINK = "Table type for VDLINK_DD2SF

EXCEPTIONS
NOT_FOUND = 1 PARAMETER_ERROR = 2 CUSTOMIZING_ERROR = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for FVD_FAC_OL_GET_FAC_ALL

I_COMPANY_CODE - Company Code

Data type: BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_CONTRACT_NUMBER - Contract Number

Data type: RANL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FACILITY_GROUP_NUMBER - Facility group number

Data type: TB_FACILITY_GROUP_NUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAB_DRAWDOWN_PROD_STATUS - Table Type for TZC37 (Status Definition)

Data type: TRTY_TZC37
Optional: Yes
Call by Reference: Yes

I_FLG_FACILITY - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FVD_FAC_OL_GET_FAC_ALL

E_STR_FACILITIES - Loans

Data type: VDARL
Optional: No
Call by Reference: Yes

E_TAB_SUBFACILITY - Table Type for VDSUBFACILITY

Data type: TRTY_VDSUBFACILITY
Optional: No
Call by Reference: Yes

E_TAB_DRAWDOWNS - Table Type for Table VDARL

Data type: TRTY_VDARL
Optional: No
Call by Reference: Yes

E_TAB_DD_SF_LINK - Table type for VDLINK_DD2SF

Data type: TRTY_VDLINK_DD2SF
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND - No data records found

Data type:
Optional: No
Call by Reference: Yes

PARAMETER_ERROR - Parameter error

Data type:
Optional: No
Call by Reference: Yes

CUSTOMIZING_ERROR - Customizing error

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR - Internal error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FVD_FAC_OL_GET_FAC_ALL 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_not_found  TYPE STRING, "   
lv_i_company_code  TYPE BUKRS, "   
lv_e_str_facilities  TYPE VDARL, "   
lv_parameter_error  TYPE VDARL, "   
lv_e_tab_subfacility  TYPE TRTY_VDSUBFACILITY, "   
lv_i_contract_number  TYPE RANL, "   
lv_e_tab_drawdowns  TYPE TRTY_VDARL, "   
lv_customizing_error  TYPE TRTY_VDARL, "   
lv_i_facility_group_number  TYPE TB_FACILITY_GROUP_NUMBER, "   
lv_internal_error  TYPE TB_FACILITY_GROUP_NUMBER, "   
lv_e_tab_dd_sf_link  TYPE TRTY_VDLINK_DD2SF, "   
lv_i_tab_drawdown_prod_status  TYPE TRTY_TZC37, "   
lv_i_flg_facility  TYPE BOOLE_D. "   SPACE

  CALL FUNCTION 'FVD_FAC_OL_GET_FAC_ALL'  "Get all the facility details
    EXPORTING
         I_COMPANY_CODE = lv_i_company_code
         I_CONTRACT_NUMBER = lv_i_contract_number
         I_FACILITY_GROUP_NUMBER = lv_i_facility_group_number
         I_TAB_DRAWDOWN_PROD_STATUS = lv_i_tab_drawdown_prod_status
         I_FLG_FACILITY = lv_i_flg_facility
    IMPORTING
         E_STR_FACILITIES = lv_e_str_facilities
         E_TAB_SUBFACILITY = lv_e_tab_subfacility
         E_TAB_DRAWDOWNS = lv_e_tab_drawdowns
         E_TAB_DD_SF_LINK = lv_e_tab_dd_sf_link
    EXCEPTIONS
        NOT_FOUND = 1
        PARAMETER_ERROR = 2
        CUSTOMIZING_ERROR = 3
        INTERNAL_ERROR = 4
. " FVD_FAC_OL_GET_FAC_ALL




ABAP code using 7.40 inline data declarations to call FM FVD_FAC_OL_GET_FAC_ALL

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_facility) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!