SAP Function Modules

ME_READ_REQUISITION_EXT SAP Function module - Read requisition and make available requisition and account assgt. data







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

Associated Function Group: EBNE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM ME_READ_REQUISITION_EXT - ME READ REQUISITION EXT





CALL FUNCTION 'ME_READ_REQUISITION_EXT' "Read requisition and make available requisition and account assgt. data
  EXPORTING
*   i_banfn = SPACE             " eban-banfn    Purchase requisition
    i_bnfpo =                   " eban-bnfpo    Purchase requisition item
*   i_no_account_assignment = SPACE  " eban-xoblr
*   i_no_read_db = SPACE        " eban-xoblr
  IMPORTING
    e_eban =                    " eban          Data on purchase requisition
    e_ebkn =                    " ebkn          Data on purchase requisition account assignment
    e_updkz =                   " iekek-updkz
  EXCEPTIONS
    NOT_FOUND = 1               "               Purchase requisition does not exist
    .  "  ME_READ_REQUISITION_EXT

ABAP code example for Function Module ME_READ_REQUISITION_EXT





The ABAP code below is a full code listing to execute function module ME_READ_REQUISITION_EXT 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_eban  TYPE EBAN ,
ld_e_ebkn  TYPE EBKN ,
ld_e_updkz  TYPE IEKEK-UPDKZ .


SELECT single BANFN
FROM EBAN
INTO @DATA(ld_i_banfn).


SELECT single BNFPO
FROM EBAN
INTO @DATA(ld_i_bnfpo).


SELECT single XOBLR
FROM EBAN
INTO @DATA(ld_i_no_account_assignment).


SELECT single XOBLR
FROM EBAN
INTO @DATA(ld_i_no_read_db).
. CALL FUNCTION 'ME_READ_REQUISITION_EXT' EXPORTING * i_banfn = ld_i_banfn i_bnfpo = ld_i_bnfpo * i_no_account_assignment = ld_i_no_account_assignment * i_no_read_db = ld_i_no_read_db IMPORTING e_eban = ld_e_eban e_ebkn = ld_e_ebkn e_updkz = ld_e_updkz EXCEPTIONS NOT_FOUND = 1 . " ME_READ_REQUISITION_EXT
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_eban  TYPE EBAN ,
ld_i_banfn  TYPE EBAN-BANFN ,
ld_e_ebkn  TYPE EBKN ,
ld_i_bnfpo  TYPE EBAN-BNFPO ,
ld_e_updkz  TYPE IEKEK-UPDKZ ,
ld_i_no_account_assignment  TYPE EBAN-XOBLR ,
ld_i_no_read_db  TYPE EBAN-XOBLR .


SELECT single BANFN
FROM EBAN
INTO ld_i_banfn.


SELECT single BNFPO
FROM EBAN
INTO ld_i_bnfpo.


SELECT single XOBLR
FROM EBAN
INTO ld_i_no_account_assignment.


SELECT single XOBLR
FROM EBAN
INTO ld_i_no_read_db.

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