SAP CHECK_POSTING Function Module for Check Possible Flow Types per Posting Activity









CHECK_POSTING is a standard check posting 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 posting FM, simply by entering the name CHECK_POSTING 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_POSTING 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_POSTING'"Check Possible Flow Types per Posting Activity
EXPORTING
BUKRS = "Company Code
CHECK_AKTION = "'S' , 'C'
RANTYP = "
REPID = "
SBEWART = "
* SBUAKT = ' ' "

IMPORTING
SBEWART = "
XBEWART = "

EXCEPTIONS
NO_POSTING_SELECTED = 1 POSTING_NOT_FOUND = 2
.



IMPORTING Parameters details for CHECK_POSTING

BUKRS - Company Code

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

CHECK_AKTION - 'S' , 'C'

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

RANTYP -

Data type: TZB08-RANTYP
Optional: No
Call by Reference: No ( called with pass by value option)

REPID -

Data type: TZB08-REPID
Optional: No
Call by Reference: No ( called with pass by value option)

SBEWART -

Data type: TZB0A-SBEWART
Optional: No
Call by Reference: No ( called with pass by value option)

SBUAKT -

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

EXPORTING Parameters details for CHECK_POSTING

SBEWART -

Data type: TZB0A-SBEWART
Optional: No
Call by Reference: No ( called with pass by value option)

XBEWART -

Data type: TZB0T-XBEWART
Optional: 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_POSTING 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_rantyp  TYPE TZB08-RANTYP, "   
lv_repid  TYPE TZB08-REPID, "   
lv_sbewart  TYPE TZB0A-SBEWART, "   
lv_sbuakt  TYPE TZB08-VVSBUAKT. "   SPACE

  CALL FUNCTION 'CHECK_POSTING'  "Check Possible Flow Types per Posting Activity
    EXPORTING
         BUKRS = lv_bukrs
         CHECK_AKTION = lv_check_aktion
         RANTYP = lv_rantyp
         REPID = lv_repid
         SBEWART = lv_sbewart
         SBUAKT = lv_sbuakt
    IMPORTING
         SBEWART = lv_sbewart
         XBEWART = lv_xbewart
    EXCEPTIONS
        NO_POSTING_SELECTED = 1
        POSTING_NOT_FOUND = 2
. " CHECK_POSTING




ABAP code using 7.40 inline data declarations to call FM CHECK_POSTING

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 RANTYP FROM TZB08 INTO @DATA(ld_rantyp).
 
"SELECT single REPID FROM TZB08 INTO @DATA(ld_repid).
 
"SELECT single SBEWART FROM TZB0A INTO @DATA(ld_sbewart).
 
"SELECT single VVSBUAKT FROM TZB08 INTO @DATA(ld_sbuakt).
DATA(ld_sbuakt) = ' '.
 


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!