cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

rahul_vishwakarma2
Contributor
0 Kudos

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

neeraj_lal
Contributor
0 Kudos

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

suman_sardar2
Active Contributor
0 Kudos

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$