How to change tables in from  clause dynamically

Hi,
I have to add some join conditions in where clause and tables in from clause based on some input parameters and data in other tables.
How can i achieve this ? I must use procedure/function or dynamic query preparation or any more alternatives?
Regards,
Krishna

Yes, you can use dynamic sql for that.
But be aware that you'll be needing to concatenate the table names in your FROM-clause, you cannot bind them...
So you'll be trashing the shared pool.
Maybe alternative approaches are possible, but you provide too little input for my crystal ball here...

Similar Messages

  • How to change Table Cell Field Type Dynamically?

    Hi All,
    I am fetching some news data from backend DB and displaying them in a WD Table. Now one News Item may or may not have a URL behind it. If I find the URL as null then I want to display the news as simple TextView otherwise as LinkToUrl. How can I change this input type dynamically for each row in the runtime?
    If I use LinkToUrl all the time then the items which has URL as null gets displayed as normal text, but they are of very faint color and I can not change the text design. Whether if I user TextView I can set some text design like Header2, Header 3 etc.
    Can anybody please help with some code block? My main requirement is how to change the table cell input type dynamically.
    Thanks in Advance.
    Shubhadip

    Hi Shubhadip,
    This is the sample code for creating and adding a table cell editor table dynamically.
    public static void wdDoModifyView
    (IPrivateDynamicTableCreationView wdThis, IPrivateDynamicTableCreationView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
    //@@begin wdDoModifyView
    /*** 1.Create Table **/
    IWDTable table =
    (IWDTable) view.createElement(IWDTable.class, "table1");
    table.setWidth("100%");
    table.setVisibleRowCount(data.length);
    /*** 2.Create nameColumn **/
    IWDTableColumn nameColumn =
    (IWDTableColumn) view.createElement(IWDTableColumn.class, "Name");
    IWDCaption colHeader =
    (IWDCaption) view.createElement(IWDCaption.class, "NameHeader");
    colHeader.setText("–¼‘O");
    nameColumn.setHeader(colHeader);
    IWDTextView nameViewer =
    (IWDTextView) view.createElement(IWDTextView.class, "NameViewer");
    nameViewer.bindText(nameAtt);
    IWDTableCellEditor editor = (IWDTableCellEditor) nameViewer;
    nameColumn.setTableCellEditor(editor);
    table.addColumn(nameColumn);
    IWDTableColumn nationalityColumn =
    (IWDTableColumn) view.createElement(
    IWDTableColumn.class,
    "Nationality");
    IWDTableCellEditor nationalityEditor =
    (IWDTableCellEditor) nationalityViewer;
    nationalityColumn.setTableCellEditor(nationalityEditor);
    table.addColumn(nationalityColumn);
    /** 3. Bind context to table **/
    table.bindDataSource(nodeInfo);
    //@@end
    Bala
    Kindly reward appropriate points.

  • How to change SSIS variables from DM Dynamic Script

    All,
    I'm using BPC 5.1 SP8 on top of SQL 2005. I have some SSIS variables defined in my SSIS transformation that I would like to change using Data Manager Dynamic Script.
    How can this be accomplished?
    Thanks
    Paulo

    The most flexible way I know, is to set up your MODIFYSCRIPT parameter similar to the following. The prompts allow the user to key in anything they want (not necessarily base-member IDs) which you can then pass to the variables in the
    PROMPT(RADIOBUTTON,%MODE%,"Select mode of operation:",,{"Door number one","Door number two"},{"DOOR_ONE","DOOR_TWO"})
    PROMPT(TEXT,%Entity%,"Select an entity",,"")
    PROMPT(TEXT,%Color%,"Select a color",,"")
    GLOBAL(DB_NAME,%APPSET%)
    GLOBAL(DB_SERVER,%SQLSERVER%)
    GLOBAL(COLOR,%Color%)
    GLOBAL(USERID,%TRIMMEDUSER%)
    GLOBAL(TRANSTYPE,%MODE%)
    GLOBAL(COMPANYCODE,%Entity%)
    Then in the DTSX package there are variables for DB_NAME, DB_SERVER, COLOR, etc. Note that these names must be ALLCAPS or things don't work. Pass them on to your connection manager (to ease the transport from one environment to another), or wherever else you need them in the package.
    I believe there's also a way to pass through the filtered, validated list of member IDs, but I don't have an example of that.

  • How to change table of content font in captivate 6

    Hi There,
    Can somebody please suggest me how to change table of Content Text font English to Arabic in Captivate 6 and which font supports Arabic language.
    Please refer below image, highlighted text font should be changed.
    Looking forward for help.
    Thanks,
    Srikanth

    The weird sliding navigation is Apples pride and joy!
    That TOC allows you to slide between chapters, sections and pages.
    iBooks Authjor was designed to do what it does and what Apple wanted it to do.
    Some things can be changed during the books production,  but the " weird navigation"  is not something you can change to do what you want.
    iBooks Author is does not produce ePubs.. at least not as "ePub" is known from Pages, inDesign etc,.
    If you want what is available in ePubs.. then iBooks Author is not the application to produce it.
    You could drag a section page above chapter on and create an index type page using book marks for links - but whats the point? 
    People using iPads and familiar with iBooksAuthors special way of book presentation.. are quite happy its so easy to use.

  • How to change table content ...

    Hi All,
    Pl. give us soltution for the following :
    1. How to change table content of standard table ?
        (eg. mara content not from MM02.).
    2. How to add field in standard table ?
    waiting reply.
    Yusuf

    Hi  Yusuf,
    Modifying a standard table through a program using SQL statements is highly risky. However if u wish to do it programatically and not through MM02, you have the option of using BAPIs.
    Goto transaction BAPI and through the application hirarchy, goto Material Management section. There i am sure u will find some BAPIs to modify material master and they are the most stable mode of update programatically.
    Hope this helps.
    Regards,
    Aditya

  • How get all table name from database

    hi master
    sir
    how get all table name from database

    The big question is 'why'.
    Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
    There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
    The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
    The correct answer and the meaningful answer may be two different things.

  • How to change mobile network from At&t to verizon

    how to change mobile network from At&t to verizon

    What exactly are you trying to do?
    You can't "change the mobile network"?
    What device model number do you have?
    Has it worked previously?

  • How to change a photo from 32 bit mode to 16/8 bit mod in Photoshop cs6?

    How to change a photo from 32 bit mode to 16/8 bit mod in Photoshop cs6?
    I tried to go to Image- Mod but i cant press on Mod button..
    I saw to late that i cant save the image i created with 32bit mode.
    Please help..

    In the image menu, goto the mode sub menu, then choose 8 or 16 bit.

  • Sequence of tables in from clause and sequence of "where clause" conditions

    Is Sequence of tables in "From Clause" and sequence of "where clause" conditions matters in 10g for performance?
    Edited by: user6763079 on Jun 1, 2011 3:33 AM

    user6763079 wrote:
    Is Sequence of tables in "From Clause" and sequence of "where clause" conditions matters in 10g for performance?In general it does not matter.
    It could matter if the Rule Based Optimizer (RBO) is used. However this RBO is only used if enforced by a hint or if no table statistics are collected. Starting from 10g the table statistics are automatically selected by a regular database job. So in general the CBO would be used.
    The CBO will consider different access paths. If the number of tables is low enough, then all possible combinations are considered and the order does not make any difference.
    Edited by: Sven W. on Jun 1, 2011 4:00 PM

  • HT1311 how to change the payment from visa to none payment iPhone 4S

    how to change the payment from visa to none payment
    iPhone 4S

    martinimartini wrote:
    I have the same problem. I used Pay Pal payment before but Pay Pal limited my account so I can only use Pay Pal until after 180 days according to their specific regulations. I also do not have any credit card. How am I supposed to pay for my Skype that I have been using since start of Skype. I really need outgoing calls.  Martin
    Hi,
    As I understand you have a restriction on your PayPal account, unfortunately this is something Skype can't help you with.
    But you can try alternative payment methods: www.skype.com/intl/en-us/prices/ways-to-pay/
    Another option is to let your friend set up Skype Manager account, purchase credit there and allocate it to you: https://support.skype.com/en-us/faq/FA10519/What-is-Skype-Manager-and-how-does-it-work
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • How to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    how to change web server from inbuilt Tomcat to IIS in already configured Cold Fusion 10

    You just need to run the Web Server Configuration Tool to connect ColdFusion to IIS.  It can be found in the ColdFusion program group off of the Start menu.  Be sure to run it "As Administrator".
    -Carl V.

  • How to transfer table data from one client to another client?

    How to transfer table data from one client to another client?

    Hi,
    Look at the Blog
    /people/community.user/blog/2007/01/07/transport-table-entries
    Regards
    Sudheer

  • How to change apple ID from U.S to Asia when i still have credit on my U.S

    how to change apple ID from U.S to Asia when i still have credit on my U.S

    You're going to find that answer from Apple Support. Choose iTunes in Apple Support.
    Apple Support
    http://www.apple.com/support/

  • How to change my subscription from "CC single-app Photoshop" plan to "Photoshop Photography" plan

    How to change my subscription from "Creative Cloud single-app membership for Photoshop (one-year)" plan to "Photoshop Photography" plan after purchase already and overlap?

    I waiting Live Chat about 2 hours and my thread not any support help to me or feedback.
    Why!

  • How do with change table cells from staticText1 to button1 in run time?

    I have two question:
    first: I think change table's cells from staticText to button in run time?
    how do?
    second: I think change table column's order in run time?how do?
    ex:
    =============change before===========
    name age
    wtu 22
    =============chnage after=============
    age name
    22 wtu
    thanks

    Try something like this:
    1. Drop a Table. By default it has three columns.
    2. Drop a button inside the third column. Set its id property to buttonInColumn3, and set its rendered property to false.
    3. Drop another button, this time outside the table. Set its id property to buttonOutsideTable.
    4. Double-click the buttonOutsideTable and make the method look as follows:
    public String buttonOutsideTable_action() {
    //switch the first two columns
    List cols = tableRowGroup1.getChildren();
    Object col = cols.remove(0);
    cols.add(1, col);
    //toggle between showing staticText3 and buttonInColumn3 (in the third column)
    staticText3.setRendered(!staticText3.isRendered());
    buttonInColumn3.setRendered(!buttonInColumn3.isRendered());
    return null;
    5. Run the application and click the button outside the table several times.

Maybe you are looking for

  • Help needed with variable - trying to get data from Oracle using linked svr

    Sorry if I posted this in the wrong forum - I just didn't know where to post it. I'm trying to write a simple stored procedure to get data from an oracle database via a linked server in SQL Enterprise manager. I have no idea how to pass a variable to

  • How to display an expanded hierarchy in report?

    Hi, i'm working with BI 7.0. How do I display a completly expanded Hierarchy in my report. At present I see the hierarchy but the nodes need to be manually expanded in the report. pls help, SD

  • Acrobat XI aborts when archiving emails in Outlook 2010

    I'm trying to archiving emails in Outlook 2010 as a PDF.  When I set the folders to archive and execute, it will run but abort and cancel the job after only partial completion.  There is no specific folder or email where this happens.  It appears to

  • Compatibility issue? (does anyone have QT 6?)

    I got a report from a client who still has Quicktime 6 on their G4 that they could not play a video I sent them for approval. It was the 2nd generation of that video, and they had been able to play the 1st generation, on which I had used exactly the

  • BB10 sync email, contacts, calendar

    While I am waiting for Verizon to get their act together, I am re-evaluating my email, calendar, contact syncing.  This seems to be a major issue on the forums. I presently use gmail and want to use a different system as I am becoming more dissatisfi