Fonction SAP BAPI_GOODSMVT_GETDETAIL - 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 Document Year
MATERIALDOCUMENT BAPI2017_GM_HEAD_02-MAT_DOC C 10 Material Document Number

Paramètre Reférence Type Long. Description
GOODSMVT_HEADER BAPI2017_GM_HEAD_02 u 145 Material Document Header

Paramètre Reférence Long. Facultatif Description
GOODSMVT_ITEMS BAPI2017_GM_ITEM_SHOW 887 Material Document Items
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

    Description
    INCLUDE BAPI_KEYFIELD

    Description
    INCLUDE BAPI_KEYFIELD

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

    Description
    INCLUDE BAPI_TABLE

    Default
    INCLUDE BAPI_WARENBEWEGUNG_RETURN

1075141BAPIs valid for usage with AFS6.0