Solution : https://service.sap.com/sap/support/notes/200855 (SAP Service marketplace login required)
Summary :
When using the function module 'RV_CONDITION_MAINTENANCE' to maintain conditions in SAP, canceling from the screen SAPMV13A0201 with F12 does not prevent creation of a condition record or a new period, due to indistinguishable handling of Cancel and Back actions. To remedy this, adding parameters CONTEXT_REQUESTED and CANCEL_REQUESTED to the function module enables explicit handling of cancel requests, ensuring that condition tables reset to previous states when canceled. Note: Exiting via F3 will always update the condition supplement screen changes upon transaction save, regardless of user modifications.
Key words :
optional import parameter context_requested type char1, additional key words scheduling agreement, language element 'call dialog', short text 'context administration, prerequisites function module 'rv_condition_maintenance', condition type pb00, short text 'termination, function module 'rv_condition_maintenance', export parameter back_requested, return parameter 'exit_reuqeusted'
Related Notes :
410674 | Contracts: Price agreements are lost (VA41/VA42) |
369013 | Conditions: Termination VK067 after creation |
309236 | ME31 Canceling on the condition screen |