No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n
No insert Statements for EKKO EKPO in ST05 sql trace for transaction me21n.
IN ST05 I set a filter for ME21N and executed transaction to create a Purchase Order and then checked
ST05 but there is NO insert for EKKO or EKPO??
How Do I find in which columns of EKKO and EKPO data is inserted in ST05?
Edited by: DeepakNandikanti on Apr 28, 2010 8:27 AM
Hi,
I tried in my system and I can see INSERT statement on EKKO and EKPO tables. What exactly you are looking for? Some one else might have switched on the trace at the same time. Can you try again and see.
ST05=>Switch on trace
ME21N=>Create PO.
ST05=>Switch off and display trace.
In trace list search for EKKO and EKPO.
Column names are not shown in the trace list. It is the SQL trace and column list is generated dynamically like :A0, :A1....
@ Suhas,
That might be because the tables are updated via BAPIs ... Do you think SAP uses direct update statements on the DB tables ??
I didn't get above statement. Is there any other way of updation that happens when using BAPI? I believe that, even in case of BAPI there will be update task FMs called during database update. Please correct if i got it wrong.
Thanks,
Vinod.
Similar Messages
-
In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN
In BDCP table I am not getting any entries for EKKO,EKPO,EKBE,EKET,EBAN tables.
But there are entries for many other tables.
I have got objects for EKKO,EKPO,EKBE,EKET,EBAN tables from TCDOB tables.Hi Avishek,
Let me explain the meaning of Change pointers.
If you have entry in BDCP table for MARA, that means everytime a material is created in MARA table in one system, a corresponding Material is created in another system which is connected to the current system VIA ALE. and whenever you change that material in your source system, then the change is propagated to the target system also(If you have done the change pointer set up).
The you do not have entries for other tables becuase the configuration for change pointers is not done for those Objects(In your case the change pointers are not defined for Purchase Orders and hence no entries in BDCP table).
Regards,
Ravi kanth Talagana -
Hi
Can anyone suggest how to find the SQL trace for background jobs.
Thanks in advance.
Regards
D.VadivukkarasiHi
Check the transaction ST05.
Plz Reward Points if helpful -
Starting SQL-Trace Automatically - Transaction Code: ST05
Good Morning Experts!
I have got a problem with my "SAP - Business Warehouse (BW) System".
We have very much Traffic on this System every night (between 03:00 and 04:00 a.m.).
Because nobody is at work so early in the morning, I wanted to ask you, if there is a possibility to start the SQL-Trace (which you can call by transaction code: ST05) automatically.....?
Is there a possibility to write a short ABAP Code to start the SQL-Trace automatically?
Thank's and best regards.Hello Rob.
Thank you for replying.
I tried to create a job with the "Job Wizard" with SM36.
Now i realized, that i have to wirte my own ABAP-Report (Programme), which uses the ST05 SQL-Trace function.
I am not an ABAP-Professional, so would you be so kind and give me the code-lines of this programme?
I can not imagine if you have to write only 5-10 lines or if the code is much longer...
Thank you and best regards. -
Buffered Function Modules for EKKO, EKPO, EKBE, EKES etc
Hi,
Could you please let me know of some buffered function modules for reading data from EKKO EKPO EKBE EKES EKET?
Regards,
SurajTry BAPI_PO_GETDETAIL , BAPI_PO_GETITEMS , BAPI_PO_GET_LIST
-
Automize SQL TRACE for a selected session
Hi,
Should I automize the process of SQL Tracing for a particular session of our choice?
Lets say when there are several sessions, and we want to select the particular session for SQL TRACING, then the SQL tracing for that session enable via running a routine.
I used AFTER LOGON trigger for enabling SQL trace, but using this approach enable SQL TRACING all the sessions.
My Logon Trigger for enabling SQL Tracing:
create or replace trigger LOGON_SQL_TRACE
after logon on database
begin
execute immediate
'alter session set sql_trace=true';
end;
I want to use a perfect routine that first get the sid, serial# or username etc. from V$session, V$process or else, and then enable the SQL TRACING for the selected session.
Like SYS.DBMS.SYSTEM.SET_SQL_TRACE_IN_SESSION package is available for doing that or may be some others as well.
But how should we use these packages or other SQL tracing commands in a routine, which we can use for, enable SQL Tracing implicitly.
Any ideas will be great.
BillSYS.DBMS.SYSTEM.SET_SQL_TRACE_IN_SESSION is just fine.
You can get the SID and SERIAL# from v$session; you just have to know the username, osmachine, the OS process, ...
Fred -
Hi
Database 10.1.0.4
Sql trace file which I have used but didn't get the trace file. I have tried to get per session Id but not able to get the trace file, when ever user logged into application, virtually 6 user get lgged in and you never know about user. So I have desided to capture for schema
I have used this for tracing
SQL> ALTER SESSION SET sql_trace=TRUE;
SQL> ALTER SESSION SET sql_trace=FALSE;
Or
SQL> EXEC DBMS_SESSION.set_sql_trace(sql_trace => TRUE);
SQL> EXEC DBMS_SESSION.set_sql_trace(sql_trace => FALSE);
or
SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>TRUE);
SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=>123, serial#=>1234, sql_trace=>FALSE);
I want to get trace file for schema, can anyone suggest how do I get trace file at schema level.
Thanks for helpHi,
Using instance-level tracing by setting the init.ora/spfile... parameter SQL_TRACE=TRUE, all processes against the instance will create their own trace files. This particular method of tracing should be used with care since it creates a great deal of overhead against the system. In addition, the default value for this parameter is FALSE.
Cheers
Legatti -
Hi,
Should we use the Logon trigger for SQL TRACING,for the third party tool?
How should we manage SQL tracing and then read this trace file using
TKPROF for that specific session that is using the third party tool?
I wanted that whenever this third party tool connect to database with any user, the sql tracing will start for that specific seesion and then read the sqltrace for that session using TKPROF.
Any ideas/exmp will be great.
Regards
CLEEShould we use the Logon trigger for SQL TRACING,for the third party tool?
Yes you can use like
CREATE OR REPLACE TRIGGER af_sess_Logon
After logon on database
Begin
if ( user='SCOTT') then
execute immediate 'alter session set sql_trace=true';
End if;
End;
sql tracing will start for that specific seesion and then read the sqltrace for that session using TKPROF.
for tkprof you can user command line
or use host in sql
kuljeet pal singh -
Hi,
How can I turn on SQL Tracing for ODS Transfer scripts?
Best regards,
JohanHi Johan,
If SAP Note 1289112 is not the case, please clarify what "ODS Transfer" means.
Regards,
Sergiy -
Hi,
i was tracing the sql statments present in vf03 transaction for the invoice no.'s with accounting document over all status as not clear.
i want to know the flow of the sql statements right from the user giving the invoice no. as input to the document flow window to know from where and how it is picking the accounting doucment over all processing status
waiting for ur replies
regards,
maqsoodHi
You should look at the code of std fm RV_ORDER_FLOW_INFORMATION, here you can see all selects the system does.
Anyway the tables are VBFA (document flow), VBUK and VBUP. But you can't find that information here, because it's only in accounting not in sales.
So perhaps the abap code you're looking for it's this:
if vbrk-vbeln <> vbfa_tab-vbeln.
perform vbrk_ermitteln using vbfa_tab-vbeln.
check sy-subrc = 0.
check xvbrk-rfbsk = 'C' or xvbrk-rfbsk = 'J'.
read table xdoc_num with key vbeln = vbfa_tab-vbeln
binary search.
tabix_xdoc = sy-tabix.
if sy-subrc = 0.
check xdoc_num-not_found is initial.
else.
refresh xbkpf.
call function 'FI_DOCUMENT_READ'
exporting
i_awtyp = 'VBRK'
i_awref = vbfa_tab-vbeln
i_awsys = vbrk-logsys
i_bukrs = vbrk-bukrs
i_gjahr = vbrk-gjahr
tables
t_bkpf = xbkpf
t_bseg = xbseg
exceptions
wrong_input = 1
not_found = 2.
describe table xbkpf lines sy-tabix.
if sy-tabix ne 0.
Delete documents from other fiscal year
if sy-tabix > 1.
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
i_budat = vbrk-fkdat
i_bukrs = vbrk-bukrs
IMPORTING
e_gjahr = da_gjahr
e_poper = da_poper
EXCEPTIONS
fiscal_year = 1
period = 2
period_version = 3
posting_period = 4
special_period = 5
version = 6
posting_date = 7
OTHERS = 8.
IF sy-subrc = 0.
CONCATENATE da_gjahr da_poper INTO vbrk-gjahr.
loop at xbkpf where gjahr ne vbrk-gjahr.
delete xbkpf index sy-tabix.
endloop.
ENDIF.
endif.
loop at xbkpf.
clear l_xdoc_num-status.
move 'BKPF' to l_xdoc_num-awtyp.
move xbkpf-bukrs to l_xdoc_num-bukrs.
move xbkpf-belnr to l_xdoc_num-docnr.
move xbkpf-cpudt to l_xdoc_num-cpudt.
move xbkpf-gjahr to l_xdoc_num-gjahr.
l_xdoc_num-vbeln = vbfa_tab-vbeln.
l_xdoc_num-logsys = vbrk-logsys.
clear l_xdoc_num-not_found.
loop at xbseg where bukrs eq xbkpf-bukrs
and belnr eq xbkpf-belnr
and gjahr eq xbkpf-gjahr
and ( koart eq 'D' or koart eq 'K' ).
endloop.
if sy-subrc ne 0.
l_xdoc_num-status = 'C'.
else.
loop at xbseg where not augbl is initial
and ( koart eq 'D' or koart eq 'K' ).
endloop.
if not sy-subrc is initial.
SET STATUS TO 'No items are cleared'
l_xdoc_num-status = 'A'.
else.
loop at xbseg where augbl is initial
and umskz ne 'A'
and vorgn ne 'AZUM'
and ( koart eq 'D' or koart eq 'K' ).
endloop.
if not sy-subrc is initial.
Set status to 'All items are cleared'
l_xdoc_num-status = 'C'.
endif.
endif.
Otherwise: If there are customer/vendor positions where AUGBL is
filled and some other ones where AUGBL is blank then set status
to 'Partially cleared'
if l_xdoc_num-status is initial.
l_xdoc_num-status = 'B'.
endif.
endif.
append l_xdoc_num.
endloop.
insert lines of l_xdoc_num into xdoc_num index tabix_xdoc.
This is extracted from include LV05CF01
Max -
SQL TRACE for WEB deployed report
When I put
Alter Session Set sql_trace=TRUE
into the BEFORE Parameter Form trigger...
I get a trace file showing data on the one SQL in that trigger.
There is no TRACE output of the main query or any of the PL/SQL in the Program Units.
The report is invoked from company-wide intra-net.
I think it is Oracle Apps running in Linux server.
What am I doing wrong?
PS
I cannot execute this report from Report Builder.Hello,
Just a remark : if you are using Reports 9.0.4 / 10.1.2, you don't have to modify the reports , you can activate the SQL trace with the parameter SQLTRACE=YES
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/cmdline/common/cla_sqltrace.htm
Regards -
Q1.How can you trace the session of forms?
c:\ifrun60 module=<formname> userid=scott/tiger
statistics=yes
This will do a alter session set sql_trace=true in the background. -
hi friends
.pls tell in detail how to evaluate the performance of one select querry by using sql trace.( pls tell all traces )Kumar,
SQL Trace
SQL trace(ST05) provides the developer with the ability to analyse database select statements. Simply execute ST05
to turn on SQL trace, then execute the statement/program you want to analyse. Now turn off SQL trace using ST05
and click on list trace to view the details.
You can also perform traces on other items such as authorisation objects.
Authorisation trace analysis 1. Open two sessions
2. Execute transaction ST01 in one of the sessions
3. Select the authorisation checkbox, note the other traces
you can perform (SQL, RFC, Table Buffer etc)
4. Click the 'Trace On' button
5. Within your other session execte the transaction/report
you want to trace or get the user in question to do it
6. Return to the session where you turned the trace on and
click on 'Trace Off' otherwise it will continue to record
all athorisation checks
7. Click on the 'Analysis' button
8. Enter appropriate data into selection screen such as
Username, type of trace records (i.e. Authorization check)
9. Click on the Execute button.
10. Report displaying trace results will now be displayed
http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
Some useful transaction related to this are ..
ST01 SAP system trace
ST02 Buffer statistics.
ST03 Workload analysis.
ST04 Database performance analysis.
ST05 SQL trace .
ST06 Operating system monitor ...
From the recorded SQL trace you can deduce:
· Which SQL statements your application carries out
· Which values the system uses for specific database accesses and changes
· How the system translates ABAP OPEN SQL commands (such as
SELECT) into standard SQL commands
· Where your application positions COMMIT statements
· Where your application makes repeated database accesses
· What database accesses or changes occur in the update section of your
application
Look at the below links, you will get the idea
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html
Don't forget to reward if useful... -
ST12/ ST05 Details trace list
Hi All,
Just would like to know after I run the ST12, and open the trace list, my object: eg: EKPO are able to find it the trace list.
Then i tried few times after the new indexes created in EKPO, i not manage to find the EKPO object in the details trace list in ST05. The program is accessing this table to retrieved the EKPO details. Is anyone have ideas how is doesnt show in the list even i hhave display out the all trace lists.Hi,
if you miss details (tables) in the ST05 SQL trace, it was most likely overwritten.
Check out ST01 - GoTo - Administration and analyze the Start and Exit time
stamps of the ST05 trace files. If the oldest start time stamp is newer than
the time stamp when you did the trace the trace data has been overwritten.
Retrace and use appropriate filters in ST05 (include or exclude tables) .
Hope this helps,
Hermann -
SQL Tracing for session started from Java code
I am working with Oracle 10g on Solaris 9. I am facing a problem when trying to enable SQL Trace for Oracle sessions initiated from Weblogic server. I am querring V$SESSION to get the SID and SERIAL# of those sessions and then using DBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION(<sid>, <serial#>, TRUE); from the SQLPlus (using sys login). But the trace file is not being generated in UDUMP even after some queries are fired from the application. But when I am using the same procedure to turn SQL Trace on for SQLPlus sessions or SQLDeveloper sessions, they are just working fine.
Can anyone please help me out?Please help.....
There is already a thread
Problem with SQL_Trace for a Session
but there is no solution there.
Maybe you are looking for
-
How do you transfer your play lists from one hard drive to another on the same computer?
I had itunes running on my old computer. The mother board gave up. Got another computer and put the good drive from the old computer into the newer one as a slave. I have itunes all set up but can't figure out were to get my play lists and cover art
-
I have a calendar with SPD workflow to display multiple lines for Title, Attendees, Location. 1. Created a custom columne "Breaklines" and set to "Multiple lines of text" 2. Set Monthly View to display the "Breaklines" 3. in SPD I created a workflow
-
Removing duplicate photos in photoshop elements 4
is there a easy way to remove duplicate photos in Photoshop elements 4, i have over 20,000 photos but really only 5000-6000 and 3-4 duplicates of each and i think they have been renamed and haven't found a duplicate photo/file remover that will do it
-
Configuring Airport Express for travel
I have an extra Airport Express that I would like to use for wi-fi access when traveling and staying at hotels with wired access only. I travel a lot where I don't have to bring my MacBook and rely basically on my iPhone. I would like to know how to
-
Un-installing chrome, ensuring it's not installed on updates.
Hi, I need a little help. I downloaded an update for Adobe reader, and it automatically installed google chrome, (I'm not a fan of google- I couldn't find how to not install it). It then set chrome as default browser. As soon as I realised, I un-inst