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

ParameterTypeDescriptionRequired
NUMBERBAPIEBAN-PREQ_NOPurchase requisition numberYes
ACCOUNT_ASSIGNMENTBAPIMMPARA-SELECTIONAlso return account assignment data—
ITEM_TEXTSBAPIMMPARA-SELECTIONAlso return item texts—

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRETURNReturn messages—
REQUISITION_ITEMSBAPIEBANItem dataYes
REQUISITION_ACCOUNT_ASSIGNMENTBAPIEBKNAccount 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.

Request a custom report