Best way pass values for in predicate

Hi all!
I need subj.
Sample. select * from store where store_no in (...).
What is the best way to handle such parameters in sp?
Temporary tables?
Dynamic SQL?
Collections?
Any suggestions will be appreciated!
Mike

To use collections in the INLIST, you should resort to nested table types. Here's a quick example:
CREATE OR REPLACE TYPE NumTab AS TABLE OF NUMBER;
-- note that it's an SQL nested table type, not a PL/SQL collection
PROCEDURE WHATEVER (P_INLIST IN NumTab)
IS
L_SOMEVAR NUMBER;
BEGIN
SELECT SOMETHING INTO L_SOMEVAR FROM MY_TABLE
WHERE SOME_COLUMN IN
( SELECT * FROM TABLE(CAST(P_INLIST AS NumTab)) );
END;
You can call the above procedure, for example, this way:
WHATEVER( NumTab(1,2,3,4) );
You can also instantiate the NumTab nested table by BULK COLLECTing into it or simply by assigning values to its elements.

Similar Messages

  • What would the best way to go for an virtual grid?

    I need a 3 x 8 virtual grid that I can change values to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!

    I need a 3 x 8 virtual grid that I can changevalues
    to:
    Red
    Blue
    Spoiler
    what would the best way to go for this objective?
    Thanks!Create a Grid and a Tile class. A
    Grid has a 2D array of Tile objects an
    a Tile has an attribute called Color and, say,
    an x- and y-point. Program some appropriate methods.
    Done.
    Thanks for trying, but Nanook already gave the correct answer in reply 1.Is it possible to restrict these? to like a 8 x 3 grid ?
    or should i use an if statement?

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • What is the best way to prepare for CERTIFICATION?

    what is the best way to prepare for CERTIFICATION?
    what is needed?
    where can i read more about it?

    Hi,
    Do as much as possible exercises based on your course material(which will be more than enough).
    If you know (some) Java and have understand the basics of OOP then this is enough for the exam.
    And do not forget:
    it is a multiple-choice test meaning that you see the possible answers.
    Either a single answer is correct (then you will have radio-buttons) or several answers are correct
    (then you will have checkboxes; in this case almost all questions will have more than one correct answer).
    You can refer to the topics for the certification
    https://websmp102.sap-ag.de/~sapidp/011000358700000499112003E
    Some links which might help
    /message/213564#213564 [original link is broken]
    /message/514469#514469 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/1736299#1736299 [original link is broken]
    /message/257122#257122 [original link is broken]
    /message/130164#130164 [original link is broken]
    /message/1916905#1916905 [original link is broken]
    /thread/167254 [original link is broken]
    /message/213564#213564 [original link is broken]
    /message/1315746#1315746 [original link is broken]
    <b>
    you try www.sapdoamin.com
    They provide Certification simulation questions which are veryuseful and a must try site.</b>
    Yes more questions comes on OOPS so get your OOPS concepts very clear.
    You don't need to do extensive coding in OOPS.
    Just get the concepts clear and i am sure the certification will be a cake walkthrough.
    All the best and good luck with your ABAP Accreditation.

  • New MBP - Best way to care for battery?

    Not sure if this is necessary anymore, but I am receiving my new MBP in the mail later today. What is the best way to care for the battery? Should I plug the MBP into the wall for an amount of time before turning it on, or at least wait until it is fully charged before turning it on for the first time? Is anything like that even necessary anymore?
    Thanks,
    Keith

    Here's what Apple recommends:
    http://www.apple.com/batteries/notebooks.html
    Best use is frequently and lightly. Be sure to calibrate your battery every two months or so:
    http://docs.info.apple.com/article.html?artnum=86284
    Hope this helps...

  • Custom IAC applications the best way to go for putting R/3 screens on web?

    Hi all,
    I am trying to figure out whether a Custom IAC would be a best way to go for putting custom developed R/3 transaction on the web. We want to put the R/3 transactions on the web but want to completely customize the look and feel of it. Is IAC the best way to go for it? will this work with any kind of transactions?
    cheer,
    i028982

    Hello,
    The ITS might not be the "best" way, but it sure would be an easy way.  If the transaction and screens are already created in the R/3 then you could just go to SE80 and create HTML templates to see if it will do what you want.  Steps:
    1. Transaction SE80
    2. Choose "Internet Service"
    3. Type in a custom developed z* name
    4. Right-click on the z* name and choose Create > Theme
    5. Create theme 99 (standard theme)
    6. Right-click on the z* name again and choose Create > Template
    7. Type in all information, theme number, program name and screen number.  Play with the "Generation Style" to see which one would better fit your transaction.
    After creating the screens you can publish to your ITS and give it a test.  Maybe this is all you need, if so, it would be fast and readily available.
    Best regards,
    Edgar Chuang

  • What is the best way to export for use on internet?

    what is the best way to export for use on internet?

    It depends. Is this for a personal web site or for a site like YouTube, Vimeo or Facebook?
    For YouTube, Vimeo and Facebook, use Publish & Share/Computer/AVCHD using one of the YouTube presets.

  • Best Way to Check for same Word in string?

    If I have an array of words, would the best way to check for the same word be to use 2 for loops?

    Huh?
    Sounds like homework...
    What is a word? Presumably a String.
    For equality of Strings you use...
        String s1 = ....
        String s2 =....
        if (s1 == s2) { equal depending on null case
        else if ((s1 != null) && (s1.equals(s2))) { equal }
    For the case of checking one array to another....
          while items in array1
                 get itema from array1
                      while items in array2
                           get itemb array2
                                  is itemb equal (see above) to itema
                                         yes - then do something

  • Best way to look for next char in String that is NOT "-" or " " or ","?

    I have a long String that is sent to me and needs to be parsed. Normally I can figure the end of the line by a line break, but sometimes the line break is lost only after the second line. This second line contains the characters:
    These characters can all appear any number of times. I will know I'm at the end of the line when I hit a character that is not one of those three. What is the best way to look for this? Is there an already set method in the Java API?
    Thanks for all the help!

    There are solutions using regular expression, eg; you can split string once a time using minus char, whitespace or comma:
    String tokens[] = anyString.split("\\-|\\x20|,");
    More sophisticated expressions could be done to achieve results:
    String re = "^(.+)(\\-|\\x20|,)(.)(.*)$";
    Matcher m = Pattern.compile(re).matcher(anyString);
    if (m.matches()) {
    String
    before = m.group(1),
    delimiter = m.group(2),
    firstCharAfterDelimiter = m.group(3),
    suffix = m.group(4);
    Regards.

  • Passing values for a prepared statement encounters problem

    I have a query which runs fine when executed from sqlplus
    SELECT SYSDATE + (INTERVAL '10' MINUTE) FROM dual;
    The same query when run using a java statement also works well.
    when I use a Prepared statement like
    String sql = SELECT SYSDATE + (INTERVAL ? MINUTE) FROM dual;
    PreparedStatement ps = this.getPreparedStatement(sql.toString());
    ps.setString(1, "10");
    and execute I get the following exception
    ORA-00920: invalid relational operator
    I tried another way which also gives me a similar exception
    String timeout = "10";
    SELECT SYSDATE + (INTERVAL" + timeout + "MINUTE) FROM dual;
    Can anybody tell me why the problem happens. Is anything wrong in passing values dynamically for an 'interval' function in oracle?

    asokan_srini wrote:
    Yes friends
    Thanks for the reply. It worked out this way as u said
    sql.append("SELECT SYSDATE + (INTERVAL ");
    sql.append("'" + Integer.parseInt(timeout) + "' MINUTE) FROM dual");
    Mr.masijade said.
    First of all, there is no reason to do this command, really, but okay.
         There may be scenarios like this to use the command
              select * from mytable where (systimestamp - lastUpdateTimestamp) > Interval '10' Minute
    Is there any other better way to get all records updated before a certain timestamp?Use Timestamp to create a timestamp and PreparedStatement's setTimestamp(), maybe?

  • The best way pass a goemetry to a procedure

    I need to pass a geometry to a stored procedure. I first thought of using the mdo.sys_geometry types but the java client cannot pass in this type of object. I then thought of using pl/sql tables to send in the sdo_element_info array and the sdo_ordinate_array info. I had a concern that the shape I passed in would surpass the sql buffer for the pl/sql ( if there is a buffer length as there is in sqlplus ). I also thought of using a long datatype to pass in an infinite string that I can parse and and create the goemetry in the stored procedure. Anybody have any thoughts as to the best way to pass a geometry into a procedure?

    They will be able to download everything that was bought with their Apple ID. If they all shared an ID then they switched to their own ID they won't be able to use any apps or music bought with another Apple ID. As I explained in my previous response. There is only one way to share apps and content across multiple Apple ID's and that is home share. So, NO there isn't a "Smooth" way to do it.

  • What's the best way to export for print?

    I usually upload images to my local photoprinting shop. What's the best way to do that with Lightroom? Since lightroom does the final sharpening in the print module, how do I get that into the exported file since there is no export function in the print module? Also, how do I get the proper dpi and sizing info into the photo for the print shop? Thanks.

    There is no good way to prepare images for printing from a file from a commercial printer by using Lightroom alone. You need to do an export of the image without any resizing or color space conversion, and then use some other program of your choice to 'finish' the file.
    It's just plain missing functionality... Lightroom assumes that you will be printing photos yourself and it is missing a whole lot of stuff in order to support external printing, including:
    a) Resize to exact pixel dimensions. Many labs require an exact pixel count for a given print size, so for example for an 8x10 they need a 2400 x 3000 pixel image. Can't be done in Lightroom.
    b) Trim adjustment. If you are doing full bleed photos (no margin), you might need to provide about 0.05 inch of 'trim space' to compensate for image loss during printing. Can't be done in Lightroom.
    c) Exporting to a specific printer profile. Can't be done.
    d) Adding margins, text, etc. Many times my clients want a 1/4 inch margin in their photos to facilitate framing, or I put a dim watermark type text in the bottom corner. Can't be done.
    My solution. Do most processing in Lightroom, do an export, and then do a second export via qImage on a PC. It does all of the above plus much more. It's just a matter of using the right tool for the job, and LIghtroom has no facilities at all for printing to a file.
    I have been asking for "Print to File" ever since I was under NDA during the betas.

  • InDesign / Best way to export for Web?

    Hi guys,
    I did an A2 (large size) poster and now i need to have the very same image for Web Mailing on Internet. I guess it will be a 650 pixeles by 800 px.
    Which is the best way to export this content for Internet? 
    1) I notice that if i save the InDesign file to PDF even in the lowest quality the small text keeps crisp and clear while the file is very small size. Unfortunately PDF cannot be used -i think- as embedded images into a mailing list.
    2) If i export the very same InDesign file at the highest posible resolution as JPG -a traditional Internet image standard- the text is blurred and not well defined, besides the file is quite large.
    3) Should i exported to PDF and then open in Photoshop and "Save for the Web" as JPG? Maybe Photoshop has a better exporting engine when regarding to images than InDesign...i don't know.
    How can i find a way to have well defined crisp and clear text, small size and image? I am not sure i could use PDF format here.
    Any help or ideas? that would be great
    Thanks,
    S

    Thanks for the tip!
    I am sorry i forgot to say i have an A2 and an A3 size poster version. I used the A3 poster and the 650 pixeles poster for Internet actually turn out to be quite readable. I used quite large fonts size in the original design, a bit of a Swiss or Constructivism style poster.
    Cheers

  • How to pass values for compound primary keys for updating the record in db.

    i have a entity bean in my ejb with two primary keys to it...eg. roleid,rolename...
    when iam retriving the record i use only one primary key ...so again to modify and update he same record which i retrived is a pbm..
    i cannot set the values for the compoundpk,,,
    but i can do the update for the bean with single primary key..
    i need to know how to pass the values/parameters for the coumpound primary key in my update method...
    thanx in advance...
    Arjun.G

    I istantiated a object for the pk class and assign the values for the primary key fields...
    Arjun.G

  • Best way to export for DVD

    Hi Guys
    Right, I am exporting to DVD and i want to know the best way to do this at the highest quality, but also, so the DVD will play on most players.
    I am shooting in HDV 1080i 60, importing to Final Cut Pro 5.1.4 (the older final cut pro) using the apple intermediate codec.
    I want to make the best quality SD dvd. The content is rarely over 5 minute's (kids music videos) but i am preparing a 50 minute show which needs to be put on DVD.
    I usually use; export to quicktime movie, with the setting dv pal 48 khz anamorphic, i use DVD studio pro also to make the DVD, but not sure what the best settings are.
    PLEASE HELP.

    The BEST export method I have found by comparing them all is by exporting using Compressor and the DVD Best Quality setting. Now this setting gives you a few different options for length of your project: 120 minutes, 150 minutes, or 90 minutes. And then with each of these length options comes the option of 4:3 or 16:9. So if your project is 50 minutes, select the DVD: Best Quality 90 minutes option, either 4:3 or 16:9 depending what your project is. After laying your cursor over this option it will open up a list of audio options. What I do is just select the "All" option, which then lists all 3 audio options in your batch window: AIFF, Dolby 2.0, and MPEG-2. What I then do is just delete the MPEG and Dolby options, leaving the AIFF. After waiting for it to compress (make sure you specify a destination for the files so you can find them) it will give you 2 files, an MPEG-2 file which is the movie file, and an AIFF file (looks like an itunes file) that is the audio file. At this point, open up DVD Studio Pro and drag these 2 files into the assets window, and you're good to go from there. Hope this helped.
    -JP

