How to find out structure of internal table?
Hi
is there any way how to find out name of structure upon which internal
table was created?
i got internal table passed to function module by any table
type. There can be different types of table passed in. Inside of
module a need to find out the structure of table.
I've found a tricky way how to find this information using following
command 'DESCRIBE FIELD dobj INTO td.', but its probably not a correct
way because using this command is not recommended in application
programs.
Is there any function module, or something i can use for getting this information?
Thanks
Thanks very much
This has solved my problem:
DATA descr_ref TYPE ref to cl_abap_typedescr.
DATA tabname TYPE string.
descr_ref = cl_abap_typedescr=>describe_by_data( itab ).
tabname = descr_ref->absolute_name.
Similar Messages
-
How to find out the Non Partitioned Tables used 2Gb on oracle
Hi team
how to find out the Non Partitioned Tables used > 2Gb on oracle where not is sys & system
regardsheres 1 I made earlier
set pagesize 999
set linesize 132
col owner format a25
col segment_name format a60
select owner,segment_name,segment_type,(bytes/1024/1024)"MB size"
from dba_segments
where owner not in ('SYS','SYSTEM','XDB','MDSYS','SYSMAN') -- edit for taste
and segment_type = 'TABLE'
having (bytes/1024/1024) > 2000
group by bytes, segment_Type, segment_name, owner
order by 4 asc -
How to find out that the database table is empty
Hello all,
How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * ) looks to me as not the best way.
Kind regards
Radim Benek
Moderator message: FAQ, please search for previous discussions of similar topics.
example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
Moderator message: Please Read before Posting in the Performance and Tuning Forum
Edited by: Thomas Zloch on Aug 11, 2011 5:06 PMHi,
One approach is:
check lt_mytable is initial.
This will be true if there are no lines.
Another:
describe table lt_mytable lines lv_count
if lv_count = 0.
"Empty
Thanks.
Anitha a -
Moving data between tables (how to find out if the 2nd table is empty)
Hi,
I have 2 tables, and I'm copying records from one table to another.
I've followed the Wiki: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/movingdatabetween+tables]
So far, everything works ok.
Here is my question: how do I get the number of records passed?
I mean, how do I know the number of rows in the 2nd table? (Remember that this number is variable, because it depends on how many rows I've inserted and deleted on the 2nd table).
I've tried to achieve that using a data store with a numeric field, but I couldn't find the way to increment/decrement the numeric field on data store, and insert/delete the row on table at the same time .
All I want is to find out if the 2nd table is empty or not.
Any ideas to solve this?
Thanks in advance!
Help will be point-rewarded.
MarceloHi Ahmed
thanks for your reply, it was very helpful!! (I've assigned points to you)
However the user can add twice or more times the same row... so the counter doesn't reflect the real number of rows in the 2nd table.
I've partially solved this also using a data store with a parameter called key_list, where I add (I mean, concatenate) the key field for the selected row.
So, if I have a table with 4 rows with key fields "key1", "key2", "key3", the parameter key_list would get "key1;key2;key3".
So far, it's ok. But when I remove a row previosly added.... I can't remove the key from the key_list parameter. (I mean, from 2nd table I choose to remove the "key2" row, but I don't know how also remove the key name from the key_list)
I hope be clearly enough.
Any help will be really appreciated and point-rewarded.
Thanks again.
Best Regards
PS: is there any way of "mark" a row that has been added to the 2nd table? I mean, using (for example) a hidden boolean field named "added", that becomes true when the selected row is added to the 2nd table. -
How to find out the object and tables that belong to it
Do you know how to find out which tables belong to which object in trans. BD66, I have a CABN table but i donot the object name so how i can find out that??
Hi,
Wht object u r taking about .if it's a transport object,
Go to Utilities -> Versions -> Version Mgt ->
The latest one which is active, is the one u have to transport .
Rgds ,
J
Do Award pts by cliking the left-hand side of this info. -
How to find out important fields in table like MARA?
How to find out important fields in a table for example like MARA?
Details: In R/3 or ECC table for example MARA;
1) How to find out what are the important fields?
2)Does the table have only key figures not characteristics right?
3) There are so many tables in FI; Can you please tell me what are the important tables?
4) There is any easy automatic way to figure out that the particular datasource for example 2lis_02_item is pulling data from so and so table. I like to know the process not the results please.
Thanks in advance.
York.Hi York,
Let me go by points:
1. There is nothing like important fields ... The question could be Key fields ... the fields which identify a record uniquely ... If you go to SE11, and go inot the dispaly of MARA table ... you will see that there is tick mark under key to indicate that the field is a key field ... All the fields which are so marked would identify a record in the table uniquely. If your question is otherwise ... (Important fields) ... then it depends on the purpose you wnat to meet ... Some fields might be important for me but not for you ... so there is not hard nad fast rule for important fields.
2. No... Tables in R/3 or ECC would contain both Key figures and characteristics.
3. Important tables in FI would be BKPF, BSEG and BSET.
4. The procedure for finding out which table are used by say 2lis_02_item would be different from that of other non LO/LIS extractors.
In case of LO/LIS turn on the trace (below process) while populating the setup tables and for thoers while executing RSA3.
1. Open one session and go to ST05, click on "Activate Trace"
2. Open another session and execute the transaction you want to track for the tables it is going to hit.
3. Go to the session of point 1 above and click on DEACTIVATE TRACE
4. Click on DISPLAY Trace
This will show you all the tables that were hit while extracting data. Point to remember here is ... it will hit some standard tables as well ... so you will have to filter out what is relevant from what is not.
Hope this helps.
best regards,
Kazmi -
How to find out the failed reorg tables during reorgnization phase
Dear All,
I am doing the archiving project.
I have finished the Write phase and Delete Phase.
Now I am doing the tablespace(PSAPSR3) reorganization in QAS(Offline).
Due to the redo log space was full during the reorgnization phase.
Some tables' reorgnization progress were failed.
Hope you could tell me how to find out the tables which reorgnization were failed.
(DB level? OS level? SAP Level?)
Thank you in advance!
Jason/oracle/QAS/sapreorg
-
How to find out what the underlying table/query of a form in Oracle Apps.
Hi
I am trying to find out who owns the underlying objects of a query when a user runs the Transactions > Line_Items form for Receivables .
I have selected Help > Record History but I get a message Record History not available here.
The query is running slow and I'd like to see if the objects have been analyzed lately.
Thanks
AndyHi
I should have said in the ticket that this is version 11.5.10
It was close to giving me the answer I need. It gives me the following details. Unfortunately it doesn't give me the underlying sql. I hhave tried using v$session and sys.v_$sql but the sql is over 1000 characters long so I dont get to see the table/object being referenced.
I appreciate the feedback.
Thanks
Andy
Database Server
RDBMS : 10.2.0.4.0
Oracle Applications : 11.5.10.2
Machine : alabama
User : APPS
Oracle SID : accausr1
System Date : 12-SEP-2011 13:33:58
Database Server PID : 16875
Session SID : 1065
SERIAL# : 1273
AUDSID : 201640233
Database CPU Usage (in secs) : 8.85
Forms Server
Oracle Forms Version : 6.0.8.27.0
Application Object Library : 11.5.0
Machine : AUSTIN
Forms User CPU (secs) : 3.430000
Forms System CPU (secs) : 0.840000
Forms Process ID : 6347
Forms Server Environment Variables
AU_TOP : /oracle/finapps/accausr1/accausr1appl/au/11.5.0
FDBDMCHK : [Unset]
FDFGCXDBG : [Unset]
FDSQLCHK : [Unset]
FDUDEBUG : [Unset]
FNDNAM : APPS
FND_TOP : /oracle/finapps/accausr1/accausr1appl/fnd/11.5.0
FORMS60_APPSLIBS : APPCORE FNDSQF APPDAYPK APPFLDR GLCORE HR_GEN HR_SPEC ARXCOVER
FORMS60_CATCHTERM : 1
FORMS60_ERROR_DATETIME_FORMAT : [Unset]
FORMS60_ERROR_DATE_FORMAT : [Unset]
FORMS60_FORCE_MENU_MNEMONICS : 0
FORMS60_MAPPING : http://austin.accanet.org:8002/OA_TEMP
FORMS60_MMAP : [Unset]
FORMS60_OUTPUT : /oracle/finapps/accausr1/accausr1comn/temp
FORMS60_OUTPUT_DATETIME_FORMAT : [Unset]
FORMS60_OUTPUT_DATE_FORMAT : [Unset]
FORMS60_PATH : /oracle/finapps/accausr1/accausr1appl/au/11.5.0/resource:/oracle/finapps/accausr1/accausr1appl/au/11.5.0/resource/stub:/oracle/finapps/accausr1/accausr1appl/au/11.5.0/forms/US
FORMS60_RESOURCE : [Unset]
FORMS60_TIMEOUT : 5
FORMS60_USER_DATETIME_FORMAT : DD-MON-RRRR HH24:MI:SS
FORMS60_USER_DATE_FORMAT : DD-MON-RRRR
FORMS60_USE_CBO : [Unset]
GWYUID : APPLSYSPUB/PUB
NLS_DATE_FORMAT : DD-MON-RR
NLS_DATE_LANGUAGE : AMERICAN
NLS_LANG : AMERICAN_UNITED KINGDOM.WE8ISO8859P1
NLS_NUMERIC_CHARACTERS : .,
ORACLE_HOME : /oracle/finapps/accausr1/accausr1ora/8063
ORACLE_PATH : [Unset]
ORA_NLS_CHARSET_CONVERSION : [Unset]
TNS_ADMIN : /oracle/finapps/accausr1/accausr1ora/8063/network/admin/accausr1_austin
TWO_TASK : accausr1
Current Form
Form Application : Receivables
Form Name : ARXTWMAI
Form Path : /oracle/finapps/accausr1/accausr1appl/ar/11.5.0/forms/US/ARXTWMAI.fmx
Form Version : 11.5.200
Form Last Modified : $Date: 2005/01/07 11:50 $
Forms
APPSTAND : 11.5.33
ARXRWMAI : 11.5.21
ARXRWMAI : 11.5.21
ARXTWMAI : 11.5.200
FNDSCSGN : 11.5.122
Form Menus
FNDMENU : 11.5.51
Forms PL/SQL
APPCORE : 11.5.151
APPFLDR : 11.5.55
ARXARWIN : 11.5.65
ARXBOEIF : 11.5.2
ARXCWUTL : 11.5.8
ARXPLCOM : 11.5.68.15104.2
ARXQRCIF : 11.5.2
ARXRCTIF : 11.5.2
ARXRWBAT : 11.5.96
ARXRWMAI : 11.5.19
ARXTWBAT : 11.5.11
ARXTWMAF : 11.5.27
ARXTWMAI : 11.5.302.15104.9
ARXTWUTL : 11.5.39.15104.2
FNDSQF : 11.5.111
GHR : 11.5.174
GLOBE : 11.5.38
GMS : 11.5.230.90.7
IGILUTIL2 : 11.5.97
IGILUTIL : 11.5.29
OPM : 11.5.33.115100.2
PQH_GEN : 11.5.124
PSA : 11.5.162
PSAC : 11.5.16
PSB : 11.5.24
VERT : 11.5.6 -
How to find out inserts/updates on table through a query
Hi All,
I have huge collection if procedures in my database. when I check the table used by procedures, list appearing is also pretty big.
Is there a way to find out the inserts/updates into the selected table?
Please help me out!!!!!!
Thanks in advance!!
Regards,
SrikanthSELECT owner, object_type, object_name, object_id, status
FROM SYS.dba_objects
WHERE object_id IN (
SELECT object_id
FROM public_dependency
CONNECT BY PRIOR object_id = referenced_object_id
START WITH referenced_object_id =
(SELECT object_id
FROM SYS.dba_objects
WHERE owner = :owner AND object_name = :NAME
AND object_type = :TYPE))-- Mahesh Kaila -
How to Find out the from which table we can get the following fields?
The following fields are from invoice data
How to know or from which table we get the following fields:
Header Details:
Manifest:, Finance Control #:, Alternate SID:, Carrier:, Container/Trailer #:, Hazmat Code:, Harmonizing Code, Freight Forwarder, Fiscal Rep., Ship From, Notify Party
Item Details:
VAT/Tax Rate %, VAT/Tax Amount, Measurements, Net Weight, Gross Weight
thanksDear Krishnama
Place your mouse on the required fields and press F1. A box with header Performance Assistant will appear in front of you where you select "Technical information" (icon like hammer and spanner).
You can now see what table it is.
thanks
G. Lakshmipathi -
How to find out who updated database tables
Hi
We are using Oracle Database 10g Release 10.2.0.4.0.
A user, via pl/sql developer, has been updating data on our database. This resulted in certain reports not balancing. At that time, we did not have database triggers on the tables concerned. We now need to go back at least a month or more to see who had updated these tables. We have a username, is there any script that we can use? How accurate is v$active_session_history? Would it give us all the info we need?781424 wrote:
Hi
We are using Oracle Database 10g Release 10.2.0.4.0.
A user, via pl/sql developer, has been updating data on our database. This resulted in certain reports not balancing. At that time, we did not have database triggers on the tables concerned. We now need to go back at least a month or more to see who had updated these tables. We have a username, is there any script that we can use? How accurate is v$active_session_history? Would it give us all the info we need?It is little easy to know with AUDITING, or use Log miner to analyze log files. -
How to find out memory consumption for table in HANA without load it into memory
Hi,
To determine the memory consumption for a table in HANA, you can query table M_CS_TABLES, however, it requires load table into memory first, I just wonder if there has another table store memory consumption information for all HANA tables regardless it load into memory or not. Below is screenshot for one of table in my system, since that table is partially loaded into memory, "Total Memory Consumption (KB):" tell me the memory consumption of the portion load into memory, what I am looking for is something like "Estimated Maximun Memory Consumption (KB)" which provides me total memory consumption for that table including portion doesn't load into memory, of course I can use this Esitmated information, but consider I have close to thousand tables in my HANA system already, it's not pratical to check tables one by one.
Thanks,
Xiaogang.Hi Xiaogang,
Estimated Memory Size that you see in the Table Run time Information - same is available in M_CS_TABLES also
If you don't get the size of any Table in M_CS_TABLES View, then the same will also not be available in Runtime information of the Table
Even if tables are not loaded into memory, you can get the Estimated Size, just try running the query with filter LOADED = 'NO'
Regards,
Vivek -
How to find out size of tables
Can you please suggest me how to find out the size of tables?
I need to find what would be the appropriate size required for rollback segment.
Your quick help would be highly appreciated.Sizing the Rollback Segments (rollback segment) is an iterative process and requires several scheduled maintenance windows to re-size the rollback segment, based on the DML load. The optimal rollback segment size is a function of system update load (as determined by v$rollstat and v$transaction):
a) The COMMIT frequency.
b) The size of RAM log buffers.
c) Specific Oracle parameters (log_buffer, db_writer_processes, log_checkpoint_interval).
d) The size of the rollback segment data files.
The total size of the UNDO area for a specific transaction is as follows:
If the undo is 'x' bytes for 'n' number of rows then
T = x * (N / n) * 1.05
Where T = Approximate Total undo for the transaction in bytes.
x = Undo for the individual transaction.
N = Total number of rows in the original table.
n = Total number of rows in the test table.
Optimal rollback segment sizing is an iterative process, and is normally "tuned" over a period of several weeks. Generally, we build spreadsheets to track usage and determine the optimal size: -
How to find the structure in this user exit
My requirement is add new field to Delivery due list ALV report(VL10G).For enhance this report i will append one field(LIKP-SDABW) in this structure SHP_VL10_ITEM.This structure is not showing in the include LV50R_VIEWG05
USEREXIT_PREPARE_LAYOUT_FILL .Where i have to find this structure,and internal tables?
Please help me.
Thanks & Regards,
sairamHi Sairam,
Goto the program for transaction VL10G.In that u make a seach for the user-exit
USEREXIT_PREPARE_LAYOUT_FILL.Then write the logic inside tht.U will need an access key for that.
<b>Reward points if it solves ur query or answer is helpful</b>
Thanks
Chinmay -
How to find out name of table for a structure.
hello all,
I want to find out name of table for a structure ADDR1_DATA. can anybody pls tell me how to find out it?
Thanks,
AshuHi Ashu,
You write the structure name in se11
after selecting the database table radio button
click on the where used list button in the application tool bar.
You will find the table name if it is used else where.
Check out the website at:
http://sap-idoc2edi-consulting.com/
Read the blog at:
http://blogs.ittoolbox.com/sap/ehadzipetros
Regards,
Jagadish
Maybe you are looking for
-
How do I gift an itunes LIBRARY playlist to someone on itunes STORE?
I have an itunes playlist in my music library on my mac. I want to duplicate the playlist to my itunes store account so i can gift the playlist to another person. how do i do this without a) manually recreating the playlist (it's long) and b) not u
-
Steps to upgrade from 10.5.8 to Mountain Lion
Please help. I am trying to upgrade to OS X mountain Lion from10.5.8 how do I do it? Thank you in advance for your help and support.
-
Problem to get Web admin access on cisco ISE
Hi, We are currently having problems to access via Web admin UI to cisco ISE. after we put the password, we get this message on screen: authentication failed due to zero RBAC group. The ISE version that we are using is: 1.1.2.145 path 3 Do you have a
-
Hi all, I am new to Weblogic and i am trying to start it on Solaris server. It tells me that port is already in use. How can i find the port that is available? Please help JAK
-
HTML 5 Compatible File Browser Control
Has anyone seen a a plugin or sample demonstrating a html 5 compliant file browser control for APEX 4.x? I know of a pay to use plugin but my office is leery about buying a 3rd party plugin. I know there are jquery plugins available, but was lookin