Fonction SAP BAPI_GOODSMVT_GETDETAIL_OIL - Display details for material document

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MATDOCUMENTYEAR BAPI2017_GM_HEAD_02-DOC_YEAR N 4 Material doc. year
MATERIALDOCUMENT BAPI2017_GM_HEAD_02-MAT_DOC C 10 Material document number

Paramètre Reférence Type Long. Description
GOODSMVT_HEADER BAPIOIL2017_GM_HEAD_SHOW u 151 Material document header

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
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 X BAPI Communication Structure: Display Mat. Document Item
GOODSMVT_ITEM_PARAM BAPIOIL2017_GM_ITM_SHOW_PARAM 648 X BAPI-Kommunik.Strukt: Mat.Bel.Pos. Param. anz.
GOODSMVT_ITEM_QUAN BAPIOIL2017_GM_ITM_SHOW_QUAN 56 X BAPI-Kommunik.Strukt: Mat.Bel.Pos. alt. Mengen. anz.
RETURN BAPIRET2 548 Return messages

Functionality
The GetDetail method enables you to read a whole document (header anditems) using the material document's key fields. The document is notblocked during this procedure.

Notes
INCLUDE BAPI_BERECHTIGUNG

  • M_MSEG_WMB,,Material documents: plant

  • M_MSEG_BMB,,Material documents: movement type

  • Transfer
    The key fields of the material document (MATERIALDOCUMENT andMATDOCUMENTYEAR) have to be transferred to the method as importparameters.
    Confirmations
    In the GOODSMVT_HEADER parameter, the initiator receives the headerinformation for the document chosen.
    In the GOODSMVT_ITEMS table, the initiator receives data for each itemin the material document chosen.
    INCLUDE BAPI_RET

    Further information
    INCLUDE BAPI_INVENTUR_WEITERINF

    Description
    This structure contains the material document's header data.
    INCLUDE BAPI_DATAELEMENT

    Default

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

    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 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_TABLE

    Default
    INCLUDE BAPI_WARENBEWEGUNG_RETURN