Fonction SAP BAPI_ASSORTMENT_MAINTAINDATA - Maintenance of Assortments

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ASSORTMENT BAPIE1WRS1 u 100
ASSORTMENTX BAPIE1WRS1X u 33

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548

Paramètre Reférence Long. Facultatif Description
ASSORTMENTUSERS BAPIE1WRSZ 65 X
ASSORTMENTUSERSX BAPIE1WRSZX 28 X
DESCRIPTION BAPIE1WRST 56 X
DESCRIPTIONX BAPIE1WRSTX 17 X
MATERIALGROUP BAPIE1WRS6 25 X
MATERIALGROUPX BAPIE1WRS6X 24 X

Functionality
This method can be used to create new assortment and change or deleteexisting material master data.
The following tables are affected by assortment processing:

  • Basic data

  • Assignment of material groups to assortment

  • Description of assortment

  • Assignment of assortment users to assortment

  • So that the system can see that a data record is to be deleted, thefield FUNCTION must contain value 003 in the relevant structure. Thisfield is not relevant if data is created or changed.

    Notes
    For data to be created/changed, you need the appropriate authorizationfor maintaining the assortment in question.

    Description
    This structure is used to return the return code to the program used tocall Assortments.
    For more information about the fields in the structure, see therelevant documentation for the data elements for the individual fields.
    Any information or messages that are generated when editing thematerial are grouped and stored in an application log. The returnparameter only contains information about the numbers under whichmessages in the application log can be displayed.

    Description
    Use this structure to maintain an assortment (Create / Change /Delete).

    Description
    This structure (selection bar) controls which fields in the transactiondata structure (ASSORTMENT) contain information that can be changed.
    This structure can therefore be used to assign valid values to fieldsin the transaction data structure. The fields are then marked in theselection bar. This ensures that all fields that are not selectedretain the current database value.

    Description
    Use this structure to maintain data for the assignment of assortmentusers to assortments.

    Description
    This structure (selection bar) controls which fields in the transactiondata structure (ASSORTMENTUSERSX) contain information that can bechanged.
    This structure can therefore be used to assign valid values to fieldsin the transaction data structure. The fields are then marked in theselection bar. This ensures that all fields that are not selectedretain the current database value.

    Description
    Use this structure to maintain the descriptions of an assortment.

    Description
    This structure (selection bar) controls which fields in the transactiondata structure (DESCRIPTIONX) contain information that can be changed.
    This structure can therefore be used to assign valid values to fieldsin the transaction data structure. The fields are then marked in theselection bar. This ensures that all fields that are not selectedretain the current database value.

    Description
    Use this structure to control the assignment of material groups toassortments.

    Description
    This structure (selection bar) controls which fields in the transactiondata structure (MATERIALGROUPX) contain information that can bechanged.
    This structure can therefore be used to assign valid values to fieldsin the transaction data structure. The fields are then marked in theselection bar. This ensures that all fields that are not selectedretain the current database value.