How to know a recievable invoice is posted or not.

Hi,
I am using following query to know whether a invoice is posted or not.
SELECT 1
FROM ra_cust_trx_line_gl_dist_all RCTG
WHERE RCTG.posting_control_id=-3
AND RCTG.customer_trx_id=RCT.customer_trx_id
But this is returning '1' even when the GL batch status is 'unposted'.
Apps version: 11.5.10
Using 'General Ledger Transfer Program' concurrent program to to post the invoice to GL.
Is this the correct query, please suggest.
Thanks & Regards,
Syed.

Thanks for the quick reply octavio,
That was part of Query i provided in the previous post. Here is the complete query.
Requirement:
Fetching all open invoices which are posted, not applied. But this is still fetching the invoice which are not posted. Please suggest.
SELECT RCT.customer_trx_id,
RCT.org_id,
TO_CHAR(RCT.last_update_date,'RRRR-MM-DD HH24:MI:SS') LastUpdateDate
FROM ra_customer_trx_all RCT,
ra_cust_trx_types_all RCTTA
WHERE RCT.complete_flag='Y'
AND RCT.status_trx='OP'
AND NOT EXISTS (SELECT 1
FROM ar_receivable_applications_all ARP
WHERE ARP.applied_customer_trx_id = RCT.customer_trx_id
AND ARP.application_type='CASH'
AND ARP.display='Y'
HAVING SUM(ARP.amount_applied) > 0
AND NOT EXISTS (SELECT 1
FROM ra_cust_trx_line_gl_dist_all RCTG
WHERE RCTG.posting_control_id=-3
AND RCTG.customer_trx_id=RCT.customer_trx_id)
AND NOT EXISTS (SELECT 1
FROM ar_receivable_applications_all ARP
WHERE ARP.applied_customer_trx_id = RCT.customer_trx_id
AND ARP.application_type='CM'
AND ARP.display='Y'
HAVING SUM(ARP.amount_applied) > 0)
AND RCTTA.cust_trx_type_id = RCT.cust_trx_type_id
AND RCTTA.org_id = RCT.org_id
AND RCTAA.type IN ('INV','CM')
Thanks&Regards,
Syed.

Similar Messages

  • How to know the delivery order is posted or not

    HI all,
    i am creating a shipment order using BAPI_shipment_create.for this i have to upload delivery order to this bapi.
    in my program i need to check, this delivery order is posted or not.so i have to check againest vbuk & vbup table.but there is so many fields for status checking like wbstk,fkstk,gbstk,kostk,pdstk in vbuk table & wbsta,fksta,kosta,pdsta fields in vbup.
    1)so, which fields ,i have to check so that i will come to know that this delivery order is posted or not?
    2)what r the values(like A,B,C) of those fields for not posted?
    2)if a delivery order is partially posted,can i take this partially posted DO for my new shipment order?
    3)which fields of vbuk & vbup, i need to check if DO is partially posted & what should the values of those fields?
    plz suggest me .i am totaly confused.it is realy urgent.
    Thanks & Regards
    pabitra

    In VBUK check the field "LFGSK"(Overall delivery status for all items).This should be "C" if all the items are complete.The value "A" stands for "Note relevant" and "B" stands for "Partially posted".After posting if all the items are successfully posted then the overall status LFGSK should be "C"(Completely posted).
    Similarly at the item level you can check the field "LFGSA" in VBUP table for getting the overall delivery status of an item.This should be "C" if successfully posted.

  • Please help me , how to know if my ipod is unloked or not to , I live in Brazil and I can't sync  it with  itunes, please help me , how to know if my ipod is unloked or not to , I live in Brazil and I can't sync  it with  itunes

    please, help me , how to know if my ipod is unloked or not , I live in Brazil and I can't sync my ipod with  the itunes thanks.

    What do you mean, "is it unlocked"? If your iPod has a screen lock set, it will be obvious from the iPod's screen. For issues with the iPod not appearing in iTunes, start which these troubleshooting steps:
    http://support.apple.com/kb/TS1538
    Regards.

  • How to know the PO  Created with RFQ or Not..??

    Hi MM Gurus,
    How to know the purchase order created with one quotation or not. because when i am trying to create PO with /ME21N through DOcumen Overview on. there is list of Quotation. i created PO with XYZ quotation. and after creation of PO i am trying to create another PO with another quotation but in that list still XYZ quotation is Displying. so how to knows once PO cretd with Quotation or not. . and I dont wanted to disply quotation once created Po.
    Thanks in Advance.
    N.A.Reddy

    Hi Pradeep. Thanks for the mail.
    the problem is ....with *quotation...*
    How to know the purchase order created with one quotation or not.
    because when i am trying to create PO with /ME21N through DOcumen Overview on. there is list of Quotation.
    I created PO with XYZ quotation. and after creation of PO i am trying to create another PO with another quotation but in that list still XYZ quotation is Displying.
    so how to knows once PO cretd with Quotation or not. .
    and I dont wanted to disply quotation once created Po.
    Thanks in Advance.
    N.A.Reddy

  • How to know whether the javascript is disabled or not while loading the jsp

    Hi,
    My query is like how to know whether the javascript is disabled or not while loading the Application main JSP in Mozilla browser.
    I want some Java code or JavaScript code.

    To the point, just let JS fire a specific HTTP request inside the same session.
    This can be done in several ways. 1) Create a hidden <img> element and set the `src` attribute so that it will request a (fake) image from the server. The server just have to intercept on this specific request. 2) Fire an ajaxical request and let the server intercept on it. You can use a Filter for this which sets a token in the session scope to inform that the client has JS enabled.

  • How to know whether the phone is replaced or not?

    Dear All,
    Please help in how to know whether Iphone 5 is replaced or not? I came to know that on replacement, imei number gets changed. please make me aware.

    Nobody here can make you aware.  You need to contact Apple directly.

  • How to know whether my phone is unlocked or not

    how to know whether my iphone is unlocked or not.

    You don't know if you bought an unlocked iphone or not?
    What did you ask for?
    What does your reciept say?

  • How to know that item is serially controlled or not ?

    Hi,
    How to know that the ordered item is serially controlled or not ?
    In which tables we have refere to know that ?
    Thanks

    --If the item is only serial number controlled and not lot number controlled
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c
    where a.transaction_id=b.transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    OR (If it is lot and serial number controlled)
    select serial_number from mtl_unit_transactions a, mtl_material_transactions b, wsh_delivery_details c, mtl_transaction_lot_numbers d
    where b.transaction_id=d.transaction_id
    and a.transaction_id=d.serial_transaction_id
    and b.trx_source_line_id=c.source_line_id
    and c.source_header_number=&order_number
    and b.transaction_type_id=33 --34 if it is internal order shipments
    Thanks
    Nagamohan

  • How to know given email id is exists or not

    HI,
    I am sending email from my application after registration. if the user register with an email which is not existing, i need to find out. but how to know whether the given email id is exists or not.
    when i am trying to send email to not existing emails id, it is not throwing any exception also.
    can you please help me in resolving this
    thanks in advance

    Sampi-n wrote:
    my requirement is like this.
    when the user registers with his email id, it will mails him the password and first time it will automatically login(default login) to the application with out asking for username and password.
    here i am sending mail to the given mail id. here i am not able to find the email was delivered or not. if i get to know that ican display registratin fails on the page with put default loginIt's best do it the way pbrockway2 suggested:
    Or you could send some mail to the id containing a link which, when followed, completes the registration process. If the recipient doesn't mail back, have the registration fail. So you ask the user to enter his/her email id. Send an email with the verification link and/or key. Tell the user to check their email and either click the link or enter the registration key in some form. Once that is done, you mark their email address as verified and email them their username/password (personally, I dislike it when sites mail me my password. It's an insecure medium and there is no need for me to see my password when I've just registered, I just would like an option to reset it, that's all). Don't send a mail with the username/password before you've verified the account. What if the user misspelled the email id? The username/password could end up with someone else. And since most people use the same username and password everywhere, you'd be exposing their details to a stranger.

  • How to know whether a file is opened  or not ?

    Hi all,
    How to know whether a file is opened by its editor or not ? File may be any of the type.

    There are platform-dependent commands that tell whether a file (or directory, port etc.) is used by which processes.
    [oracle@izsak ~]$ fuser .
    .:                    9299c
    [oracle@izsak ~]$ ps -p  9299 -f
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    9299  9298  0 Apr25 pts/0    00:00:00 -bash
    [oracle@izsak ~]$ ls -l $fn
    -rw-r-----  1 oracle oinstall 111215876 Apr 25 19:05 /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1
    [oracle@izsak ~]$ fuser $fn
    /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1:  3746  3747  3748  3749  3750  3751  3752  3753  3754  3755  3756  3758  3761  3762  3765  3767  3769  3770  3771 18638 21605 21743 21744 21745 22140 22143
    [oracle@izsak ~]$ ps -p 3746 -f
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    3746 26427  0 Apr23 ?        00:00:01 /opt/oracle/product/AS/10g/R2/jdk/bin/java -server -Djava.security.policy=/opt...

  • How to know whther my iphone is real or not

    how to know wether my iphone is real or fake?

    Plug the SN in here:
    http://www.chipmunk.nl/klantenservice/applemodel.html
    or here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do

  • RMI :- how to know that rmi registry is running or not using java code

    hi
    I want to know that how to check wather rmi registry is running or not by program in java
    plz any one reply

    Simple method - try to connect to it and see if you get an exception.
    Since the registry can be running on a remote machine, the only simple way
    is to try connecting.
    If the registry is running on a local machine you can also use OS tools (like "ps" on unix) to check whether the process is running, or network tools (e.g. netstat) to check whether it's listening on its TCP/IP port.
    Genady

  • How to know wether a battery is recent or not?

    Hello,
    what specifications written on the battery say when it is produced?
    in short, how to know the age of the battery without the notebook?
    Thank you

    There are platform-dependent commands that tell whether a file (or directory, port etc.) is used by which processes.
    [oracle@izsak ~]$ fuser .
    .:                    9299c
    [oracle@izsak ~]$ ps -p  9299 -f
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    9299  9298  0 Apr25 pts/0    00:00:00 -bash
    [oracle@izsak ~]$ ls -l $fn
    -rw-r-----  1 oracle oinstall 111215876 Apr 25 19:05 /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1
    [oracle@izsak ~]$ fuser $fn
    /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1:  3746  3747  3748  3749  3750  3751  3752  3753  3754  3755  3756  3758  3761  3762  3765  3767  3769  3770  3771 18638 21605 21743 21744 21745 22140 22143
    [oracle@izsak ~]$ ps -p 3746 -f
    UID        PID  PPID  C STIME TTY          TIME CMD
    oracle    3746 26427  0 Apr23 ?        00:00:01 /opt/oracle/product/AS/10g/R2/jdk/bin/java -server -Djava.security.policy=/opt...

  • How to know if a file browser item is not null using javascript fucntion

    Hi
    <br><br>
    I tried to use javascript for validation. I have a file browser item named P55_FILE_NAME and I would like to know if this item is null or not before submit.
    <br>
    I wrote this function :<br><br>
    function validate_import(f_n){<br>
         if (trim(document.getElementByName(f_n).src) == "")<br>
         {<br>
         alert ("File name is empty.");<br>
         document.getElementByName(f_n).focus();<br>
         }<br>
         else{<br>
         doSubmit('SUBMIT');<br>
         }<br>
    } <br><br>
    When I press submit button I got an error, sounds like the src method does not exist in my input item. <br>
    Then, I looked my source page an I found this :<br><br>
    input type="file" name="p_t01" size="30"
    <br><br>
    there is know src method and the name is not P55_FILE_NAME and I don't want to use <b>p_t01</b> that will change.<br>
    <br>
    I need your help.<br>
    Benn

    Hello,
    The p_txx notation is the internal name the ApEx engine attaches to each page item. It starts with p_t01 (for the first item on page) and can end with p_t99 (hence, the max 99 items per page limit). You can see these names in your HTML source code.
    The bug in the File Browse item (fixed in version 2.2) is that the ID of the item is the internal name instead of the item name. Hence, in order to use DOM, you need to use this internal notation.
    If the File Browse item id is p_t01, you can null its content by using something like that (V2.0 notation) :
    html_GetElement('p_t01').value = '';I'm using the same, and similar code, for manipulating this type of item with no problems.
    Please document the use of this workaround, as when you'll upgrade your ApEx system, you will have to change this code back to the standard – item id equal item name.
    (Please follow Scott's advise, and keep your logic connected issues on the same thread. It will get you more quick and accurate help).
    Regards,
    Arie.

  • How to know an item is stock Blocked or not ?

    Hi ,
    Is there any table fields to know an item is stock blocked or not ?
    (Like table vbuk is having cmps0 and cmps1 for OD block and Credit Block)
    Thanks and Regards,
    KN

    Hi,
    I am an abaper my requirement is to filter our blocked orders like OD block, Credit block and Stock block.
    for OD block and Credit Block i am using VBUK-csps0 and csps1 fields.

Maybe you are looking for

  • Syntax error in program "SAPLMEGUI "

    Hi Experts I experienced the below run time error with tcodes me23n / me2n etc The following syntax error occurred in program "SAPLMEGUI " in include "OI_LMEGUICIOI_EXG " in line 132: "The data object "L_MEPOITEM" does not have a component called "OI

  • Please help with resource files!!!

    As I was trying to modify the menubar I took out the SArtFile.Bin and Extras2.rsrc from their respective folders. I did this without replacing them first, which prior to this time work perfectly. Now when I try to replace them with the prefer file or

  • New 3tb Seagate drive external USB enclosure MAC OS X 10.6.8...

    I just purchased a new 3tb Seagate drive to replace a 2tb drive in an external USB enclosure, I can access, partition and format it using Parallels but can't even see it in Disk Utilities on Mac OS X 10.6.8...????!!!!! Any Help? I beleive it has a Jm

  • Help with Note 761637 - Login restrictions prevent TMSADM logon

    Hello all, I'm receviing a large number of logon prompts in STMS.  I'm having trouble understanding how to implement SAP note 761637 and was hoping someone that had implemented it already could guide me. The note says If you now add an entry with sys

  • Connect VS2010 to Admin Console of Remote Computer

    Hi I want to use VS2010 on my local machine to deploy on another server. Although I have connect my BizTalk Admin Cosole Group to Group of other Server.But , when I run deploy, it still deploys on local machine and not on connected one (other machine