SAP CHECK_FUNCTION_LOAN_NEW Function Module for Check Possible Flow Types per Posting Activity
CHECK_FUNCTION_LOAN_NEW is a standard check function loan new SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Possible Flow Types per Posting Activity 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 check function loan new FM, simply by entering the name CHECK_FUNCTION_LOAN_NEW into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVHD
Program Name: SAPLFVHD
Main Program: SAPLFVHD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CHECK_FUNCTION_LOAN_NEW 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 'CHECK_FUNCTION_LOAN_NEW'"Check Possible Flow Types per Posting Activity.
EXPORTING
BUKRS = "Company Code
* I_SANLF = "Product Category
CHECK_AKTION = "'S' , 'C'
* SBEWART = "Flow Type
SKOGRP = "Condition Group
SLOANFUNC = "Application subfunction
* I_FLG_WORKPLACE = "General Flag
* I_GSART = "Product Type
* I_SBO_CAT = "Business Operation Category
* I_ACTVT = "Version Number Component
IMPORTING
SBEWART = "Flow Type
XBEWART = "Name of flow type
EXCEPTIONS
NO_POSTING_SELECTED = 1 POSTING_NOT_FOUND = 2 NO_FLOWTYPE_AUTHORITY = 3
IMPORTING Parameters details for CHECK_FUNCTION_LOAN_NEW
BUKRS - Company Code
Data type: VDARL-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_SANLF - Product Category
Data type: VDARL-SANLFOptional: Yes
Call by Reference: Yes
CHECK_AKTION - 'S' , 'C'
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SBEWART - Flow Type
Data type: TZB0A-SBEWARTOptional: Yes
Call by Reference: No ( called with pass by value option)
SKOGRP - Condition Group
Data type: TZK04-SKOGRPOptional: No
Call by Reference: No ( called with pass by value option)
SLOANFUNC - Application subfunction
Data type: TDLOANFUNC-SLOANFUNCOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_WORKPLACE - General Flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
I_GSART - Product Type
Data type: VDARL-GSARTOptional: Yes
Call by Reference: Yes
I_SBO_CAT - Business Operation Category
Data type: SBO_CATOptional: Yes
Call by Reference: Yes
I_ACTVT - Version Number Component
Data type: CHAR2Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CHECK_FUNCTION_LOAN_NEW
SBEWART - Flow Type
Data type: TZB0A-SBEWARTOptional: No
Call by Reference: No ( called with pass by value option)
XBEWART - Name of flow type
Data type: TZB0T-XBEWARTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_POSTING_SELECTED - keine Bewegungsart ausgewählt
Data type:Optional: No
Call by Reference: Yes
POSTING_NOT_FOUND - keine Bewegungsart gefunden
Data type:Optional: No
Call by Reference: Yes
NO_FLOWTYPE_AUTHORITY - No Authorization for Flow Category
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for CHECK_FUNCTION_LOAN_NEW 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_bukrs | TYPE VDARL-BUKRS, " | |||
| lv_sbewart | TYPE TZB0A-SBEWART, " | |||
| lv_no_posting_selected | TYPE TZB0A, " | |||
| lv_i_sanlf | TYPE VDARL-SANLF, " | |||
| lv_xbewart | TYPE TZB0T-XBEWART, " | |||
| lv_check_aktion | TYPE TZB0T, " | |||
| lv_posting_not_found | TYPE TZB0T, " | |||
| lv_sbewart | TYPE TZB0A-SBEWART, " | |||
| lv_no_flowtype_authority | TYPE TZB0A, " | |||
| lv_skogrp | TYPE TZK04-SKOGRP, " | |||
| lv_sloanfunc | TYPE TDLOANFUNC-SLOANFUNC, " | |||
| lv_i_flg_workplace | TYPE FLAG, " | |||
| lv_i_gsart | TYPE VDARL-GSART, " | |||
| lv_i_sbo_cat | TYPE SBO_CAT, " | |||
| lv_i_actvt | TYPE CHAR2. " |
|   CALL FUNCTION 'CHECK_FUNCTION_LOAN_NEW' "Check Possible Flow Types per Posting Activity |
| EXPORTING | ||
| BUKRS | = lv_bukrs | |
| I_SANLF | = lv_i_sanlf | |
| CHECK_AKTION | = lv_check_aktion | |
| SBEWART | = lv_sbewart | |
| SKOGRP | = lv_skogrp | |
| SLOANFUNC | = lv_sloanfunc | |
| I_FLG_WORKPLACE | = lv_i_flg_workplace | |
| I_GSART | = lv_i_gsart | |
| I_SBO_CAT | = lv_i_sbo_cat | |
| I_ACTVT | = lv_i_actvt | |
| IMPORTING | ||
| SBEWART | = lv_sbewart | |
| XBEWART | = lv_xbewart | |
| EXCEPTIONS | ||
| NO_POSTING_SELECTED = 1 | ||
| POSTING_NOT_FOUND = 2 | ||
| NO_FLOWTYPE_AUTHORITY = 3 | ||
| . " CHECK_FUNCTION_LOAN_NEW | ||
ABAP code using 7.40 inline data declarations to call FM CHECK_FUNCTION_LOAN_NEW
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 VDARL INTO @DATA(ld_bukrs). | ||||
| "SELECT single SBEWART FROM TZB0A INTO @DATA(ld_sbewart). | ||||
| "SELECT single SANLF FROM VDARL INTO @DATA(ld_i_sanlf). | ||||
| "SELECT single XBEWART FROM TZB0T INTO @DATA(ld_xbewart). | ||||
| "SELECT single SBEWART FROM TZB0A INTO @DATA(ld_sbewart). | ||||
| "SELECT single SKOGRP FROM TZK04 INTO @DATA(ld_skogrp). | ||||
| "SELECT single SLOANFUNC FROM TDLOANFUNC INTO @DATA(ld_sloanfunc). | ||||
| "SELECT single GSART FROM VDARL INTO @DATA(ld_i_gsart). | ||||
Search for further information about these or an SAP related objects