SAP Function Modules

WDRDA_EXISTENCE_CHECK_WDRD SAP Function module







WDRDA_EXISTENCE_CHECK_WDRD 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 WDRDA_EXISTENCE_CHECK_WDRD into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM WDRDA_EXISTENCE_CHECK_WDRD - WDRDA EXISTENCE CHECK WDRD





CALL FUNCTION 'WDRDA_EXISTENCE_CHECK_WDRD' "
  EXPORTING
    i_reswk =                   " wdrd-reswk
*   i_matkl =                   " wdrd-matkl
*   i_extwg =                   " wdrd_extwg-extwg
*   i_matnr =                   " wdrd-matnr
    i_rtype =                   " wdrd-rtype
    i_methd =                   " wdrd-methd_s
    i_level =                   " wdrd-level_s
  IMPORTING
    e_data_exist =              " flag
  EXCEPTIONS
    WRONG_OR_MISSING_INPUT = 1  "
    .  "  WDRDA_EXISTENCE_CHECK_WDRD

ABAP code example for Function Module WDRDA_EXISTENCE_CHECK_WDRD





The ABAP code below is a full code listing to execute function module WDRDA_EXISTENCE_CHECK_WDRD 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_e_data_exist  TYPE FLAG .


SELECT single RESWK
FROM WDRD
INTO @DATA(ld_i_reswk).


SELECT single MATKL
FROM WDRD
INTO @DATA(ld_i_matkl).


SELECT single EXTWG
FROM WDRD_EXTWG
INTO @DATA(ld_i_extwg).


SELECT single MATNR
FROM WDRD
INTO @DATA(ld_i_matnr).


SELECT single RTYPE
FROM WDRD
INTO @DATA(ld_i_rtype).


SELECT single METHD_S
FROM WDRD
INTO @DATA(ld_i_methd).


SELECT single LEVEL_S
FROM WDRD
INTO @DATA(ld_i_level).
. CALL FUNCTION 'WDRDA_EXISTENCE_CHECK_WDRD' EXPORTING i_reswk = ld_i_reswk * i_matkl = ld_i_matkl * i_extwg = ld_i_extwg * i_matnr = ld_i_matnr i_rtype = ld_i_rtype i_methd = ld_i_methd i_level = ld_i_level IMPORTING e_data_exist = ld_e_data_exist EXCEPTIONS WRONG_OR_MISSING_INPUT = 1 . " WDRDA_EXISTENCE_CHECK_WDRD
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_e_data_exist  TYPE FLAG ,
ld_i_reswk  TYPE WDRD-RESWK ,
ld_i_matkl  TYPE WDRD-MATKL ,
ld_i_extwg  TYPE WDRD_EXTWG-EXTWG ,
ld_i_matnr  TYPE WDRD-MATNR ,
ld_i_rtype  TYPE WDRD-RTYPE ,
ld_i_methd  TYPE WDRD-METHD_S ,
ld_i_level  TYPE WDRD-LEVEL_S .


SELECT single RESWK
FROM WDRD
INTO ld_i_reswk.


SELECT single MATKL
FROM WDRD
INTO ld_i_matkl.


SELECT single EXTWG
FROM WDRD_EXTWG
INTO ld_i_extwg.


SELECT single MATNR
FROM WDRD
INTO ld_i_matnr.


SELECT single RTYPE
FROM WDRD
INTO ld_i_rtype.


SELECT single METHD_S
FROM WDRD
INTO ld_i_methd.


SELECT single LEVEL_S
FROM WDRD
INTO ld_i_level.

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 WDRDA_EXISTENCE_CHECK_WDRD or its description.