Symptom
- While creating a Purchase Contract via ME31K, all valuation types are displayed in the search help for the Valuation Type field.
- However, when creating a Purchase Order via ME21N, only the relevant valuation types (based on material/plant configuration) are displayed in the search help.
- The requirement is to have the same restricted search help behavior in Purchase Contracts as observed in Purchase Orders.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a Purchase Contract through ME31K.
- Check the search help for the valuation type field.
- Observe that all valuation types are visible.
- Compare this behavior with the search help for the valuation type field when creating a Purchase Order through ME21N, where only the respective valuation type is visible.
Cause
The behavior where all valuation types are visible in the search help during Purchase Contract creation is standard system behavior. The value help in Purchase Contracts is not filtered based on material and plant, as valuation types are defined globally for a valuation category in split valuation.
Resolution
- In SAP S/4HANA Cloud Public Edition, the behavior observed is standard system functionality.
- Currently, there is no configuration (SSCUI) or extensibility available to restrict the value help for valuation type in Purchase Contracts.
- As a workaround, use the BAdI “Check of Purchase Contract Before Saving (MM_PUR_S4_CTR_CHECK)” to implement validation during the save process.
- This allows raising an error or warning message if an invalid valuation type is selected for the material, ensuring data consistency.
- Note that this BAdI can only validate at the time of saving and cannot restrict the value help itself.
See Also
- Purchase Contract Management
- KBA 3439028 - Valuation types not displayed in F4 help
- App Extensibility: Manage Purchase Contracts
Keywords
purchase contract, me31k, valuation type, search help, standard system behavior, split valuation, value help, purchase order, validation, badi, mm_pur_s4_ctr_check, sap s/4hana cloud public edition , KBA , MM-FIO-PUR-SQ-CON-CL , Fiori UI for Manage Purchase Contracts (Public Cloud) , Problem
SAP Knowledge Base Article - Public