Query the value (data) #

Hello,
Current we are using oracle forms 10g R2.
In my database in a table in a particular column for some rows i have value as *#*. In the forms at run time i want to query those rows by entering *#* in that column in enter-query mode.
If i give *# like '#'* in field in enter-query mode it’s querying the records. But i want to make it in such a way to query only giving value as # in that field.
Please suggest any way to overcome this forms default behavior.
Thanks in advance.
Balaji M

Try the following in the Pre-Query trigger of the Block :
IF :BLOCK_NAME.ITEM_NAME = '#' THEN
SET_BLOCK_PROPERTY ('BLOCK_NAME', DEFAULT_WHERE, 'ITEM_NAME = ''#''');
:BLOCK_NAME.ITEM_NAME := NULL;
ELSE
SET_BLOCK_PROPERTY ('BLOCK_NAME', DEFAULT_WHERE, '');
END IF; Note : ITEM_NAME is a field in the block and a column in the table on which the block BLOCK_NAME is based on. Please check the ELSE part above that is required as well.
Edited by: Arif Khadas on Sep 20, 2010 11:28 AM

Similar Messages

  • T.code F110 Created a proposal, could I modify the value date?

    Hi All,
    I need to create a proposal with tha value date successive to posting date....
    In particular, i wonder if, before running the payment i can modify the "value date" of the scheduled proposal  by hand.
    Thanks...
    Gandalf

    Hi Umberto,
    My understanding of your requirement is like this: When you make a payment to a vendor, it will be credited in his bank account say 2 days after the payment is generated in your system. Say if you have generated a payment document on 24th March, it will be credited to the vendor account on 26 th march. and you want to maintain the value date as 26th march in your payment document.
    If this is the requirement, maintain value date in FBZP settings, under bank determination, for the payment method/hosue bank and HB ID combination. You have to mention number of days to value date.
    Please let me know if this is your requirement

  • Modify the value date

    Hi
    can anyone help me out... after document posting in f-02... when i try to change the value date ie in fb02.. its not allowing me to change the value date...
    thanx in adv

    Hi,
         May be if you change the Field Status put a value date is a required to optional thru transaction code OBC4 and same way you will do posting key field status also optional thru transaction code ob41.
    REgards,
    Satya

  • Query the values not exist in the table

    We have a table AP_INVOICES_ALL where we have a column INVOICE_NUM, now we are searching INVOICE_NUM from a large set of values of INVOICE_NUM provided by the user.
    I want a query to find the INVOICE_NUM values supplied by user that doesn't exist in AP_INVOICES_ALL table.
    Database version : 11g
    OS : aix 6.1
    Regards,
    Gaurav

    Hi,
    If you are getting values in the table then the above solution is there but if you are getting the values in excel or text file then you need to upload the data into the table by using sql loader or by using external table.
    if the case then
    load data from excel or plain file into oracle table by using sql loader.(loader is server based utility)
    create table in oracle like create table table_name as column specification.
    If you have excel then save it as .csv file and create sql loader control file like
    oPTIONS (SKIP=1)
    load data
    infile 'Path_where_you_saved_csv_file'
    truncate
    into table table_name_you_have_created
    fields terminated by ','
    optionally enclosed by '"'
    trailing nullcols
    (your_column_name)
    {code}
    call control file from command prompt from the path where your control file and csv or plain file resides.
    {code}
    sqlldr userid=user_name/passowrd@database_name control=control_file_name
    {code}
    above will insert data into table.
    now you can use the select query...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Query the value of the environment ORACLE_HOME

    I have this problem where I have to call CTX_DDL.OPTIMIZE_INDEX and log the results using CTX_OUTPUT.START_LOG, and I have to tell the user where the log file is. The problem is that I don't know where the log file is being written to.
    According to the documentation on START_LOG [1], the file is written to the value of the LOG_DIRECTORY, which I can get with the query:
    SELECT PAR_VALUE FROM CTXSYS.CTX_PARAMETERS WHERE UPPER(PAR_NAME)=UPPER('LOG_DIRECTORY')
    But this value is NULL in our case, so the log file is written to +%ORACLE_HOME%/ctx/log+. All well and good if you know what the value of %ORACLE_HOME% will be on the server. But I don't know. I would have liked a query such as
    SELECT VAR_VALUE FROM V$ENVIRONMENT_VARIABLES WHERE VAR_NAME='ORACLE_HOME'
    But I can't find any table or view to query or any PL/SQL function that will give me this value. Does anyone know of a way to get this value?
    This is Oracle 10g.2 running on Windows Server 2003 and Windows Server 2008.
    Thanks.
    -- Darren --
    [1] http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/coutpkg.htm#sthref1887

    But I can't find any table or view to query or any PL/SQL function that will give me this value. In some blogs, I've seen this done by calling the package DBMS_SYSTEM.
    Unfortunately, it's an undocumented package so I would never use it in production code.
    Can you derive the value somehow by querying v$parameter? Maybe background_dump_dest? Of course, this isn't guaranteed.

  • Can't not Query the Spatial Data In VS2005

    I use Oracle 10 g, Win XP service pack 2, VS2005 and ODT.
    And my problem is when i try to select a column that is a spatial column. I receive a error message: "Unsupported Data Type". I use Query Window of ODT within VS2005.
    Please help me fix this bug

    Its always worth searching the forums before posting...
    Re: ODP.Net + Spatial
    Any support for spatial and .NET?

  • Error in answers while querying the same data

    Hi folks,
    i posted this question in forums, but found no answer
    this is Oracle Delivered RPD. in answers - Presentation Columns where when i select a column(Division Name), its shows me Name of the Division Names. if i select the same Presentation Column with some other column(Division Number or any other column), this Division Column Names changes to Division Number. as it is delivered content, i went throught the Logic in the RPD and they all looked good. where might the problem we can guess. also to mention: this Organization name is logically connected to two sources i.e. two tables.
    thank you
    kumr

    first clear the cache and run the reports. Some time the result might be hitting the cache.
    Second have you checked the query log, Check sql queries for both criterias and compare. that will give you a clue.

  • Is it possible to add value date field in the debit entry?

    Hi gurus,
    I'm an abapper and struggling to be an FI consultant since I have no one to consult with. Here's my issue:
    I want to add the Value Date field in a GL acct debit entry. I used optional in Field status group. It doesn't appear unless if I change the posting key to credit. But if I change it to required entry, an error appears " Rules for posting key 40 and acct 115-30-002 set incorrectly for "VALUT" field . Did I miss anything? As much as possible, I don't want to use the other GL Account (a credit entry) since I dont need it in the program flow.
    Need an expert explanation on this. Sorry I only have limited knowlege with regards to FI concepts.

    Hi
    Feild status at entry time looks for the following combination
    S- Supressed
    D- Display
    R- Required
    O- Optional
    System looks for this above combination at first in Posting Key and then in FSV of account which we enter. For this partical purpose the the feilds in posting key are kept optional.
    Check the feild status of posting key & account T-code FBKP.
    thanks
    Colin Thomas

  • How to monitor the values transferred to the jump query in a debug mode?

    Dear experts,
    There is a problem in the interface of two qeuries. In the first query, the infoobject is defined as a global filter with a constant. I added this infoobject in the interface via RSBBS.
    Nevertheless, if i run the jump query, the value in this InfoObject is not taken into account by the jump query.
    Does anybody know whether there is a method to debug (monitor) the values tranferred to the jump query? For example, in the transaction RSRT or others.
    Thanks in advance!

    in RSRT- EXECUTE+DEBUG => breakpoint in RRI transpormations
    also see the note 1053310
    Regards, Ragz

  • Need help with LikeFilter for querying the keyset instead of value

    Hi,
    I'm looking for help with the LikeFilter.
    I need to query the cache to get all entries with key starting with a particular string.
    I could see samples using LikeFilter for querying the values in the cache but not the keyset.
    Can someone help?
    E.g:
    Cache Entries:
    abc123 - value1
    abc234 - value2
    bcd123 - value3
    I want to get all entries with key starting with 'abc'.
    thanks,
    rama.

    NJ, thanks for the quick reply.
    I tried something similar (as below) but this code gives me 'java.lang.NoClassDefFoundError: com/tangosol/util/ValueExtractor'.
    KeyExtractor extractor = new KeyExtractor("getKey");
    Filter filter = new LikeFilter(extractor, id+":%",'-',false);
    -rama.
    Edited by: 911950 on Feb 2, 2012 1:18 PM

  • Value Date query

    Hi Everyone,
    As we all know that the value date field is an editable field in FB02. I have noticed that
    if click the pencil icon in FB03 and make changes to text or any other field and save the
    document, the value date entered before, disappears from the document. If I edit the document
    from FB02 then the value date does not disappear. Kindly give your suggestions on this.
    Also sometimes when I enter value date in F-28 and post the incoming payment, the value
    date does not get displayed in FB03 and in Table BSEG Field VALUT. Please give your
    valuable inputs on this also.
    Regards,
    Manzoor

    Thanks Yogesh & Anss for your efforts, but the problem persists.
    First of all, the value date field has to be an editable field, so I cant change the Rules for Changing Documents.
    The problem is described by Two scenarios:
    1. For a BR document posted with value date, say, "25.03.2011" if I edit the 'text' field in FB03 without changing the value date and save the document, the value date gets erased.
    2. For a similar BR document posted with value date "25.03.2011" when edited in FB02 without changing the value date and the document is saved, the value date does not get erased.
    Awaiting your kind suggestions.
    Regards
    Manzoor

  • Value date in the credit memo.

    Please explain the Use of the Value Date determination of the credit memo and How Does it help in payment Reconcillation
    Also There is a Indicator in the RV document type: Credit Memo W/Value Date
    What is the consequence of flagging the same.
    Edited by: SAP Consultant on Dec 10, 2008 12:47 PM

    thanks

  • If i change value date what is the implications, (urgent)

    normallye bank entry needs a 'Value Date'. Can this value date be defaulted to the posting date? Could another option be to make it non-mandatory - if this is the case, are there any implications of not entering a value date?
    thanks in advance and value points are assigned
    regards
    Sunitha Reddy

    Hi,
    Value date is the date on which bank will make the payment.This is used in liquidity forecasting.
    generally the posting date will be the value date unless otherwise specified.
    for check deposits you can set the value dates by defining rules ( goto spro>bankactng>business tran>check deposit)
    For APP we set the valude dates in T.code OBVCU
    we can make it non-mandaoty by changing the field status group of the respective GL account.
    Hope this helps.
    Thanks,
    Vamsi

  • Reporting Level The Value will Double....

    Hi Friends,
                      IN BI 7.O I Build MultiProvider Based on DSO And CUBE.Here My DSO is Standard  and the same DSO  Fields are Mapped  in to CUBE also.Here My Query Also Standard Query Under DSO,But I copied to Multiprovider.When i execute the Query the Value will be Double.Please let me know the solution for this.
    Thanx & Regards,
    Raghavendra Bellam.

    Hi,
    As you are aware that a Multiprovider perform a union operation on data from all the objects underneath it.
    If your Query selection fullfil the criteria from the cube as well as DSO the key figure value would be double.
    One solution is to provide a variable/Filter for the infoprovider in the query to get result from only one of them.
    Hope this solves.
    Regards,
    Karan

  • Bex Query showing incorrect data

    Hi Experts,
    I have a Bex query on an infoset. The infoset is based on Sales Order Line Item DSO and Sales Order Condition DSO. I am refering Net value from Sales Order Line Item DSO. In the query, the values of Net Value is not coming correctly. When i check the value in Sales Order Line Item DSO it shows 100. However, in the query it shows 500. When i checked the infoset, it had 5 records. In each record, the net value was 100. What should i do to get the correct value of Net Value in the query.
    Have anyone faced similar problem ?
    Please reply as soon as possible.
    Thanks,
    Saachi

    Hi Sachi,
    This is a common problem in infoset.
    Sales order line item - SLI say
    Sales order condition - SC say.
    The value you see in your net value field depends on your join condition in the infoset.
    Currently you have join in such a way that 1 record in SLI correspods to 5 records in SLC (this is as per your join condition), hence you see this error. Youcan manupilate your join condition to get the required result, if this is viable.
    However, in most cases you may not be able to alleviate the fields defining the join.
    Say your sales order and item form the joining fields, then in sales order condition DSO you have 5 records for that sales order and item.
    The way you could probably avoid net value getting multiplied 5 times is by using exception aggregation  with reference char a characteristic in the query.
    The ref char should uniquely identify the 5 sales order item condition lines.
    (basic principle - we have to net value/ no of lines in Sales order condition DSO [5 in this case] .)
    The problem, however is, whenever you consider uniqueness defining fields, you would look at the keys of DSO, because they define uniqueness. One could have multiple infoobject when defining a DSO key.
    So you would'nt be able to define any record with only one particular infoobject(ref char), based on which you could define the  exception aggreation.
    You could define one more data field in the DSO which is a concatenation of all of its keys and then use it in exception aggreg as a reference char in the query.
    One more way is to load data from the two DSO to further cubes to achieve the requirement.
    I think, this is the limitation with the infoset.
    Please let me know if you find any other solution.
    Hope it helps,
    Regards,
    Sunmit.

