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

Performance Problems by select VBFA

Former Member
0 Likes
818

Hi,

i try to select some value of table VBFA:


    SELECT VBELV FROM VBFA INTO WA_VBFA-VBELV
                WHERE VBELN   = VBRK-VBELN
                  AND VBTYP_V IN ('C', 'K', 'L').
*
      COLLECT WA_VBFA INTO IT_VBFA.
*
    ENDSELECT.

it take a long time (VBFA = 80000 entries). has anyone an idea to read faster?

thanks.

Regards, Dieter

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
521

Well, you're going to the wrong table and not using an index. Rather than using the subsequent document to get the preceding document, you should go to whichever table holds the subsequent document (LIPS for deliveries say). It will refer back to the preceding document.

Rob

Edited by: Rob Burbank on Dec 1, 2011 10:35 AM

3 REPLIES 3
Read only

Former Member
0 Likes
522

Well, you're going to the wrong table and not using an index. Rather than using the subsequent document to get the preceding document, you should go to whichever table holds the subsequent document (LIPS for deliveries say). It will refer back to the preceding document.

Rob

Edited by: Rob Burbank on Dec 1, 2011 10:35 AM

Read only

ThomasZloch
Active Contributor
0 Likes
521

It's all explained in SAP note 185530 (see 4a for your particular problem), I suggest you have a look and avoid any SD-related performance problems in the future. Similar notes are available for other modules, I believe.

Thomas

Read only

0 Likes
521

Hi Thomas,

thanks for your answer, i use VBRP to get the informations i need.

The perfomance is now OK.

Regards, Dieter