Urgent! I get value when executing query of VO in page, but null in plsql.

Hi, gentlemen,
Please help me with this issue.
1,My VO query sql is like this:
SELECT acra.receipt_number as receipt_number,
al_a.meaning as receipt_type, acra.currency_code as currency_code,
acrha_a.amount as receipt_amount,
acra.receipt_date as receipt_date,
acrha_b.gl_date as gl_date,
arm.NAME as payment_method,
acra.doc_sequence_value as doc_sequence_value,
al_b.meaning as status,
acrha_a.acctd_amount as acctd_amount,
rcta.trx_number as trx_number,
rc.customer_name as customer_name,
rc.customer_number as customer_number,
rc.jgzz_fiscal_code as taxpayer_id,
rsu.location as customer_site,
acra.customer_receipt_reference as customer_ref,
acra.comments as comments,
acra.cash_receipt_id as cash_receipt_id
FROM ar_receivable_applications_all araa,
ar_cash_receipts_all acra,
ar_lookups al_a,
ar_cash_receipt_history_all acrha_a,
ar_cash_receipt_history_all acrha_b,
ar_receipt_methods arm,
ar_lookups al_b,
ra_customer_trx_all rcta,
(SELECT hca.cust_account_id customer_id,
hca.org_id org_id,
hp.party_name customer_name,
hca.account_number customer_number,
hp.jgzz_fiscal_code
FROM hz_cust_accounts_all hca, hz_parties hp
WHERE hp.party_id = hca.party_id) rc,
(SELECT site_use_id site_use_id,
org_id org_id,
cust_acct_site_id address_id,
location location
FROM hz_cust_site_uses_all) rsu
WHERE araa.receivable_application_id = :1
and acra.cash_receipt_id = araa.cash_receipt_id
and al_a.lookup_type(+) = 'PAYMENT_CATEGORY_TYPE'
AND al_a.lookup_code(+) = acra.TYPE
AND acrha_a.cash_receipt_id = acra.cash_receipt_id
AND acrha_a.current_record_flag = nvl('Y', acra.receipt_number)
AND acrha_a.org_id = acra.org_id
AND acrha_b.cash_receipt_id = acra.cash_receipt_id
AND acrha_b.first_posted_record_flag(+) = 'Y'
AND arm.receipt_method_id = acra.receipt_method_id
AND al_b.lookup_type(+) = 'RECEIPT_CREATION_STATUS'
AND al_b.lookup_code(+) = acra.status
AND rcta.customer_trx_id(+) = acra.receivables_trx_id
AND rcta.org_id(+) = acra.org_id
AND rc.customer_id(+) = acra.pay_from_customer
AND rc.org_id(+) = acra.org_id
AND rsu.site_use_id(+) = acra.customer_site_use_id
AND rsu.org_id(+) = acra.org_id
2, I add the init func in VOImpl which is like this:
the receiptApplicationId is 136877.
public void initQuery(Number receiptApplicationId)
setWhereClauseParams(null); // always reset
setWhereClauseParam(0, receiptApplicationId);
executeQuery();
When executing the page, its value shows to be "現預金".
And I used String receipt_type = (String)oaRow.getAttribute("ReceiptType"); in AMImpl, its value is "現預金".
But when I execute above sql in pl/sql developer, its value is null.
I am really confused with this.
How could I get the whole running sql statement, and know why my issue is like this? It's very urgent, Thanks!

This Query is Org Specific.(As this query using Ord_id attribute to fetch out row.)
you need to set org_id at PLSQL Developer or Toad Level.
Thanks, Avaneesh

