Application Development and Automation 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: 
Read only

any transparent table to fetch the condition record number (knumh)

Former Member
0 Likes
2,015

dear all

As of now iam getting the condition record number(knumh) from the pooled table A004, which is taking a lot of time.

Want to know anyother transparent table to get KNUMH.

my actual reqiurement is to retrieve the sale price of the material.

8 REPLIES 8
Read only

Former Member
0 Likes
1,668

Hi,

try this:

SELECT SINGLE * FROM KONP WHERE KNUMH = A004-KNUMH.

Regards, Dieter

Read only

i048168
Product and Topic Expert
Product and Topic Expert
0 Likes
1,668

Hi,

You can find KNUMH in any of the following transparent tables based on the material configuration.

A016, A017, A018, A019, A045, A066, A068 etc.

Check the configuration in the pricing condition. (VK11).

Regards,

Vadi

Read only

Former Member
0 Likes
1,668

KNUMV is available in EKKO .

Thanks,

Karthik

Read only

ThomasZloch
Active Contributor
0 Likes
1,668

A004 is the correct table for this. Make sure that you use all key fields for the access:

KAPPL (probably "V" or "V1")

KSCHL

VKORG

VTWEG

MATNR

Then your query should return the results very quickly.

Thomas

Read only

0 Likes
1,668

hi

iam giving all the keyfields, now the retreiving time from A004 table is fine but while validating the data of 3 lakhs records (3,00,000) inside the loop, the job is not getting over.

Read only

0 Likes
1,668

so the problem is somewhere else then, probably internal table handling or another DB select.

Try running a performance analysis with SE30 on a smaller selection.

Good blog:

If it's not too many lines, paste your code here (wrapped in tags!)

Thomas

Read only

Former Member
0 Likes
1,668

Kamaraj,

Tables KONP and KONV has KNUMV as part the key filed Fectch would be slow , so go for EEKO as perviously suggested by me.

Thanks,

Karthik

Read only

0 Likes
1,668

what does EKKO have to do with material sales price?