Assign ' operator

Splitting the comma delimited values in storde procedure and assigning them ' operator .
i want to assign my output with ' symbol
so that i can use this variable in select statement
eg : my output is v_var = a,b,c,d,
i need it as v_var = 'a','b','c','d'
next i will use this as
select * from table1 where id not in ( v_var)
concate works for all other symbols except for this

any dynamic sql statements instead of collections for atleast two to three values<p>
test@ORA10G>
test@ORA10G> var cr refcursor
test@ORA10G> exec open :cr for 'with t as (select level as x from dual connect by level<=10) select x from t where x in (&list)';
Enter value for list: 1
PL/SQL procedure successfully completed.
test@ORA10G> print cr
         X
         1
test@ORA10G>
test@ORA10G> exec open :cr for 'with t as (select level as x from dual connect by level<=10) select x from t where x in (&list)';
Enter value for list: 1,2,3,4
PL/SQL procedure successfully completed.
test@ORA10G> print cr
         X
         1
         2
         3
         4
test@ORA10G>
test@ORA10G><p>
RTFM:
Building a dynamic query with dynamic sql
<p>
pratz

Similar Messages

  • Error while assigning Operating concer to Controlling Area

    Hi...
    while I am trying to assign operating concern to controlling area, the system is showing the following error message.
    Diagnosis
    Controlling area 7500 and operating concern 7500 have different fiscal year variants (01 and K4). However, for cost center assessment, settlement, and many other types of postings to Profitability Analysis, the controlling area and the operating concern must have identical fiscal year variants, otherwise error messages or serious data inconsistencies can occur.
    But i already changed fiscal year variant from K4 to 01 in Operating concern and i run the generate operating concern environment also. still the system is showing the same error message.
    Is there anything more i need to do after changing fiscal year variant in Operting concern.
    Please help me.
    Thank you,
    Regards,
    Santosh

    I have got the solution.
    Thank you,
    Regards,
    Santosh

  • Cannot assign operations into an RPC Service (x)

    I've been running a flex application for years now, and added a couple lines of code to it and all of a sudden started getting "Cannot assign operations into an RPC Service (x)" and "Cannot assign operations into an RPC Service (y)" out of no where.  I can't figure out whats happening.  I even took out the code I added before it started happening and its STILL happening... what is this? its the first time I've seen it!

    FYI: It appears to be happening when I try to change states: currentState = "XXX"

  • Where we assign operational chart of accounts to country chart of account

    Hi Expert,
    where we assign operational chart of accounts to country chart of account.
    thnx,

    Hello,
    Use T.code OB62.
    SPRO --> Fin. Acc (New) --> Gen Led. --> Master data --> GL --> Prep --> Assing Co. Code to Chart of Accounts.
    Regards,
    Jaymin R. Bhatt

  • ORAMED-01002:[Metadata error in assign operation]

    Im using the Oracle Mediator component to assign an expression to a property. The assign expression uses the dvm:lookupValue() function to assign the outcome of the function to the property. When I invoke a message from e.g. SoapUI or the em testfeature it all works perfect. But when I use a testsuite with an initiate message that is similar to the request from SoapUI, the message fails with the following error:
    Non Recoverable System Fault:
    ORAMED-01002:[Metadata error in assign operation]Metadata Error occurred while assigning to target "$out.property.jca.db.XADataSourceName" using invalid expression "dvm:lookupValue("oramds:/apps/dvm/RegioCode.dvm","RegioCode",$in.request/sadr:GetHoofdaanvragerAdressenRequest/ns6:PersoonKey/ns5:RegioCode,"Datasource","jdbc/DoNotUse")".Possible Fix:Fix the expression. Cause:internal xpath error
    Invoke via SoapUI results in the following instance message fragment:
    <message>
    Assigned "dvm:lookupValue("oramds:/apps/dvm/RegioCode.dvm","RegioCode",$in.request/sadr:GetHoofdaanvragerAdressenRequest/ns6:PersoonKey/ns5:RegioCode,"Datasource","jdbc/DoNotUse")" to "$out.property.jca.db.XADataSourceName"
    </message>
    Any suggestions.
    Regards,
    Melvin

    Hi Clemens,
    We've reported a service request on metalink regarding this issue. See : 3-1154677691
    I've summarized the messages for you:
    A SoapUI message that works:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adr="http://www.xyz.nl/Services/AdresService"
    xmlns:geb="http://www.xyz.nl/Contracten/Gebruiker"
    xmlns:elem="http://www.xyz.nl/Contracten/Common/Elementen" xmlns:obj="http://www.xyz.nl/Contracten/Aanbod/Object">
    <soapenv:Header/>
    <soapenv:Body>
    <adr:GetObjectAdresRequest>
    <geb:Autorisatie>
    <elem:Gebruikersnaam>xxx</elem:Gebruikersnaam>
    <elem:Locale>nl-NL</elem:Locale>
    <elem:Kanaal>1</elem:Kanaal>
    </geb:Autorisatie>
    <obj:ObjectKey>
    <geb:Autorisatie>
    <elem:Gebruikersnaam>xxx</elem:Gebruikersnaam>
    <elem:Locale>xxx</elem:Locale>
    <elem:Kanaal>x</elem:Kanaal>
    </geb:Autorisatie>
    <elem:RegioCode>xxx</elem:RegioCode>
    <elem:Type>0</elem:Type>
    <elem:Reference>xxx</elem:Reference>
    </obj:ObjectKey>
    </adr:GetObjectAdresRequest>
    </soapenv:Body>
    </soapenv:Envelope>
    The testsuite initiate message which fails :
    <GetObjectAdresRequest xmlns="http://www.xyz.nl/Services/AdresService">
    <Autorisatie xmlns="http://www.xyz.nl/Contracten/Gebruiker">
    <Gebruikersnaam xmlns="http://www.xyz.nl/Contracten/Common/Elementen">xxx</Gebruikersnaam>
    <Locale xmlns="http://www.xyz.nl/Contracten/Common/Elementen">xxx</Locale>
    <Kanaal xmlns="http://www.xyz.nl/Contracten/Common/Elementen">x</Kanaal>
    </Autorisatie>
    <ObjectKey xmlns="http://www.xyz.nl/Contracten/Aanbod/Object">
    <RegioCode xmlns="http://www.xyz.nl/Contracten/Common/Elementen">xx</RegioCode>
    <Type xmlns="http://www.xyz.nl/Contracten/Common/Elementen">x</Type>
    <Reference xmlns="http://www.xyz.nl/Contracten/Common/Elementen">xx</Reference>
    </ObjectKey>
    </GetObjectAdresRequest>
    The composite Test.xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle SCA Test Modeler version 1.0 at [11/12/09 8:59 AM]. -->
    <compositeTest compositeDN="Adres" xmlns="http://xmlns.oracle.com/sca/2006/test">
    <about/>
    <initiate serviceName="AdresService_ep" operation="GetObjectAdres" isAsync="false" delay="PT0S">
    <message>
    <part partName="request">
    <content>
    <GetObjectAdresRequest xmlns="http://www.xyz.nl/Services/AdresService" xmlns:ns2="http://www.xyz.nl/Contracten/Gebruiker" xmlns:ns3="http://www.xyz.nl/Contracten/Aanbod/Object">
    <ns2:Autorisatie xmlns:ns4="http://www.xyz.nl/Contracten/Common/Elementen">
    <ns4:Gebruikersnaam>xxx</ns4:Gebruikersnaam>
    <ns4:Locale>xxx</ns4:Locale>
    <ns4:Kanaal>x</ns4:Kanaal>
    </ns2:Autorisatie>
    <ns3:ObjectKey xmlns:ns5="http://www.xyz.nl/Contracten/Common/Elementen">
    <ns5:RegioCode>xxx</ns5:RegioCode>
    <ns5:Type>x</ns5:Type>
    <ns5:Reference>xxx</ns5:Reference>
    </ns3:ObjectKey>
    </GetObjectAdresRequest>
    </content>
    </part>
    </message>
    </initiate>
    </compositeTest>
    Regards,
    Melvin

  • Change Assign Operator Dynamicly

    Dear Folk,
    Please consider following part of statement at data model sql query statement....
    having sum(d.sal_qty) > :p_2
    I want to give the opportunity to user to change the assigned operator '>' what I have used. User can change his/her operator like '<' or '=' or '>=' or '<='. So, :p_2 value will differ by operator in a same report.
    I can not make this solution. Please help me providing any idea to change the operator.
    Thanks
    ALO

    Hi,
    Try to use the all having statement as a parameter.
    Example:
    select a.code,sum(a.amount) from table1 a
    group by a.code
    &P_2
    Here P_2 will be an lexical parameter (character, lenght=200 for example)
    and can be filled in afterpform trigger as follows:
    :P_2 := ' having sum(a.amount) ';
    if :P_operator = '=' then
    :P_2 := :P_2||' = '||:P_value
    else :P_operator = '>' then
    :P_2 := :P_2||' > '||:P_value
    end if;
    end if;
    Best regards,
    Gicu

  • Compound assignment operator

    i've searched previous posts about assignments but did not find answer for my question...
    this is taken from JLS...
    on Compound Assignment Operator
    ========
    First, the left-hand operand is evaluated to produce a variable. If this evaluation completes abruptly, then the assignment expression completes abruptly for the same reason; the right-hand operand is not evaluated and no assignment occurs
    ========
    could anyone kindly show an example of this one?
    thanks..

    double[] vector = new double[3];
    // evaluating vector[-1] completes abruptly so method won't get called
    vector[-1] *= method(); thanks. got it.
    how about if the left-hand operand is not an array?

  • Assignment Operation failed....

    Hi All,
    I have an assignment expression created with the  field "Name" which if is null ie no value at all,then should load a default value from the lookup table
    I have the assignment defined as follows
    If(Is_Null(Name),Name[3])
    where Name[3] is a value from a lookup table.
    When i execute the above assignment it fails as "Assignment Operation failed.  I tried with "If then else " statement as follows and it too fails when i execute the assignment
    If(Is_Null(Name),Name[3],Name)
    where Name[3] is a value from a lookup table.
    Any Help greatly appreciated
    Thanks,
    Aravind

    Hi,
    Check this out
    IF(IS_NULL(Name),Account Group [ABC])
    Above Assignment will be valid only if this Assignment is on look field Account Group and Name is the text field.
    For getting value from the lookup table position the cursor accordingly in the expression and select the Lookup table from the Lookups.Once you will select the lookup table you will get the list of values present in that table.There you can select the value you want to populate.
    Regards,
    Jitesh Talreja

  • Left side of assignment operator must be variable or property

    I Need Help!!!
    How do I prevent getting the message "Left side of assignment
    operator must be variable or property."
    Im trying to use 'onRelease' on the instance named "Item1"
    I have a variable named "sRange"
    sRange+Item1.onRelease=function(){

    Sry I didnt mean to send it through
    I meant to have it like this
    var sRange:String = "Zodiac";
    this.attachMovie("mcProducts","Zodiac",1);
    this.attachMovie("mcProducts","GTop",2);
    this.attachMovie("mcProducts","Triple",3);
    this.attachMovie("mcProducts","Custom",4);
    this.attachMovie("mcProducts","Special",5);
    sRange+ ".Item1".onRelease=function(){
    trace(sRange + "Item1 Selected");
    // I get this error:
    //**Error** Scene=Scene 1, layer=Item12, frame=1:Line 23:
    Left side of assignment operator must be variable or property.
    // sRange+ ".Item1".onRelease=function(){

  • Default assignment operator not created

    I am updating a large old C++ MFC program to VS2013.
    Several classes are failing to compile with C2248 errors, because the relevant default assignment operator has not been created.
    Attempting to force the creation of the default assignment operator using =default; results in C2280 errors saying that the affected classes are attempting to use a deleted function.
    Does this mean that the compiler is refusing to create the default assignment operator?  If so, why would this be?  There is another assignment operator explicitly defined in the class, but that one is for objects of the base class.
    TD

    The program works when compiled with VC5 in VS97 but not when compiled with VS2013.
    I am fairly sure that the derived class assignment operator is used, because I can see data items being copied that are not included in the code for the base class assignment operator.
    Here are some code snippets which show the structure of the code:
    // Base Class
    class CAuxIO : public CObject
    DECLARE_SERIAL(CAuxIO)
    public:
    enum eTypes { eNotDefined=-1, eKeyboard=0, eSerial, … };
    CAuxIO();
    virtual ~CAuxIO();
    virtual CAuxIO& operator=(const CAuxIO& rai);
    void CopySettings(const CAuxIO& rai);
    // Assignment Operator
    CAuxIO& CAuxIO::operator=(const CAuxIO& rai)
    if(this!=&rai)
    m_iType=rai.m_iType;
    m_iIndex=rai.m_iIndex;
    CopySettings(rai);
    return *this;
    // Derived Class
    class CAuxInput : public CAuxIO
    DECLARE_SERIAL(CAuxInput)
    public:
    CAuxInput();
    virtual ~CAuxInput();
    virtual CAuxIO& operator=(const CAuxIO& rai);
    protected:
    CObArray m_DigInSignalArray;
    // Assignment Operator
    CAuxIO& CAuxInput::operator=(const CAuxIO& rai)
    if (this != &rai)
    CAuxIO::operator=(rai);
    return *this;
    // Typical Derived Class
    class CAuxInputKeyboard : public CAuxInput
    DECLARE_SERIAL(CAuxInputKeyboard)
    public:
    CAuxInputKeyboard();
    virtual ~CAuxInputKeyboard();
    virtual CAuxIO& operator=(const CAuxIO& rai);
    // Assignment Operator
    CAuxIO& CAuxInputKeyboard::operator=(const CAuxIO& rai)
    if(this!=&rai)
    CAuxInput::operator=(rai);
    CAuxInputKeyboard* p=(CAuxInputKeyboard*)&rai;
    m_bSeparateArchive=p->m_bSeparateArchive;
    return *this;
    Example of the problem.
    *pci and *pciNew have static types of CAuxInput but run-time types of a derived class
    which has an explicit Assignment operator.
    while(pos)
    CAuxInput* pci=(CAuxInput*)rcl.GetNext(pos);
    int iType=pci->GetType();
    if(((-1)==m_iType) || (iType==m_iType))
    CAuxInput* pciNew=rcl.NewAuxInput(iType);
    if(pciNew)
    // The following line causes C2248
    *pciNew=*pci;
    m_cAuxInputList.AddTail(pciNew);
    TD

  • Cannot able to assign Operation number for Order for Change cost assignment in Travel

    All dear Gurus,
    During the creation of travel request in NWBC suppose if an employee opted to change cost assignment. And he selected order from Accounting Object and given an order. He is not able to select it because he is getting an error when he click on Accept.
    The error is " Order 1000000160 requires assignment to an operation number "
    In ECC we have an option called Enhance Cost assignment through which we can choose the operation number. But no such option is available in NWBC.
    Kindly help me to solve the issue.
    Regards,
    Namsheed.

    Hi,
    Business Area is a Required entry for G/L account 1180 300000.
    So
    Go to FS00, and check Filed Status Group,for G/L account 1180 300000
    Go to OBC4, check the Filed Status Group, what u have mentioned for the G/L account 1180 300000.
    Go To material management segment and put optional entry for the field of Business Area and save.
    Now try ur transaction.
    Regrads,
    Biju K

  • How to assign operation in Receipe

    Hai gurus,
    I had created a Material/BOM and a Resource.
    when I assigned the Resource in the Recipe using T.C = C201 , operations and activities could not be
    assigned .
    what could be the reason , waiting for the positive reply.
    Regards,
    sekar chand

    Hi Sekar,
    Eg opn 10 will be predecessor and the opn 20 for which the phase key is active ,
    which become the super ordinate operation .
    Dear such predecessor and successor relation can be maintain at phase levels only and not at
    operation level.In Master Recipe Operation are nothing but just a title of some work which is going to
    carried out on certain resource.So it is just a number only.Key role is carried by phases which you have
    to confirm later during process order processing.
    Regards,
    Dhaval

  • Assign operation Bill of Material

    Hi,
    This is my question: we need to do a New Assignement or Reassign Operation - Bill of Material.
    It's a Routing (transaction CA02) and I don´t find any Bapi, Function, etc. The Task List exists.
    We try with BAPI_ROUTING_CREATE but doesn't work.
    Someone can help me?
    Thanks in advance.

    Hi,
    BAPI is not working for ROUTING even i have tried...then i coded a BDC program for this.
    so, better go for BDC...dont waste time working on BAPI...
    Regards,
    Pavan

  • Assign Operating Unit

    Hi,
    We need help;
    We define a new Accounting Rules in Account Receivable by following steps:
    Receivables: Setup >Transactions >Accounting Rules > In Form enter Name, Description, Type. But when you enter a Period, a message appears is "This Period does not exist".
    But when we go to profile options and change MO: Operating Unit to “Standard Operating Unit” like "Vision Services", we can define a new Accounting Rules without any issue. But when we keep the MO: Operating Unit as that we define in system we can't define a new Accounting Rules.
    Note: We run "Multi-Org Setup Validation Report" to make sure that find Operating Unit as that we define in system we can't find it in report.
    BR

    Hi,
    many thanks for these notes but the first one doesn't mention any thing about operating units as well as the second one also the second one talk about somthing related to operating system (which is not our goal) and our system BTW is windows.
    Thanks

  • *****Assignment Operator Question - String Operations*****

    There's a lot of code here, but my question pertains to the italicized portion. I am assigning one StringObject to another. But when the assignment is tested with a System.out.println in the TestStringObject class, it doesn't look like the assignment has occurred properly. Even thought the string is reversed with the myObj.reverse() method, when the object is printed to the screen, it does not appear to be reversed. Is there really a problem with the way the assignment is occurring or am I misunderstanding the way assignment occurs in Java. By the way, the TestStringObject class must stay as is, but the StringObject code can be modified. Thanks!
    class TestStringObject{
       public static void main(String [] args){
          StringObject myObj, yourObj;
          myObj = new StringObject("Hello-World!!! Java/is/awesome.");
          yourObj = new StringObject("a man a plan a canal panama");
          myObj.stripCharacters("-!/.");
          myObj.displayStringObject();
          System.out.println();
          myObj.reverse();
          myObj.displayStringObject();
          System.out.println();
          yourObj.stripCharacters(" ");
          System.out.print("yourObj = ");
          yourObj.displayStringObject();
          System.out.println();
    myObj = new StringObject(yourObj.getStore());
    myObj.reverse();
    System.out.print("myObj = ");
    myObj.displayStringObject();
    System.out.println();
    if(myObj.equals(yourObj))
    System.out.println("they are equal");
    else
    System.out.println("they are not equal");
    import java.lang.String.*;
    class StringObject{
       private String store;
       private int storeLength;
       public StringObject(String s){
       //Creates a new StringObject by saving the string s in
       //the instance variable store and its length in
       //the instance variable storeLength.
       store = new String(s);
       storeLength = store.length();
       public void displayStringObject(){
       //Display the instance variable store.
       System.out.println(store);
       public void reverse(){
       //Updates store to hold the reverse of its contents.
       String reverseString = new String();
       char reverseLetter;
       for (int z = storeLength - 1; z > -1; --z){
           reverseLetter = store.charAt(z);
           reverseString = reverseString + reverseLetter;
       store = reverseString;
       public void stripCharacters(String stg){
       //Update store to hold its contents after each of the
       //characters in stg has been removed.
       int tempLength = stg.length();
       char newChar;
       for (int i = 0; i < tempLength; i++){
           newChar = stg.charAt(i);
           stripACharacter(newChar);
           storeLength = store.length();
       public boolean equals(StringObject sObj){ 
       //Determines if the store in sObj is identical to
       //the store in the receiver without regard to case.
       String newStore = sObj.store;
       if (newStore.equalsIgnoreCase(store))
          return true;
       else
          return false;  
       public String getStore(){
       //Return the store to the caller.
       return store;
       private void stripACharacter(char ch){
       //Update store to contain its contents after every occurrence
       //of character ch has been removed.
       String testString = new String();
       char letter;
       for (int x = 0; x < storeLength; x++){
           letter = store.charAt(x);
           if (letter != ch){
              testString = testString + letter;
       store = testString;
    The Output:
    D:\CMU>java TestStringObject
    HelloWorld Javaisawesome
    emosewasiavaJ dlroWolleH
    yourObj = amanaplanacanalpanama
    myObj = amanaplanacanalpanama
    they are equal

    It looks to me like your output is correct. What were you expecting when you compared a palindrome to its reverse?
    I changed it to something that is not the same in both directions and got this output, which is also correct:HelloWorld Javaisawesome
    emosewasiavaJ dlroWolleH
    yourObj = abcdefg
    myObj = gfedcba
    they are not equal

Maybe you are looking for

  • High Temp. AMD Video Card

    Hello,i bought my Lenovo B50-70 Laptop at 3/1/2015 (at the begin of the new year)its Spec: Intel Core i7 4510U 2GHz4 GB Ram500 GB HDD ( Toshiba)Video Card:Intel HD Graphics ( i think that it is Intel HD 4400)AMD Radeon R5 M230 i installed the newest

  • My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please.

    My Mac was updated to Ÿosemite OS and since then the PS5 software doesn't open. I need help on this subject please. They error message I get is "An unexpected and unrecoverable problem has occurred. Photoshop will now exit." This only started after I

  • How to open and write to a new document from a filter plug in?

    Hi. I'm new to writing photoshop plug in. I would like to copy a small area of the current image, open a new document, and paste the area into the new document. All this is done in photoshop only. I am currently using the "Dissolve" filter to do my s

  • ICal 5: day view: how can the list on the left side be hidden?

    hi fellows how can the list on the left side in the day-view of iCal 5 be hidden, so that the computer-screen only shows the graphic-bars (right side)? Thanks a lot for your help Mullika

  • Noted items & spl gl a/c

    hi sap guru's what is noted items what purpose use the noted items. what is the difference between noted items and spl g/l a/c can anybody explin breafly. have any configured steps on noted items . mail id [email protected]