ABAP Trace - How To ST12
Hi gurus,
I've red two very useful blogs about how to use ST05 and SE30 Trace Tools:
/people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy
/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
Thanks Siegfried, this is a great help!
I was wondering, if there's something similar describing how to use ST12. I'm struggeling to find a stream line, some kind of handy HowTo - Document for this transaction.
As a SAP BI consultant, I need to figure out some bottlenecks in a function module, that's used by a so called virtual InfoCube based on Functional Module. I tried ST12 and got some results. Unfortunately, they are very different from what the RSRT debugging tool is providing, especially in comparing ABAP Time and DB Time.
Thanks in advance!
Cheers!
Neven
Hi,
> I was wondering, if there's something similar describing how to use ST12. I'm struggeling to find a stream line, some kind of handy HowTo - Document for this transaction.
you can start reading here, there is some information available (more is planned):
http://wiki.sdn.sap.com/wiki/display/ABAP/SingleTransactionAnalysis
> As a SAP BI consultant, I need to figure out some bottlenecks in a function module, that's used by a so called virtual InfoCube based on Functional Module. I tried ST12 and got some results. Unfortunately, they are very different from what the RSRT debugging tool is providing, especially in comparing ABAP Time and DB Time.
you should be able to open the abap trace taken with ST12 in SE30 (go to the application server where the trace was recorded and check the trace files there) Check the STAD record as well...
Kind regards,
Hermann
Similar Messages
-
ST12 ABAP trace TYPE DB vs DB-
Hi All,
A lot of times I have noticed that on my ST12 ABAP trace there are two types of DB calls. One represented as "DB" and other as "DB->".
Per my understanding:
"DB" represents database calls where data was picked from the db buffer
"DB->" represents database calls where a table was hit to get the required data.
Can anyone help explain the difference between the two? And correct me if my understanding is wrong. Also help share a list of Types and meaning of each.
Regards,
Anuj KumarHi Anuj,
I think you are (nearly) right:
"DB" represents an ABAP Open SQL statement where data was picked from the SAP table buffer (not: "db buffer")
"DB->" represents a statement where data was fetched from database. Clicking on the link opens the SQL summary of ST12 and shows all statements that were issued from the same code position.
The only other type I find is "Sys." which stands for system program, for example "Load Report".
Best Regards, Randolf -
Hello,
In ST12 ABAP trace, if sort by Net time and observed "Dynpro Entry receive data from SAPGUI" contributed much time, any idea what is the cause of this? Also, what should be checked to solve this?
P/S: I don't think GUI time is the cause of this. Check the GUI time or network capacity may not work here.
Thanks,
Kim
Edited by: Kim Peng Chia on Jun 21, 2011 11:30 AMHi,
Yes, the job which was running in background when I traced it, thus, the reason "waiting time for User Input on the Screen" is not valid.
Appreciate if there is further advice.
Thanks,
Kim -
Enable ABAP trace for programs running in BI process chains
Hi
Can anyone please indicate how can we enable a ABAP trace for a long running program, that runs through Process chains of SAP BI.well i´m not a 100% sure, but this task has not so much workload that you cant give it a shot
-
How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0).
Hi,
I am looking for this document: How To Guide on ABAP mapping (How to Use ABAP-Mapping in XI 3.0), and not able to find it.
Can anybody please point me the location, to look for, or post the document.
Thanks,
NamadevHi Namadev Chillal ,
These r the links containing PDF docs which u r looking for:
how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
Excellent PDF Document on Mapping
http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
Mapping Development with the ABAP Workbench
http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
ABAP Mappings
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm -
In ABAP HR how to get job using position
In ABAP HR how to get job using position (Using Infotype 1001)
Hi anilkumar,
1. u have the position
u want the Job
2. In hrp1001 table
OTYPE = 'S' (for position)
OBJID = POSITION (AS ABOVE)
SCLAS = 'C' (for finding job)
<b> SOBID = XXXXXX (here u will get the JOB)</b>
regards,
amit m. -
In abap report how to get substitute Materials
Hi Friends,
In abap report how to get substitute Materials. Is there any function module or bapi available other than Function 'PRODUCT_SUBSTITUTION'
Will appreciate your suggessions with poits.Hi anilkumar,
1. u have the position
u want the Job
2. In hrp1001 table
OTYPE = 'S' (for position)
OBJID = POSITION (AS ABOVE)
SCLAS = 'C' (for finding job)
<b> SOBID = XXXXXX (here u will get the JOB)</b>
regards,
amit m. -
SAP ABAP HR, How to find out relationship in OM
Hi Gurus,
in ABAP HR , how to find out relationships in organisation assianment
please clarify my Query.HRP1000 : Stores all the OM object types for eg, O - Org Unit, S- Position, C- Jobs, K- Cost Centers etc
HRP1001 : Relationship between the object For eg, S (Position) Belongs to O (Org. Unit) etc
HRP1002 : Description for all the objects
HRP1003 : Department or Staff of the respective object, particularly O, S and P
Additional Data in SAP's HRP1001 tells you how to retrieve the u2018additional datau2019 for org management relationships (ADATANR in HRP1000, ADATA in P1001, tables T77AD and T77AR).
Reward if helpful -
Webdynpro ABAP - ALV how can i display Total of Column
Hi friends,
Webdynpro ABAP - ALV how can i display Total of Columns.
Please tell me any metod is there or any solution.
Thanks,
Kumar.Hi
You can take help of following code snippet to create totals for a particular column
Data: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_column TYPE REF TO cl_salv_wd_column,
lt_column type salv_wd_t_column_ref,
ls_column type salv_wd_s_column_ref.
Data: lr_field_amnt type REF TO CL_SALV_WD_FIELD.
* get reference of ALV component
lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
* get function settings
lr_function_settings ?= wd_this->alv_config_table.
* display columns in correct order
lr_column_settings ?= wd_this->alv_config_table.
lt_column = lr_column_settings->get_columns( ).
loop at lt_column into ls_column.
CASE ls_column-id.
when 'AMOUNT'
* aggregate field
CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
EXPORTING
FIELDNAME = 'AMOUNT'
RECEIVING
VALUE = lr_field_amnt.
* create aggregate rule as total
CALL METHOD LR_FIELD_AMNT->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
EXPORTING
AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
RECEIVING
VALUE = lv_aggr_rule.
endcase.
Regards
Manas DUa -
Hi,
I'm trying to test the SAP example found in document "How to use Abap-Mapping in XI 3.0". This one is:
class interface = Z_TEST_ABAP_MAPPING
method = IF_MAPPING~EXECUTE
But I cannot test it.
1. In IR, when I uses the "Test" option inside my Interface Mapping, I have the following error message:
"Unable to tes. You cannot execute program Z_TEST_ABAP_MAPPING in the test environnement".
2. and when I uses transaction SXI_MAPPING_TEST, I have first this message: <i><SUCCESS>Services Processed Without Error</SUCCESS></i> But in the Trace folder, there is that:
<?xml version="1.0" encoding="iso-8859-1" ?>
- <Top>
<First>BeginTrace</First>
<Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
<Trace level="2" type="T">......attachment XI_Context not found</Trace>
<Trace level="1" type="T">No mapping configured</Trace>
<Trace level="1" type="E">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
</Top>
Anybody can help me?
Regards.
Mickael.Hello,
Have you create a scenario in Integration Directory ?
Check in the Directory if in your interface determination you put correct information.
The sender service : SENDER
The sender interface : BookingOrders corresponding interface.
The sender namespace : http://sap.com/test/ABAPMapping
The receiver service : RECEIVER
Under Configured Inbound Interfaces, you can find :
The Inbound interface : MsgOut corresponding interface.
Interface mapping : BookingOrders2MsgOut that use your ABAP Mapping.
I am not sure the Receiver determination is necessary.
Then if it's OK, check that you put exactly the same information in transaction SXI_MAPPING_TEST :
Sender Service : SENDER
Sender Interface Namespace : http://sap.com/test/ABAPMapping
Sender Interface Name : BookingOrders corresponding interface.
Receiver Service : RECEIVER
Receiver Interface Namespace : namespace where you define your MsgOut Interface.
Receiver Interface Name : MsgOut corresponding interface.
Regards,
Chris -
In SQL Trace how to see which statement getting more time .
Hi Expart,
In SQL Trace (T-code ST05) . I am running the standard transaction . how to see which statement
running more time and less time . suppose one statement running more time so how resolve the
performance .
Plz. reply me
Regards
Razz> The ones in 'RED' color are the statement which are taking a lot of time and you need to
> optimise the same.
No, that is incorrect, the red ones show only the ones which need several hundret milliseconds in one execution. This can even be correct for hard tasks. And there are lots of problem, which you will not see
I have said everything here:
SQL trace:
/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy
Go to 'Tracelist' -> Summarize by SQL statements', this is the view which you want to see!
I summarizes all executions of the same statement.
There are even the checks explained, the slow ones are the one which need a lot of time per record!
See MinTime/Rec > 10.000 microseconds.
Check all number of records, executions, buffer, identicals.
The SE30 Tipps and Tricks will not help much.
Siegfried -
Hi,
I created a small example of testing using ABAP Unit shown below.
But i get a syntax error in German, i translated to English and this is what i get
The reference to a test class (marking with FOR TESTING) is only in test classes possible
How do i resolve this?
CLASS myclass DEFINITION.
PUBLIC SECTION.
CLASS-DATA text TYPE string.
CLASS-METHODS set_text_to_x.
ENDCLASS.
CLASS myclass IMPLEMENTATION.
METHOD set_text_to_x.
text = 'U'.
ENDMETHOD.
ENDCLASS.
Test classes
CLASS mytest DEFINITION FOR TESTING.
PRIVATE SECTION.
METHODS mytest FOR TESTING.
ENDCLASS.
CLASS mytest IMPLEMENTATION .
METHOD mytest .
myclass=>set_text_to_x( ).
cl_aunit_assert=>assert_equals( act = myclass=>text
exp = 'X'
msg = 'failed').
ENDMETHOD.
ENDCLASS.
DATA my_ref TYPE REF TO mytest.
CREATE OBJECT my_ref type mytest.
call METHOD my_ref->mytest.You're almost there. You don't need to create a object reference to your ABAP Unit Test class. To run the ABAP Unit test, you need to do the Program > Test > Unit Test
CLASS myclass DEFINITION.
PUBLIC SECTION.
CLASS-DATA text TYPE string.
CLASS-METHODS set_text_to_x.
ENDCLASS.
CLASS myclass IMPLEMENTATION.
METHOD set_text_to_x.
text = 'U'.
ENDMETHOD.
ENDCLASS.
* Test classes
CLASS mytest DEFINITION FOR TESTING.
PRIVATE SECTION.
METHODS mytest FOR TESTING.
ENDCLASS.
CLASS mytest IMPLEMENTATION .
METHOD mytest .
myclass=>set_text_to_x( ).
cl_aunit_assert=>assert_equals( act = myclass=>text
exp = 'X'
msg = 'failed').
ENDMETHOD.
ENDCLASS.
Check thread Unit Test Problem
Regards,
Naimesh Patel -
ABAP webdynpro how to give spacing between the UI Elements in a view
Hi Expert,
I am very new to webdynproapplication development. I am stuck in changing the look of the ui elements of the view.
Cud anyone explain how to set the spaces between the UI Elements on a View is there any method ?
I have set the Layout property to Matrix layout. But here I am unable to set the spacing between the deffernet elements as it is taking it automaticaaly and I am not able to allign all the Elements.
Need your help!.............thank you
Moderator message: wrong forum, please have a look in the dedicated "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on Apr 15, 2011 10:17 PMHi anushree.,
If u are using matrix layout:
In Layout Data select MatrixHeadData to display UI in next line.,
If u want to give space between UI elements in the width enter 50, 60, 70 or what ever space u want.
Also in the vGutter u can select medium , large , medium with rule to give space between UI elements.
n if u want to give space between lines ., in the height enter 30 40 or whatever spacing between lines u want.,
Matrix layout is a good layout., and u can play with colspan , hAlign, vAlign, vGutter, width and height options.,
If u dont like the layout with these options then use Grid layout., where u can give custom spacing., with the help of Left Padding, Right Padding, Top Padding, Bottom Padding.
reply if u need some more clarifications.,
Thanks & Regards
Kiran -
Abap mapping "How to" not available, can you send me the pdf?
Hello,
I need information about ABAP Mapping and all the posts about that kind of mapping have a link to the sdn guide "How to Use ABAP Mapping in Exchange Infrastructure 3.0" --> https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
But that link is broken , is there any way that you can send me that file if you got it?Hi Marshal,
Start with this...........
/people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
This document will help you to create ABAP Mapping .
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
/people/ricardoandres.maienza/blog/2007/04/06/how-to-call-xi-abap-mapping-via-rfc
/people/sameer.shadab/blog/2005/09/29/testing-abap-mapping -
Client ABAP Proxy : how to know which program is calling that service interface proxy
Hi All,
I have prepared some client proxy in ECC to communicate with PI.
But, if I am not wrong, unlike server proxy which is written directly in the class Provider class in SPROXT transaction, in client proxy we write abap code to trigger proxy in SE38 .
My question is : If I am in SPROXY and looking at any outbound SI, of which proxy is already generated, then how can in SE38 can I find which program is triggering that interface or proxy?Hi,
check below thread for calling client proxy
ECC outbound abap proxy (client) - Get ECC messageID from Protocol
Regards,
Maybe you are looking for
-
BADI or BAPI Getting Trigerred at the time of PO approval or Creation
Hi Gurus, Can Anyone of you just guide me by giving one or more BADIs name that are getting trigerred at the time of PO approval or before Ordered. I am in the nick of the project. Please help urgently. Points will be rewarded. Thanks
-
Upgraded my iPod touch to iOS5. How do I get my music back?
Using my MacBook Pro, I just upgraded my iPod Touch to iOS5 and it erased all the content on my iPod. Now how do I get the content back onto the iPod?
-
Officejet 8600 only printing 2/3 of a page intermittantly
we have a printer only printing 2/3 of a page. have installed the hp software and drivers and still not working. it will sometimes the whole of the page but most of the time just 2 thirds. Any ideas. thanks
-
Hi All, I have a Z Program which is using standard report RFBIBL01 for Uploading G/L Records. It creates a session when I run the session through SM35 the date field BSEG-ZFBDT is not getting populated. I am Getting "Formatting error in the field BSE
-
Why arch use a so old iproute2 version??
I was looking at some qos script to increase downloads performances when i have a lot of uploads and i've found a few useful things but the most of them don't work with the old tc included in iproute2 2.4.7 that's the one we have on archlinux... So i