Maybe you are looking for

  • Alpha Channel Help

    Hi I was wondering how did they get this alpha channel, is there a tutorial any one knows or just what technich its called cause i cant find a thing how they did it http://hotfile.com/dl/57865326/b1bed5b/ShockBall.dds.html I cant upload the image her

  • Non-Apple Applications stop loading

    Laptop has been working fine, yet suddenly Microsoft Office, Kodak Easyshare, etc. will not load and run. All Apple apps are fine and work normally. Double click on menu, or directly in Applications Folder for MS Office apps or others non-Apple, it s

  • I need big attention and a big HELP!

    ..i have a nokia 6600 mobile..i have a problem with my mobile phone,when i start sending messages to my friends its ok but when they already reply to me i usually found an error on my outbox,the error is it is trying to reply that person with a multi

  • Probleem met PSE 8.0; ik krijg geen tekst op foto's

    Ik heb een desktop HPE met Windows 7 en 6G intern geheugen en 1TB harde schijf. Ik ben bezig met een diashow. Heb daarvoor een aantal foto's in een album gezet. Nu wil ik de foto's van een tekst voorzien. Ik  selecteer een aantal foto's en ga naar "V

  • Function problems

    I am currently trying to learn AS3 after only really knowing basic AS2. Anyways, I am working within FlashCS3 using its integrated actionscript editor. So far I am having a problem that I can't seem to find an answer for. I make the Document class of