SAP Function Modules

ISHMED_CHECK_BAUID SAP Function module







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

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


Pattern for FM ISHMED_CHECK_BAUID - ISHMED CHECK BAUID





CALL FUNCTION 'ISHMED_CHECK_BAUID' "
  EXPORTING
    i_einri =                   " norg-einri    Institution
*   i_abl_hier = SPACE          " rnt40-mark
*   i_auf_hier = SPACE          " rnt40-mark
*   i_gdat_von = SY-DATUM       " norg-begdt
*   i_gdat_bis = SY-DATUM       " norg-enddt    End of Validity Period
  TABLES
    t_bauid =                   " tn11o
    t_bauty =                   " tn11b
  EXCEPTIONS
    NOT_FOUND = 1               "               Important data not found
    .  "  ISHMED_CHECK_BAUID

ABAP code example for Function Module ISHMED_CHECK_BAUID





The ABAP code below is a full code listing to execute function module ISHMED_CHECK_BAUID 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:
it_t_bauid  TYPE STANDARD TABLE OF TN11O,"TABLES PARAM
wa_t_bauid  LIKE LINE OF it_t_bauid ,
it_t_bauty  TYPE STANDARD TABLE OF TN11B,"TABLES PARAM
wa_t_bauty  LIKE LINE OF it_t_bauty .


SELECT single EINRI
FROM NORG
INTO @DATA(ld_i_einri).


DATA(ld_i_abl_hier) = some text here

DATA(ld_i_auf_hier) = some text here

SELECT single BEGDT
FROM NORG
INTO @DATA(ld_i_gdat_von).


SELECT single ENDDT
FROM NORG
INTO @DATA(ld_i_gdat_bis).


"populate fields of struture and append to itab
append wa_t_bauid to it_t_bauid.

"populate fields of struture and append to itab
append wa_t_bauty to it_t_bauty. . CALL FUNCTION 'ISHMED_CHECK_BAUID' EXPORTING i_einri = ld_i_einri * i_abl_hier = ld_i_abl_hier * i_auf_hier = ld_i_auf_hier * i_gdat_von = ld_i_gdat_von * i_gdat_bis = ld_i_gdat_bis TABLES t_bauid = it_t_bauid t_bauty = it_t_bauty EXCEPTIONS NOT_FOUND = 1 . " ISHMED_CHECK_BAUID
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_i_einri  TYPE NORG-EINRI ,
it_t_bauid  TYPE STANDARD TABLE OF TN11O ,
wa_t_bauid  LIKE LINE OF it_t_bauid,
ld_i_abl_hier  TYPE RNT40-MARK ,
it_t_bauty  TYPE STANDARD TABLE OF TN11B ,
wa_t_bauty  LIKE LINE OF it_t_bauty,
ld_i_auf_hier  TYPE RNT40-MARK ,
ld_i_gdat_von  TYPE NORG-BEGDT ,
ld_i_gdat_bis  TYPE NORG-ENDDT .


SELECT single EINRI
FROM NORG
INTO ld_i_einri.


"populate fields of struture and append to itab
append wa_t_bauid to it_t_bauid.

ld_i_abl_hier = some text here

"populate fields of struture and append to itab
append wa_t_bauty to it_t_bauty.

ld_i_auf_hier = some text here

SELECT single BEGDT
FROM NORG
INTO ld_i_gdat_von.


SELECT single ENDDT
FROM NORG
INTO ld_i_gdat_bis.

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