Mentioning the index in the select query?
Hi All,
I want to write a query on AUFM table having where condition for AUFNR field. This table has 2 secondary indexes.
1st one on {MATNR,CHARG,WERKS, BWART,BUDAT}
and 2nd one on
I want to specify 2nd index in my select query . How can I mention that in select query?
rgds,
Madhuri
When you make use of AUFNR only in ur select query then automatically secondary index pertaining to that would be invoked.
Similar Messages
-
To lock the output of a SELECT query
Hi,
I want to lock the output of a SELECT query to some transaction.
I have wriiten it as follows , the output of the query is a single row;
SELECT empname
FROM employees
where empid = 100
FOR UPDATE;
Specifying only FOR UPDATE is proper or do i need to specify some more clause ??
Thanks.bscalzo wrote:
You can also specify the columns to lock if you like:
select x, y, z from aaa where x = 1 for update of x, y;
But the locking is still currently only done at the row level - but who knows what the future might offer. May not hurt to have the columns named for thay day when the syntax and engine sync up :)It might be worth to amend that specifying the columns is already particularly relevant if you select from multiple tables/views in order to specify which rows of which table/view to lock.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
What is the wrong with my select query
HI All,
TYPES: BEGIN OF t_equi,
equnr TYPE equi-equnr,
aedat TYPE equi-aedat,
matnr TYPE equi-matnr,
sernr TYPE equi-sernr,
kunde TYPE equi-kunde,
zzreg_date TYPE equi-zzreg_date,
zzin_indic TYPE equi-zzin_indic,
zzinvoice_num TYPE equi-zzinvoice_num,
zzinvoice_date TYPE equi-zzinvoice_date,
kund1 TYPE equz-kund1,
END OF t_equi,
DATA: it_equi TYPE TABLE OF t_equi,
SELECT equnr
aedat
matnr
sernr
kunde "Ship to
zzreg_date
zzin_indic
zzinvoice_num
zzinvoice_date
kund1 "Sold to
INTO TABLE it_equi
FROM equi AS a
INNER JOIN equz AS b
ON a~equnr = b~equnr
WHERE a~equnr IN s_equnr AND
* aedat GE gv_rdate AND
a~matnr IN s_matnr AND
a~sernr IN s_sernr AND
a~kunde IN r_shpbr_kunde AND
a~zzin_indic IN s_indic AND
b~datbi EQ c_datbi AND
b~kund1 IN r_sldbr_kund1 .
what is the wrong with this select query.. ?
its giving me error "The column name "EQUNR" is unclear ."
ThanksHi ,
write tablename or alias in select also
SELECT a~equnr and check.
Regards -
Regarding dynamically assigning the where clause to select query
hi,
Please send the code regarding how to dynamically assign the where clause to select query.
thanks in advanceSELECT <fileds>
INTO TABLE itab
FROM dbase
WHERE condition. -
Primary index and secondary index in a select query
Hii,
How to use a primary or secondary index in a select query? How does this indexes actually work?
Moderator message: please search for available information/documentation.
Edited by: Thomas Zloch on Jan 21, 2012 8:38 PMrajan please just google or search SDN. there are large number of post for this..
to give you a head start: for using a particular index in the select query a %_HINTS ORACLE 'INDEX clause is added -
How to delete the index for the business object BUS0033
Hi to all experts,
I'm applying note 1349496 the error here is no records with F4 help for the funds center .
solution from the note
Implement the attached program corrections. Then, in the transaction, delete the index for the business object BUS0033, reactivate it, and start the indexing in the indexing mode "Full". The system then displays the data correctly in the F4 search help.
how to do the second part i have already applied the note .any help
-
Help to search for a string value and return the index in the arraylist
Hello,
I just start java programming for the last three weeks and I cannot find a solution for this problem. I have the following List with string and integer value as shown below:
List<Empl> list= new ArrayList<Empl>();
list.add(new Empl(1,"Jim", "Balu",88);
list.add(new Empl(3,"Bob", "Howards",2);
list.add(new Empl(2,"Chris", "Hup",8);
I have no problem of sorting this arraylist either by firstname or lastname. However, I cannot think of a way to search for a firstname or lastname and returing the whole row. I do not want to use index since I am asking user to enter the name to search. Here is my code to search for an empl based on index.
System.out.print("Please enter index to search or (q)uit: ");
String ans = sc.next();
System.out.println();
int ians = Integer(ans);
if (ans.equalsIgnoreCase("q"))
choice = "n";
else
System.out.println("index " + list.get(ians)); //this will print out the whole row based on the index
Since the user will never seen the contents of the arraylist, is there a way that I can search by string last/first name and will get the index location in int if the result is met?
Please advice and thank you.
Bob.user11191663 wrote:
Since the user will never seen the contents of the arraylist, is there a way that I can search by string last/first name and will get the index location in int if the result is met?Another possibility is to set up an ArrayList for each thing you want to search on and then every time you add an employee, add the piece of data you want as well, viz:
Empl e = new Empl(1,"Jim", "Balu",88);
list.add(e);
firstNames.add(e.firstName());As long as you always add them in the same order, the indexes will match, so you could do something like
ians = firstNames.indexOf(nameToFind);to return the index of the name, if it's there (if not, it will return -1).
I wouldn't recommend this as standard practise, but it should be OK for the level you're at.
NOTE: indexOf() returns the index of the FIRST matching item. You may want to think about what you want to do if there are more than 1.
Winston -
How to get the index of the word at current cursor position in the word?
Dear All
I am implementing a spell checker of my native language in Word. Whenever I run spell checker it start from the first word. How can I make it to start from the current cursor position? How can I get the index of the word at the current cursor position?
Thanks in advance.
Dharam Veer Sharmahi Dharam Veer Sharma,
Thanks for sharing the solultion with us.
It is helpful for others who have the same issue. And if you have any Office developing issue, please feel free to open a new thread.
Have a nice day.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I need help with event structure.
I am trying to feed the index of the array, the index number can vary from 0 to 7.
Based on the logic ouput of a comparison, the index buffer should increment
or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
(My event code doesn't execute when there is an event at its input /comparator changes its boolean state.
Anyone coded on similar lines? Any ideas appreciated.
Thanks in advance!You don't need an Event Structure, a simple State Machine would be more appropriate.
There are many examples of State Machines within this forum.
RayR -
How to get the index of the error record when uploaded using standard LSMW
Hi Experts,
When uploading data using lsmw standard batch input method which creates an error session if any errors,how can we able to find the index of the error record
eg: If 3rd record in input file is incorrect then error session is getting created with the error and index as 1.But I want to know that 3rd record in my input file is incorrect.
Please help me out.Srinivas,
In global data, i've written like this.
TYPES: BEGIN OF TYPE_ERROR,
INDEX TYPE I,
END OF TYPE_ERROR.
DATA: GT_ERROR TYPE TABLE OF TYPE_ERROR,
GS_ERROR TYPE TYPE_ERROR,
GV_TOTAL_COUNT TYPE I, GV_INDEX TYPE I,
GV_STRING TYPE STRING,
GV_FILE TYPE STRING VALUE '/usr/sap/interfaces/LSMW/Asseterror
In Begin of transaction,
GV_TOTAL_COUNT = GV_TOTAL_COUNT + 1.
In End of processing,
OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC = 0.
CLEAR GS_ERROR.
LOOP AT GT_ERROR INTO GS_ERROR.
CONCATENATE 'INDEX OF THE ERROR RECORD IS:' GS_ERROR INTO GV_STRING.
TRANSFER GV_STRING TO GV_FILE.
CLEAR: GV_STRING, GS_ERROR.
ENDLOOP.
ENDIF.
How and where will I be assigning error count and append it to the internal table.
Please help me out. -
Is there a way to remove the index from the XML output?
Hi,
It is easy to remove the index from the WebHelp output.
We also want to remove it from the XML output.
How do I do that?
Thanks,
Rakefet@Jeff: In the Single Source Layouts recipe box is a layout for XML. Although, I'm really not sure why folks would use it, other than to possibly export the project data to another system of some sort.
@Rakefet: One thought is to try creating a new blank Index. Then choose the empty Index when you use XML Output.
Cheers... Rick -
Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.
I have dropped and recreated a fact table to refresh the data as the table is having identity columns. So not able to directly insert data. After that cube is throwing above error.
Please suggest.Hi Md,
It hard to analyse the issue base on the limited information, Are there any error message on the log? Under C:\Program Files\Microsoft SQL Server\MSAS11.\OLAP\Log (this could be different for your server), there are 3 log files that are generated:
msmdrrv.log
FlightRecorderCurrent.trc
FightRecorderBack.trc
The msmdrrv.log simply points to the other two logs. There might be some detail information for this error. Please provide us the detail information about it, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
Get the index of the current line in use
Dear All,
Well how can i get the index of the current line in use?
this the code I am using :
Dim i As Integer
Set oBatchForm = SBO_Application.Forms.GetForm(Form_Id, 1)
Set oMainMatrix = oBatchForm.Items.Item(Matrix_Id).Specific
For i = 1 To oMainMatrix.VisualRowCount
If oMainMatrix.IsRowSelected(i) = True Then
GB_SelRow = i
Exit For
End If
Next
Exit Sub
This code is not working when there is a line in the document type texte.
please advice.Hi Mary,
this is code in C#.NET which is working fine, try to do same in your code:
for(int irow=1; irow<=oMatrix.RowCount; irow++)
if(oMatrix.IsRowSelected(irow))
SelectRow = irow;
break;
Hope it helps. -
Getting the index of the button pressed in an array of buttons
Hi,
I have an array of buttons.
JButton buttons[];
buttons = new JButton[18];
for(int idx = 0; idx<buttons.length; idx++)
buttons[idx] = new JButton("changing button name");
buttons[idx].addActionListener(this);
locationButtonGrid.add(buttons[idx]);
locationButtonGrid.validate();
I need to know the index of the button pressed. I can't work from the string that is to be sent to the actionListener as this is going to be coming from a database and changing all the time. The idea behind it is that I am narrowing a list of entries down in a database by dividing it into 18 different sections, then dividing that section into 18 different sections and so on.
I need to know which of the 18 buttons was pressed. Is this possible?
Please let it be so!
Cheers,
elmickoTry this (my code is in bold):
JButton buttons[];
buttons = new JButton[18];
for(int idx = 0; idx<buttons.length; idx++)
buttons[idx] = new JButton("changing button name");
buttons[idx].addActionListener(this);
buttons[idx].setID( String.valueOf( idx ) );
locationButtonGrid.add(buttons[idx]);
locationButtonGrid.validate();
In the listener (assuming event is evt):
buttons[ Integer.parseInt(evt.getSource().getID()) ]
or
int idx = Integer.parseInt(evt.getSource().getID());
buttons[idx]
finally, if you want to modify the button when you get the event, you can just call the JButton methods by casting the source to a JButton and working from there. -
How to get the index of the minimize point
Need to get the index of the minimize point, marked as red cycle in the attached word file.
It is a collected data from different sample devices, so the curve may change a bit each time. But the overall profile is the same, just 2 main peaks.
I tried to detect the Y difference to see when the difference values change from negative to positive.
But, there are noise as tiny peak when zoom in, shown in word file. Then tried to use median filter to make it smooth. (Maybe better method should be used.)
But there are still some bigger regional peak. Any suggestion?
Is there any labview function or better algorithm can make it. Many thanks for your help.
Solved!
Go to Solution.
Attachments:
Curve shots(zoom in).doc 294 KB
Sample Data 1.vi 22 KB
Sample Data 2.vi 16 KBA trick I often use is to sample the data with a much higher speed than needed. Then I apply some simple averaging methods or and median filter. After that I downsample the signal to a adequate rate by averaging x samples. This have been a saver for me more than once. How successful it is depends of noise character type. It just a hint as it may not be applicable in your application
Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Maybe you are looking for
-
in the previous Mozilla version i used to leave some web sites opened and when i start working again my Mozilla showed the web pages i was working with in that occasion, i have looked in the options menu but there is no way, perhaps it was an add-on
-
IPad 4 video camera is zoomed in, how to unzoom?
The photo feature seams to be fine but when I switch to video mode it seems that it is zoomed in. I cant figure out how to unzoom this, is it a bug or is it really how it is supposed to look? It doesn't look good... Thanks for the help
-
Hi, I have an idoc with no 32945925 which is in green with status 70 but this idoc is edited and a new idoc 33010450 has been generated but this idoc is in yellow with status 69. How far I can assure that idoc 33010450 has been successfully pro
-
Adobe Form - Problem with Cyrillic texts on zebra printers (ZPL)
Hello, we have problems with an adobe form. We try to print this adobe form on a zebra printer with the device type "AZPL203". In this adobe form we have to print the material description in german and russian language. When we print out the adobe fo
-
Windows Integrity Level for Application set at startup
Hi, Yesterday I found a problem in my application that it had not have the same integrity level as Outlook. Therefore someone from microsoft adviced me to look at the integrity level and make them both the same. I managed to find a CommandPrompt comm