How to determine Free Pool Ids in Timesten Db for a given Table
Hi All,
I am using Times ten DB. I have a requirement that i need to have a query which will fetch the free ids in DB. Say
if a table has entries with ids 2,3,5 it should return me 1,4 or if the DB has entries for ids 99,100 the query should return me 1,2,3,......98.
We have found a query but that is not efficient enough as it fetched free ids starting from the ids present i.e it fetches for the case 1 but for case 2 it fails.That is if ids are from 99 or any no say 2 the ids 1,2..98 and id 1 is not retrieved respectively.
Any help on this will be appreciated.
Thanks and Regards,
Namita
"Database General" is for the Oracle database not TimesTen. Please change the subject to "Please Ignore" and repost in the correct forum group. Thank you.
Similar Messages
-
How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use
Hi
Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
Cheer
Ans as expected, Please reward -
How to find the Datasources for the given table names ?
Hi All,
I have an urgent requirement where I ned to find the names of BW Datasources, created for the given table names.
Both the tables and Datasources are in BW system only. I can see the table in SE11 but I am unable to find its associated Datasources in the 'Where Used List'.
Is there any method ?
Will assign points to satisfactory answers.
Regards,
SrinivasHi,
Check this thread on how to find the DS.
I have the field name, please help me find the data source.
Once you identify your DS you find which all Data targets are fed by trying to see the " Show data flow" in RSA1 for this data source.
Hope this helps.
Thanks,
JituK
Edited by: Jitu Krishna on Apr 30, 2008 11:52 AM -
How to find out the plants and storage location for a given company code
hi
How to find out the plants and storage location for a given company codeHi
Check for Assignem,ent of Plant & compnay code in OX18
& for Combination of Plant & Storage location in OX09
The total org structure can be viewed in EC01 - Click on Structure -> navigation
& Continue, Click on the Compnay code & the wole structure can be viewed
Thanks & Regards
Kishore -
How to determine most recent date from the date column of internal table
Dear friends
would you like to tell me. how i determine the most recently changed record by looking at date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and time to determine which record is most recently changed...
here the scenario is.
id idnumber chdate chtime
1 123456 20060606 135312
2 123456 20060606 135900
3 123456 20060606 132300
4 123457 20060606 140000
5 123457 20060606 142500
in the above scenario i must keep in my mind that the most recently changed record is identical to its idnumber i can say that:
the record should be fetched this way
id idnumber chdate chtime
3 123456 20060606 132300
5 123457 20060606 142500
because here the id 3 is the most recently changed in the idnumber 123456
where id 5 is the most recently changed in the idnumber 123457
please help me to determin how i am supposed to carry out this task any suggestion, code will be great help of mine.
regards
NaimAfter testing my suggestion above, I realized that it doesn't work because the delete adjacent actually will keep the first one and delete the rest. I'm working with Srinivas's code a bit now, I think it is almost what you want. I am under the impression that you dont' want to HIGHest date/time, but just the last record of the sequence, if this is the case, then this code will help. Here we will assign an index to each record per the idnumber, that way we can sort it and get the lastest record.
report zrich_0001.
types: begin of itab_type,
id type i,
idnumber type i,
chdate like sy-datum,
chtime like sy-uzeit.
types: end of itab_type.
types: begin of itab_type2,
id type i,
idnumber type i,
index type i,
chdate like sy-datum,
chtime like sy-uzeit.
types: end of itab_type2.
data: itab type table of itab_type with header line,
itab2 type table of itab_type2 with header line,
prev_rec type itab_type.
data: v_id type i.
start-of-selection.
itab-id = 1.
itab-idnumber = 123456.
itab-chdate = '20060606'.
itab-chtime = '135312'.
append itab. clear itab.
itab-id = 2.
itab-idnumber = 123456.
itab-chdate = '20060606'.
itab-chtime = '135900'.
append itab. clear itab.
itab-id = 3.
itab-idnumber = 123456.
itab-chdate = '20060606'.
itab-chtime = '142500'.
append itab. clear itab.
itab-id = 4.
itab-idnumber = 123457.
itab-chdate = '20060606'.
itab-chtime = '140000'.
append itab. clear itab.
itab-id = 5.
itab-idnumber = 123457.
itab-chdate = '20060606'.
itab-chtime = '120000'.
append itab.
clear itab.
<b> data: counter type i.
* Assign an index to each row per idnumber
loop at itab.
on change of itab-idnumber.
if sy-tabix > 1.
clear counter.
endif.
endon.
clear itab2.
move-corresponding itab to itab2.
counter = counter + 1.
itab2-index = counter.
append itab2.
endloop.
* Sort it and get rid of older records.
sort itab2 by idnumber ascending
index descending.
delete adjacent duplicates from itab2 comparing idnumber.</b>
read table itab2 with key idnumber = '123456'.
write:/ itab2-chdate, itab2-chtime.
read table itab2 with key idnumber = '123457'.
write:/ itab2-chdate, itab2-chtime.
Regards,
Rich Heilman -
How to find what transaction an user was running for a given period
hi
could anybody tel me
how to find what transaction a particular user was running for a given period
in the past.............Hi,
U need to findout the list of Tcode excuted by SAP user
1) Tcode: ST03N
2) Select Expert Mode option
(there u find Server Host name & Today)
If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
3)Now u need to select the option of DAY,WEEK etc.
Now u can find in two ways
1) Transaction profile (Standard / EarlyWatch)
2) User (user profile)
If u select the Transaction profile
Under these u find the option of Aggregation----application/package/tranasation etc.
I hope these will help u to findout.
Regards
ASR -
How do I change which application is the (default) for a given file type?
For .pdf files, I have set the application behaviour to "Always Ask", because sometimes I want to open the pdf, sometimes I want to save it. So far so good.
Now, when I want to open the .pdf, I have added an application to the dropdown list, so now I have "Adobe Reader 9 (default)" and "okular".
The problem is this: I *never* open using Adobe Reader. I always want to use okular, but Adobe Reader always appears first on the list, as it is the 'default'. This means I always have to click on the dropdown and select "okular", i.e. an extra step every time I want to open a pdf.
How do I change which application is the default?Yes, I know that. That was the first sentence of my question, but it is not the problem I have.
I want to change which application is the (default) for a given file type, and this cannot be done from the settings. -
How to determine the time duration of each job for a particular report
Hi guys,
I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
enlightened fellas :).
I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
I could not find any utility in ABAP which can do this.
Can any of you please help me?
Thanks a lot !
Hasso.
Edited by: Hasso14 on Apr 28, 2011 3:06 PMExaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
Edited by: Hasso14 on Apr 28, 2011 9:03 PM -
How to Get Free Update OS 10.8.3 for Macbook Air MD223
I Bought new macbook air MD223, with OS 10.7.5.
Why i dont get free update to OS 10.8.3?Welcome to the Apple Support Communities
If you have just bought your MacBook Air, you may be eligible to upgrade to OS X Mountain Lion for free > http://www.apple.com/osx/uptodate
You aren't seeing the OS X 10.8.3 update because you have OS X Lion, and that update is paid if you have OS X Lion installed -
How to determine the system color and set them for my app?
Hi,
I'd like to set the colors of my application to the system's colors. Especially the backgrounds of my JPanels, JButtons and so on should look like in the operating system. If you change the systems color scheme, my application looks really wierd with it's grey canvas an components and the border and menu of the window is displayed in the system's colors.
any idea??
koemThe UIManager only seems to have control over
awt-controls. All swing controls are not listed, when
you try this:
UIDefaults defaults =
UIManager.getLookAndFeelDefaults();
for(Iterator i = defaults.keySet().iterator();
ator(); i.hasNext();)
String name = (String)i.next();
System.out.println(name);
}It would be nice to have it set globally somewhere in
the program.
koemActually, the truth is quite the opposite, the UIManager only has control over swing components.
There are many ways you can set these globally. You can sublcass your own look and feel, use the system look and feel, call UIDefaults.put() etc.
Graeme -
How to popup form according to query by CFL for user defined tables?
Hi Experts!
Please write a simple code for adding CFL in UDO and popup the window according to query. suppose i want to execute query
"select code,name from [@WITM]". I want to add CFL in edittext which is on UDO. how can we add CFL in that Edittext by code.
Thanking You
vishwajit kumarHi Vishwajit,
Please response to your previous posting or close it first. Whatever the answer working or not, you need reply.
Thanks,
Gordon -
How to list column names and data types for a given table using SQL
I remember that it is possible to use a select statement to list the column names and data types of databaase tables but forgot how its done. Please help.
You can select what you need from DBA_TAB_COLUMNS (or ALL_TAB_COLUMNS or USER_TAB_COLUMNS).
-
Just new to this and unable to find answers
My solution
Public Function GetTableColumnNames() As Boolean
Form1.ListBox1.Items.Clear()
_MDFFileName = String.Format("{0}.mdf", _DatabaseName)
_sqlConnectionString = String.Format("Data Source=(LocalDB)\v11.0;AttachDBFileName={1};Initial Catalog={0};Integrated Security=True;", _DatabaseName, Path.Combine(_DatabaseDirectory, _MDFFileName))
Dim cn As New SqlConnection(_sqlConnectionString)
'put the table name in brackets in case it has spaces in it
Dim SQLString As String = "SELECT * FROM [" & _TableName & "]"
Try
cn.Open()
Dim cmd As New SqlCommand(SQLString, cn)
Dim rdr As SqlDataReader =
cmd.ExecuteReader(CommandBehavior.KeyInfo)
Dim tbl As DataTable = rdr.GetSchemaTable
'This shows all of the information you can access about each column.
For Each col As DataColumn In tbl.Columns
Form1.ListBox1.Items.Add(col.ColumnName)
Debug.Print("col name = " & col.ColumnName & ", type = " & col.DataType.ToString)
Next
'Get each column.
For Each row As DataRow In tbl.Rows
Form1.ListBox1.Items.Add(row("ColumnName"))
Next
rdr.Close()
Catch
MessageBox.Show("Error opening the connection to the database.")
Finally
cn.Close()
End Try
Return _Success
End Function -
How do I generate a list of keyboard shortcuts for any given application
I want to generate a list of keyboard shortcuts for all of the applications I have on my Mac. I want the list to be a simple text (or rtf) file that I can edit and organize. (By edit, I don't mean change the shortcuts, only the report of them.)
I was using Key Cue, but it does not let me save the list to a text file.
I want this for several purposes. One is to have a easy to reference list of shortcuts to learn. Another is to find unused key combinations that I can use for my own keyboard shortcuts that I create with DefaultKeyBinding.dict.
Note: The program doesn't have to an OS X app. A program that runs from a shell without a GUI is plenty adequate.
If there is a way to read the keyboard commands from a plist list or other such file, and any of you know the format for these or where I can find them, I can write a Perl script myself to do it.Well, the info is stored in...
/Users/YourUserName/Library/Preferences/com.apple.universalaccess.plist
PlistPro has a way to convert it to ASCII, but you'll srtill have work to do, as...
{enabled = 1; key = 20; modifier = 1179648; sybmolichotkey = 28; },
{enabled = 1; key = 20; modifier = 1441792; sybmolichotkey = 29; },
{enabled = 1; key = 21; modifier = 1179648; sybmolichotkey = 30; },
{enabled = 1; key = 21; modifier = 1441792; sybmolichotkey = 31; },
{enabled = 0; key = 28; modifier = 1572864; sybmolichotkey = 15; },
{enabled = 0; key = 27; modifier = 1572864; sybmolichotkey = 19; },
{enabled = 0; key = 24; modifier = 1572864; sybmolichotkey = 17; },
{enabled = 0; key = 47; modifier = 1835008; sybmolichotkey = 25; },
{enabled = 0; key = 43; modifier = 1835008; sybmolichotkey = 26; },
{enabled = 0; key = 28; modifier = 1835008; sybmolichotkey = 21; },
{enabled = 0; key = 96; modifier = 1048576; sybmolichotkey = 59; },
{enabled = 1; key = 122; modifier = 262144; sybmolichotkey = 12; },
{enabled = 0; key = 120; modifier = 262144; sybmolichotkey = 7; },
{enabled = 0; key = 99; modifier = 262144; sybmolichotkey = 8; },
{enabled = 0; key = 118; modifier = 262144; sybmolichotkey = 9; },
{enabled = 0; key = 96; modifier = 262144; sybmolichotkey = 10; },
{enabled = 0; key = 97; modifier = 262144; sybmolichotkey = 11; },
{enabled = 1; key = 50; modifier = 1048576; sybmolichotkey = 27; },
{enabled = 1; key = 98; modifier = 262144; sybmolichotkey = 13; },
{enabled = 1; key = 50; modifier = 1572864; sybmolichotkey = 51; },
{enabled = 1; key = 100; modifier = 262144; sybmolichotkey = 57; },
{enabled = 1; key = 17; modifier = 1572864; sybmolichotkey = 50; },
{enabled = 1; key = 2; modifier = 1572864; sybmolichotkey = 52; },
{enabled = 0; key = 105; modifier = 0; sybmolichotkey = 32; },
{enabled = 0; key = 109; modifier = 0; sybmolichotkey = 33; },
{enabled = 0; key = 103; modifier = 0; sybmolichotkey = 36; },
{enabled = 0; key = 109; modifier = 0; sybmolichotkey = 62; },
{enabled = 0; key = 49; modifier = 1048576; sybmolichotkey = 60; },
{enabled = 0; key = 49; modifier = 1572864; sybmolichotkey = 61; },
{enabled = 1; key = 2; modifier = 1310720; sybmolichotkey = 70; },
{enabled = 1; key = 49; modifier = 1048576; sybmolichotkey = 64; },
{enabled = 1; key = 49; modifier = 1572864; sybmolichotkey = 65; },
{enabled = 0; key = 53; modifier = 1048576; sybmolichotkey = 73; },
{enabled = 1; key = 107; modifier = 0; sybmolichotkey = 53; },
{enabled = 1; key = 113; modifier = 0; sybmolichotkey = 54; } -
How to findout DS for a given table name!
Dear Members,
I am trying to find the datasource for the given customized table!....and it's not easy to find!!!
I kindly request you to share some inputs if any possibilites to find.
Many thanks in advance.
Best Regards,
KSHi Raj,
As you said it's a customized table it will be difficult to find the standard data source, better to create a generic data source.
Can you post ur requirement and what is the customized table n the fields in the table.
If its not a new development system you can make use of the table RSOSFIELDMAP-Mapping Between OLTP Source Fields and InfoObjects to get the data source names where that particular field is being used.
or else if its not used in any of the data source in your system then you can search in SDN or google to find out the data source.
If there is not data source related to your respective table then u can go for creation of Generic data source.
ROOSOURCE Header Table for SAP BW DataSources (SAP Source System/BW System)
Regards
KP
Edited by: prashanthk on Apr 1, 2011 12:30 PM
Maybe you are looking for
-
Itunes store not working under itunes 10.6
Is something up with the store this evening? When I go into iTunes on my win 7 laptop the store is sometimes taking a long time to show up. Just says in big letters 'iTunes store'. Eventually it loads in after a couple mins. Seems intermittent issue.
-
Error in setDataVariable in Java Embedding
Hi All, I am trying to write a simple java embedding---- Here is the code. try{ String firstName = ((oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable","payload","/client:JavaEmbeddingBpelProcessRequest/client
-
Stateless EJB Webservices vs Endpoint.publish() API for a production system
Hello, I am currently designing an SOA JEE application using JAX-WS Webservices for the synchronous calls and JMS (MDB) for asynchronous access. It is packaged in a EAR containing one EJB module (no WAR), so I decided first to publish the Webservices
-
yesterday I purchased a new ipod classic to replace one that had worn out. The price was $179. I wonder if I am eligible for the extended warranty for $59. Can't seem to navigate through the apple support option to get answer. Anyone know?
-
Excuse me, in this month apple have promotion or not? if not in this month, what's month?