Query data read program
i am a functional developer and i am just trying to get the fields in structure FAGL_S_RFSSLD00_LIST to use in this query. Is it possible.
If yes what is the way to do it.
I have the program generated like this when i created the infoset
REPORT RSAQDVP_TEMPLATE .
declarations
(insert your declarations in this section)
data:
FAGL_S_RFSSLD00_LIST type FAGL_S_RFSSLD00_LIST ,
it_data type standard table of FAGL_S_RFSSLD00_LIST .
field-symbols: <struc> type FAGL_S_RFSSLD00_LIST .
selection screen statements
(define your selection-screen here)
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
read data into IT_DATA
(select your data here into internal table IT_DATA)
output of the data
(this section can be left unchanged)
loop at it_data assigning <struc>.
move-corresponding <struc> to FAGL_S_RFSSLD00_LIST .
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
I just need to know what i should fill in the query head and body if I need all the fields in the structure to be selected for the Query
Hello Krishna,
The structure FAGL_S_RFSSLD00_LIST should be available in data dictionary (SE11).
REPORT RSAQDVP_TEMPLATE .
declarations
(insert your declarations in this section)
TABLES: FAGL_S_RFSSLD00_LIST "<----
inserted.
DATA: it_data type standard table of FAGL_S_RFSSLD00_LIST .
field-symbols: <struc> type FAGL_S_RFSSLD00_LIST .
selection screen statements
(define your selection-screen here)
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
read data into IT_DATA
(select your data here into internal table IT_DATA)
example:
SELECT <your list of fields>
FROM <your table name>
INTO TABLE IT_DATA
WHERE <Your filter criteria based on selection screen>.
output of the data
(this section can be left unchanged)
loop at it_data assigning <struc>.
move-corresponding <struc> to FAGL_S_RFSSLD00_LIST .
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
ENDLOOP. "<----
inserted
In SQ02 create the info sets with 'program' options. provide the program name and the
Structure name FAGL_S_RFSSLD00_LIST also in SQ02.
generate the infosets and in SQ01 create the query with the fields you want to display in the list .
Message was edited by:
Amarjit Singh
Similar Messages
-
Select query to read data from a view
Hi friends,
We have been using a query to read data from a custom view which used to work perfectly. Now the program sits at that select query forever. We are able to extract same data from se16. Not sure what could be the problem.
Thanks in advance.Dev
Have a look at the Table Index for the tables involved in the View... I think there is some change in the Indexes.. (Add / Remove / Change)
Thanks
Amol Lohade -
Help Required -- Can we use SQL Query to READ data from SAP MDM Tables
Hi All,
Please help.........
Can we use SQL Query to READ(No Creation/Updation/Deletion just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
Thanks in Advance
RegardsAll the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
BR,
Alok -
Use JDBC to query data for JSP Report
Hi all,
I met a trouble when use JDBC to query data,
it can show data in report builder, but get error when call from url for exxample: http://localhost:8889/reports/TestJDBCReport.jsp
found error message:
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source. REP-0069: Internal error JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
javax.servlet.jsp.JspException: rwlib-1: REP-4100: Failed to execute data source.
REP-0069: Internal error
JDBCPDS-62000:Invalid sign-on parameter P_JDBCPDS
anyone know pls help me
Many thanksAs a general rule, it's a good idea to separate the
presentation (JSP and HTML) from the business rules
(database access). I know you didn't do that on the
AS/400, you had display files and business logic in
the same program (at least, we certainly do in ours),
but it's a good policy to follow in the web world.
That means, don't put your database access code in
the JSP. Other than that, it depends on the data.
If you have simple data (e.g. customer's name and
d address) then a Java bean would suffice. If you
have complex data (e.g. customer's payment history)
then a bean still might suffice. You would use an
"include" if you had some data (static or dynamic)
that you wanted to appear in several different pages
in the same form.Thanks, I figured putting the code in the JSP was not the best way, but I wasn't sure about the other options. -
Trying to query data from a view - ORA-01882 and ORA-02063 Errors
Hey there,
I tried to query data from a view that was provided by a colleague. This view works fine and gives correct data using PL/SQL Developer or SQLPLUS, but in SQL Developer, I get the following error:
ORA-01882: Time zone region not found
ORA-02063: preceding line from SYSTOOLS
01882.00000 - "timezone region %s not found"
* Cause: Specified reason name was not found
* Action: Please contact Oracle Customer Support
Vendor Code 1882
Where comes this error message from?! SYSTOOLS is the database link.
Can't see an obvious reason for this error.
OS is Windows 2000 SP4, SQL Developer is v1.1.1.25 BUILD MAIN-25.14
Regards,
ThomasFrom Oracle Messages 'Cause and Action'
http://www.oracle.com/technology/products/designer/supporting_doc/des9i_90210/cmnhlp72/messages/ora_messages.htm
ORA-01882, 00000, "timezone region %s not found"
Cause: The specified region name was not found.
Action: Please contact Oracle Customer Support.
Maybe invalid region in NLS_LANG?
"select * from v$nls_parameters"
Starting this script in all developer program and compared result... -
Query data source type = procedure or from clause
1)I have a form where a block is based on a from clause. In the source name I entered a simple sql statement.
Isn't the items suppose to show without any other action or
WHAT ELSE DO I NEED TO DO IN ORDER TO SEE THE BLOCK ITEMS EQUIVALENT TO THE COLUMNS IN THE QUERY?
2) I have a form where a block is based on a procedure.
First I created a package in a program unit with the procedures query_procedure, insert_procedure, update_procedure, delete_procedure and lock_procedure.
Then I set the query data source name to the package query_procedure. The columns and arguments were automatically filled by Forms - they are fine as well.
Forms automatically created the block triggers insert-procedure,delete-procedure, update-procedure and lock-procedure.
Everything seems to be fine but when I run the form and execute the query I get frm 40505 - unable to perform query.
What am i doing wrong?
This is the package:
PACKAGE pkgdeptemp IS
type dept_emp is record (
empno number(4),
ename varchar2(10),
job varchar2(9),
hiredate date,
sal number(7,2),
deptno number(2),
dname varchar2(14));
success constant number :=0;
type dept_emp_ref is ref cursor return dept_emp;
type dept_emp_tab is table of dept_emp index by binary_integer;
procedure query_procedure (resultset in out dept_emp_ref, p_empno in number);
procedure lock_procedure (dmlset in out dept_emp_tab);
procedure insert_procedure (dmlset in out dept_emp_tab);
procedure update_procedure (dmlset in out dept_emp_tab);
procedure delete_procedure (dmlset in out dept_emp_tab);
END;
PACKAGE BODY pkgdeptemp IS
function get_success return number is
begin
return(success);
end;
procedure query_procedure (resultset in out dept_emp_ref, p_empno in number) is
begin
open resultset for
select e.empno, e.ename, e.job, e.hiredate, e.sal, e.deptno, d.dname
from emp e, dept d
where e.deptno = d.deptno
and e.empno = nvl(p_empno, e.empno);
end query_procedure;
procedure lock_procedure(dmlset in out dept_emp_tab) is
tempout number(4);
begin
for i in 1..dmlset.count loop
select empno
into tempout
from emp
where empno = dmlset(i).empno
for update;
end loop;
end lock_procedure;
procedure insert_procedure (dmlset in out dept_emp_tab) is
cursor c_dept (i binary_integer) is
select deptno
from dept
where deptno = dmlset(i).deptno;
tempout number(4);
begin
for i in 1..dmlset.count loop
open c_dept(i);
fetch c_dept into tempout;
if c_dept%notfound then
insert into dept(deptno,dname)
values(dmlset(i).deptno, dmlset(i).dname);
end if;
close c_dept;
insert into emp (empno,ename,job,hiredate,sal,deptno)
values (dmlset(i).empno, dmlset(i).ename, dmlset(i).job, dmlset(i).hiredate, dmlset(i).sal, dmlset(i).deptno);
end loop;
end insert_procedure;
procedure update_procedure (dmlset in out dept_emp_tab) is
cursor c_dept (i binary_integer) is
select deptno
from dept
where deptno = dmlset(i).deptno;
tempout number(4);
begin
for i in 1..dmlset.count loop
open c_dept(i);
fetch c_dept into tempout;
if c_dept%notfound then
insert into dept(deptno,dname)
values(dmlset(i).deptno, dmlset(i).dname);
else
update dept
set deptno=dmlset(i).deptno,
dname=dmlset(i).dname;
end if;
close c_dept;
update emp
set empno=dmlset(i).empno,
ename=dmlset(i).ename,
job=dmlset(i).job,
hiredate=dmlset(i).hiredate,
sal=dmlset(i).sal,
deptno=dmlset(i).deptno;
end loop;
end update_procedure;
procedure delete_procedure (dmlset in out dept_emp_tab) is
begin
for i in 1..dmlset.count loop
delete from emp where empno = dmlset(i).empno;
end loop;
end delete_procedure;
END;for ur q1:
create the text items manually in the layout editor or in the obj navigator then specify there properties manually in the the pallette.
database item = yes
column name = field name in ur select statement
for q2:
try running the form again and press F8 then if an error occur press F1 or shift F1 to show the error in ur code.
i suspect u forgot to specify a value for the in parameter the reason why u get an error that is specify the actual parameter for ur in argument then press F8.
enjoy! -
We have a legacy Forms and Reports application(~750 items combined). I suspect the applications were developed initially under 6i, but they work quite well under 10GR2, and is testing well under 11GR2 (which we plan on migrating to soon). We ran into an issue the other day for Data Query Blocks, and wanted your expert opinion on it.
Due to a change in business requirements, we recently had to increase the length of a database field (from 20 to 30). We went into Forms Developer, made the appropriate changes, and recompiled them all successfully. Everything *seems* to work fine, but we noticed we get failures on any item that tries to utilize that extra 10 characters. Apparently this is because the Query Data Block seems to use a cached/stale copy of the database field sizes, and still expects a size of 20! What we realized now is that we have to go into each of those forms, and REFRESH the Data Block (through the Data Block Wizard) for every one of them.
My question is this: is there anyway to force the Form to refresh those Query Data Blocks absent going into each one and REFRESHING it? We've tried compiling through Forms Developer, and through Batch Compiles, and nothing seems to get those cached copies to update. I'd really prefer to tackle this issue once and for all since we are prepping for migration testing. Frankly I suspect the table space was tweaked a good bit over the years since development (before I ever got here), and if they didn't REFRESH those Data Blocks properly, a great many of the Forms will be suffering this same cached/stale view problem.
Appreciate your thoughts,
DaveQ_Stephenson,
That's an excellent suggestion. I have seen vague hints and allegations of Forms manipulation using that method, but never felt comfortable with my overall knowledge(*) of Forms to look at it that deep. I think it's time to clear some space and dig into the topic for a better look.
Thank you,
Dave
(*) The majority of my programming background is in Java; it's only been recently that I've had to really dig deep into Forms. -
Query getting /crystal/ Program SYNTAX ERROR.
Hi All,
I connected to SAP BEX Query using MDX driver. when i execute query getting /crystal/ Program SYNTAX ERROR.
I imported these crystal transports R21900741,786,695,754,780 .
but got error for R71K900087 .
MY SAP BW system version is SAP BW701 SP10 , Please suggest.
Thanks,
JosephThanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
and it throws up the error
"The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
I have no idea why it is throwing up this errror.... -
Use evdre to query data from a SQL View
Hi all
I believe that it is possible to use evdre to query data from a SQL View. If this is possible then how does one go about setting it up in the evdre options (assuming that the view has already been created)?
Regards,
ByronByron, perhaps this is no longer supported, it might be worth opening up a case at service.sap.com on this. However, I did find the following on Page 11 of the "Usages and Considerations of EVDRE" pdf file. This doc is imbedded in the helpfile for BPC 7 SP5 (which was released in August of 2009, well after note 1315011 was last updated.
It looks like you are limited to one custom view per application, since you have to name the view in a parameter at the APPLICATION level. Go into BPC Administration, login to the application related to the custom view, choose "Set Application Parameters" and enter the name of the view to the Application Parameter called "EVDRE_QUERYVIEWNAME" If it is not listed, go ahead and create it at the bottom of the Application parameter screen.
Also: I interpreted the following info from Page 10 of the same doc:
In your EVDRE, set the following options:
QueryEngine: MANUAL
QueryType: enter either NEXJ OR TUPLE see below:
NEXJ - Use two-dimensional queries using the nonemptycrossjoin function
TUPLE - Use two-dimensional queries using tuples"
And I'm assuming you'd enter a Y for the following two parameters:
QueryViewName
"..to enforce the query engine to use a used-defined SQL view of the fact tables, when trying to read the values using SQL queries. This option is typically used in conjunction with the SQLOnly option (see below). "
Option SQLOnly
"..to enforce the query engine to only execute SQL queries, when reading data. This can be achieved using this option." -
Not able insert ,query data from forms
hi,
I am not able to insert data or query data from forms(10g devsuite).getting error frm-40505,frm 40508 .i am able to insert and select record from sql plus.the block ihave created is control block .it is connected to the table using the properties.
should i do anything to insert record.please helpthe block ihave created is control block .it is connected to the table using the properties.A Control Block, by definition, is a non-database block. This means the block is not directly connected to a table so you have to manually display data in the block and any DML you want to perform on data in this block you must do manually as well.
There are four database objects you can base your database block on; 1) a Table, 2) a View, 3) From Clause Query (basically an In-line View), and 4) a database stored procedure. I recommend you use one of these four methods rather than manually display your data.
Craig... -
Hi
I need help
My partner has set up multiple profiles on the iMac and has not done the sharing of files and software correctly. Therefore we have some programs that do not operate in all profiles. I want to go back to a single profile but need to be sure I am not going to lose any data or programs in the process.
Can any one give me a step by step guide - I am not mac savvy.
Thanks in advanceHello!
I recently just downloaded the 'Waze' app as a backup for my Garmin. I've read a few reviews that seem to rant and rave about how good the GPS app is. It is community driven and maps are constantly being updated by users. Plus it has a few other fun stuff in it (something similar to Gasbuddy where you can owe prices on the map). But like the person above me said, there is lots of useful free GPS apps in the App Store.
Oh and I may be wrong but I remember reading an article about Google being slower about updating its maps system--ie no turn by turn voice, which many people have had complaints about.
Happy Searching!
Ps - if you switch I wouldn't go to Blackberry. -
Query data from MS SQL db through Oracle ? By using JAVA ?
Hi folks,
I would like to sync our one table in oracle db with table in different system, stored in MS SQL database.
What would be the easiest option for connection from Oracle to MS SQL db to be able to query data from MS SQL through some Oracle package?
If possible, I would like to keep all "tricky steps" within Oracle database. I heard about option with Java, but so far we have no experience with java in Oracle.
Our database: Oracle 11g Database Standard Edition One
Many thanks,
TomasC:\Users\tomeo>dg4pwd HELIOS
ORACLE Gateway Password Utility
Constructing password file for Gateway SID HELIOS
For user account SYSTEM
OPW-00001: Unable to open password-file (RC=0)
C:\Users\tomeo> -
Firefox is no longer compatible with a screen reader programs why?
Firefox 4.0 is no longer compatible with screen reader programs such as zoom text. I'm a visually impaired user and have never had problems until now. I want to revert back to 3.5 because now 4.0 is useless to me. If it isn't broken don't fix it. Mozilla just made things worse for me. Thanks a lot.
Your screen reader is no longer compatible because it's author has not updated it for FF4
Credit Tony E
To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data. See https://support.mozilla.com/kb/Uninstalling+Firefox
You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use
your current bookmarks, passwords etc.
To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of
installed extensions, checking their compatibility, and reset toolbar customizations.
For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles -
How to know , that an index is used in query in the program
Hi All
I have found a SELECT query within a program , which needs to be tuned. I need to justify client of my change. He wants to know how many indexes are there used in the select , as well as which indexes are partially used and how we can optimize use of indexes,
I did an trace analysis of program using ST05, however I am not getting to know which index is used in this trace analysis.
I need help on these points from you all.
Thanks in Advance
AmolHi
After clicking DDIC information
I am getting 3 buttons on the top, and below I am getting
Overview of View WB2_V_MKPF_MSEG2
Obj. name WB2_V_MKPF_MSEG2
SQL Object WB2_V_MKPF_MSEG2
Table Type VIEW
Buffering Buffering not allowed
Short Text Data Selection from Material Documents (without WBGT)
Classification Other
Other
Trading Execution Workbench
Author SAP
Last Changed By Not Found
NametabRec.Length 2436 Byte
Last DB Analysis 00/00/0000
No. of records 0
All Table Indexes of View WB2_V_MKPF_MSEG2
Name Description Created by Unique
Indexes of MKPF
0 Primary key SAP X
BUD Index for posting date SAP
Y Fiscal Year, Posting date and Doc. number AJOSHI
Indexes of MSEG
0 Primary key SAP X
M Material documents for material SAP
R Material docs for reservation SAP
S Reversal documents for mat. document SAP
However from above I am not getting which index is being used or not. OR which is used fully or partially .. like that,
I need to know these details
Thanks in Advance
Amol -
Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i
Hi there -
I have one interesting requirement in Oracle Forms.
This is what I wanted to do.
1. Have a LOV and Go button on Form.
2. From LOV, I will select a pre-defined custom table and click Go.
3. Based on the selected custom table, I have to populate the Block (Tabular Format).
4. User should be able to do update, delete, insert on this block.
5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
This is what I have planned for this so far but I have some major questions before I can move on with this design:
1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
3. Perform insert, update, delete using PL/SQL package.
So far it looks okay.
Now my real question is,
Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
Also, I am not really sure whether user will be able to save these "folder" queries?
Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
For more info on that thread see this link...
Re: setUserCustomizable issue!
Thanks in advance for the help.Any suggestion anyone?
Maybe you are looking for
-
How do I backup my Helix Windows 8 install if I'm about to do some OS experimentation
For example I have two partitions now of my own, not counting all the hidden and special and weird Lenovo partitions. One is empty, and the main one has got Windows 8. I am about to do some weird OS surgery, by trying to install Linux and other OS on
-
When I try to google websites OR even try to access my email I will be taken to a notice which states "Server Not Found" with several explanations with a TRY AGAIN button at the bottom. When I hit the try again button I am immediately taken to the we
-
How to enable CallerID info in Windows 2008 fax server
I'm using Fax Server to auto email incoming faxes. Works fine. In the email is a line CALLERID: that is blank. I need the callerid. I have a faxmodem(USRobitics) and I can use Hyperterm to see the callerid info manually(so my phone line has the ser
-
Hi XIer, I am using RFC receiver to make a BAPI call, I used a BAPI wrapper due to this BAPI don't have a RETURN structure in the Export Tab which is XI expected. but after I made a wrapper, the same error occurs, just like I directly call the BAPI w
-
PCO 2.1 Error : there are multiple root elements Line 6, position 2
HI all, I am getting an error while adding Destination for Notification. On the Destination Tab, I am able to create MII System as Destination. And expanding the newly created Destination, i can see a child node 'Destination'. While clicking on this