Fonction SAP BAPI_MATALLOC_GETDETAILEDLIST - List of alloc tbls and items for a store

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ALLOCTABLE BAPI2085_S-ALLOC_TBL C 10 X Allocation table number (optional; compulsory if sel = 4)
CUSTOMER BAPI2085_S-PLANT_CUSTOMER C 10 X Customer no. of store
DELIVERYDATEFROM BAPI2085_S-DELIV_DATE_FROM D 8 Delivery date from
DELIVERYDATETO BAPI2085_S-DELIV_DATE_TO D 8 X Delivery date to
DEPARTMENT BAPI2085_S-DEPARTMENT_NO C 4 X Department number (optional; compulsory if sel. = 1)
MATERIAL BAPI2085_S-MATERIAL C 18 X Material number (optional; compulsory if sel. = 3)
MATERIALGROUP BAPI2085_S-MATL_GROUP C 9 X Material group (optional; compulsory if sel. = 2)
MATERIAL_EVG BAPIMGVMATNR u 82 X Long Material Number
PLANT BAPI2085_S-PLANT C 4 X Plant no. of store
READTEXTFLAG BAPI2085_S-TEXT_INDICAT C 1 X Indicates if texts are read - yes/no
REQUESTDATEFROM BAPI2085_S-REQ_DATE_FROM D 8 X Confirmation request from-date
REQUESTDATETO BAPI2085_S-REQ_DATE_TO D 8 X Confirmation request to-date
REQUESTFLAG BAPI2085_S-REQUEST_INDICAT C 1 X Indicates reply only (empty, 1,2)
SELECTIONFLAG BAPI2085_S-SELECT_INDICAT C 1 X Selection indicator (empty, 1,2)

Paramètre Reférence Long. Facultatif Description
ALLOCTABLELIST BAPI2085_H 51 List of selected allocation tables
ALLOCTBLITEMSDATA BAPI2085_I 289 List of selected allocation table items
ALLOCTBLITEMTEXT BAPI2085_TI 153 X Texts for allocation table items
ALLOCTBLTEXT BAPI2085_TH 148 X Allocation table texts
ITEMDELIVERYDATES BAPI2085_D 73 List of selected delivery phases
RETURN BAPIRET2 548 Error message table

Functionality
This method is used to determine a list of allocation tables that areassigned to a particular store, with related prices and deliveryphases. The allocation tables that are determined depend on theselection criteria you enter.

