MM
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- MEWQ
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
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
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.