Skip to Content
avatar image
Former Member

Question about ending conditions

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 21, 2010 at 01:46 PM

    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?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 01:49 PM

    Hi,

    check this blog same requirement

    idoc-conda01

    Check this include ' INCLUDE ZXVKOU04.

    in user exit EXIT_SAPLVKOI_002 and write your code

    prabhudas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Sep 21, 2010 at 01:57 PM

    Hi,

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

    Sujay

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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