Notes
The following authorization objects are checked:

  • W_TRAN_CCR Authorization to execute transaction WA14

  • W_AUFT_RMB Authorization to display and/or confirm allocation tables

  • As the method only supplies allocation tables for one store, paramterPLANT or parameter CUSTOMER must be set.
    For performance reasons, you should ensure that the period for thedelivery date is limited sufficiently that the number of allocationtables transferred is not excessive.
    INCLUDE BAPI_RET

    Description
    Information on the meaning of the allocation table canbe found in the relevant data element documentation. Optional importparameter.

    Value range
    If the allocation table number entered does not exist, the systemissues an error message.

    Description
    Import parameter - customer number of a store.

    Value range
    If the customer number entered does not exist, the system issues anerror message.

    Description
    Import parameter Delivery date from, indicates the start of thedelivery period in which the allocation table is to fall. Thisparameter must always be entered.

    Value range
    The date must be entered in the form YYYYMMDD. If the format isinvalid, the system issues an error message.

    Description
    Optional import parameter Delivery date to. Indicates the end of thedelivery period in which the allocation table to be transferred is tofall.

    Value range
    The date must be entered in the form YYYYMMSS. If the format isinvalid, the system issues an error message.

    Description
    Optional import parameter Department number. This identifies adepartment in a store.

    Value range
    The value entered is only taken into consideration if the selectionindicator has the value "1".

    Description
    Import parameter Material number. For information on the meaning of thematerial number, please see the relevant data elementdocumentation.

    Description
    Optional import parameter Material group. For information on themeaning of the material group, please see the relevantdata element documentation.

    Value range
    The value entered is only taken into consideration if the selectionindicator has the value "2".

    Description
    Parameter for the long material number.
    This parameter can be used to transfer long material numbers with amaximum length of 40 characters.
    To use this parameter, you must activate the switch for the businessfunction LAMA (long material number) in the system.
    The business function LAMA is available as a component of the businessfunction set for DIMP.

    Description
    Import parameter Plant number of the store.

    Value range
    If the plant number entered does not exist, the system issues an errormessage.

    Description
    Indicates whether the available texts for the allocation table andallocation table items are to be determined.

    Value range
    If the indicator is not set, the texts are not determined. If theindicator is not blank, the texts for the allocation tables and itemsare determined.

    Description
    Optional import parameter Confirmation request date. Indicates thestart of a period in which the allocation table can be confirmed.

    Value range
    The date must be entered in the form YYYYMMDD. If the format isinvalid, the system issues an error message.

    Description
    Optional import paramter Confirmation request date to. Indicates theend of the period in which confirmation can be given for the allocationtables in question.

    Value range
    The date must be entered in the form YYYYMMDD. If the format isinvalid, the system issues an error message.

    Description
    Optional import parameter - Reply indicator. The indicator determineswhether only allocation tables for which a reply is possible are to bedetermined, or whther those that can only be displayed are determinedas well.

    Value range
    The following values are possible for this parameter:
    0 Allocation tables with and without reply option are possible
    1 Only allocation tables with reply options, for which no required
    quantities have yet been entered, are determined
    2 Only allocation tables with reply option are determined. In this
    case, it does not matter whether required quantities have been
    entered
    If the value entered is invalid, the system issues an error message.

    Description
    Selection indicator that determines which of the selection optionsoffered is to apply when the list is created.

    Value range
    The following selection options are possible, and correspond to thevalue of the selection indicator:
    Selection option Value of selection indicator
    None Blank
    Material group 1
    Department no. 2
    Material no. 3
    Allocation table no. 4
    If an invalid value is entered, the system issues an error message. Ifno value is transferred in the import parameter that corresponds to theselection criteria, the system issues an error message.

    Description
    The list of allocation tables that are determined using the selectioncriteria are returned in a table. For informaiton on the meaning of theindividual parameters, please see the relevant data elementdocumentation.
    The table has the following structure:

    • ALLOC_TBL Allocation table number

    • ALLOC_DESCRIPT Allocation table description

    • REPLY_ALLOWED Reply indicator
    • Description
      Table contains items data for all allocation table in the allocationtable list.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the text on the allocation table items in the itemlist. The talbe only contains data if the indicator for reading thetexts is set.
      The table has the following structure:

      • ALLOC_TBL Allocation table number

      • ALLOC_TBL_ITEM Item number

      • TEXT_ID Text ID

      • FORMAT_COL Tag column

      • TEXT_LINE Text line
      • Description
        The table contains texts on the allocation tables in the allocationtable list. Data is only transferred to the table if the indicator forreading the texts is set.
        The table has the following structure:

        • ALLOC_TBL Allocation table number

        • TEXT_ID Text ID

        • FORMAT_COL Tag column

        • TEXT_LINE Text line
        • Description
          The table contains the list of all delivery phases for the items in thelist of items.
          INCLUDE BAPI_DATAELEMENT

          Description
          INCLUDE BAPI_TABLE

          Value range
          Messages on authorization
          Type ID Number Message
          E MW 562 No authorization to confirm required allocation
          quantities in the store
          E MW 563 No authorization to confirm required allocation
          quantities
          Messages on input checks
          Type ID Number Message
          E MW 550 Value not permitted for selection flag. Permitted
          blank,1,2,3,4
          E MW 551 Value not permitted for request flag.
          Permitted: blank,1,2
          E MW 552 Enter plant no. or customer no. of the store
          E MW 553 Enter department no., as selection flag =1
          E MW 554 Enter material group, as selection flag =2
          E MW 555 Enter material no., as selection flag =3
          E MW 556 Enter allocation table no., as selection flag =4
          E MW 557 No customer master record could be found for plant
          E MW 560 Plant is not a retail site
          E WN 008 Plant does not exist
          E WN 050 Department not maintained in plant
          E WN 703 Plant not assigned a material group
          E WN 704 Department not assigned to a material group
          E WN 701 Plant is not assigned to customer
          Messages on internal processing
          E MW 565 DB error reading...
          W MW 566 SUn and EAN for plant and article could not be
          determined
          W MW 567 ISO code for unit of measure could not be
          determined
          W MW 306 No data found for the selection
          E MW 701 Error reading Customizing table for notification
          type