We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

Re: [sap-abap] Performance Issue FAGLFLEXA

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from halilkinik on Apr 14 at 7:42 AM
Hi,
You have to consider table index structure.
I think,
Below structure works faster than your example.

where rldnr...
and bukrs....
and racct....
and ryear <= sdate-low+0(4)
. and. budat < sdate-low
and ......
and .........

Best regards.

---------------Original Message---------------
From: emohtadi
Sent: Tuesday, April 14, 2015 2:38 AM
Subject: Performance Issue FAGLFLEXA

Hi Masters,

How to select the data efficiently for the table FAGLFLEXA?

This is my query:
Executed time is about 10 minutes.

SELECT-OPTIONS:
s_hkont for faglflexa-racct,
s_prctr for faglflexa-prctr,
s_date for bkpf-budat.

data begin of pre_h OCCURS 0.
data racct type faglflexa-racct.
data prctr type faglflexa-prctr.
data hsl type faglflexa-hsl.
data rwcur type faglflexa-rwcur.
data end of pre_h.

select racct prctr sum( hsl ) rwcur into table pre_h
from faglflexa
where racct in s_hkont
and prctr in s_prctr
and budat < s_date-low
and drcrk = 'H'
and rldnr = '0L'
group by racct prctr rwcur.

Best Regard.

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2015 Ziff Davis, LLC. and message author.
Ziff Davis, LLC. 28 E 28th Street New York, NY 10016
halilkinik  

achievement
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Become a blogger at Toolbox.com and share your expertise with the community. Start today.

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language