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: 

Question about ending conditions

Former Member
0 Kudos

Hi all,

I have a question about ending conditions.

At some point we would like to end a particular condition.

eg. from 01.01.2010 - 31.12.9999 to 01.01.2010 - 31.12.2010

now I use IDOC COND_A01 to change the DATBI. This is working fine so far.

But the IDOC automatically creates a new record from 01.01.2011 to 31.12.9999.

Is there any way I can supress this? So the new record will not be created only the existing record is changed?

Best regards,

John

5 REPLIES 5

Former Member
0 Kudos

sounds like your IDOC contained a new validity range, which would result in SAP ending the existing on the day before the new range. What's in the input? This can't be handled through config?

Former Member
0 Kudos

Hi,

check this blog same requirement

Check this include ' INCLUDE ZXVKOU04.

in user exit EXIT_SAPLVKOI_002 and write your code

prabhudas

0 Kudos

Hi,

Thanks for your reply. My first guess is that the idoc just calls VK11 in the background.

When we add a record here the already existing record will be updated.

What I would like is that the existing record of 01.01.2010 - 31.12.9999 will be cut off at 31.12.2010.

I know I can set the deletion mark but this isn't really what I am looking for.

I don't want the second record to be created.

Best regards,

John

Former Member
0 Kudos

Hi,

Does it happen only when processing through IDoc? Does it happen when you create conditions in VK transactions

Sujay

0 Kudos

Hi,

maybe I wasn't clear enough. What I see is that VK11 inserts a new record.

But when I change them with VK12 it updates an already existing record. Now my first guess is that this IDOC creates a new record instead of updating an already existing one.

My requirement here is that I just update the existing one. So don't insert a new record.

Best regards,

John