Fonction SAP BAPI_SOURCEDETERMIN_GETSOS - Determine Sources for Material/Material Group

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACCTASSCAT BAPIEBAN-ACCTASSCAT C 1 X Account Assignment Category
DELIV_DATE BAPIEBAN-DELIV_DATE D 8 Delivery Date
FIXED_VEND BAPIEBAN-FIXED_VEND C 10 X Fixed Vendor
ITEM_CAT BAPIEBAN-ITEM_CAT C 1 X Item Category
MATERIAL BAPIEBAN-MATERIAL C 18 X Material Number
MATERIAL_EVG BAPIMGVMATNR u 82 X
MAT_GRP BAPIEBAN-MAT_GRP C 9 X Material Group
PCKG_NO BAPIEBAN-PCKG_NO N 10 X Package Number
PLANT BAPIEBAN-PLANT C 4 Plant
PURCH_ORG BAPIEBAN-PURCH_ORG C 4 X Purchasing Organization
QUANTITY BAPIEBAN-QUANTITY P 7 X Quantity
UNIT BAPIEBAN-UNIT C 3 X Unit of Measure
UNIT_ISO BAPIEBAN-PREQ_UNIT_ISO C 3 X ISO Code for Unit of Measure

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRETURN 452 X Return Messages
SOURCES_OF_SUPPLY BAPISOSY 152 Table of Sources Found

Functionality
You can use this method to determine sourceof supply.

Notes
You must supply the method with either a material or a material groupplus a plant and the delivery date.
If you wish to limit the output, you can also pass on data such as thefollowing:

  • a purchasing organization

  • You will then get the sources from which this purchasing organizationcan procure.
    • a vendor

    • You will then get the sources for this vendor.
      • a unit of measure

      • You will then get the sources with this unit of measure.
        Return messages
        INCLUDE BAPI_RET

        Description
        Information on the meaning of the account assignment category isavailable in the relevant data element documentation:
        Account assignment category

        Description
        Information on the meaning of the delivery date is available in therelevant data element documentation:
        Delivery date

        Description
        Information on the meaning of the fixed vendor is available in therelevant data element documentation:
        Fixed vendor

        Description
        Information on the meaning of the item category is available in therelevant data element documentation:
        Item category

        Description
        Information on the meaning of the material number is available 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
        Information on the meaning of the material group is available in therelevant data element documentation:
        Material group

        Description
        Information on the meaning of the package number is available in therelevant data element documentation:
        Package number

        Description
        Information on the meaning of the plant is available in the relevantdata element documentation:
        Plant

        Description
        Information on the meaning of the purchasing organization is availablein the relevant data element documentation:
        Purchasing organization

        Description
        Information on the meaning of the purchase requisition quantity(quantity requested) is available in the relevant data elementdocumentation:
        Purchase requisition quantity

        Description
        Information on the meaning of the unit of measure is available in therelevant data element documentation:
        Unit of measure

        Description
        Information on the meaning of the ISO code is available in the relevantdata element documentation:
        ISO code for unit of measure

        Description
        INCLUDE BAPI_TABLE

        Value range
        Type,,ID,,Number,,Message
        E,,W5,,068,,Please pass on either material number or material
        ,,,,,,group
        E,,W5,,069,,Please also pass on unit of measure for quantity
        E,,W5,,070,,Material & does not exist
        I,,W5,,071,,No valid sources exist
        E,,BM,,034,,No unit of measurement assigned to ISO-Code &

        Description
        This table contains all sources of supplyfound.
        INCLUDE BAPI_DATAELEMENT

509803Runtime problem. Source determination with material group.