SAP Function Modules

PMEVC_CHECK_SOURCE SAP Function module







PMEVC_CHECK_SOURCE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name PMEVC_CHECK_SOURCE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PMEVC_PARSER
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM PMEVC_CHECK_SOURCE - PMEVC CHECK SOURCE





CALL FUNCTION 'PMEVC_CHECK_SOURCE' "
  EXPORTING
*   expression_id = SPACE       "
    expression_type =           "               Relationship Type
*   grammar = 'SAPLCUPB'        "
*   valid_from = SY-DATUM       " sy-datum      Valid-From Date
*   declarative_mode = 'X'      " pmst_mark
*   idoc_processing =           " c
  IMPORTING
    expr =                      "
    result =                    "               Result ('T' = OK, 'F' = error)
    warning_occured =           " c
    et_return =                 " cfgt1_parse_error_i  Return Table
  TABLES
    parsd_source =              "               Editor buffer
  EXCEPTIONS
    INTERNAL_ERROR = 1          "
    .  "  PMEVC_CHECK_SOURCE

ABAP code example for Function Module PMEVC_CHECK_SOURCE





The ABAP code below is a full code listing to execute function module PMEVC_CHECK_SOURCE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_expr  TYPE STRING ,
ld_result  TYPE STRING ,
ld_warning_occured  TYPE C ,
ld_et_return  TYPE CFGT1_PARSE_ERROR_I ,
it_parsd_source  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_parsd_source  LIKE LINE OF it_parsd_source .

DATA(ld_expression_id) = 'some text here'.
DATA(ld_expression_type) = 'some text here'.
DATA(ld_grammar) = 'some text here'.
DATA(ld_valid_from) = '20210129'.
DATA(ld_declarative_mode) = '20210129'.
DATA(ld_idoc_processing) = '20210129'.

"populate fields of struture and append to itab
append wa_parsd_source to it_parsd_source. . CALL FUNCTION 'PMEVC_CHECK_SOURCE' EXPORTING * expression_id = ld_expression_id expression_type = ld_expression_type * grammar = ld_grammar * valid_from = ld_valid_from * declarative_mode = ld_declarative_mode * idoc_processing = ld_idoc_processing IMPORTING expr = ld_expr result = ld_result warning_occured = ld_warning_occured et_return = ld_et_return TABLES parsd_source = it_parsd_source EXCEPTIONS INTERNAL_ERROR = 1 . " PMEVC_CHECK_SOURCE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_expr  TYPE STRING ,
ld_expression_id  TYPE STRING ,
it_parsd_source  TYPE STANDARD TABLE OF STRING ,
wa_parsd_source  LIKE LINE OF it_parsd_source,
ld_result  TYPE STRING ,
ld_expression_type  TYPE STRING ,
ld_warning_occured  TYPE C ,
ld_grammar  TYPE STRING ,
ld_et_return  TYPE CFGT1_PARSE_ERROR_I ,
ld_valid_from  TYPE SY-DATUM ,
ld_declarative_mode  TYPE PMST_MARK ,
ld_idoc_processing  TYPE C .

ld_expression_id = 'some text here'.

"populate fields of struture and append to itab
append wa_parsd_source to it_parsd_source.
ld_expression_type = 'some text here'.
ld_grammar = 'some text here'.
ld_valid_from = '20210129'.
ld_declarative_mode = '20210129'.
ld_idoc_processing = '20210129'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name PMEVC_CHECK_SOURCE or its description.