Maybe you are looking for

  • How to allow access to winrs for non-admin user?

    I have Windows Server 2012 (and Server 2008, but it is next priority) to monitor it using txwinrm. txwinrm library internally is using WinRS protocol. I have to monitor it using least privileged user, but don't know how to configure access for him. A

  • Computer shuts down when playing a 3D game...

    The weirdest thing... my computer won't run any 3d application anymore. If i try and run Command and Conquer Generals, fifa 2004, or half life (all 3d games), it dies. Yet i can happily run Rollercoaster Tycoon 2 (a 2D game) for hours without a hiccu

  • TS4000 I can't see my reminders in my Calendar app on my Mac (10.8.5)

    Am I going mad??? Or do reminder lists not display in Calendar like they used to? I have looked on various discussions.... They suggest that reminders lists are displayable on the Calendar app But they seem separate apps now. I know I can see a calen

  • ABAP Workbench in SAP R/3

    Can any one give me shot description? ABAP in the SAP R/3 System. Architecture of SAP R/3 Applications. Database Layer. Application Layer. Presentation Layer. Work Processes. Work Processes. Screen Processor. ABAP Processor. Types of Work Process. Pr

  • Not calculating tax in invoice!

    Dear friends, I have created invoice, but it is not calculating the tax. What could be the possible reason and what could be the solution? What is the tax procedure used in this case?