SAP CHECK_FUNCTION_SEC Function Module for Check Possible Flow Types per Posting Activity
CHECK_FUNCTION_SEC is a standard check function sec 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 sec FM, simply by entering the name CHECK_FUNCTION_SEC 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_SEC 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_SEC'"Check Possible Flow Types per Posting Activity.
EXPORTING
BUKRS = "Company Code
* CHECK_AKTION = "'S' , 'C'
SBEWART = "
* SKOGRP = '000' "
* SSECFUNC = ' ' "
IMPORTING
SBEWART = "
XBEWART = "
EXCEPTIONS
NO_POSTING_SELECTED = 1 POSTING_NOT_FOUND = 2
IMPORTING Parameters details for CHECK_FUNCTION_SEC
BUKRS - Company Code
Data type: VDARL-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
CHECK_AKTION - 'S' , 'C'
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
SBEWART -
Data type: TZB0A-SBEWARTOptional: No
Call by Reference: No ( called with pass by value option)
SKOGRP -
Data type: TZK04-SKOGRPDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SSECFUNC -
Data type: TWB08-SSECFUNCDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CHECK_FUNCTION_SEC
SBEWART -
Data type: TZB0A-SBEWARTOptional: No
Call by Reference: No ( called with pass by value option)
XBEWART -
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: No ( called with pass by value option)
POSTING_NOT_FOUND - keine Bewegungsart gefunden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CHECK_FUNCTION_SEC 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_xbewart | TYPE TZB0T-XBEWART, " | |||
lv_check_aktion | TYPE TZB0T, " | |||
lv_posting_not_found | TYPE TZB0T, " | |||
lv_sbewart | TYPE TZB0A-SBEWART, " | |||
lv_skogrp | TYPE TZK04-SKOGRP, " '000' | |||
lv_ssecfunc | TYPE TWB08-SSECFUNC. " SPACE |
  CALL FUNCTION 'CHECK_FUNCTION_SEC' "Check Possible Flow Types per Posting Activity |
EXPORTING | ||
BUKRS | = lv_bukrs | |
CHECK_AKTION | = lv_check_aktion | |
SBEWART | = lv_sbewart | |
SKOGRP | = lv_skogrp | |
SSECFUNC | = lv_ssecfunc | |
IMPORTING | ||
SBEWART | = lv_sbewart | |
XBEWART | = lv_xbewart | |
EXCEPTIONS | ||
NO_POSTING_SELECTED = 1 | ||
POSTING_NOT_FOUND = 2 | ||
. " CHECK_FUNCTION_SEC |
ABAP code using 7.40 inline data declarations to call FM CHECK_FUNCTION_SEC
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 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). | ||||
DATA(ld_skogrp) | = '000'. | |||
"SELECT single SSECFUNC FROM TWB08 INTO @DATA(ld_ssecfunc). | ||||
DATA(ld_ssecfunc) | = ' '. | |||
Search for further information about these or an SAP related objects