Can substitution strings be used for table name references?

Hi,
I was wondering if it's possible to use substituion strings for table names in SQL queries. This would allow for me to edit all references to a table at one location. For instance, if a table name or dblink changed, I could edit the substitution string or application item to ensure all the queries reference the new table.
For example:
select * from &table1.
table1 would be the substitution string for the actual table name
I know this is possible if I used a pl/sql function returning a query, but I would much rather use a substition string in a SQL query.
Thanks in advance.
Brian

i think not
because how create the fields of * in this case
in the other because all is dynamic, i think that you obtain only an error

Similar Messages

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • Cannot use duplicate table name error in AMDP

    Hi Experts,
    I'm developing an application which has the following architecture
    SAP UI5->Gateway->ABAP Managed DB procedures(AMDP)->HANA SP(Stored Procedure)
    We are having a very peculiar problem where the gateway service works inconsistently for the same input data.
    i.e If I execute the same service n number of times, I get the results successfully for say n-3 times but the other 3 times I get a "RFC Error :Error while executing Database procedure"
    There is no change in the input data or DB table data during all the executions.
    Running the stored procedure stand alone in HANA studio works all the time.
    We tried executing the AMDP from SE24 and the same behavior occurred.
    When trouble shooting we found that the exception occurs inside the AMDP when the call db procedure statement is executed.
    Could you please advise what could be the possible reason for this any tuning parameter/unavailability of db connections?
    Or could you please suggest some other troubleshooting mechanism by which we can zero in on the cause?
    When I go in the debug mode I can see the exact error as
    cannot use duplicate table name:  [288] SAPXXX.ZCL_PLAN_MAINTENANCE=>GET_COMP_TYPE#stub#20140905055908: line 15 col 3 (at pos 492): cannot use duplicate table name exception:
    where ZCL_PLAN_MAINTENANCE=>GET_COMP_TYPE is the AMDP class and method. SAPXXXis the schema.

    I reported this to Adobe customer support on 11/29, and here is their response:
    Wednesday, December 5, 2007 12:51:27 PM PST
    Hello John,
    Thank you for contacting Adobe® Web Support for assistance with Adobe
    Photoshop Elements® 6.0.
    I understand that images are deleted if you accidentally try to move
    them to a folder that already includes a file of the same name.
    Thank you for bringing this to our attention. I was able to replicate
    this behavior as well. The best method to report errors of this nature
    is using the following form on our website:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    I will report this to the product team through my channels. You may want to submit this issue through the web form as it goes directly to the product development team.
    I hope this information helps to resolve your issue. If you require
    further assistance with this issue, please update your web case with
    complete details, including what steps you have applied and any error
    messages you are receiving.
    You may also call Technical Support at (800) 642-3623. We are available from 6:00 am to 5:00 pm Monday - Friday, Pacific Time.
    Kind regards,
    Alan C.
    Adobe Web Support

  • Import Data using Full Table Name

    Is there a way to run the import data wizard so when pulling data from a csv it generates an insert statement not only using the table name but using the Oracle Schema name -- ie fully qualified table name?

    Hi Nilanjan,
    I need help ASAP.
    About this dump-load task, how does it works?  Because I was checking out a package called Import SQL  and this one only imports data from a table, however this table has to be allocated within the database that is being used, and I right? Are these 2 related somehow?
    Does this task order BPC to find data from a SQL Table (allocated in a different server, different instance for SQL) and import it to SQL Fac2 table?
    Can you help me with a simple explanation what do I need to do to run this task?  The page help.sap.com  talks shows a section within DumpLoad Task Usage which is called  Importing Into SQL Server... 
    * Processing the Application using DumpLoad  -
    Importing into SQL
    You can use DumpLoad to process the application as a standalone procedure, or with data import, export, or clear.
    Prerequisites
    The DumpLoad task (OsoftTaskDumpLoad2008.dll) is registered with Microsoft SSIS. See Registering Custom Tasks.
    Procedure
    1.Open a package or create a new package in Microsoft SSIS on the Planning and Consolidation server.  i already did this for the DumpLoad task ... should I do this for the Import SQL task also ?
    2.Select the task and add it to the package.   WHAT DOES SELECT THE TASK  MEAN?
    3.Open the task, and choose  Data Management  None .
    4.Enter the application set, application, and user ID.
    Im getting confused, can you please provide more details about the whole procedure. Thanx in advance
    Velázquez

  • Oracle can not support upto 32 characters table name and field name ?

    hi
    oracle up limitation ?
    create table aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(a char);
    Error
    ORA-00972:identifier too long
    or
    create table a (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa char);
    Error
    ORA-00972:identifier too long
    Oracle can not support upto 32 characters table name and field name ?
    It is true?
    null

    Hello All
    It's been a year after those posts about the limit of identifiers in Oracle Database. Does anybody know what can be done to get rid of that primitive limit? We are developing using Application Servers, Java, generated Code and a very nice object model, in which we can't just use abreviations because of early database age memory shortcomings.
    We are currently using 8i in a very large organization. Is there any chance this version can be configured to allow larger identifiers? Is upgrading to 9i going to solve this problem? Is Oracle Databases really doomed forever because of a 20-year-ago limitation?
    Please, I do like Oracle Databases. I don't want to be flooded with quick answers like "just use 32 character identifiers". I would like to hear a serious solution. Is anybody there still locked in the 8.3 filename paradigm of MS/PC-DOS? Does anybody has to fit an entire Enterprise System in segmented 640Kb of memory? Does anybody has to use monochrome character mode interfaces? Of course not those in the mainstream.
    I also know that other hadrware and software products have lots os limitations. Take Windows 2000. Its command line has a limit of 255 characters! You can't have more than 4GB of memory in a PC! However, one can't expect one mistake to justify others.
    I wish I were very wrong in this respect, and all it should be necessary is to turn on some kind of configuration parameter in 8i to allow us to develop high quality code.
    Thanks for your attention.
    Please, feel free to contact me if you have a solution.
    [email protected]

  • How to pass parameter for table name in  form6i.

    Hi ,
    I am facing the problem to pass parameter for table name in form6i.
    If any solution please infirm me earliest to my mail id.
    ([email protected])
    example:
    begin
    select ename into :ename
    from :tab_name
    where empno =7788;
    end;
    It gives error as bad bind variable 'tab_name'
    *** where :ename and :tab_name are form fields
    Thanking you,
    Balasaheb

    object name not taken as table --> what do u mean by
    this?
    Please be more clear..
    Regards
    PriyaI have two block. First block I am displaying all the table using user_objects table. Another block I want display, user which table selected, corresponding table all the records.

  • Space Allocated and Space used for Table.

    Hi,
    Is there any way, we can find Space Allocated and Space used for Table wise.
    I know USER_TABLESPACES help use to find table space wise. But I would like to know, the space utilized by each table in the specific table space.

    Check this link from Tom Kyte about it.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:2092735390859556::::P11_QUESTION_ID:231414051079

  • Can FW CS3 be used for graphic for printing?

    I am very familiar with FW but I do not like Photoshop,
    however I have both I preffer to use FW. As I have seen on one
    presentation new FW CS3 has CMYK pallete so my question is: can FW
    CS3 be used for preparation of graphic for printing or what are the
    obstacles? After preparing images in FW I will use InDesign for
    text or maybe the text in FW is wector and maybe I could use FW
    including text and not to use INDEsign far small projects? Does
    anyone has any experience with this subject?
    Regards
    Martin

    qnnick wrote:
    > I am very familiar with FW but I do not like Photoshop,
    however I have both I
    > preffer to use FW. As I have seen on one presentation
    new FW CS3 has CMYK
    > pallete so my question is: can FW CS3 be used for
    preparation of graphic for
    > printing or what are the obstacles?
    Fireworks does not operate or export in CMYK color space. It
    was
    developed for screen images only, and operates and exports in
    RGB color
    space. It is not recommended that you use it in preparation
    of images
    for print. You mentioned that you don't like photoshop. You
    might like
    Illustrator better.
    Linda Rathgeber [PVII] *Adobe Community Expert-Fireworks*
    http://www.projectseven.com
    Fireworks Newsgroup:
    news://forums.projectseven.com/fireworks/
    CSS Newsgroup: news://forums.projectseven.com/css/
    http://www.adobe.com/communities/experts/

  • Can an iMac be used for WD My Book Live safepoints?

    I have a Western Digitial My Book Live network drive.  All Mac's and PC's can read/write without a problem.  I would like to create a safepoint (WD term for backup) on an iMac but can't seem to get past correctly discovering the devices on the network.  The MBL can 'see' the shares on the XP PC but nothing on the Mac's.  Unfortunately the XP PC is not suitable for backups.
    Can a Mac be used for MBL safepoints?  If so, how is that accomplished? 
    Yes, I've posted this same question the WD Support and WD Communities but no responses.  Most MBL Mac users posting on WD forums are using them for Time Machine.  I thought maybe someone on the Apple forums might have solved this problem.
    Thanks in advance for any help.
    Mike

    I am having the same issue.  Did you ever find an answer?  I see no one ever responded to you.  I have a WD cust service Tech support question submitted but no answer yet there either.  Thanks for any info you have.
    I get the error
    30000 - Unknown error. Retry your last operation. If the error persists, contact WD Support for assistance.
    (share_discover_9)
    when I choose the iMac as the location I would like to use.

  • Can a IDOC be used for data exchange from R/3 to CRM

    Hi All,
    First, can a IDOC be used for data exchange from R/3 to CRM
    I need to update few fields of SAP CRM Sales order with fields from SAP R/3 Work Order.
    To achive this can I use IDOC?
    Or do I update the R/3 sales order from R/3 Work order(using some interface or workflow), so that the sales order data flows from R/3 SO to CRM SO.
    Please respond immediately.
    Regards,
    Gopinath

    IDocs can be processed by the CRM system via XML/XIF adaptor. As this will be most probably a new interface that is not yet set up, it would be easier to change the orders in R/3 via an appropiate FM which should automatically generate a delta download BDoc.
    Even if they are not downloaded automatically a request download (defined via R3AR2 / 3 / 4) should take care of this.
    Hope this helps,
    Kai

  • Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Acrobat Distiller Server converts Postscript to PDF.

  • In addition to my iMac, I have a Power Mac G4 (10.4.11 Tiger) which of course is pre-Intel.  I can boot up and use for about 5 minutes before the mouse freezes.  I believe something is   overheating.  What would that be - so I can have repairs done?  The

    In addition to my iMac, I have a Power Mac G4 (10.4.11 Tiger) which of course is pre-Intel.  I can boot up and use for about 5 minutes before the mouse freezes.  I believe something is
    overheating.  What would that be - so I can have repairs done?  The machine is the Digital Audio version, M7627LL/A and Serial Number XB******KXQ.
    <Edited By Host>

    Hello USME,
    'Tis a common problem on old Macs.
    Do as Allan says: open the door and blow out all the dust bunnies. Canned air from Wal-Mart or Radio Shack can be handy (though sort of expensive) especially for blowing through the back of the power supply. A cool Mac is a happy Mac.
    Be sure your Mac can breathe. The air intake is on the bottom of the case, so be sure a deep pile rug or too many papers on your desk are not blocking the air supply.
    Feel the power supply and the processor with your hand. They should be warm but not hot; if you have to move your hand away, that's too hot!
    Check the fan on the power supply, and on the processor if it has one. Take a flashlight and peer in the back of the (Mac) case through  the grille; make sure the fan is turning. If it's not, the power supply won't work for long.
    Fans are not considered serviceable, though they will succumb to mechanics of determination. A CPU fan is easy and straightforward.
    A fan replacement will not cure an already damaged power supply; the PS may already be done for. Used power supplies for a DA are hard to come by, and not especially cheap when found (c.$50). An entire  working DA or Quicksilver may often be found for under $100 on eBay, and swapping in your HD is easy and simple... this might be cheaper and more expeditious than repairing an expired DA. Replacing a power supply is fairly easy, but it's a nuisance and requires a 2mm Allen head wrench in addition to the usual #2 Phillips head screwdriver.
    In my experience, power supplies and CPUs are about equally likely to fail. There are a few other possibilities, but they are not nearly so common.
    Good luck!... Jon

  • Can Adobe Collage be used for images smaller than the standard 1200 by 789?

    Can Adobe Collage be used for images smaller than the standard 1200 by 789?

    Hi,
    * Photoshop Touch does have very good text capabilites.
    * For opening the Collage as an Artwork (Merged layer) in Photoshop Touch, you just need to upload the Collage file to Creative cloud and import it directly into Photoshop Touch.
    But if you are looking to preserve all the layers of the Collage file, you should download the Collage file as PSD from Creative Clould and import it in Photoshop Touch as layers.
    * Collage does have canvas scalability, you can extend up the canvas on all the four directions. But i think in you case you are looking for having specific custom sizes of the canvas, which is not currently available in Collage. Currently you cannot shrink the canvas below the default canvas size.
    Hope this is helpful. Please do revert back if you have more queries.
    -Subbi

  • Can photoshop elements be used for commercial work?

    Can photoshop elements be used for commercial work?

    Check with the company that does your printing to be sure that output from PSE is ok and their file format requirement.

  • Can we know buffers used for a particular program?(not for the instance)

    Can we know buffers used for a particular program?(not for the instance)

    You can do a runtime trace using ST01 but you won´t find out how much buffer a program "uses" since the buffer is shared for all workprocesses.
    Markus

