Fonction SAP BAPI_REQUIREMENT_GET_LIST - List Requirement Coverage Requests/Requisitions

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLOSED_ITEMS BAPIMMPARA-SELECTION C 1 X Indicator: Closed Requirement Coverage Requests Only
ITEMS_FOR_RELEASE BAPIMMPARA-SELECTION C 1 'X' X Indicator: Purchase Requisitions Awaiting Release Only
OPEN_ITEMS BAPIMMPARA-SELECTION C 1 X Indicator: Open Requirement Coverage Requests Only
PREQ_DATE BAPIMMPARA-PREQ_DATE D 8 X Requisition/Request Date
PREQ_NAME BAPIMMPARA-PREQ_NAME C 12 X Name of Requisitioner (Requester)/Entering User
REL_CODE BAPIMMPARA-REL_CODE C 2 X Release Code for Collective Release
REL_GROUP BAPIMMPARA-REL_GROUP C 2 X Release Group for Collective Release

Paramètre Reférence Long. Facultatif Description
REQUIREMENT_ITEMS BAPIEBAN 1084 Table of Requirement Coverage Requests/Purchase Requisitions

Exception Description
PREQ_NAME_MISSING Requester Missing from Status Display
REL_AUTH_CHECK_FAILED No Release Authorization
REL_CODE_MISSING Release Code Missing
STATUS_MISSING Open/Closed Indicator Missing from Status Display

Functionality
This method allows you to generate the following lists:

  • Case 1: All requirement coverage requests (purchase requisitions and
  • reservations) created by a certain user.
    • Case 2: All purchase requisitions that have to be released with a
    • certain release code and group (collective release).
      As of Release 4.0A, use the methods GetItems andGetItemsForRelease of the business objectPurchaseRequisition.
      • Case 1:

      • The following authorization objects are checked:
        M_BANF_BSA,,Document type in purchase requisition
        M_BANF_EKG,,Purchasing group in requisition
        M_BANF_EKO,,Purchasing org. in requisition
        M_BANF_WRK,,Plant in purchase requisition
        M_MRES_BWA,,Reservations: movement type
        M_MRES_WWA,,Reservations: plant
        The user name must be given in the parameterRequisitioner/requester.
        The selection date can be given via the parameter Date. If adate exists, only those requirement coverage requests that were enteredon or after this date are selected.
        At least one of the options OpenItems or ClosedItems mustbe set. It is also possible for both to be set, in which case both openand closed requirement coverage requests are selected.
        The result is delivered in the table ItemData.
        • Case 2:

        • The authorization object M_EINK_FRG is checked.
          Here the transfer parameters described under case 1 need not be filled.Instead, the release code must be given in the parameterReleaseCode, and the release group in parameterReleaseGroup.
          The parameter ItemsForRelease determines whether only therequisitions that are still to be released or those that have alreadybeen released are listed. The latter is useful, for example, if a listis to be generated for the purpose of cancelling releases.
          The result is delivered in the table ItemData.

          Description
          If this indicator is set, those requirement coverage requests whoserequirement quantity is less than or equal to the quantity ordered orwithdrawn are displayed.

          Value range
          Dictionary data type: CHAR (field length 1).

          Description
          If this indicator is set, only those purchase requisitions that are tobe released with the release code and group are listed.
          If the indicator is not set, only already-released requisitions arelisted.

          Value range
          Dictionary date type: CHAR (field length 1).

          Description
          If this indicator is set, those requirement coverage requests whoserequirement quantity exceeds the quantity ordered or withdrawn arelisted.

          Value range
          Dictionary data type: CHAR (field length 1).

          Description
          You will find information on the meaning of the requisition/requestdate in the relevant data element documentation:
          Requisition/request date

          Value range
          Dictionary data type: DATS (field length 8).

          Description
          You will find information on the meaning of the requisitioner/requesterin the relevant data element documentation.
          Requisitioner/requester

          Value range
          Dictionary data type: CHAR (field length 12).

          Description
          You will find information on the meaning of the release code in therelevant data element documentation.
          Release code

          Value range
          Dictionary data type: CHAR (field length 2).

          Description
          You will find information on the release group in the relevant dataelement documentation:
          Release group

          Value range
          Dictionary data type: CHAR (field length 2).

          Description
          The table contains all requirement coverage request/purchaserequisition items that satisfy the selection criteria.