How to give the list.tablename in from clause
Hi,
I am getting error invalid table name when I give list_item.tablename in from clause
ex :
q1:= 'select * from &p1_list.tablename';
return q1;
here p1_list is the list of schema values.
It worked fine when I give the type SQL Query. If I give the same thing in
SQL Query(PL/SQL function body returning SQL QUERY I am getting above error
Please help me.
Thanks,
Rekha
I have a LOV defined in a page which lists the schema names. My report query should use the selected schema , i.e. say the LOV item is named P5_ENVID, and the table name is emp then my sql query should be of the form,
select * from <P5_ENVID>.emp ;
Questions:
1. for Type "SQL Query", is it possible to use variables in the FROM clause?
2. I have tried :P5_ENVID.. , &P5_ENVID and v('P5_ENVID') , but they all return a parse error.
3. Do I have to use type PL/SQL funtion body returning sql query ?
4. if I have to do 3, then could you pls point me to appropriate documentation with the usage of it
Thanks
Similar Messages
-
How to get the list of materials from Sap r/3
Hi Experts,
I have one doubt, here iam implementing
HTTP TO RFC scenario.
My doubts are------
1. Should we create DT MT MI and all (OR) not
2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
3.Or the second thing is how to get the list of materials start with some alphabate.
Please reply me for each and every questions mentioned above. Please clarify me.
Helpful answers wil be rewarded.
Reagards
khannaHi Khanna,
<i> 1. Should we create DT MT MI and all (OR) not</i>
Yes U need to create for HTTP site...for RFC U need to import..
<i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
You create your own structres for Request and respoce.. and Map it with RFC..
<i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
I think it will come with acending order....
for more help go through this link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
regards,
Ansar. -
How to get the list of file from application server
Hi Expert.
I want to get the file list from dicrectory in application server
best regards.
AlexHi.
Yes, You are right, i can get the file list by AL11.
But i need get the list in ABAP program.
So i need a function modul to get the list. If you has some sample code, it should be very nice.
Best.
Alex -
How to get the list of words from the dictionary?
Hello,
Please confirm the possibility to get the list of words available from the InDesign's default dictionary for example: I'd like to have all the words available from the 'Russian' dictionary from InDesign.
Thanks,
PraveenThis should help:
http://helpx.adobe.com/indesign/kb/add_cs_dictionaries.html
when you find the file "AdobeHunspellPlugin.bundle", copy it to your desktop, change the extension to .zip and extract the contents. The Russian dictionary should be in the ru_RU folder (ru_RU.dic) -
Asking for the Import function of the old Bookmarks.
Profile is a folder which store all your personal data in a safe place
* https://support.mozilla.com/en-US/kb/Profiles
* here explain how to backup profile https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
* here explain how to restore it
https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?
Click the playlist in iTunes. Then go to File > Print ...
One of the options you will see to print is "CD Jewel Case Insert". That's just what you want! -
I have a requirement where I have to give the list of users who can access a specific computer define in AD.
I am new with PS.
Do you have a script to list users that can access a computer object of AD ?
I have executed the following script but it does not give me the access rights of who can access the computer 'computername'
How can i have this information. please help
Import-Module activedirectory
$computer=get-adcomputer "computername" -properties ntSecurityDescriptor
$omputer.ntsecurityDescriptor.Access | select-object -expandproperty IdentityReference | sort-object -uniqueI would say that, since the OP has so little info, there are no policies in use. It there were then this question would never be asked the way it is being asked.
I had a client call with a letter from their insurance company; an accountant with malpractice insurance. THey asked the same question inmuch the same way. "What computer can you users access?" The question should be more like
"Do you have a policy that restricts access to computers and do you audit for compliance?"
I have had other clients whose insurance asked the question in that way. It produces a better view of what should be happening and how to show compliance.
I recommend that companies being asked these questions by their legal departments or insurance companies should contract with a god computer security consultant to assist with answering these very tricky questions. Of course if it is just you boss's
curiosity then you may need to discuss his requirements with him in more depth.
¯\_(ツ)_/¯ -
How to delet the credit card details from apple id account
how to delet the credit card details from apple id account
On your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should be a payment link. If you are doing it on your phone then tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account - that should also give you a payments link on your account's page.
Changing payment info : Change or remove your payment information from your iTunes Store account (Apple ID)
If you don't get the 'none' option on the payment details screen : Why can’t I select None when I edit my Apple ID payment information? -
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?
Hi All,
We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.Hi,
Here you go..
1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
This step you get query reference sheet or column or query general UUID for next step.
4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
Hope this helps.
Please keep in mind, it might take more time depends on how many query elements you have in the system...
Comments added for better DB performance by: Arun Thangaraj -
How to find the list of material variant based on the characteristics value
Hi
We are creating materials variants for FERT Material Type in material master in MRP-3 view .There we configure the variant by attaching characteristics value
Now we want to have a report , which can give the list of material variants , if char value is given in selection
Can somebody guide me if there is standard report for this OR what is the linkage in Table , so that we can develop a report
rgds
SandeepI couldn't find a standard report to get the material variants based on characteristic values (the nearest I could find was CT12) but I wrote a report some time back here's the table join logic for the main select statement.
select a~matnr
e~atwrt
h~atwtb
into table i_tab
from MARC as a
inner join IBIN as b
on b~instance eq a~cuobj
inner join IBIB as c
on c~ibase eq b~ibase
inner join IBINVALUES as d
on d~in_recno eq b~in_recno
inner join IBSYMBOL as e
on e~symbol_id eq d~symbol_id
inner join CABN as f
on f~atinn eq e~atinn
inner join CAWN as g
on g~atinn eq e~atinn
and g~atwrt eq e~atwrt
inner join CAWNT as h
on h~atinn eq g~atinn
and h~atzhl eq g~atzhl
where a~matnr in s_matnr
and e~atinn in s_atinn
and e~atwrt in s_atwrt
and b~valto eq '99991231235959'. "This is important condition
I included bare minimum fields to suite your requirement needs you can add whatever other field you want . Though I tested the table join, I suggest you to test it again before writing your own ABAP program using SE16N. -
How to get the list of active devices in current wifi network?
Hi All,
I am going to a start a new Network based app. So please any one give me an idea on the below question.
How to get the list of active devices in current wifi network?Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks -
How to get the list of Quotations...???
Hi MM Gurus,
How to get the list of Used Quotations & Non Used Quotations.
i am not talking about Open quotation ,closed quotation..
if once i created PO through quotation it should be used quotation. i not created PO through quotation
it s should be Non used quotation. how to get this list through when we create PO through ME21N
document over view. is there any opetion in Dynamic selection or somthing ..???
Thanks in Advance..
Anthyodaya.Hi Shailesh,
Thanks for the mail...
but the problem is different. ...i wanted a list of used quotations and not used quotations saparate list.
because we have same vendor for same material different price .
so when we create PO we should use Quotation only one time.
poen RFQ and closed RFQ is different .i means RFQ not at maintained in ME47. not at received the price from vendor or not at enterd the price. ... so that is different..
if the non used quotation will display in ME21N document overview it should be very usefull...
Thanks in advance.
Anthyodaya. -
How to get the list of component?
How to get the list of component through java API in Adobe CQ5?
There are probably more than a few ways, but here is a little component .jsp code that uses the jcr query api to pull out all the components and list them on a page. If I know CQ, there might be a way to ask for a list of components another way though, maybe through another API, or possibly a .json url, I might remember reading something about that, somewhere, lol, but this at least gets you the list in a somewhat simple way.
Code Example:
<%@include file="/apps/psul/components/global.jsp"%>
<%@ page import="javax.jcr.*,
javax.jcr.query.*"
%>
<%
// Login to create an anonymous session on the default workspace
Session session = resourceResolver.adaptTo(Session.class);
//Declare a query for all the components in the system
String SQL = "select * from cq:Component";
//side note: if you want just the components in your site area, then make the query more like below...
// SQL = "select * from cq:Component where jcr:path like '/apps/yoursitename/%'";
QueryManager qm = session.getWorkspace().getQueryManager();
Query query = qm.createQuery(SQL, Query.SQL);
QueryResult result = query.execute();
NodeIterator nodes = result.getNodes();
while (nodes.hasNext()) {
Node node = (Node)nodes.next();
%>
<p><%=node.getName() %> (<b><%=node.getPath() %></b>)</p>
<% } %>
Maybe you are looking for
-
Voice memos don't sync properly
I'm very frustrated. I'm trying to sync voice memos from my wife's iPhone. iTunes simply refused to do so, no matter what I did. I synced. I unchecked and re-checked the "Include voice memos" checkbox. I deleted the voice memos playlist from iTunes a
-
I am trying to integrate a r/3 system with XI, can someone point me to possible data flow diagrams. What can be a possible scenario here...? Can someone also point me to the message flow within IR and ID for the above scenario.. Regards Ravi
-
Optimal use of SSD and Rotational Drives?
I have a brand new iMac with 2TB rotational drive and 256GB SSD. What is the best way to optimally use these in combination?
-
Post Collective Usage Decision
Hi ; I have a scenario where we have around 4000 open 09 Inspection lots where the Usage Decision has not been made and results have not been recorded (Setting in MIC is Required) but the stock posting hasbeen carried out . Want to post the Usage dec
-
Clear cache automatically using JavaScript in Linux
Hi, I created this Javascript to be executed when an iBot completes (BI Delivers-->Advanced -->Add Action-->Custom Script; and Type:JavaScript) I am able to create a Javascript (Purge.js) on Windows and Purge the Cache accordingly like this: var nqCm