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
- Access app Change Maintenance Order.
- Input Order number.
- Navigate to Operations Tab.
- Select an operation item.
- Input an Agreement Number.
- 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:
- Using a control key such as YBM2 which indicates that an operation is processed externally. No material number is used for such procurement.
- 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:
See Also
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
SAP Knowledge Base Article - Public