Fonction SAP BAPI_GOODSMVT_GETITEMS_OIL - Display detailed list of material documents

Paramètre Reférence Long. Facultatif Description
BATCH_RA BAPI2017_GM_BATCH_RA 23 X Range for batch
EXTENSIONOUT BAPIPAREX 990 Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
GOODSMVT_HEADER BAPIOIL2017_GM_HEAD_SHOW 151 Return structure, material doc. headers
GOODSMVT_ITEM_01 BAPIOIL2017_GM_ITM_SHOW_01 864 BAPI Communication Structure: Display Mat. Document Item
GOODSMVT_ITEM_02 BAPIOIL2017_GM_ITM_SHOW_02 298 BAPI Communication Structure: Display Mat. Document Item
GOODSMVT_ITEM_PARAM BAPIOIL2017_GM_ITM_SHOW_PARAM 648 BAPI-Kommunik.Strukt: Mat.Bel.Pos. Param. anz.
GOODSMVT_ITEM_QUAN BAPIOIL2017_GM_ITM_SHOW_QUAN 56 BAPI-Kommunik.Strukt: Mat.Bel.Pos. alt. Mengen. anz.
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 data forthe material documents chosen.
      INCLUDE BAPI_RET

      Further information
      INCLUDE BAPI_INVENTUR_WEITERINF

      Description
      INCLUDE BAPI_DATAELEMENT
      Batch

      Description
      Ref. structure for BAPI parameters EXTENSIONIN/EXTENSIONOUT
      General
      With this table customer can get his own enhancements on DB table MSEGO1in case some preparations are being done before. (i.e. customer includesci_msego1 and ci_msego1_char are maintained in the right way -> see'extensionin' description of FM BAPI_GOODSMVT_CREATE_OIL )

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

      Default

      Description
      This table contains SAP standard fields of item data for the materialdocuments.
      For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

      Description
      This table contains IS-OIL fields of item data for the materialdocuments.
      For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

      Description
      This table contains conversion parameters of item data for the materialdocuments - in case the material is an oil-material..
      For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

      Description
      This table contains a set of quantities in additional units of measurefor each item of the material documents in case the material is an oilmaterial.
      For more information on the individual parameter fields, see the dataelement documentation in the ABAP Dictionary.

      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.

      Default

      Description
      INCLUDE BAPI_DATAELEMENT
      Vendor