Regarding Performance It is Urgent.
hi
I have one statement move-corresponding gt_bkpf to post_tab.
In gt_bkpf Internal Table 10 fields are there. Post_tab is another Internal Table.
In performance issue you need to use ASSIGN instead of move-corresponding.
How can i do it. Plz Reply.
Regards
Rami Reddy
Hi!
Field to field assignment means the following:
MOVE: gt_bkpf-bukrs TO post_tab-bukrs,
gt_bkpf-belnr TO post_tab-belnr,
gt_bkpf-gjahr TO post_tab-gjahr.
It's a very little bit faster that move-corresponding, but if you need a new field, you have to code that also, against move-corresponding, which handles it automatically (if their names are identical).
Regards
Tamá
Similar Messages
-
Urgent query regarding performance
hi
i have one query regarding performance.iam using interactive reporting and workspace.
i have all the linsence server,shared services,and Bi services and ui services and oracle9i which has metadata installed in one system(one server).data base which stores relationaldata(DB2) on another system.(i.e 2 systems in total).
in order to increase performance i made some adjustments
i installed hyperion BI server services, UI services,license server and shared services server such that all web applications (that used web sphere 5.1) such as shared services and UI services in server1(or computer1).and remaining linsence and bi server services in computer2 and i installed database(db2) on another computer3.(i.e 3 systems in total)
my query : oracle 9i which has metadata where to install that in ( computer 1 or in computer 2 )
i want to get best performance.where to install that oracle 9i which has metadata stored in it.
for any queries please reply mail
[email protected]
9930120470You should know that executing a query is always slower the first time. Then Oracle can optimise your query and store it temporary for further executions. But passing from 3 minutes to 3 seconds, maybe your original query is really, really slow. Most of the times I only win few milliseconds. If Oracle is able to optimize it to 3 seconds. You must clearly rewrite your query.
Things you should know to enhance your execution time : try to reduce the number of nested loops, nested loops give your an exponential execution time which is really slow :
for rec1 in (select a from b) loop
for rec2 in (select c from d) loop
end loop;
end loop;Anything like that is bad.
Try to avoid Cartesian products by writing the best where clause possible.
select a.a,
b.b
from a,
b
where b.b > 1This is bad and slow. -
Regarding performance optimization and tuning...
hi all,
<b>please provide me the performance tuning scenarios and parameters of an R/3 system with Oracle..</b>
i heartly welcome all docs and pdf links or notes related to this issue..
please provide ur suggestions at the earliest...
expecting ur response..
<i>Vineeth</i>Hello,
there are many SAP Notes regarding performance issues. Here are just a couple of them:
618868
805934
793113
805934
Please also have a look at the lists of the relating Notes at the end of each Note.
But still much more effective would be to read the book of
<a href="http://www.sap-press.de/katalog/buecher/titel/gp/titelID-1155?GalileoSession=66220888A2.lRCIISlE">T.Schneider Performance Optimization Guide</a>.
It's the best performance tuning guide. The course ADM315 (or BC315?) ist also very helpful.
Regards,
Natalia -
Regarding performance on cluster tables.vvv.urgent!
friends,
i know that cluster tables cannot be joined with transparent tables....
however i need performance improvement for the following code....
if possible is there a way to join bkpf or bseg to improve performance....can we create view foe bkpf and bseg if yes then how.....
please modify the below code for improvement in performance.
START-OF-SELECTION.
SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
WHERE bukrs = p_bukrs AND "COMPANY CODE
gjahr = p_gjahr AND "FISCAL YEAR
budat IN s_budat. "POSTING DATE IN DOC
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg FOR ALL ENTRIES IN i_bkpf
WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
belnr = i_bkpf-belnr AND "A/CING DOC NO
gjahr = i_bkpf-gjahr AND "FISCAL YEAR
hkont = p_hkont. "General Ledger Account"
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg1 FOR ALL ENTRIES IN i_bseg
WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
belnr = i_bseg-belnr AND "A/CING DOC NO
gjahr = i_bseg-gjahr. "FISCAL YEAR
ENDIF.
ENDIF.
IF NOT i_bseg1[] IS INITIAL.
LOOP AT i_bseg1.
IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
v_sumgl = v_sumgl + i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
v_sumgl = v_sumgl - i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont NE p_hkont .
IF i_bseg1-shkzg = 'H'.
i_bseg1-dmbtr = - i_bseg1-dmbtr.
ENDIF.
i_alv-hkont = i_bseg1-hkont.
i_alv-dmbtr = i_bseg1-dmbtr.
APPEND i_alv.
v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
ENDIF.
ENDLOOP.
regards
Essam.([email protected])Hi there ...
I have read the note - thats where I found the link to the trace note 286496.1 - on now to setup a trace
But I still need an explanation for the methods (1,2,4 etc)
regards
Mette -
Improve function performance (it is urgent please help me regarding)
i write nearly ten database function many of them are interlinked with each other when i call these function from a report then report become slower down too much nearly halted situation for 15 minutes
my question is that how i can improve the performance of these function by any method
note that these function just using one or two cursor and eache curosor containing nearly 100 recordsAlso: nearly ten functions (nine and a half? nine and seven-eigthts?) is a lot of functions to fix all at once.
1) Start with just one function. Get it working fast enough using the techniques Kamal mentions in standalone.
2) Tune all the functions independently.
3) Then add two functions together and see how they work. Tune when necessary.
4) Continue adding one function to the report and tune the ensemble until finished.
Good luck, APC -
Hi Friends,
i have a FI report, Main Cash Vocher Printing, the report is very slow so to check its performance i have done the SQL Trace in ST05.
in SQL trace i have found all the DB tables used and time taken to execute the select statement.... in that list i also found and Cluster Table RFBLG , but i did not used these cluster table in the program.
and i also found more than 500 entries of Obj.NameRFBLG in that ...
Though its duration is small , ,, can we control that so that my report performance van be increased
its Urgent...
Useful reply will be awarded maximum
Regards
Kumat MHi Kumat,
RFBLG is the Cluster table of the logical table BSEG. That means the table BSEG stores its rows in the database table RFBLG. If the access to RFBLG is fast enough, you could ignore those entries and concentrate on red lines in the trace.
Regards
Ralph Ganszky -
Regarding Performance pbl in SQL query.
hey guys,
Could somebody help me over this posting.
I have created TAX report. which retrieved records from BSIS and BSAS table to calculate consumption tax.
From SE30 and SQL trace i found that loop at BSIS and BSAS takes round trip
for each Input Period value.
could you please give me best coding alternate to my below coding part.
*Main code--
loop at itab_t001.(itab_t001-bukrs is company code list,for each company code)
WK_MONAT = '01'.
DO.
IF WK_MONAT = P_MONAT. "p_monat is parameter input for period
FLG_CUR_PERIOD = CNS_TRUE.
ENDIF.
PERFORM FRM_READ_DATA. " RETRIEVE DATA FROM BSIS AND BSAS
WK_MONAT = WK_MONAT + 1.
IF WK_MONAT > P_MONAT.
EXIT.
ENDIF.
ENDDO.
END of Main code----
Read FI documents from table BSIS/BSAS
FORM FRM_READ_DATA.
Select data from table BSIS
SELECT BELNR BUZEI BLART MWSKZ HKONT SHKZG DMBTR
INTO CORRESPONDING FIELDS OF TABLE ITAB_BSIS
FROM BSIS WHERE BUKRS = itab_t001-BUKRS AND GJAHR = P_GJAHR AND MONAT = WK_MONAT AND
( MWSKZ <> ' ' AND MWSKZ <> '**' ).
Select data from table BSAS
SELECT BELNR BUZEI BLART MWSKZ HKONT SHKZG DMBTR
APPENDING CORRESPONDING FIELDS OF TABLE ITAB_BSIS
FROM BSAS WHERE BUKRS = itab_t001-BUKRS AND GJAHR = P_GJAHR AND MONAT = WK_MONAT AND
( MWSKZ <> ' ' AND MWSKZ <> '**' ).
Select data from table BSIS that includes non-consumption tax accounts
SELECT BELNR
INTO TABLE ITAB_NO_TAX_DOC
FROM BSIS WHERE BUKRS = itab_t001-BUKRS AND GJAHR = P_GJAHR AND
MONAT = WK_MONAT AND HKONT IN S_NT_ACC.
Select data from table BSAS that includes non-consumption tax accounts
SELECT BELNR APPENDING TABLE ITAB_NO_TAX_DOC
FROM BSAS WHERE BUKRS = itab_t001-BUKRS AND GJAHR = P_GJAHR AND
MONAT = WK_MONAT AND HKONT IN S_NT_ACC.
...Proceeded with ABOVE fetched internal tables.
ENDFORM.
Note:
I found that BSIS and BSAS table have 10000s of records it takes 3hrs time to run this report(if i give 12months period). (for each month(ie 01month report takes 15minutes to execute.)
so i think instead calling BSiS twice, calling BSIS ones is wise.
could you pls help me how can i modify the code and should i have
to created any index here(if so mention how and which field)
pls feel free to ask if any addition code is required.
could you pls confirm.
ambichan.
Message was edited by: ambi chanHi Ambichan,
Few things that can be done to the below code.
1. Dont put select queries inside the "loop at itab_t001....endloop" statement.
Instead use <b>FOR ALL ENTRIES</b> IN itab_t001 for the queries. Then you can use READ stmt to get the values.
NOTE: Make sure that you select all <b>key fields</b> from the databse when using FOR all Entries.
<i>This will avoid hitting of the DB table multiple time.</i>
2. Avoid "INTO CORRESPONDING FIELDS OF TABLE" in select queries. Modify the internal table to suit the strucutre of the databse table.
<i>This will make the query faster</i>
3. Make sure that the fields in the select query are in the same order as that in DB table.
<i>This will also make the query faster</i>
Try these changes and performance should increase.
Regards,
Saji. -
Hi All,
Q1) How Do we Do the Performance in XI ????
Q2) What we have to do to Improve the Performance in XI ????
Please let me Know
Regards
Vamsi1. Do u mean Monitor Performance?
U can do this through Runtime Workbench -> performance Monitoring
2. See these
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/489f5844-0c01-0010-79be-acc3b52250fd
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/defd5544-0c01-0010-ba88-fd38caee02f7?prtmode=navigate
/people/prasad.illapani/blog/2007/04/27/performance-tuning-checks-in-sap-exchange-infrastructurexi-part-iii
Regards,
Prateek -
Regarding Performance of the Index
Hi all,
Generally Index should increase the performance of the search, but i got the reverse of that when i was accessing the data from a table with and without index.
I have seen that the query performed more faster without index. What is the situation of the data base to perform like this. Can anybody explain.
SQL> set autotrace on explain
SQL> select * from emp where empno = 7934;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7934 MILLER CLERK 7782 23-JAN-82 1300 10
Elapsed: 00:00:00.18
Execution Plan
Plan hash value: 2949544139
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 37 | 1 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| EMP | 1 | 37 | 1 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN | PK_EMP | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("EMPNO"=7934)
SQL> alter table emp disable primary key;
Table altered.
Elapsed: 00:00:01.53
SQL> select * from emp where empno = 7934;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7934 MILLER CLERK 7782 23-JAN-82 1300 10
Elapsed: 00:00:00.15
Execution Plan
Plan hash value: 3956160932
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 37 | 3 (0)| 00:00:01 |
|* 1 | TABLE ACCESS FULL| EMP | 1 | 37 | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter("EMPNO"=7934)Regards,
Sri Ram.
Edited by: Sri Ram on Jun 19, 2011 9:52 PM
Edited by: BluShadow on 20-Jun-2011 10:33
added {noformat}{noformat} tags. 86 posts and you still don't know how to post code/data? Please read {message:id=9360002}SQL> alter table emp disable primary key;
Table altered.
Elapsed: 00:00:00.15
SQL> select * from emp where empno =7566;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7566 JONES MANAGER 7839 02-APR-81 2975 40
Elapsed: 00:00:00.17
Execution Plan
Plan hash value: 3956160932
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 37 | 3 (0)| 00:00:01 |
|* 1 | TABLE ACCESS FULL| EMP | 1 | 37 | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter("EMPNO"=7566)
SQL> alter table emp enable primary key;
Table altered.
Elapsed: 00:00:00.14
SQL> select * from emp where empno =7566;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7566 JONES MANAGER 7839 02-APR-81 2975 40
Elapsed: 00:00:00.17
Execution Plan
Plan hash value: 2949544139
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 37 | 1 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| EMP | 1 | 37 | 1 (0)| 00:00:01 |
|* 2 | INDEX UNIQUE SCAN | PK_EMP | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("EMPNO"=7566)Edited by: BluShadow on 20-Jun-2011 10:34
added more {noformat}{noformat} tags. See, it's really not that difficult, but I'm not going to do it all the time for you. -
Hi All,
I am doing the performance analysis using SE30.
I got the results as follows ::
ABAP - 80%
Database and System - 15%
I understand database should be as low as possible.
I wish to know about the ABAP.
Its 80% so is it good or not good.
What steps can we take to get it down if required.
regardsHi Sachin,
ABAP 80% denotes the program is too good.
Generally ABAP should have more percentage than SYSTEM and DATABASE.
ABAP 80% denotes you are utilizing application server as 80%.
If helps plz reward points.
Regards
Bhupal Reddy -
Can anybody share pure BI Performance document of DB02, St02,RSRST analysis does purpose.
Can anyone share it., Thanks in advance.HI,
check below links
http://www.sap-press.de/download/dateien/1049/sappress_bw_performance_optimization_guide_080.pdf
http://wiki.sdn.sap.com/wiki/display/BI/Aggregates--SAPBWQueryPerformance
http://sap.seo-gym.com/performance%20tuning%20for%20queries.pdf
Click on search button in SDN and Google you can find lots of docs
Regards
KP -
Regarding performance impact if I do DB accessing coding in comp Controller
Hi ,
This is my project requirement, I have to use some com compoment which in turn fetches data from the database. I am using a java com bridge tool to do this. This tool is generating the java proxy classes for the VB com component.
I am using java proxy classes( This class files are using JNI to connect to VB COM compnent and fetch the data from DB) in my webdynpro component controller.
The architecture is aas below
WEBDYNPRO >> JAVA Classes object( generated by the JAVA- COM bridge tool ) >> JAVA-COM bridge tool >> VB COM+ Component >> SQL server.
The issue
Performance :- first time it is OK but for Consecutive calls the application is going down very visibly and after 4 iteration it hangs . When I look at the log I am getting this
Message : Exception occured during processing of Web Dynpro application com/oreqsrch/com.oreqsrchapp.OReqSrchApp.
The causing exception is nested.
[EXCEPTION]
com.sap.tc.webdynpro.services.session.LockException: Thread SAPEngine_Application_Thread[impl:3]_36 failed to acquire exclusive lock on client session ClientSession(id=(J2EE9536400)ID1120562150DB11245826542790956137End_1159630423). Existing locks: LockingManager(ThreadName:SAPEngine_Application_Thread[impl:3]_36, exclusive client session lock:
ClientSessionLock(SAPEngine_Application_Thread[impl:3]_9), shared client session locks: ClientSessionSharedLockManager([]), app session locks: ApplicationSessionLockManager([]), current request: com/oreqsrch/com.oreqsrchapp.OReqSrchApp).
Hint: Take a thread dump of the server node to find the blocking thread that causes the problem.
Is this issue because I have return the code data access code in the component controller rather wrting in some beans ?
My questions regarding
What would the performance impact if write the DB access code in the webdynpro component controller rather than writing in a bean or an EJB?( I know ideally DB access code has to write in Bean or EJB ).
Please address this with respedct to performance point of view .
thanks
pkiranHi Both,
Thanks for the reply.
Yes they are closed and set it to null;
Connection max and mini properties are controlled at COM+ components in VB.
Since I am using COM - JAVA bridge, I am just invoking the methods defined ijn the VB code thru the bridge tool. all the objects which are retrieving the data are closed and nullify it.
My question is
if I write DB access code in component control instead in EJB or Java bean, will there be any performance issue ?
regards
pkiran -
Regarding performance issue in time dependent hierarchie.
hai
we are loading time dependent hierarchies from flatfile to bw,it is weekely load,we have nearly one million records loaded,we got an issues regarding change of these hierarchies timely.when ever there occurs a change in hierarchy a new row is added to the table,it is degrading the performance,can any one of you please suggest how to over come performance related issues regarding time dependent hierarchies.
Regards
Srinivas.Ghello deven,
if you are only focusing on your application's performance
on the aspect of usability i.e. less waiting time, fast
response UI, i would personally suggest you to use AJAX.
put some processing part on the browser side and making
data retrieval from MI asynchronous... this way, your user
don't have to wait for all data to be presented, but rather
could work on the data presented in pieces (i.e. asynchronously).
anyway try googling for AJAX...
regards
jo -
hi,
i have developed a report program.its taking too much time to fetch the records.so what steps i have to consider to improve the performance. urgent plz.Hi,
Check this links
Performance tuning for Data Selection Statement & Others
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
http://www.sapdevelopment.co.uk/perform/performhome.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_Introduction.asp
1. Debugger
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
2. Run Time Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
3. SQL trace
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
6. Coverage Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
7. Runtime Monitor
http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
8. Memory Inspector
http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
http://sap.genieholdings.com/abap/performance.htm
http://www.dbis.ethz.ch/research/publications/19.pdf
Reward Points if it is Useful.
Thanks,
Manjunath MS -
Regarding performance of a report
Hi friends,
In the loop statement I am using modify statement for updating the data in the internal table .
I have to improve the performance of a report.
is there any alternative for Improving teh performance.,
Regards,
JayanHI
If u r modifying Ztable no probelm because we will be having small amount of data .
IF u r updating standard table Do like below .
First collect all the records which you want to update to table into one internal table .
Then update the table with that internal table ..
IT will be better when you are updating standard table .
I think this will help you ..
If u r not understood copy paste ur code i can solve ur probelm ...
Maybe you are looking for
-
dear all: phased a problem , if anyone know what i can do please let me know problem: i was working with a fh9 file while i was working i received an error mesage whilke i was trying to copy something , and well i was not able to copy it so i closed
-
Built-in Keyboard and trackpad become unresponsive randomly
I've been researching a lot on this but no case seems to apply to mine. Out of nowhere, about once a day, the built-in keyboard and trackpad of my 2010 MacBook Air will stop working. The only thing that works is the power button, which brings up the
-
Back button forward button, reloading tab (app tabs too) doesn't work.
i switched my adcdons off and even went to safe mode still back and forward buttons dont work for me. clicking the app button after restarting firefox made the icon (facebook in this case) do nothing. right clicking and making it reload resulted in i
-
T420 fan not working automatically.
When I first turn on the computer, the fan doesn't rotate. The cpu reaches as high as 80C temp after startup. I hear nothing from the vents, just complete silence. I installed tpfancontrol and setting to the bios setting didn't even work. The only w
-
Report Query - Download data - converts special characters
When I'm doing a select from a table which has a "<" or ">" sign it is being changed to < or > when I view the XML data that is being downloaded. Is there any way to prevent it from doing this?