Fonction SAP BAPI_GOODSMVT_GETITEMS - Display Detailed List of Material Documents

Paramètre Reférence Long. Facultatif Description
BATCH_RA BAPI2017_GM_BATCH_RA 23 X Range for Batch
GOODSMVT_HEADER BAPI2017_GM_HEAD_02 145 Return Structure, Material Doc. Headers
GOODSMVT_ITEMS BAPI2017_GM_ITEM_SHOW 887 Return Structure, Material Doc. Items
MATERIAL_RA BAPI2017_GM_MATERIAL_RA 39 X Range for Material
MOVE_TYPE_RA BAPI2017_GM_MOVE_TYPE_RA 9 X Range for Mvt Type
PLANT_RA BAPI2017_GM_PLANT_RA 11 X Range for Plant
PSTNG_DATE_RA BAPI2017_GM_PSTNG_DATE_RA 19 X Range for Posting Date
RETURN BAPIRET2 548 Return Messages
SPEC_STOCK_RA BAPI2017_GM_SPEC_STOCK_RA 5 X Range for Special Stock Indicator
STGE_LOC_RA BAPI2017_GM_STGE_LOC_RA 11 X Range for Stor. Loc.
TR_EV_TYPE_RA BAPI2017_GM_TR_EV_TYPE_RA 7 X Range for Trans./Event Type
USERNAME_RA BAPI2017_GM_USERNAME_RA 27 X Range for User Name
VENDOR_RA BAPI2017_GM_VENDOR_RA 23 X Range for Vendor

Functionality
The GetItems method allows you to read the header and item data of allmaterial documents that meet the selection criteria below:

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_MSEG_WMB,,Material documents: plant

  • M_MSEG_BMB,,Material documents: movement type

  • Transfer
    You can use the following criteria to select the material documents:
    • Material (structure MATERIAL_RA)

    • Plant (structure PLANT_RA)

    • Storage location (structure STGE_LOC_RA)

    • Batch (structure BATCH_RA)

    • Movement type (structure MOVE_TYPE_RA)

    • Special stock indicator (structure SPEC_STOCK_RA)

    • Transaction/event type (structure TR_EV_TYPE_RA)

    • Posting date (structure PSTNG_DATE_RA)

    • Vendor (structure VENDOR_RA)

    • User name (structure USERNAME_RA)

    • Confirmations
      The GOODSMVT_HEADER table contains the header data for the materialdocuments chosen and the GOODSMVT_ITEMS table contains the item datafor the material documents chosen.
      INCLUDE BAPI_RET

      Further information
      INCLUDE BAPI_INVENTUR_WEITERINF

      Description
      INCLUDE BAPI_DATAELEMENT
      Batch

      Description
      This table contains header data for the material documents.
      INCLUDE BAPI_DATAELEMENT

      Description
      This table contains item data for the material documents.
      INCLUDE BAPI_DATAELEMENT

      Description
      INCLUDE BAPI_DATAELEMENT
      Material

      Description
      INCLUDE BAPI_DATAELEMENT
      Movement type

      Description
      INCLUDE BAPI_DATAELEMENT
      Plant

      Description
      INCLUDE BAPI_DATAELEMENT
      Posting date

      Description
      INCLUDE BAPI_TABLE

      Default
      INCLUDE BAPI_WARENBEWEGUNG_RETURN

      Description
      INCLUDE BAPI_DATAELEMENT
      Special stock indicator

      Description
      INCLUDE BAPI_DATAELEMENT
      Storage location

      Description
      INCLUDE BAPI_DATAELEMENT
      Transaction/event type

      Description
      Indicates the name of the user who created the material document.

      Description
      INCLUDE BAPI_DATAELEMENT
      Vendor