Selection from recordgroup
i have recordgroup and i want to select from this object
i want to know how to select from it
and how i can to update the values int his record group
Hello,
Look at the following built-ins in the Forms Builder online help (ctrl+H)
Get_Group_Row_Count()
Get_Group_Record_Number()
Get_Group_Char_Cell()
Get_Group_Date_Cell()
Get_Group_Number_Cell()
Francois
Similar Messages
-
Selection from T-list giving error 'Fied is protected against update'
hii all,,
i have manged to make charater based search, for this
i am accepting characters 'as user types-in' in a text item 'vchar' .
As the user types in characters,the t-list item (vlist) gets populated with the matching characters
typed by the user .
i am testing it on on a non-db block (jmaster) fields..
Once i make any selection from the tlist,i want the field 'vchar' to hold the value/label selected from the
t-list (vlist).
the problem is when i click enter and make selection from the t-list
populated elements, and navigate to next field 'tcode'
'vchar' remains blank and the error... 'Fied is protected against update' gets displayed on the status bar.
here are my triggers ;
PRE-FORM at form-level
SET_ITEM_PROPERTY('VLIST',DISPLAYED,PROPERTY_FALSE);
WHEN-TIMER-EXPIRED at form-level
If GET_APPLICATION_PROPERTY(TIMER_NAME) = 'COUNT_TIMER' Then
SET_ITEM_PROPERTY('VLIST',DISPLAYED,PROPERTY_TRUE);
:GLOBAL.M_SRCH := :VCHAR;
declare
v_char varchar2(200) := 'select VLIST,VLIST
from JRNY_MASTER
WHERE VLIST like '||'''%'||:GLOBAL.M_SRCH||'%''';
v_rg_id recordgroup;
v_err NUMBER:= 0;
BEGIN
v_rg_id := create_group_from_query('recgrp1',v_char);
v_err:= populate_group(v_rg_id);
clear_list('JMASTER.VLIST');
populate_list('JMASTER.VLIST',v_rg_id);
DELETE_GROUP(v_rg_id);
END;
Synchronize;
End if ;
WHEN-NEW-ITEM-INSTANCE for field 'vchar'
DECLARE
timer_id Timer;
BEGIN
:GLOBAL.M_SRCH := :VCHAR;
SET_ITEM_PROPERTY('VLIST',DISPLAYED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('VLIST',ENABLED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('VLIST',UPDATE_ALLOWED,PROPERTY_TRUE);
timer_id := CREATE_TIMER('COUNT_TIMER', 500, REPEAT);
END;
POST-TEXT-ITEM for field 'vchar'
:vchar := :JMASTER.VLIST;
Delete_Timer('COUNT_TIMER');
SET_ITEM_PROPERTY('VLIST',DISPLAYED,PROPERTY_FALSE);
WHEN-VALIDATE-ITEM for tlist item 'vlist'
:vchar := :VLIST;Please if some1 have understood my problem, so kindly reply me
what went wrong in my logic...
TYAndreas Weiden wrote:
For the VLISt-item, you should set also INSERT_ALLOWED to true, as it is a new record.
also for the VLIST-item, you should Mouse-Navigable to false.yes it worked this time...Thanks Andreas...
but one thing..i also would like to add a new value in 'vchar',
in case, if i don't find a value typed in 'vchar' in 'vlist'.
when i try to enter new value in 'vchar' and navigate to the next item,
so based on my above codes..especially the 1 in POST-TEXT-ITEM
where i am assigning ;
:vchar := :JMASTER.VLIST;
'vchar' becomes NULL, as soon as i leave the 'vchar' and branch to the next item.
please suggest..whats should be changed...
TY once again...
Edited by: user10967485 on 25-Oct-2010 07:13
Edited by: user10967485 on 25-Oct-2010 11:29 -
Selection from a Maintenance View
Hi,
I have to fetch data from a view, unfotunately that view is a mainteance view. Is there any other way to select/fetch data from that view in my report program ?
Regards,
Bharath Mohan BHi
U cannot access the data from maintanence view.
Only projection and database view can be used in ABAP code.
If u want to access the Data from more the one table , Create the DATABASE VIEW and use this view in ur program.
For example : UR Database view name is Ztest
in ur program
table Ztest.
select * from Ztest ***************
*******************UR Business Logic
<b>Reward if useful</b> -
URGENT : select from table statement in ABAP OO
Hi all,
I am an absolute ABAP OO beginner and need some quick help from an expert. How can I make a selection from an existing table (eg MARA) in an BADI which is programmed according to ABAP OO principles.
In the old ABAP school you could make a TABLES statement at the beginning and the do a SELECT¨* FROM but this does not work in ABAP OO.
How should i define such simple selections from existing tables. Anyone ?
Thanks a lot,
Eric Hassenberg*define internal table
data: i_mara like standard table of mara.
*select to this table
select * from mara into table i_mara.
Also you have to define work area for this internal table in order to use it.
data:w_mara like line of i_mara. -
Select from v$sql_plan in a procedure
Hi
I''m attempting to save plans (from V$SQL_PLAN) into a table using a procedure in schema APPS, but keep getting missing table error,
PL/SQL: ORA-00942: table or view does not existI then granted an explicit SELECT to APPS on the V$SQL_PLAN table from a schema with
a DBA role, but still get the same error when compiling the procedure.
SQL> create table gl_imp_post_plans as ( select * from v$sql_plan where rownum < 1);
Table created.
SQL> select count(*) from v$sql_plan;
COUNT(*)
13506
SQL> create or replace procedure Ins_Plan_from_Dictionary as
2
3 begin
4 insert into GL_Imp_Post_Plans
5 select sqo.*
6 from v$sql_plan sqo
7 where (sqo.sql_id) not in (select distinct gipi.SQL_ID
8 from GL_Imp_Post_Plans gipi)
9 and (sqo.sql_id) in (select distinct
10 sqi.sql_id
11 from v$sql_plan sqi
12 where sqi.object_owner = 'APPS'
13 and sqi.object_name in ('GL_BALANCES','GL_DAILY_BALANCES','GL_JE_LINES') );
14 commit;
15
16
17 exception
18 when others then
19 rollback;
20 -- sysao_util.Message ('O', 'Error ' || sqlerrm);
21
22 end Ins_Plan_from_Dictionary;
23 /
Warning: Procedure created with compilation errors.
SQL> show err
Errors for PROCEDURE INS_PLAN_FROM_DICTIONARY:
LINE/COL ERROR
4/5 PL/SQL: SQL Statement ignored
11/40 PL/SQL: ORA-00942: table or view does not exist
SQL>
SQL> l 11
11* from v$sql_plan sqiThe same error occurs when I attempt to select from GV$SQL_PLAN or DBA_HIST_SQL_PLAN.
Could anybody suggest how I can persist the rows into a table using a procedure?
thanksthanks, yes this works:
create or replace procedure Ins_Plan_from_Dictionary as
begin
execute immediate 'begin
insert into GL_Imp_Post_Plans
select sqo.*
from v$sql_plan sqo
where (sqo.sql_id) not in (select distinct gipi.SQL_ID
from GL_Imp_Post_Plans gipi)
and (sqo.sql_id) in (select distinct
sqi.sql_id
from v$sql_plan sqi
where sqi.object_owner = ''APPS''
and sqi.object_name in (''GL_BALANCES'',''GL_DAILY_BALANCES'',''GL_JE_LINES'') );
commit;
end;';
exception
when others then
rollback;
-- sysao_util.Message ('O', 'Error ' || sqlerrm);
end Ins_Plan_from_Dictionary;
/ -
Can not select from v$mttr_target_advice
Hello
When i try to select from the view it never comes back and is a problem for the mmon process. Anyone have any ideas.Could you pleasse post the error message and the version you are using?
Best Regards
Krystian Zieja / mob -
Can not select from my own MV. Please help.
Hello Gurus,
I have created a MV with following clauses
CREATE or REPLACE MATERIALIZED VIEW "OWNER_NAME1"."MV_Name1"
BUILD IMMEDIATE
USING INDEX
REFRESH COMPLETE
AS
SELECT column1, column2 .... from table1,table2
where .....
I have logged in to DB with the 'owner_name1' schema itself which is the owner of the MV.
But, when I try to select from the above MV. It gives error "Ora-00942 table or view does not exist"
I can see the same under 'user_objects' view as an object of owner_name1 schema.
Could you please help me in understanding where I have gone wrong?
DB - Oracle 9i on unix platform.
Thanks in advance!
Abhijit.Oh! I missed to mention the exact steps followed by me which created error for me,
viz.
1) I have 2 Database and their users as follows
bq. i) DB1 in local server - 'localUser'
bq. ii) DB2 in remote server - 'RemoteUser1' and 'RemoteUser2'
2) 'RemoteUser2' user in DB2 has 'select' privilage on table 'RemoteTable1' of 'RemoteUser1' ( both are remote DB's users ! )
i.e. select * from RemoteUser1.RemoteTable1; --works okay when logged into RemoteUser2. no synonyms are created hence using schema_name.table_name convention.
3) Logged in to 'localUser' in DB1.
4) Created a DB link 'local_to_remote2' in 'localUser' schema ( in DB1) to 'RemoteUser2' schema (in DB2)
i.e.
create database link local_to_remote2 connect to RemoteUser2 identified by password using 'connection_string';
DBLink was created successfully.
5) I could select from the tables of 'RemoteUser2' using DB Link. (by logging in to 'localUser')
i.e. select * from RemoteUser1.RemoteTable1@local_to_remote2 ; --- gives me expected output. no issues!
6) Now, I created below MV in 'localUser' ( no need to tell in 'DB1' )
the exact syntax I used is as follows,
CREATE or REPLACE MATERIALIZED VIEW "localUser"."MV_Name1"
BUILD IMMEDIATE
USING INDEX
REFRESH COMPLETE
AS
SELECT column1, column2
From RemoteUser1.RemoteTable1@local_to_remote2
where condition1
and condition2;
The MV was created successfully, and I could see it as an 'Valid' object of 'localUser' schema.
i.e. select * from user_objects where object_name ='MV_NAME1' and status ='VALID' --- tells that above create MV is an object of owner 'localUser'
But, when I try to select from the said MV. it gives me error "Ora-00942 table or view does not exist"
i.e. select * from MV_Name1; ---- neither this
select * from localUser.MV_Name1; ---- nor this works :(
Even when I try to drop the same MV it gives me same error. :(
Could you please suggest me anything so that I will be able to select from MY OWN MV ?
Please help Gurus. -
Can not select from SAPTOOLS.DB6PMCF
We use third-party tool to monitor our SAP systems. We receive an error
Can not select from SAPTOOLS.DB6PMCF
when we monitor DB2 database.
Function DB6PMCF is registered in SAPSID schema. Can I register it also in SAPTOOLS schema? What is a correct procedure for this?Hi Milan,
I think you have to issue the following command for the affected user.
db2 "grant execute on function saptools.db6pmcf to <user>"
regards, Javier Rocha -
Can't select from view even though it appears in ALL_VIEWS
Oracle's documentation states that all_views "describes the views accessible to the user":
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2117.htm
DBA_OBJECTS appears in the ALL_VIEWS, yet I get a "table or view does not exist" error when I try to select from it.
Any thoughts on why this is happening?
SQL> SELECT COUNT(1)
FROM all_views
WHERE owner = 'SYS'
AND view_name = 'DBA_OBJECTS'
COUNT(1)
1
1 row selected.
SQL> SELECT *
FROM sys.dba_objects
SELECT *
FROM sys.dba_objects
Error at line 2
ORA-00942: table or view does not existThat's not standard behaviour:
DBA >create user u1 identified by u1;
Utente creato.
DBA >grant connect to u1;
Concessione riuscita.
DBA >conn u1/u1
Connesso.
DBA >select count(0) from all_views;
COUNT(0)
856
DBA >select view_name from all_views
2 where view_name like 'DBA%'
3 or view_name like 'V$%';
VIEW_NAME
DBA_PROCEDURES
DBA_PUBLISHED_COLUMNS
V$OBJECT_USAGE
DBA >select 'select count(*) from '||owner||'.'||view_name||';'
2 from all_views
3 where view_name like 'DBA%'
4 or view_name like 'V$%';
'SELECTCOUNT(*)FROM'||OWNER||'.'||VIEW_NAME||';'
select count(*) from SYS.DBA_PROCEDURES;
select count(*) from SYS.DBA_PUBLISHED_COLUMNS;
select count(*) from SYS.V$OBJECT_USAGE;
DBA >select count(*) from SYS.DBA_PROCEDURES;
COUNT(*)
6793
DBA >select count(*) from SYS.DBA_PUBLISHED_COLUMNS;
COUNT(*)
0
DBA >select count(*) from SYS.V$OBJECT_USAGE;
COUNT(*)
0All the DBA* or V$ visible are also accessible, DBA_OBJECTS is not present in ALL_VIEWS.
There's something strange on your user's priviledges...
Max
[My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/02/query-gerarchiche/] -
Can I Select from table skipping extents linked with lost datafiles?
Hi~,
I need your help to recover my database.
I'm using oracle 9.2.0.8 at Fedora 3 with no-archive mode.
and I don't have any backup.
Last night, I experenced hard disk failure.
I tried OS-level recovery, but I lost some datafiles of tablespace.
anyway, I wanted to recover my database without data of lost datafiles.
so, I issued "alter database datafile offline drop" and
start oracle instance.
But, datafiles were not removed from dba_data_files view and
extents linked with lost datafiles were not removed from dba_extents view!
Selecting query of some table containing extents linked with lost data files,
I got "ORA-00376: file xxx cannot be read at this time" message.
So, my question is that..
HOW CAN I SELECT FROM THAT TABLE WITHOUT SCANNING EXTENTS LINKED WITH LOST DATA FILES?
Thanks.Hi,
Without being in archivelog and without backup, one can't do any sort of recovery. That's why backups and archivelog are so so important.
The offline data file command never does actually drop the datafile. It merely indicates to the control file that now the said tablespace will also be dropped. This won't update any view that the files are not supposed to be used or shown to you anymore.
This is what documentation says about the recovery of the database in the NoARch mode,
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007937
You do need a backup in order to get those tables being read. Oracle doesn't have any feature which can offline/skip the missing extents for you and let you read the data without them.
HTH
Aman.... -
Select from .. as of - using archived redo logs - 10g
Hi,
I was under the impression I could issue a "Select from .. as of" statement back in time if I have the archived redo logs.
I've been searching for a while and cant find an answer.
My undo_management=AUTO, database is 10.2.0.1, the retention is the default of 900 seconds as I've never changed it.
I want to query a table as of 24 hours ago so I have all the archived redo logs from the last 48 hours in the correct directory
When is issue the following query
select * from supplier_codes AS OF TIMESTAMP
TO_TIMESTAMP('2009-08-11 10:01:00', 'YYYY-MM-DD HH24:MI:SS')
I get a snapshot to old ORA-01555 error. I guess that is because my retention is only 900 seconds but I thought the database should query the archive redo logs or have I got that totally wrong?!
My undo tablespace is set to AUTOEXTEND ON and MAXSIZE UNLIMITED so there should be no space issues
Any help would be greatly appreciated!
Thanks
RobertIf you want to go back 24 hours, you need to undo the changes...
See e.g. the app dev guide - fundamentals, chapter on Flashback features: [doc search|http://www.oracle.com/pls/db102/ranked?word=flashback&remark=federated_search]. -
How to select from list of values?
Dear All,
I am using XML publisher for word, where I need to select a value from a list of values, for example I have hotel code like TTAG,TOBBR,TTAG,TOTM now I need
to select hotel code and the corrosponding data should be display on word after
running the RTF. Tell me, how can I achive the same?
hare krishna
AlokThanks prety much,I am using XML to upload data from there into RTF templete. I've already insert table through load data option, but my problem is, how could I select a value from a list of values and based on that value selected from the list, it should displaydata corrosping to it. For example, I have few codes like TTAG, AMAG, TOTOM and if I select TOTM, it should display the complete address of that hotel named TOTM. If above given scenario is not at all possible, then Is there any alternate method to achieve this?
hare krishna
Alok -
How to select from a stored procedure?
Lets say I have a simple stored procedures
Create Procedure stp_test
As
Begin
Select * from tbl1
End
Go
I would like to be able to do this in SSMS (actually, I want to do this from ADODB)
Select top 10 * from ...stp_test... Order By rowID
It looks like I want to use OpenQuery on the stored Procedure, but I have not been able to do it correctly. How can I query my stored procedure?
Rich PIt looks like I want to use OpenQuery on the stored Procedure, but I have not been able to do it correctly. How can I query my stored procedure?
If you want to use the OPENQUERY method , use the following.. follow this link...
http://stackoverflow.com/questions/209383/select-columns-from-result-set-of-stored-procedure
Please mark as answer, if this has helped you solve the issue.
Good Luck :) visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles. -
I am building an internal table and displaying it as search help using F4IF_INT_TABLE_VALUE_REQUEST. How can I tell what line was selected from the search help? Only one field is filled with the selection, but there are several other fields attached to this that I need in my program - but I can't tell which line was selected, and the one field is not enough information to use to get the record from the internal table.
Hi,
RETURN_TAB would have the selected values.
FIELD_TAB will have the hit list fields.
DYNPFLD_MAPPING will have the Assignment of the screen fields to the internal table.
Regards, -
How to get the select * from emp table output on the console using java
public class software {
* @param args
static final String JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";
static final String DATABASE_URL = "jdbc:oracle:abc";
private static Connection connection;
private static Statement statement;
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
System.out.println("-------THIS IS THE Class.forNameJDBC_DRIVER");
Class.forName(JDBC_DRIVER);
System.out.println("THIS IS THE Class.forNameJDBC_DRIVER");
connection = DriverManager.getConnection(DATABASE_URL, "abc",
"abc");
System.out.println("THIS IS THE connection abc ,abc");
statement = connection.createStatement();
//Query to find the values in the EMP table.
ResultSet resultSet = statement.executeQuery("SELECT * from EMP");
if(resultSet.next()){
System.out.println("THESE ARE THE VALUES IN EMP TABLE:"+resultSet); /// How can i get all the values record wise on the console ??????
resultSet.close();
catch (ClassNotFoundException classNotFound) {
System.out.println("Driver not Found"+classNotFound.getMessage());
} catch (SQLException sqlException) {
System.out.println("SQL Exception - bad sql");
System.out.println(sqlException.getMessage());
}1sai
Please assign the dukes here and in your previous threads.
See [http://wikis.sun.com/display/SunForums/Duke+Stars+Program+-+How+it+Works]
You are currently the all time career leader in un-awarded dukes, with including this thread 75 unawarded dukes for questions you marked as answered.
It's even worse when you look and see that you have awarded many dukes as well. So you do know how to do it. You're just too lazy and rude to be bothered.
Don't be a lazy wank.
Maybe you are looking for
-
Hello experts, I m developing the report on landed cost, I want one field namely 'Freight' included the service tax , for which data is in BSEG, for freight amount, material, po num and its service tax and transaction is there.But the problem is ag
-
How do I set up a template that works for multiple folder levels
I want to segregate groupings of pages on my site because they focus on specific content areas. The template that I created works fine for pages in the root but if I try to create a template-based page in a sub-folder then I get all kinds of "not fou
-
How can I send and receive a message as an SMS?
I just got an iPhone 4S, an it's completely updated. I can send iMessages just fine when I am connected to wifi at home. I can't send an SMS at all, Cellular data or wifi. It shows that it's sent as an SMS(it's green and it says it's sent), but the r
-
Hello experts, I have installed the variable : Current Year From Start, Range to Current date(Sap Exit) with tech name 0I_IPMD7. How do i know which time infoObject it is applicable to? i want to use this in the year to date sales calculation. But ca
-
Why Google browser bar not allowed in Firefox 5
Why cannot i Insatall Google task bar