SAP PRIOR_CHECK Function Module for NOTRANSL: Priorität prüfen und Tabellen-WAs übergeben









PRIOR_CHECK is a standard prior check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Priorität prüfen und Tabellen-WAs übergeben 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 prior check FM, simply by entering the name PRIOR_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function PRIOR_CHECK 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 'PRIOR_CHECK'"NOTRANSL: Priorität prüfen und Tabellen-WAs übergeben
EXPORTING
ARTPR = "Priority type
* MTYPE = 'E' "Message type
* PRIOR = ' ' "Priority

IMPORTING
T356A_T_WA = "Description of priority type
T356A_WA = "Priority type
T356_T_WA = "Description of priority
T356_WA = "Priority

EXCEPTIONS
ARPRT_NOT_DEFINED = 1 PRIOR_NOT_DEFINED = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLINST_001 111

IMPORTING Parameters details for PRIOR_CHECK

ARTPR - Priority type

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

MTYPE - Message type

Data type: SY-MSGTY
Default: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PRIOR - Priority

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

EXPORTING Parameters details for PRIOR_CHECK

T356A_T_WA - Description of priority type

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

T356A_WA - Priority type

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

T356_T_WA - Description of priority

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

T356_WA - Priority

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

EXCEPTIONS details

ARPRT_NOT_DEFINED - Priority type not defined

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

PRIOR_NOT_DEFINED - Priority not defined

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

Copy and paste ABAP code example for PRIOR_CHECK 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_artpr  TYPE T356-ARTPR, "   
lv_t356a_t_wa  TYPE T356A_T, "   
lv_arprt_not_defined  TYPE T356A_T, "   
lv_mtype  TYPE SY-MSGTY, "   'E'
lv_t356a_wa  TYPE T356A, "   
lv_prior_not_defined  TYPE T356A, "   
lv_prior  TYPE T356-PRIOK, "   SPACE
lv_t356_t_wa  TYPE T356_T, "   
lv_t356_wa  TYPE T356. "   

  CALL FUNCTION 'PRIOR_CHECK'  "NOTRANSL: Priorität prüfen und Tabellen-WAs übergeben
    EXPORTING
         ARTPR = lv_artpr
         MTYPE = lv_mtype
         PRIOR = lv_prior
    IMPORTING
         T356A_T_WA = lv_t356a_t_wa
         T356A_WA = lv_t356a_wa
         T356_T_WA = lv_t356_t_wa
         T356_WA = lv_t356_wa
    EXCEPTIONS
        ARPRT_NOT_DEFINED = 1
        PRIOR_NOT_DEFINED = 2
. " PRIOR_CHECK




ABAP code using 7.40 inline data declarations to call FM PRIOR_CHECK

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 ARTPR FROM T356 INTO @DATA(ld_artpr).
 
 
 
"SELECT single MSGTY FROM SY INTO @DATA(ld_mtype).
DATA(ld_mtype) = 'E'.
 
 
 
"SELECT single PRIOK FROM T356 INTO @DATA(ld_prior).
DATA(ld_prior) = ' '.
 
 
 


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!