# BAPI_REQUISITION_GETDETAIL — Read Purchase Requisition Details

> Reads the items of a purchase requisition and, on request, their account assignment and texts. Reports, approval tools and interfaces use it to show or forward requisition data, and it supplies the old values needed by BAPI_REQUISITION_CHANGE. Set ACCOUNT_ASSIGNMENT and ITEM_TEXTS to 'X' only when you need that data.

- Modules: MM
- Type: BAPI
- Function group: MEWQ
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-requisition-getdetail/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| NUMBER | BAPIEBAN-PREQ_NO | Purchase requisition number | Yes |
| ACCOUNT_ASSIGNMENT | BAPIMMPARA-SELECTION | Also return account assignment data | - |
| ITEM_TEXTS | BAPIMMPARA-SELECTION | Also return item texts | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRETURN | Return messages | - |
| REQUISITION_ITEMS | BAPIEBAN | Item data | Yes |
| REQUISITION_ACCOUNT_ASSIGNMENT | BAPIEBKN | Account assignment data | - |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_REQUISITION_GETDETAIL'
  EXPORTING
    number = lv_number
  TABLES
    return = lt_return
    requisition_items = lt_requisition_items
    requisition_account_assignment = lt_requisition_account_assignment.
```

## Related tables

EBAN, EBKN

