Skip to Content
author's profile photo Former Member
Former Member

Need to establish a relation between Condition Record # (KNUMH) field from CDPOS table and Sales Document (VBELN) table

We have a situation where the Discount rate Condition record entries in A909 have been wiped out by a program, such that there is no historical data left. We are required to rebuild the discount rate history. We are able to query the historical discount rates from the CDPOS/CDHDR tables, but unable to relate them to each Sales Document, since that link/data has been wiped out from the A909 table.

Is there any other table where the (Condition Record #) KNUMH field or Change Document (CHANGENR) field from the CDPOS table and Sales Document (VBELN) from VBAk table, either directly or indirectly.

Any kind of direction/information would be helpful!

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on May 21, 2013 at 11:22 AM

    Hi,

    What I understand that you want to track the conditions changes history in the Sales Document.

    In that case go to CDHDR and CDPOS to check the sales document changes and see that is relevant for the item pricing or not.

    In CDHDR give the 10 digit SD document no in CDHDR-OBJECTID and get the date and time of the changes and then by CDHDR-CHANGENR = CDPOS-CHANGENR get all the changes.

    Please note that if your sales document no is less than 10 digit then you have to applied leading zeros.

    Like Invoice No - 9045789 so in CDHDR try with "0009045789"

    Thanks,

    Suman$

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2013 at 02:02 PM

    Try KONV table. where put document condtion number (KNUMV) same as in sales order header (VBAK) condtion number (KNUMV). This will give you all the item of a sales order and its price......

    hope this will help you to find historic condtion vale...

    Regards

    Neeraj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 21, 2013 at 02:42 PM

    Hi Friend,

    There are 2 option :

    (1). The changes will be in tables CDHDR & CDPOS. You can query these with Object = COND_A. Enter any other selections which you know (user, date etc).

    (2). You can run report RV16ACHD. This report can also be accessed from the condition records screen (Environment -- Changes --Change report).

    Regards,

    Kundan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 22, 2013 at 08:11 AM

    Dear Subhash,

    Use function module SD_CONDITION_CHANGE_DOCS_LOAD in RV16ACHD program in SE38 by passing up the correct parameters. I'm sure this can help you out. Also, in CDHDR table you can view condition record changes under Change doc. object by giving (OBJECTCLAS) = COND_A. Hope the info helps. Thanks and have a good day.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.