SAP Knowledge Base Article - Public

3082441 - Error 'Agreement item contains a different material' when adding an Operation in a Maintenance Order - SAP S/4HANA Cloud Public Edition

Symptom

  • Error 06387 (Agreement item contains a different material) appears when adding an operation in a maintenance order.
  • Unable to create/change an external operation with an Outline Agreement in Maintenance Order in the operations tab.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Access app Change Maintenance Order.
  2. Input Order number.
  3. Navigate to Operations Tab.
  4. Select an operation item.
  5. Input an Agreement Number.
  6. Press Enter.

Cause

Requirement needs to plan maintenance work using external labor under an outline agreement. The outline agreement is for a service product, but external operations generally do not carry a material number. The observed behavior is therefore expected.

Resolution

In SAP S/4HANA Cloud Public Edition, there are two possibilities for procuring external labor:

  1. Using a control key such as YBM2 which indicates that an operation is processed externally. No material number is used for such procurement. 
  2. Using a material of type SERV.

Given the material number is already a service, YBM2 control key would not be used but instead use YBM1 and add the service material in the sub-screen "Services". For more information about the handling of service materials, please also refer to SAP Help:

Adding Lean Services

See Also

Adding Lean Services

Organizing External Maintenance Work

Keywords

06387,  Agreement item contains a different material, YBM2, Control key, Exteral work, Service, Outline agreement, Maintenance order. , KBA , PM-WOC-MO-PUR-2CL , Purchasing (external processing, requisitions, services) , PM-FIO-2CL , Fiori User Interface (UI) for PM (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions