Query challenge (IN ) not allow more than 1000 numbers

I have this query in the "IN" condition i am passing more than 1000 numbers and it is showing me error "I can insert more than 1000 numbers in "in" condition" like
number like 1,2,3,4,..... until 1000. I am getting error.
How can i write this query as differently
select a.barcode,a.othernumber,a.owner,b.booknum,b.context,c.dept,c.userid,
c.firstname,c.lastname from objects a,bookitem b,users c
where a.othernumber=b.booknum
AND c.userid=a.owner(+)
AND booknum in (#valuelist(search.booknum)#)
order by barcode

you could use a UNION
e.g.
select oid, dob from mytable
where oid in ( mylist of first 1000 )
UNION
select oid, dob from mytable
where oid in ( mylist of the next 1000 or less )
I have this query in the "IN" condition i am passing more than 1000 numbers and it is showing me error "I can insert more than 1000 numbers in "in" condition" like
number like 1,2,3,4,..... until 1000. I am getting error.
How can i write this query as differently
select a.barcode,a.othernumber,a.owner,b.booknum,b.context,c.dept,c.userid,
c.firstname,c.lastname from objects a,bookitem b,users c
where a.othernumber=b.booknum
AND c.userid=a.owner(+)
AND booknum in (#valuelist(search.booknum)#)
order by barcode

Similar Messages

  • How to write validation in java sript item should not allow more than 20 ch

    HI,
    I need to write validation in java script for a item it should not allow more than 20 characters.
    Thanks
    Nr

    If this answers your question, please mark your question as answered (so everyone knows it is answered) and assign points where you see fit..
    Thank you,
    Tony Miller
    Webster, TX

  • Should not allow more than one attendance or absence code on any given day

    Hi Hr Experts ,
    I need to use customer enhancement in my program.
    CATS should not allow more than one attendance or absence code on any given day. requirement is
    that each day will be either a full attendance or full absence and there will not be any mixture.
    Function/Program: u2022
         EXIT_SAPLCATS_006: CATS: Validate Entire Time Sheet
    transaction code CAT2.
    how to code the same?

    hai,
    check the Time constraint class for absence/attendance types.
    Regards,
    Chiran Reddy.

  • Have Revel Premium but will not allow more than 2g of photos...not showing unlimited Gigs...How to Access unlimited Gigs?

    Have Revel Premium..but still not allowed more than 2gigs of photos...How to access unlimited Gigs of Revel Premium?

    Hi Dale
    If you are signed in using the same email ID that I see here, you should have unlimited photo uploads.  It shouldn't be required to uninstall and reinstall the app, but since I can't explain your trouble, it seems reasonable to try that.  First, be sure that your photos are safely backed up outside of Revel, eg., to an external USB drive.  If your photos are already uploaded to Revel, also be sure that you can access them at www.adoberevel.com
    The best way to delete the app and clear the app cache is to long-click on Adobe Revel in Mac's Launchpad view.  In Launchpad, long-clicking an app should show a tiny 'X' button, which will remove the app.
    If the problem persists, can you send me a screen shot of your account details in the app settings? 

  • Residual payment should not allow more than Vendor Invoice

    Hi,
    Eg: Vendor has booked invoice 5000 INR, when user make payment through F-53 or F-58 through "Residual" payment user can pay more than invoice 5002 INR and below accounting entry is posting.
    Bank Cr 5002 INR
            To  Vendor Dr 5000 INR (Invoice amount)
            To  Vendor Dr 02    INR  Excess than invoice 
    Business requirement is system should not allow pay more than invoice amount. How to control suggestion would be appreciated.
    I have done below settings for your understanding here system configuration.
    1. OBA3: Under "Permitted Payment difference" zero for Gain , Loss , Amount, Percent & Adjust Discount By  However "Permitted Payment Differences for Automatic write-Off(Function code AD)" zero.
    2. OBA4: Cash discount per line item: Zero and Under "Permitted Payment difference" Revenues, Expense, Percent & Cash discount  put Zero.
    Regards,
    Babu.

    Hi Prashant,
    I have restricted many fields to use through screen variant now user can not pay more than Invoice amount except through Residual payment process.
    Client side management strongly says that they want to use Partial and Residual payment process options but user should not allow pay more than invoice amount.
    If any solution please guide me.
    Regards,
    Babu.

  • jsp:useBean, oc4j does not allow more than one???

    Hi,
    I have a jsp in which i access a bean class.In the same jsp i have another included jsp in which i use one more bean class.The error i get is: "Tag attempted to define a bean which already exists:2nd bean id". Does oc4j not support more than one bean class?Can anybody suggest where i am going wrong?

    Hi Shilpa,
    Is this a Z module pool or you are talking about the standard.
    If it is Z module pool create a new lock object of type exclusive or look out for standard lock object for purchase order in SE11.
    after generating the custome lock object SAP would generate 2 function modules 1) Enqueue_<lock object name> (Request lock) 2) Dequeue_<lock object name>(Release lock).
    call these lock FM'S in your module pool likely in the PBO call the Enqueue FM and process your transaction and finally by the end of the transaction call the Dequeue FM to release the lock locked.
    I believe you can try with the lock object 'EMEKKOE'
    Hope this helps you.
    Thanks and Regards,
    Ranjith Nambiar

  • How to password protect a PDF to not allow more than 3 attempts

    I am looking for a way to password prtotect a PDF document which will alllow the user only 3 attempts. If the user does not enter the password correctly, the document must be locked out and should expire.
    So basically, the user should not be allowed to try more than 3 times to open the document.
    Any help in this regard would be highly appreciated.
    Thanks....

    You will not be able to achieve the functionality that you are looking for with "Password" based encryption\protection. 
    There is no way to monitor\audit the number of attempts to open a password protected PDF
    Regards
    Steve

  • Add_dim  does not allow more than 1 member - Important

    Hi,
    Im performing correctly some data copy to another app.
    The problem is that when I use  add_dim  it is not possible  to input more than 1 member per dim.
    How can i fix this?
    I.e. 
    Conceptos.vap (all this members) -->   account 40000 (destination member)
    Conceptos "toner"  --->  account 50010 (destination member)
    I wanted to simplfy my script  by typing this (to me this is supposed to work, is very simple, also running a script separately works for both Conceptos)
    *select(%conceptos%,"id","conceptos","vap='i'")
    *xdim_memberset conceptos=%conceptos%
    *xdim_memberset moneda=mxn,usd
    *xdim_memberset lob=servicios_out
    *xdim_memberset metrica=importe_p
    *xdim_memberset consumibles=consumibles_dummy
    *xdim_memberset tiempo=%tiempo_set%
    **WHEN conceptos
    **IS %conceptos%,toner*
    WHEN metrica
    *IS importe_p,importe_r
    *REC(FACTOR=1,metrica="dummy_metrica")
    *ENDWHEN
    *ENDWHEN
    *COMMIT
    *DESTINATION_APP= ALLDORA_FINANZAS
    *xdim_memberset moneda=mxn,usd
    *xdim_memberset lob=servicios_out
    *xdim_memberset metrica=dummy_metrica
    //*xdim_memberset oi <> oi_dummy
    *xdim_memberset tiempo=%tiempo_set%
    *skip_dim = conceptos
    *skip_dim = consumibles
    *add_dim ceco=A010ops001
    *add_dim cuenta=40000, 50010  --->  ERROR !!!!
    *add_dim empleado=empleado_dummy
    *WHEN conceptos
    *IS %conceptos%
    *REC(FACTOR=1,cuenta="40000")
    *IS toner
    *REC(FACTOR=1,cuenta="50010")
    *ENDWHEN
    *commit
    If I just type separately the logic for each one WITHIN the same script, the Account destination member taken is the one found at the bottom of the script, i mean, it is not performing the input in the final Account (40000 and 50010), just for one of them.
    However... since i have to do 14 different logics, it is very awkward to execute 14 scripts... in order for this logic to work,
    Thanx
    Velázquez

    Hi Velázquez,
    The *ADD_DIM statement only allows you to assign one new dimension and one new dimension member to your destination application.
    from the documentation:
    *ADD_DIM {dimension name}=[,{dimension name}=,u2026]
    Sorry this is a limitation.
    Instead of skipping and then adding the following:
    skip_dim = consumibles
    *add_dim ceco=A010ops001
    *add_dim cuenta=40000, 50010 ---> ERROR !!!!
    Maybe you could try renaming:
    i.e.
    *RENAME_DIM consumibles=cuenta
    And then add that dim to REC statement:
    *WHEN conceptos
    *IS %conceptos%
    *REC(FACTOR=1,consumibles="40000")
    *IS toner
    *REC(FACTOR=1,consumibles="50010")
    *ENDWHEN
    You may need to play around with your logic and see what works.
    Thanks,
    John

  • Check the total sizes of total attachments not allow more than 9 mb when adding attachments to a PDF

    My clients requested the form has the validation when I add attachments to a PDF, the total sizes of these  attachments not more than 9 Mb. I can just check the size of each attachment but I cannot check the total sizes of the attachment.  I am not sure what I am doing wrong the coding is unsuccessful.  Please help!!!! 
    Thank you very much.
    CindyWhat
    Here is the coding in event:click - attachment button
    var maxSize=75497472; //bits
    try{
    var count= 0;
    var oDoc = event.target;
    var oAttachment = oDoc.dataObjects;
    if(oAttachment != null){
      count = oAttachment.length;
    oDoc.importDataObject("attachment" + (count + 1))
    var dataObj = oDoc.getDataObject("attachment" + (count + 1));
    var fileName = dataObj.path;
    var fileType = fileName.substring(fileName.lastIndexOf("."));
      if(fileType != ".pdf" && fileType != ".PDF" && fileType != ".JPG" &&
      fileType != ".jpg" && fileType != ".tif" && fileType != ".TIF"&&
      fileType != ".tiff" && fileType != ".TIFF" &&
      fileType != ".doc" && fileType != ".DOC"){
                    xfa.host.messageBox("Please correct the file type.");
                    oDoc.removeDataObject("attachment" + (count + 1));
    // combine size
      //get content
      var oFile = oDoc.getDataObjectContents("attachment" + (count + 1), true);
                            var oBase64Stream = SOAP.streamEncode(oFile, "base64");
                          var oFile = SOAP.stringFromStream(oBase64Stream);
                            // check the length of the document
                            var lenTotal = oFile.length;
                            FileSize.rawValue = lenTotal;
      if (lenTotal > maxSize)
       xfa.host.messageBox("the total size is 9 MB");
       oDoc.removeDataObject("attachment" + (count + 1));
      }// end if
      else
       xfa.host.messageBox("successfull attachment","Attachment",2);
    catch (e)
    xfa.host.messageBox("Please review the document");

    We are using Microsoft SQL Server 2008 . but it's well with MySQL & JBoss

  • Why does my group messaging not allow more than 10 people?

    Why can't I have more than 10 people In a group chat?

    It's the new interface in PSE 11, no matter what machine you put it on.

  • Not allow more than one person to change program

    Hi All,
    My requirement is that i want to change details of purchase order in module pool programming. I dont want more than one prson to change the same purchase order at the same time. Can someone tell me how can i achive this.
    Regards
    Shilpa

    Hi Shilpa,
    Is this a Z module pool or you are talking about the standard.
    If it is Z module pool create a new lock object of type exclusive or look out for standard lock object for purchase order in SE11.
    after generating the custome lock object SAP would generate 2 function modules 1) Enqueue_<lock object name> (Request lock) 2) Dequeue_<lock object name>(Release lock).
    call these lock FM'S in your module pool likely in the PBO call the Enqueue FM and process your transaction and finally by the end of the transaction call the Dequeue FM to release the lock locked.
    I believe you can try with the lock object 'EMEKKOE'
    Hope this helps you.
    Thanks and Regards,
    Ranjith Nambiar

  • MI424WR-GEN2 / FW-20.10.7.5 Not allowing more than 1 IP address in MAC list

    I like to use MAC filter without WEP. The route will only allow 1 IP address even though you can enter more, apply to save settings....it only saves 1 IP address.

    ndccpf1 wrote:
    I like to use MAC filter without WEP. The route will only allow 1 IP address even though you can enter more, apply to save settings....it only saves 1 IP address.
    I can't help with the issue of allowing only one IP address, although I believe I have seen that issue posted before.
    As to using MAC filtering without WEP, I hope you don't think that is secure.  MAC addresses are easily sniffed over the air, especially if not encrypted.  Then it is a simple matter of cloning that MAC address to bypass your filtering.
    Much better to use WPA2 security.

  • IN Clause issue in oracle -- not accepting more than 1000 expressions

    update table_name set col1='Y' where col2 in ('a','b',.......1500 expressions)
    Please suggest me the best method to replace the above sql statement..

    vasanthi b wrote:
    update table_name set col1='Y' where col2 in ('a','b',.......1500 expressions)
    Please suggest me the best method to replace the above sql statement..The best method is the correct method.
    Normalisation.
    Col2 is not normalised. That is the core problem.
    And trying to hack that failure in the data model with a 1000+ expression clause... that is just plain bloody silly.

  • Best way to not allow more than one user on page.

    Do not want another user editing a record on a page when another user is on that page.  Any ideas on the approach I should use?

    Please provide more information. What you describe is the normal, default situation anyway.
    A thousand of us have opened a page. Our browsers each caches a copy of the page. So, in normal circumstances, one is not really on the page. If the 1001st client were to open the page and edit the record, we wouldn't be aware of the change till we refresh or revisit the page.

  • HTTP GET Error - PI does not allow more than 200 chars in the dynamic URL

    Hi Everyone,
    Scenario RFC <-> PI <-> HTTP (GET).
    PI 7.1, Service Pack 05.
    HTTP Setup > URL Address
    The response comes back from the target server when stuffing the URL path in the communication channel "Path" field.
    /rest?&xml_request=......................................................
    The requirement is to dynamically create the URL in the mapping program. While doing this the interface error out saying the URL exceeds the character limit of 200.
    Any thoughts on this would be highly appretiated.
    Thanks,
    AJ

    Please check Mark's reply
    http://forums.sdn.sap.com/thread.jspa?threadID=1944129

Maybe you are looking for