How to fetch all the records from ztable
Hi
My program is outbound program.
According to the requirement i have to fetch all the records from ztable which are not tranmitted before to the third party and once the records are extracted and written to output file they will be marked as 'X' in the "status" field of that ztable for the next days run.
How to fetch the records.Please suggest me.
Thanks,
Neelima
HI,
Fetch all the records whose status is equal to 'X' as whatever data is sent to third party system is marked as 'X' in status field of table after sending.
You need to first fetch the data into internal table using the select statement where status EQ space. You get the data which is not yet transmitted to third part. And later in the program after trasmitting the data to third party modify the Records in the DB table which are transmitted with Staus eq 'X'.
Similar Messages
-
Hello everybody,
I am currently working on SQL Developer for the couple of weeks. I have specific need to check, how much time one query take to fetch all the records. Currently it can fetch only 50 records and when scroll then next 50 records and so on.
Can anybody tell me, how to set this to fetch full records
Regards,
Martand M JoshiMartand,
There's no setting to fetch all records. You wouldn't like SQL Developer to fetch for minutes on big tables anyway.
If, for 1 specific table, you want to fetch all records, you can do Control-End in the results pane to go to the last record. You could time the fetching time yourself, but that will vary on the network speed and congestion, the program (SQL*Plus will be quicker than SQL Dev because it's more simple), etc.
Now, what I think you really want here, is getting the execution time. If you really want to analyze the query's performance, you'd have to use the explain plan, autotrace and tkprof (see the manual for tuning and performance).
To make us life easier, the makers of SQL Developer included support of the explain plan, and as of v1.1, autotrace!
I'm sure you've got enough to work things out from here...
Regards,
K. -
How can i get all the records from three tables(not common records)
Hi
I have four base tables at R/3-Side. And i need to extract them from R/3-Side.
And i dont have any standard extractor for these tables .
If i create a 'View' on top of these tables. Then it will give only commom records among the three tables.
But i want all the records from three base tables (not only common).
So how can i get the all records from three tables. please let me know
kumarYou can create separate 3 datasources for three tables and extract data to BW. There you can implement business login to build relation between this data.
-
How to get all the values from the dropdown menu
How to get all the values from the dropdown menu
I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
How do I get number of item is selection dropdown?
How do I extract a ?name? for each value, one by one?
How do I change a selection by referring to particular index of the item in a dropdown menu?
Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
Message was edited by: testtestThe findElement method allows various attributes to be used to search. Take the following two examples for the element below:
<Select Name=ProdType ID=testProd>
</Select>
I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
If I want to search by id I could do the following:
Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
You can use the FindElement to grab links, text boxes, etc.
The next example grabs from a link on a page
Home
Set x = RSWApp.om.FindElement("Home","A","innerText")
I hope this helps clear it up. -
Trying to retrieve all the records from the file on desktop
HI All
I have one particular problem. I was given a text file which as 7000 records with length 512 each in a continues string. I Changed begining of each record with comma in that text and saved it in .csv , when I try to upload the file into my program's internal table.
It is still giving one record. I used
itab_EXTRACT1 declared as
DATA: begin of itab_extract OCCURS 0,
extract1(512) type c,
end of itab_extract.
call method cl_gui_frontend_services => gui_upload
exporting
filename = Xfile
filetype = 'ASC'
has_field_separator = 'X'
changing
data_tab = itab_EXTRACT1
exceptions
others = 17.
Is there a way how to retrieve all the records into the internal table.
Thanks
RaviHi Ravi,
I don't know if this is the correct solution, but I think it will work.
Declare your internal table (itab_extract) with the maximum length which your file will occupy.
Create another internal table (itab) with field (text) length 512.
Populate the internal table itab_extract using GUI_UPLOAD.
Then write this code
l_index = 1.
itab-text = itab_extract-extract1+0(512).
append itab.
do.
n = ( l_index * 512 ) + 1.
itab-text = itab_extract-extract1+n(512).
append itab.
if ( itab-text is initial ).
exit.
endif.
enddo.
Let me know if I miss anything. -
How to list all the rows from the table VBAK
Friends ,
How to list all the rows from the table VBAK.select query and the output list is appreciated.Hi,
IF you want to select all the rows for VBAK-
Write-
Data:itab type table of VBAK,
wa like line of itab.
SELECT * FROM VBAK into table itab.
Itab is the internal table with type VBAK.
Loop at itab into wa.
Write: wa-field1,
endloop. -
Periodic Alert-How to send all the records returned from the SQL in a mail?
Hello all,
I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
For Example: My SQL query lists all the users created on current date.
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
Thanks & Regards
chakooHi Chakoo,
If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
Example:
Create Package xx_pac
Create public Procedure P1
begin
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
end;
(Create private Procedure P2
begin
---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
end;
(Create public Procedure P3
begin
---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
---call the procedure P2. (When called you must provide the correct to, from address)
end;
end;
Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
Regards
Arun Rathod -
How to update all the record for a particular column in a table based on search criteria.
Hi All,
I am new to ADF. I have a requirement, where i have to perform mass update on a table.
Scenario:
Ex: I have a dept manual search region. where i search with deptId: 20. I get 20 records in my table. now i have another region where i have a inputchoice list which contains all the columns names that exists in dept table. Beside that i have a input text box and an update button
Now user, first searches with dept id:20 and clicks on search button, where it shows 20 record in the table. He then select a column from input choicelist(ex: ManagerId), then enters new value in the input box(ex: abc) then clicks on update button.
Now i want, all the records in the ManagerId column with dept id:20 to be updated with the new value "abc"
Can anyone help me with the code.
Thanks in advance..Hi,
If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
Then you can follow something like explained in this post:
ADF Tutorial: How to apply bulk actions to a view object rows
The only difference is that you will need to create a method like this:
public void updateAttribute(String attribute, Integer value){
RowSetIterator iter = createRowSetIterator(null);
while (iter.hasNext()){
Row row = iter.next();
row.setAttribute(attribute, value);
Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
Regards -
How to select all the colomns_names from a table, with their datatypes ..
hi :)
i would like to know, how to select in SQL all the columns names from a table with their datatypes so that i get something like this :
Table 1 : table_name
the column ID has the Datatype NUMBER
the column name has the Datatype Varchar2
Table 2 : table_name
the column check has the Datatype NUMBER
the column air has the Datatype Varchar2
and that has to be for all the tables that i own ! ..
P. S : i m trying to do this with java, so it s would be enough if you just tell me how to select all the tables_names with all their colums_names and with all their datatypes ! ..
thank you :)
i ve heard it can be done with USER_TABLES .. but i have no idea how :( ..
Edited by: user8865125 on 17.05.2011 12:22Hi,
The data dictionary view USER_TAB_COLUMNS has one row for every column in every table in your schema. The columns TABLE_NAME, COLUMN_NAME and DATA_TYPE have all the information you need.
Another data dictionary view, USER_TABLES, may be useful, too. It has one row pre table. -
How to fetch all the portal groups into dropdown through webdynpro Java App
Hello All,
I have a requirement where I have to fetch all the groups available in user administrator in portal into a dropdown, so that the admin can select the group from the dropdown and after that when he executes a button u201CGet Detailsu201D he must be able to get the list of users who has been assigned that group .
I need to achieve this through WebDynpro Java.
Any pointers or documents on this is very very helpful.
Thanks,
Manasa.
Edited by: Manasa Boyapati on Sep 12, 2011 7:25 AMHi,
Can you try using the below code ?
IUser uid = UMFactory.getUserFactory().getUserByLogonID(Userid);
Iterator groups = uid.getParentGroups(false);
while (groups.hasNext())
String str_grpname = (String)groups.next();
IGroup Group = UMFactory.getGroupFactory().getGroup(str_grpname);
ary_groups.add(Group.getUniqueName());
Hope you can achieve you results by tweeking this..
Regards,
Vijay. -
I need to find out how to transfer all my music from my original IPOD nano to my new IPOD nano. I want to keep both and not all of my music was purchased on ITUNES. Please help!
Your music should be in your iTunes library, that is how it gets synced to the iPod. If that music is not present in the iTunes library, you will need to get a 3rd party software for the computer to get the music off the original iPod and then move it to the iTunes library to be able to sync it to the new iPod. You can see some additional information in this tip supplied by a fellow user. Syncing to a "New" Computer or replacing a "crashed" Hard Drive
-
How to fetch all the contact fields using Office365 REST API
When I request for Contacts using webservices URL, Office365 returns only some specific fields (even though contact record has lot more fields). Is there any way so that I can fetch all the fields in contact record?
Currently the REST APIs are limited to the fields you see now. We're constantly working to add more features though, so that might come in the future.
-
How to insert all the records using below loop
I am iterating value from hash map and store the values in database.
Below loop structure, the values from hashmap are inserted fine.
But inside while(rs.next()),first record from db only inserted for all the records
while(itr.next()){
Integer key=(Integer)iterator.next();
String Value=(String) orderNumberMap.get(key);
while(rs.next()){
String firstName=rs.getString("fname");
String lastName=rs.getString("lname");
insert into tbl values('"+key+"','"+Value+"','"+fname+"','"+lname+"');
RegardsThanks for ur reply. The below is a scenario
I am having 3 records in a resultset
firstname= shadik
lastname frank
firstname= felix
lastname sha
firstname= williams
lastname= scoot
To insert above records with key, values retrieved from hashmap as follows
Number 1
empid 101
Number 2
empid 102
Number 3
empid 103
I need to insert above values in a table and expect a output as follows..
Number empid firstname lastname
1 101 shadik frank
2 102 felix sha
3 103 williams scoot.
But output will be displayed as follows
Number empid firstname lastname
1 101 shadik frank
2 102 shadik frank
3 103 shadik frank.
Values from HashMap are inserted fine. But retriving from resultset shows only first records for all the rows. -
How to get all the values from a HashMap? thanks
hi
can anyone tell me how to get all the keys and their values contained in a HashMap? thanksthanks to u all for ur response, i gues if i need to get both keys and values, i need to use keySet() to get a set of keys first and then using each key to get value. is there any other faster way to get both of them (key and value)? thanks again
-
How to get all the Record Groups?
in the form i had created a record group. let us say they are:
RG_APPR_TYPE_CDE_LIST
RG_DRV_APPR_TYPE_CDE_LIST
RG_PROJ_MODE_CDE_LIST
RG_DRV_PROJ_MODE_CDE_LIST
RG_PROJ_STATUS_CDE_LIST
RG_DRV_PROJ_STATUS_CDE_LIST
RG_ORG_SUB_TYPE_CDE_LIST
RG_DRV_ORG_SUB_TYPE_CDE_LIST
RG_REGION_NUM_LIST
RG_DRV_REGION_NUM_LISTwhen the form hits on the clear button it invoke the CLEAR_FORM. i want to get all the record groups dynmically so i won't have to explicitly call the
Delete_Group('RG_APPR_TYPE_CDE_LIST');
Delete_Group('RG_DRV_APPR_TYPE_CDE_LIST');
Delete_Group('RG_PROJ_MODE_CDE_LIST');
...one by one. is there any other workaround? i appreciate any help on this. thanks.is there any other workaroundNo.
Maybe you are looking for
-
Connecting a 2nd ipod to a computer
How can my partner and I both register our ipod nanos to the same computer?
-
Query working in access but not in program
Hello all, This is a problem I've faced many a times, specially with a table with large no of fields. I write a query in my programm, and it throws invalid argument exception.I copy the query string from the command prompt and paste it in access quer
-
Change of Local Currency of a subsidiary
Hi Expets, We are carrying out change of local currency in the begining of the financial year. Master data changes has been done and also currency translation method is assigned in Balance carryforward task. ( I have done local currency channge in th
-
Photos rotate when putting into mail
I recently have noticed a strange thing that when I drag photos from iphoto, the image is attached in the rotated position. I can't pin down when this started, but I noticed it tonight with at least 3 or 4 pics. I closed that email, started a new one
-
FCP 7 & Snow Leopard Test Render
Ok, I have a Mac Pro Quad Xeon. I did a test render of a sequence before the Upgrade to Snow Leopard which took 24 minutes. (I applied a 3d filter.) Installed Snow Leopard. Booted the Mac Pro with the "6 + 4" option. Activity Monitor shows many proce