Bseg data Reading slow
I have done some programs for g/l balance frm bseg table ,its very slow to retriving records,even i declared proper where conditions in select query...
advise fast retrive...
any thing like indexing the oracle table ??? or any performance programing ?
This is the final code I get. Try it out:
REPORT ztest MESSAGE-ID zc.
TABLES: bkpf, bseg.
******* new ********
TABLES: t001, ekbe.
******* new ********
DATA: BEGIN OF t_bkpf OCCURS 0.
INCLUDE STRUCTURE bkpf.
DATA: END OF t_bkpf.
DATA: BEGIN OF t_bseg OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF t_bseg.
DATA: BEGIN OF t_re OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF t_re.
DATA: BEGIN OF wa_bdc OCCURS 0.
INCLUDE STRUCTURE bseg.
DATA: END OF wa_bdc.
******* new ********
DATA: BEGIN OF doc_key OCCURS 0,
bukrs LIKE bseg-bukrs,
belnr LIKE bseg-belnr,
gjahr LIKE bseg-gjahr,
END OF doc_key.
DATA: BEGIN OF ir_key OCCURS 0,
belnr LIKE bseg-belnr,
gjahr LIKE bseg-gjahr,
END OF ir_key.
******* new ********
DATA: p_hkont LIKE bseg-hkont,
v_reference LIKE bkpf-awtyp, "REFERENCE KEY
v_objectkey LIKE bkpf-awkey. "OBJECT KEY
RANGES: p_gjahr FOR bkpf-gjahr,
wa_gjahr FOR bkpf-gjahr,
p_budat FOR bkpf-budat,
t_po FOR bseg-ebeln,
r_bukrs FOR t001-bukrs.
******* new ********
r_bukrs-option = 'EQ'.
r_bukrs-sign = 'I'.
SELECT bukrs FROM t001 INTO r_bukrs-low
WHERE spras = sy-langu.
APPEND r_bukrs.
ENDSELECT.
******* new ********
SELECT * FROM bkpf INTO CORRESPONDING FIELDS OF t_bkpf
******* new ********
WHERE bukrs IN r_bukrs AND
bstat IN (' ', 'A', 'B', 'D', 'M', 'S', 'V', 'W', 'Z') AND
******* new ********
gjahr IN (p_gjahr, wa_gjahr) AND
budat IN p_budat AND
blart EQ 'RE'.
SELECT * FROM bseg INTO CORRESPONDING FIELDS OF t_bseg
******* new ********
WHERE bukrs EQ t_bkpf-bukrs AND
******* new ********
belnr EQ t_bkpf-belnr AND
gjahr EQ t_bkpf-gjahr AND
hkont EQ p_hkont AND
ebeln NE space AND
augbl EQ space AND
bschl IN ('86','96','40','50') AND
bustw EQ 'RE01'.
t_po-low = t_bseg-ebeln .
t_po-sign = 'I'.
t_po-option = 'EQ'.
APPEND t_po.
APPEND t_bseg.
MOVE-CORRESPONDING t_bseg TO t_re.
APPEND t_re.
ENDSELECT.
ENDSELECT.
CLEAR t_bseg.
SORT t_po BY low.
DELETE ADJACENT DUPLICATES FROM t_po.
******* new ********
* From the PO history, get the material document for the IR
SELECT belnr gjahr FROM ekbe
INTO CORRESPONDING FIELDS OF TABLE ir_key
WHERE ebeln IN t_po
AND gjahr IN p_gjahr
AND vgabe = '2'.
* Now get the accounting document for the material document
LOOP AT ir_key.
v_objectkey+00(10) = ir_key-belnr.
v_objectkey+10(10) = ir_key-gjahr. "BELNR+YEAR
v_reference = 'MKPF'.
ENDLOOP.
SELECT bukrs belnr gjahr FROM bkpf
APPENDING CORRESPONDING FIELDS OF TABLE doc_key
WHERE awtyp = v_reference
AND awkey = v_reference.
******* new ********
SELECT * FROM bseg INTO CORRESPONDING FIELDS OF wa_bdc
FOR ALL ENTRIES IN doc_key
WHERE bukrs = doc_key-bukrs AND
belnr = doc_key-belnr AND
gjahr = doc_key-gjahr AND
hkont NE p_hkont AND
ebeln IN t_po AND
bschl IN ('89','99','86','96','40','50') AND
augbl EQ space AND
bustw EQ 'WE01'.
MOVE-CORRESPONDING wa_bdc TO t_bseg.
APPEND t_bseg.
ENDSELECT.
The other suggestions about nested selects, select/endselect, into corresponding, and retrieving only the fields you need are all good. I haven't done this to simplify the coding. I don't think you can use scondary index tables (BSIS and BSAS) because you are checking a not equal condition on HKONT.
There are a lot of other conditions in the selects that I haven't looked at. Maybe they should be done outside of the selects. I don't know. I also haven't looked at the logic
In 4.6C you cannot create an index on a cluster table. Since the database doesn't know the fields in the cluster, I don't see how it could be possible. (Maybe in other RDBMS??) In any event, it's a bad idea to create an index on an SAP table to speed up one report. There is overhead in updating the index each time the table is updated. With a little extra coding, you can almost always find a way to use existing indices.
Rob
I modified the code somewhat. The original code uses p_gjahr as both a select-option and a parameter. I changed it so that it is a select option.
Message was edited by: Rob Burbank
Similar Messages
-
Data Source for BSEG Data base table
Hi Every one,
I need to create a data source for the data base table BSEG (Function Module Extraction).
I have followed below steps.
I have created extarct structure which contains all the fields of BSEG Data base table.If I save the data source I am getting error.
If I remove all the currecy fields from extract structure, I am able to activate the data sorce.
So Could you please explain me how to extract currency fields.Hi,
Firstly, can you explain why you need a generic extractor for BSEG? There are already 2 datasources for BSEG, they are:
0FI_GL_4
http://help.sap.com/saphelp_nw70/helpdata/en/0c/b4973c115a6f3ae10000000a114084/frameset.htm
0FI_GL_14
http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm
To use 0FI_GL_14, you should use the new GL in ECC side.
On the other hand, for your problem, your problem may occur if you did not give the reference unit field of your currency field in your extraction structure. when you double click the the currency field, you will see the ref. field, give the reference unit field in this area.
Regards. -
I'm running Windows 7, plenty of RAM, InDesign CS6, Excel 2007
Data Merge from Excel spread is very very slow above 100 records.
Turned off preflight and report generation to see if that helped..not resolved I'm afraid.
The merge works well with 100 records...
Any suggestions, as to what to try next
daveits almost 7000 records, with approximately 70 individual placeholders per
final page, and the placeholders are located within an excel csv file, so I
am merging a delimited file.
rgds
dave
In a message dated 12/27/2013 11:32:54 A.M. Eastern Standard Time,
[email protected] writes:
Re: DATA MERGE SLOW
created by MW Design (http://forums.adobe.com/people/MW+Design) in
InDesign - View the full discussion
(http://forums.adobe.com/message/5959682#5959682) -
Time Capsule using Airport Express to extend network.
Over 3-4 days my data rate gradually gets slower and slower until I have to reboot both TC and AE.
Fresh reboot gets me 10Mbs or better for a while and then slows over time to 2Mbs or less.
I can cable directly to the ISP modem, taking TC and AE out of the equation, and its smokin fast
No hair left to pull out, so any help or suggestions would be appreciated.
Time Capsule (4th gen) - Model A1409
Version - 7.6.4
Wireless Mode: Create a wireless network
Wireless Security: WPA2
Channel: 149 (Automatic), 11 (Automatic)
Allow this network to be extended is checked
Radio Mode: Automatic
Multicast Rate: Low
Transmit Power: 100%
Use wide channels is checked
Guest Network is NOT enabled
Mac Address Access Control: Not Enabled
Connection Sharing: Share a public address
Using DHCP
One printer attached to Time Capsule
Airport Express (1st gen) - Model A1143
Version 7.6.4
Wireless Mode: Extend a wireless network
Wireless Security: WPA2
Channel: 11 (Automatic)
Mac Address Access Control: Not Enabled
Using DHCPYou have your wireless channels on auto.. it is usually better to control it.
You will notice I have different names for 2.4ghz and 5ghz.. then I can force the link to either band.
After you set Radio Channel selection to Manual,, click edit. You can then set the channels.
Lock the channels.. ie you take control and you set what the wireless channels will be.. when you extend wireless this works far better. The auto channel system has to run on the Extender.. but since the main base is fixed on the 2.4ghz so it will be also.. the only channel that can flap around is 5ghz (extender) since that is not under my control. Of course it is up to you to determine which channel works best.. I strongly recommend the upper channels for 2.4ghz and the lower channels for 5ghz.
So.. I have set 5ghz to 48 on the main base.. and the auto channel sets it to 149 in the extender.
One strange thing results from my setup .. (amongst many!!)
You cannot name the wireless for 5ghz in the extender.. so in my case the upstairs wireless extender has both 2.4ghz and 5ghz named TC24ghz.. nought that I can do about it. But it is not a big deal.
You can see the result in the wireless diagnostics. The last wireless I have put in the box.. it is named TC24ghz but is in fact running on 5ghz. That is just how the over automated system of the apple routers work.. If I could I would fix it.. and maybe shall via serial console at a later date. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
SCOM 2012 R2 Reporting services installation error - data reader account
I have successfully installed SCOM 2012 R2 and SQL 2012 SP1 on the same server. I was trying to install the reporting server piece of SCOM.
When I get to the part that asks for a domain account, I get this error:
"Data Reader account provided is not same as that in the management server"
The account is not the same as the management server, and it does have read access to the data warehouse and reporting databases. Is there some other permission this account needs for reporting services?
Thanks.Adding more info:
I usually create the following account for SQL:
AD accounts for the following to be used with SQL Services:
SQL Agent for SQL Server Agent
SQL Analysis Services for SQL Server Analysis
SQL Database Engine for SQL Server Database Engine
SQL Reporting Services for SQL Server Reporting Services
For SCOM I create the following accounts:
SCOM DR - Used to deploy reports
SCOM DWR - for writing data from the management server to the reporting DW
SCOM MSA - Performs default actions
SCOM SDK - Used for updating/reading information from the operations Manager Database - Needs to be local administrator on the SCOM server
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Error : No data read for fiscal year 2006 (error FDBL020)
Hello !
I have a problem in transaction FS10N, when i am trying do execute appear the error: No data read for fiscal year 2006 (error FDBL020), i tried applying the note 302263 (deleting the attributes of programs)but the attributes has been deleted. Anybody know a solution ?
Thank´s
Claudenirhi,
i mean to check, whether there are items posted in that fiscal year.
Andreas -
No data read for fiscal year 2011
In ECC6, after posting document in FI, I wan to check balances with T-Code FS10N and Enter GL account in which document entry supposed to be recorded. But when I execute it getting message in Information window " NO data read for fiscal year 2011 (Long text)
what does it mean? Appreciated explanationI did saved the entry and then got message, when I was trying to display document no?
error message "document no 200000003 sony does not exists in fiscal year 2011"
when I was trying to see display of GL account
Got message " NO data read for fiscal year 2011"
when I was trying to make document reversal of document no: 200000003
Got message "document no 200000003 sony does not exists in fiscal year 2011"
My document type is SA and reversal document type is Ab, No. range for this document is in fiscal year 2011.
I really confused where is my config. went wrong?
suggestion and expert opinion are expected and appreciated. -
Reporting Install fails - Data Reader account is not the same as in management group
We recently upgraded from SCOM 2012 SP1 to R2, but I'm unable to get the reporting role installed. I get to the part where I enter the Data Reader account credentials, then get the error "Data Reader account provided is not same as that in the management
group." No matter what I do I cannot get passed this error.
Here is what I have tried so far:
- I have verified the correct DR account is set in the Data Warehouse Report deployment account and profile.
- I have deleted the DR account from the profile and added it back.
- Verified all permissions are setup properly on the SQL server for all databases, included reporting.
- Completely uninstalled SSRS and re-installed.you must distribute the Run As account to ensure that all members of the resource pool (All Management Servers Pools) have access to the permissions in the Run As account.
Also check below link {It's same issue}
http://social.technet.microsoft.com/Forums/systemcenter/en-US/11e25eac-fbde-4ed5-aff5-4faa0563cfbc/scom-2012-reporting-installation-issue?forum=operationsmanagerdeployment
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
Mai Ali | My blog: Technical | Twitter:
Mai Ali -
"Master Data Read Class Parameters" field is disabled
Hi.
While creating infoobject I switch master data access from Default to Own implementation,
after this screen is redisplayed and only Name of Master Data Read Class field become enabled.
I need Master Data Read Class Parameters field, but it is disabled and button near this field has the same status.
Why? How to make them active?Hi,
I think it is not possible to add own Master Data Class if the reference is 0DATE or if the type is DATS.
So may be you can create your infoobject as Type CHAR, Length 8.
May be you can add a Conversion Routine for the required format of date to be displayed. -
Weblogic 11G error = BEA-000449 Closing socket as no data read from it
In My Weblogic 11G, i am getting Warning msg in my log file saying Closing socket as no data read from it
####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs>
####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,088 during the configured idle timeout of 25 secs>
####<Nov 2, 2010 12:21:37 AM IST> <Info> <JDBC> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <1288637497701> <BEA-001128> <Connection for pool "IB_JDBC_Data_Source" closed.>
I have follow the following step
If you want to follow this solution. Go to Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 5 secs')"
Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file.
My Filter is "(MESSAGE !=Closing socket as no data read from it ')"
this is not working in weblogic 11G, any one have the solution to stop this msg.
Edited by: Amar_Shaw on Nov 3, 2010 1:40 PMHi Amar,
I think you have given the wrong string in the filter, you are getting "*Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs*" and you have given in the filter "*Closing socket as no data read from it during the configured idle timeout of 5 secs*".
You can change it and see if that works for you.
Also the above option is just to suppress the issue which are getting which in this case is fine as its just a warning message, however you can even try to tune few of the follwoing parameters that too would help you to remove this warning message.
1. Set the parameter -Dweblogic.client.socket.ConnectTimeout=XXX, in the start-up script of the server which you are seeing this issue under JAVA_OPTIONS
Note: Where "XXX" is the value in ms.
Example:
-Dweblogic.client.socket.ConnectTimeout=500
2. Try tuning the duration time to a higher value from the below Console path
Server -> Protocols (tab) -> HTTP (sub-tab) -> Duration
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Middleware Magic | Come, Join Us and Experience The Magic… -
hi,
how to find the data read from undo tablespace.
how to find the data read from datafile.
any select statement read from redo log or not. i think no,is it correct
thanks
with regardsuser3266490 wrote:
hi,
thanks for reply.
What does it mean by "how to find data read" ?
that means how to find the a select statement whether read from data buffer cache or data file*
even if it is read from data file.first kept in buffer then return to userYes , data is always going to be read from teh buffer cache only , even if its going to be a physical read too.
In case you want to see that there was a PIO involved or logical IO( from teh cache), you can check so by seeing the stats for the query like below
SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 21 11:59:39 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1247900 bytes
Variable Size 75498852 bytes
Database Buffers 88080384 bytes
Redo Buffers 2945024 bytes
Database mounted.
Database opened.
SQL> conn aman/aman
Connected.
SQL> set autot trace stat
SQL> select * from scott.emp;
14 rows selected.
Statistics
455 recursive calls
0 db block gets
83 consistent gets
10 physical reads <----------------------- This went to disk first to read the data
0 redo size
1415 bytes sent via SQL*Net to client
381 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
6 sorts (memory)
0 sorts (disk)
14 rows processed
SQL> select * from scott.emp;
14 rows selected.
Statistics
0 recursive calls
0 db block gets
8 consistent gets
0 physical reads <---------------No PIO, which means it was accessed truly from the cache and didn't involve disk IO at all.
0 redo size
1415 bytes sent via SQL*Net to client
381 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
14 rows processed
SQL>HTH
Aman....
Edited by: Aman.... on May 21, 2009 11:58 AM -
Hi,
Since getting Safari 5.0.1 with Reader, it seems Safari is much slower loading pages now.
I'm not certain that it is reader slowing page loading but going to the same sites in Firefox and other browsers the pages load much faster.
I'll open a page in Safari, say CNN, and it takes so much longer to load now and it looks like the page will not open until Reader has done it's job.
Any suggestions?
Thank you.Hi,
Empty your Safari cache more often. From your Safari Menu Bar click Safari/Empty Cache.
Web pages include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. *These icons take up disk space and slow Safari down.* It is possible to erase the icons from your computer and start fresh.
*To delete Safari's icon using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
Carolyn -
Data acquisistion slowing down
Hi,
I am using two different while loops to collect data from a capacitance bridge and a temperature readout. I am using PCIe-GPIB for the capacitance bridge and a PCI card for the temperature readout. Then, i am using local variables to transfer the data to a third while loop. Here , i merge the signals and then write the data to a measurement file. I need one data point every second. When I run the vi, initially i get the speed that i want. But, with time, the data acquisition gets slower for both the devices. The write to measurement file data indicates such. I have attached a snapshot of the vi i am running. Need your help with this ...
Thanks
Sakib
Attachments:
Data Acquisition slowing down with time.PNG 46 KBConstantly opening and closing a file makes things SLOW. So you will want to get away from using that Express VI. Learn the File IO palette and also the String palette. Between those two, you should have everything you need to log your data. Be sure to create/open your file before your loop and close it after the loop. You can then write as much as you want inside of the loop.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
BEA-000449 Closing socket as no data read from it
This error message is filling up the server log files. It looks like some network problem. How can I find the cause ? This does not create a functional problem, but I am sure there will be a performance problem. Also, since this message is filling up the logs rapidly, I cannot see my regular application debug statements.
<Warning> <Socket> <myserver.mydomain.net> <my_managedserver_01> <[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1218554019557> <BEA-000449> <Closing socket as no data read from it during the configured idle timeout of 30 secs>
The timeout of 30 seconds is the value set in Login Timeout in server tuning tab.
Environment:
WebLogic Portal 10.0 MP1 (The domain is a server domain, not portal domain)
Red Hat linux 4
Intel Xeon
Message was edited by:
prakashpIn My Weblogic 11G, i am getting Warning msg in my log file saying Closing socket as no data read from it
####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,089 during the configured idle timeout of 25 secs>
####<Nov 2, 2010 12:10:53 AM IST> <Warning> <Socket> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288636853607> <BEA-000449> <Closing socket as no data read from it on 95.66.7.15:58,088 during the configured idle timeout of 25 secs>
####<Nov 2, 2010 12:21:37 AM IST> <Info> <JDBC> <TradeServer> <TradeServer> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1288637497701> <BEA-001128> <Connection for pool "IB_JDBC_Data_Source" closed.>
I have follow the following step
If you want to follow this solution. Go to Admin console -> Click on Domain->Configuration->Log Filters->create new Log filter.
I added this line in expression "(MESSAGE !='Closing socket as no data read from it during the configured idle timeout of 5 secs')"
Go to your server-(for each server you have to set it individually)->Logging->Advanced->Select this log filter for Standard Out or log file.
this is not working in weblogic 11G, any one have the solution to stop this msg.
Maybe you are looking for
-
How To set Header and Footer in MIDlet screen
Hi Friends, How can i set header and footer in my screens . My need is that in header part ,my company's name shuld be display and in footer section "any thing". How can i achieve this things plz advice me. karan
-
Frustrating time to find the Solution Manager add-on for CPS Scheduling.
I have spent a couple hours looking through my maintenance optimizer and the software download site. The problem is that I cannot seem to find the plug in anywhere. I have found posts pointing to different locations but each one has been a dry hole
-
my iPod touch 5th generation had white screened an it won't let me rest it by holding down the home button an the power button for ten seconds I've pulled it in to iTunes an its not being detected what can i do as its starting to over heat?
-
How to find out what are the interfaces used for Job and Job Codes
HI All, I just wanted to know how do we find out what are the interfaces used for Job and Job codes . Thanks In Advance Sunny
-
RAW Data Type mapping to BI infoobject
Dear Experts, We are trying to extract CRM data into BI, the Datasource have a field type 'RAW' . In BI which data type to consider for this field to info object mapping. Pls let me know. I've taken infoobject of type CHAR with length 60, still get