Similar Messages

  • When executing query...in the result i want to display each row values

    Hi All,
    When executing query...in the result area i want to display  each row values.
    Example:  query result is like this
    Business Area   Sales   Material 
    kh02                 1000      2000
                            2000       300
                            5000        400
                            6990       1000
    Kh03                1400        700
                             200        500
                              50          60
    but i need like this
    kh02               1000         2000
    kh02                500           600
    kh02                400           300
    kh03                1400         700
    kh03               200            500
    Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
    please advice me easy way
    i willl be very gr8ful
    Thanks
    sidhartha

    Hi,
    that'S exactly what hide repeated key values does. If this option is on your result is:
    Kh02 1000 1500
    blank 500 456
    blank 600 700
    kh03 400 500
    balnk 500 600
    If you turn it off, the result will be:
    Kh02 1000 1500
    Kh02 500 456
    kh02 600 700
    kh03 400 500
    kh03 500 600
    Exaclty what you want. Try it, it should work
    Regards,
    Juergen

  • FSV showing different values when executed by different users

    Hi Experts,
    While executing FSV throug RFBILA00 we are getting different values when executed by differet users. Variant selection is same except the user (which is different). For one user report is perfect for another user some GL accounts were not displayed and some accounts shows different values.
    Anybody could help on this. Is there any userwise settings are there.
    Thanks in advance.
    Regards,
    Narayanan

    Hi,
    check user authorization, maybe one user has limited display authorization for some values (as they are linked to specific profit center,...)
    BR Christian

  • MRP_ATP_PUB.Call_ATP api not retrieving requested_date_quantity value when executed in custom schema but when executed in apps its working fine, can anyone help on this..

    The MRP_ATP_PUB.Call_ATP api not retrieving requested_date_quantity value when executed in custom schema but when executed in apps its working fine, can anyone help on this..
    We are passing the required values to the ATP API.
    1) The x_return_status is showing as 'S' i.e. success but x_atp_rec.Requested_Date_Quantity is not returning any value.
    2) If there is a grant issue how to identify it.
    Regards,
        Vinod Annukaran

    Pl do not post duplicates -0 MRP_ATP_PUB.Call_ATP api not retrieving requested_date_quantity value when executed in custom schema but when executed in apps its working fine, can anyone help on this..

  • Can we have triggers that get fired when we Query a table?

    Hi All,
    What could be the pricise answer to the following question?
    1. Can we have triggers that get fired when we Query a table?
    2. What the relation of triggers and delete, truncate statement in one line?
    3. What is data modelling? Why is it necessary?
    4. Which are not mandatory but essential files in Oracle?
    Regards,
    AAK

    1. Can we have triggers that get fired when we Query a table?for INSERT, UPDATE and DELETE statement, yes
    for SELECT statement, no.
    Question 2 is not clear for me.
    Question 3 is very very general ...
    4 >Which are not mandatory but essential files in Oracle?
    all database files (initialization file, control files, datafiles, redo log files) are mandatory. What is not mandatory but considered as a (very) bad practice is
    to have only 1 control file and only 1 redo log group with 1 redo log file.

  • How to get value when OAMessageLovInputBean Change

    How to get value when OAMessageLovInputBean Change
    I want to get lov value atfer user select value return page

    As you wanna get the value in process form request, get the value from the VO column attached to the bean, if not you can attach a tranient Vo attribute!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                               

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • What is error 1712, I am getting it when I try to open my pages application

    what is error 1712, I am getting it when I try to open my pages application

    No idea.
    Along with no idea of the complete message, which Pages, version, hardware, System, or even whether it is OSX or iOS. Or what you were doing at the time.
    Peter

  • How to update zero to a column value when record does not exist in table but should display the column value when it exists in table?

    Hello Everyone,
    How to update zero to a column value when record does not exist in table  but should display the column value when it exists in table
    Regards
    Regards Gautam S

    As per my understanding...
    You Would like to see this 
    Code:
    SELECT COALESCE(Salary,0) from Employee;
    Regards
    Shivaprasad S
    Please mark as answer if helpful
    Shiv

  • Getting error "Column is not indexed " when executing query on ORACLE 10g

    Hi all,
    When executing the below query im getting the error "ORA-20000:Column is not indexed"
    query:
    select xmlelement("nexml:result",xmlattributes('http://namespaces.nextance.com/nex/xml' as "xmlns:nexml"),xmlelement("nexml:value",count(*))).getClobVal()
    from "permission"
    where ( ((contains(object_value,'(searchDocument) inpath(/permission/action)') > 0)) and ((existsNode(object_value,'/permission[resource/resourcekey/@type[. = "document"]]') = 1)) and ((contains(object_value,'(GeneralUser) inpath(/permission/principal/@name)') > 0)) and ((existsNode(object_value,'/permission[principal/@type[. = "group"]]') = 1)) and ((existsNode(object_value,'/permission[type[. = "allow"]]') = 1)) and ((contains(object_value,'(nexip) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Corporate) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(ProcurementAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Procurement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(SalesAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0)) )
    Then after checking some forum, i replaced "contains" with "ora:contains" and executed the query. Now im not getting the first error but got a new error "invalid relational operator"
    So please help me in resolving the errors?
    Thanks in advance.

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • The values for list items of other data blocks are not getting displayed when executed.

    Hi,
        I have a new problem again.
        I am doing a new form in which there are around 8 blocks. All the blocks have their tables in the oracle database.
        Each block has 18 columns with the same column & column names. But the values in those columns are different & the values do not match.
        The problem lies while i execute the form, it populates only the first block data. Other blocks do not display or populate the values.
        I cannot create a master relationship because all the column values are different.
        How do i display or populate the values of all the tables?
       Please help me. Thank You.

    hi
    if your form has truly disassociated tables, then you could simply use a key-exeqry trigger at forms level to travel to each block in turn and perform an execute-query built-in, eventually returning to the starting block.
    ie
    go_block('..');
    execute_query;
    go_block('..');
    execute_query;
    etc
    go_item(......);
    In this case you would use the block where clause to constrain each table to the appropriate set.
    If however, the database has no relationships between the tables but the data content has some corelation, then you could craft a forms relation manually.
    cheers
    Rod

  • Urgent help please ! Get data after executing query

    Hi all
    I have stored some data's with labVIEW to mysql by writing query using db tools execute query.vi.
    For fetching those data's also wrote a query(select* from....)using the same tool . 
    the query got executed . What tool i have to use to retrieve the data from mysql to a labview array.( the fetch recordset data.vi tool is not fetching.)
    Thanks
    Attachments:
    db.JPG ‏11 KB

    First, make sure your query string is correct, no typos, the table and fields exist.  If all of this is correct, try using Fetch Next Recordset instead of Fetch Recordset.  I've had to do that with some databases.  For some reason, the record pointer doesn't advance with the query.  Or maybe the record pointer is pointing to empty space and the query places the record found as the next record instead of the current record.
    - tbob
    Inventor of the WORM Global

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • Java.sql.SQLException: ORA-00933: error when  executing query

    Hello,
    I am trying to execute the following query from a jsp page.
    String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";
    stmt.executeQuery(sqlUpdate);
    I get the follwoing error java.sql.SQLException: ORA-00933: SQL command not properly ended
    When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.
    Thanks,
    Nikky128

    Nikky128 wrote:
    Hello,
    I am trying to execute the following query from a jsp page.There's a big part of your problem. You shouldn't be doing database stuff in JSPs. If you must, you should be using JSTL and its <sql> tags.
    String sqlUpdate ="UPDATE table_name SET name ='"+name+"', description='"+description+"', proj_link='" projlink"', active='" active"',sort_order='" order"',image='" image"',category='" category"', technology='" technology "' WHERE id="+id+" ";Not using PreparedStatement here is just a silly noob error.
    When I omit "description" from the query it executes fine. But when I place it back into the query I get the above error. The table is in Oracle database and the datatype of description id varchar2(4000). I declared all the variables used in the query, I then assigned values caught from the form and then am trying to update the form varibles in the table.Probably a single or double quote that you can't see. PreparedStatement will eliminate that problem.
    %

  • Select Last  X days when execute query

    Hello,
    ı need  last N stop date of machines in my query, ı have stop date and when ı execute the query ı want to see just last 3 stop. have can ı make it?
    the filters of my query  are: Fiscal Year and Fiscal Period.
    ı cant give any condition because stop date is not key figure,has anyone any ideas??

    you can create condition on the stop date irrespective of key figure or not.
    Create the formual which has condition
    ( A  = B) * C + D
    The above statment means:
    If A = B
    then Display C
    or Display D.

Maybe you are looking for

  • Performance problem(ANEA/ANEP table) in Select statement

    Hi I am using below select statement to fetch data. Does the below where statement have performance issue? can you Pls suggest. 1)In select of ANEP table, i am not using all the Key field in where condition. will it have performance problem? 2)does t

  • Tutorial for a beginner for Adobe photoshop elements 7

    Hi, Many years to remember when I first downloaded Adobe photoshop worked ok. Then purchased the PSE set-up. I found it a very sophistcated program but never could master it. So I kept with Adobe photoshop. But when I changed recently form Windows XP

  • Creating XML using JSP

    Hi I want to create a xml using JSP For eg I want to create a report           and I want to take all the data required for the report from the user           and want to put all the information in a session and whenever a user           wants to see

  • Getting an image from a DVD/Quicktime member

    Has anyone worked out how to grab a frame still from a DVD or Quicktime member (from within Director, directly or otherwise) I need to do this on both PC and Mac, but the mac one is more important to me at the moment. When I try and access the image

  • Personal Web Page Error Message

    Has anyone else had problems with the website builder?  Last night I was on the phone with tech support for 2 hrs trying to figure out why I can't add pictures to my website.  Everytime I tried to add photos or text I got the message, " The type of i