Maybe you are looking for

  • My Iomega external HDD can no longer be read by my Macbook Pro *Please Help*

    The day before my problem began my external was working fine then the next day I plugged it into my mac and now it can't be read. I get a message that says it can't be read with the options to eject, ignore, and initialize. When I click initialize it

  • No error message when incorrect account assignment type K in PO

    Hello, When creating a PO with any raw materials, I can either enter K in the account assignment type, either let the field blank. If there is no assignment the system will use key EIN to make the posting, if there is an assignment K (compulsory for

  • Address already in use

    Hi Guys! I'm using Oracle9ias 9.0.3. When I execute $opmnctl startall, I get the next error in all instances (<instance>.default_island.1): java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) I have 3

  • Error al levantar aplicacion

    27-oct-2005 10:52:04 org.apache.jasper.compiler.Compiler generateClass GRAVE: Error compiling file: /C:/Documents and Settings/fbortiz/.netbeans/3.6/jakarta-tomcat-5.0.19_base/work/Catalina/localhost/nuevorecibo//org/apache/jsp/jsp/login\login_005fin

  • New Mac Pro buyers recommendation - please help

    hello there - i'm looking to buy a Mac Pro for use as a FCP video editing station. i'm not going to be doing anything too fancy with it, but i want to run FCP Studio 2, and will load it up with 2-4 GB of RAM for sure. i'm confused by the specs which