Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the validity end date of condition record VK12

ABAPER_P
Participant
0 Kudos
2,652

Hello Team

I need to change the validity end date of the condition record. I have tried with FM I have tried with FM RV_CONDITION_COPY with MAINTAIN_MODE mode ‘B’ unable to change the validity of the condition record.

I have tried with other FM also BAPI_PRICES_CONDITIONS , RV_CONDITION_MAINTENANCE.

RV_CONDITION_MAINTENANCE- opens the popup screen which and waits for user input. which is not satisfying.


Can any once help here

1 REPLY 1

Jelena_Perfiljeva
Active Contributor
1,016

It's not feasible to change the end date. Validity end date (DATBI) is part of the key in the condition tables.

The correct process for updating conditions is: 1) "expire" existing record by changing the validity date to the date right before the new condition should start; 2) create new record with start date and whatever is the applicable end date (it will default to 12/31/9999 if no date specified).

If you have the condition records that are expiring prematurely and you want to extend them then, providing there are no future condition records that would cause a conflict, simply create new records with the same data but the new expiration date.

If you search in Google, you'll find many old posts in SD forum on how conditions are maintained.