Manage Attribute with Warehouse Interface

When stock transactions are performed, attribute information can be provided for the stock. In H5, the user would usually be guided to 'Attribute. Open' (ATS101) to provide attribute information.

Some warehouse interface transactions can accommodate attributes.

A ‘message line attribute’ record can be added in 'Order Init Msg Line Attribute. Manage' (MHS856), it relates to one message line and can be reached using option '12' from 'Order Init Stock Trans Msg. Manage' (MHS852).

(MHS856) records are saved in table MHIATR.

Each message line attribute record is created by providing:

  • a sequence number (which can be fetched by M3)
  • an attribute ID
  • an attribute value: The attribute value is saved on different fields depending on the attribute type: ATVA (for alphanumerical types), ATVN (for numerical types) or ATVD (for date types).

Attribute types 1 (alphanumerical) 2 (numerical) and 3 (date) are the only supported types.

The following rules apply:

  • (MHS856) can only be accessed if the item or product on the message line is attribute managed.
  • (MHS856) can only be accessed if the message line is using qualifier 20 (PO receipt) or a qualifier 10 (MO receipt).
  • Line attributes records can only be added if the attribute ID belongs to the attribute model of the item or product.
  • When changing an existing line attribute record, only its value can be updated. If the attribute ID should be updated, the user should delete and create a new record.
  • The same attribute ID cannot be added twice for the same message line.
  • A maximum of 10 attributes can be added for each message line.
  • A line attribute can only be copied to another existing message line.

Line attributes can also be managed using the API MHS850MI transactions 'AddAttribute', 'UpdAttribute', 'DltAttribute', 'GetAttribute', and 'LstAttribute'.

Note: 

The transactions “AddAttribute” and “UpdAttribute” have a unique input field for the attribute value. The API will convert the value provided accordingly to the attribute types alphanumerical, numerical, or date.

When the 'Order Init Stock Msg. Manage' (MHS850) instruction is processed, the attribute information is passed to the business function.

This is an example of the workflow for performing a purchase order receipt with WHI with attributes:
  1. Perform MHS850MI AddMOReceipt or MHS850MI AddPOReceipt without the process flag.
  2. Execute MHS850MI AddAttribute as many times as there are attributes to add for the stock to be received.
  3. Run the API transaction MHS850MI PrcWhsTran to execute the transaction.

The MHIATR records are archived when the message is archived. Archived line attributes are transferred to table MHAATR.