Fonction SAP BAPI_REQUISITION_GETITEMS - Read Purchase Requisition Item

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ASSIGNED_ITEMS BAPIMMPARA-SELECTION C 1 SPACE X Including Assigned Purchase Requisition Items
CLOSED_ITEMS BAPIMMPARA-SELECTION C 1 SPACE X Including Closed Purchase Requisition Items
DELETED_ITEMS BAPIMMPARA-SELECTION C 1 SPACE X Including Deleted Purchase Requisition Items
DELIV_DATE BAPIEBAN-DELIV_DATE D 8 X Delivery Date
DOC_TYPE BAPIEBAN-DOC_TYPE C 4 X Document Type
MATERIAL BAPIEBAN-MATERIAL C 18 X Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number
MAT_GRP BAPIEBAN-MAT_GRP C 9 X Material Group
ONLY_NON_MATERIAL_ITEMS BAPIMMPARA-SELECTION C 1 SPACE X Only Purchase Requisition Items Without Material
OPEN_ITEMS BAPIMMPARA-SELECTION C 1 'X' X Open Purchase Requisition Items
PARTIALLY_ORDERED_ITEMS BAPIMMPARA-SELECTION C 1 SPACE X Including Partially Ordered Requisition Items
PLANT BAPIEBAN-PLANT C 4 X Plant
PREQ_DATE BAPIEBAN-PREQ_DATE D 8 X As of Request Date
PREQ_NAME BAPIEBAN-PREQ_NAME C 12 X Requisitioner
PREQ_NO BAPIEBAN-PREQ_NO C 10 X Purchase Requisition Number
PUR_GROUP BAPIEBAN-PUR_GROUP C 3 X Purchasing Group
REL_DATE BAPIEBAN-REL_DATE D 8 X Release Date
SHORT_TEXT BAPIEBAN-SHORT_TEXT C 40 X Material Short Text
TRACKINGNO BAPIEBAN-TRACKINGNO C 10 X Requirement Tracking Number

Paramètre Reférence Long. Facultatif Description
REQUISITION_ITEMS BAPIEBANC 823 Table of Purchase Requisition Items
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method enables you to list purchase requisition items. The desiredselection criteria (e.g. requisitioner and plant) are passed on in theimport parameters. For further information, refer to the relevantparameter documentation.

Notes
The following authorization objects are checked with activity 03(Display):

  • M_BANF_BSA,,Document type in requisition

  • M_BANF_EKG,,Purchasing group in requisition

  • M_BANF_EKO,,Purchasing organization in requisition

  • M_BANF_WRK,,Plant in requisition

  • Return
    The items that satisfy the selection criteria are returned in the tableRequisitionItems.
    Return messages
    INCLUDE BAPI_RET

    Description
    If you set the indicator, the purchase requisition items to which asource of supply has already been assignedwill also be listed.

    Description
    If you set the indicator, purchase requisition items that are closed(no open quantity left) will also be listed.

    Description
    If you set the indicator, deleted purchase requisition items will alsobe listed.

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

    Description
    You will find information on the meaning of the delivery date in therelevant data element documentation:
    Delivery date

    Description
    You will find information on the meaning of the document type in therelevant data element documentation:
    Document type purchase requisition

    Description
    You will find information on the meaning of the material number in therelevant data element documentation:
    Material number

    Description
    Parameter for the long material number.
    This parameter can be used to tranfer long material numbers, whosemaximum length may not exceed 40 characters.
    To be able to use this parameter, you must activate the switch for thebusiness function LAMA (long material number) in the system.
    The business function LAMA is available as a component of the businessfunction set for DIMP.

    Value range
    None.

    Default
    None.

    Description
    You will find information on the meaning of the material group in therelevant data element documentation:
    Material group

    Description
    If you set the indicator, only purchase requisition items without amaterial number will be listed.

    Description
    If you select this indicator, data on open items will also be returned.

    Description
    If you set the indicator, purchase requisition items that have partlybeen ordered (open quantity still remaining) will also be listed.

    Description
    You will find information on the meaning of the plant in the relevantdata element documentation:
    Plant

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

    Description
    You will find information on the requisitioner (requester) in therelevant data element documentation:
    Requisitioner/requester

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    You will find information on the meaning of the purchasing group in therelevant data element documentation:
    Purchasing group

    Description
    You will find information on the meaning of the release date in therelevant data element documentation:
    Purchase requisition release date

    Description
    You will find information on the meaning of the short text in therelevant data element documentation:
    Short text

    Description
    You will find information on the meaning of the requirement trackingnumber in the relevant data element documentation:
    Requirement tracking number

    Description
    The table contains the purchase requisition items that satisfy theselection criteria.
    INCLUDE BAPI_DATAELEMENT

    Description
    INCLUDE BAPI_TABLE

    Value range
    Type,,ID,,Number,,Message
    E,,W5,,024,,No purchase requisitions satisfying these
    ,,,,,,selection criteria exist
    E,,W5,,072,,Please pass on parameter for open or
    ,,,,,,closed purchase requisitions

488619Vendor's material numbers with more than 22 characters