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

ABAP code tuning in BW extractor

Former Member
0 Likes
452

Hi All,

I am enhancing a purchasing BW extractor to get Pricing details for a PO and its Item .

The ABAP code in the user exit is similar to this:

select SINGLE knumh from A016 INTO T_KNUMH1

WHERE EVRTN = EKPO-KONNR

AND EVRTP = EKPO-KTPNR

AND ( DATAB LE EKPO-AEDAT AND

DATBI GE EKPO-AEDAT ).

The problem here is A016 is a pooled table and when i check in SM50 while this user exit is running the code hangs in KAPOL ( Table pool) for a long time.

We are having long times during data loads. Does anyone know how to tune this code or any other tables from which i can take pricing related to purchasing.

Regards

satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
401

Hi,

can you check the table : EKBO is this helpfull for you??

Thanks,

Greetson

2 REPLIES 2
Read only

Former Member
0 Likes
402

Hi,

can you check the table : EKBO is this helpfull for you??

Thanks,

Greetson

Read only

Former Member
0 Likes
401

if you look for the check tables for KONNR and KTPNR, it is EKKO and EKPO itself. that means, there shud be an entry in EKKO with your required KONNR.

so why dont you pick the knumv from EKKO itself ?

select knumv from ekko where ebeln = ekpo-konnr.

now, do whatever further selections you want to do, using this KNUMV.

knumv = a016-knumh.

no need to do select from a016 at all, as we already have KNUMV.