How to add balance column in the PO and AP Report

I have added amount remaining column in this report from ap payment schedules all,but it is not returning any rows,can you please look into this issue.
select
distinct po_vendors.segment1
|| chr(9) || po_vendors.vendor_name
|| chr(9) || po_vendor_sites.vendor_site_code
|| chr(9) || po_vendors.vendor_type_lookup_code
|| chr(9) || po_vendor_sites. attribute2
|| chr(9) || po_vendor_sites.inactive_date
|| chr(9) || po_vendor_sites.creation_date
|| chr(9) || to_char(max(ap_checks.check_date), 'DD-MON-YYYY')
|| chr(9) || ap_payment_schedules.amount_remaining
from
po_vendors
,po_vendor_sites
,ap_checks
,ap_payment_schedules
,ap_invoices i2
where
po_vendors.end_date_active is null and
po_vendors.vendor_id = po_vendor_sites.vendor_id
-- and po_vendors.VENDOR_ID=i2.VENDOR_ID
and i2.invoice_id=ap_payment_schedules.invoice_id
and po_vendor_sites.inactive_date is null
and po_vendor_sites.creation_date < sysdate--&v_cutoff_date
and po_vendor_sites.pay_site_flag = 'Y'
and not exists (select vendor_site_id from ap_checks c2 where
c2.vendor_site_id = po_vendor_sites.vendor_site_id
and c2.check_date < sysdate)--&v_cutoff_date)
and not exists (select vendor_site_id from ap_invoices i2 where
i2.vendor_site_id = po_vendor_sites.vendor_site_id
and (i2.invoice_date < sysdate or payment_status_flag in ('N', 'P') ) )
and po_vendor_sites.vendor_site_id = ap_checks.vendor_site_id (+)
--and ((i2.invoice_amount) - (i2.amount_paid)) <>0
--and (i2.invoice_amount - NVL(i2.amount_paid,0))>=0
group by
po_vendors.segment1
,po_vendors.VENDOR_ID
,po_vendors.vendor_name
,po_vendor_sites.vendor_site_code
,po_vendors.vendor_type_lookup_code
,po_vendor_sites.attribute2
,po_vendor_sites.inactive_date
,po_vendor_sites.creation_date
--,i2.invoice_amount,i2.amount_paid
--,i2.invoice_num
,po_vendor_sites.VENDOR_SITE_ID
,ap_payment_schedules.amount_remaining
--,(i2.invoice_amount-nvl(i2.amount_paid,0))
--order by
--     po_vendors.vendor_name
---     ,po_vendors.segment1
--     ,po_vendor_sites.vendor_site_code

Hi,
Thanks a lot, it's really help...don't know why I didn't see this customized point before in SPRO.
But I have an other issue, my new fields is added in the CATS screen and now I'm trying to put default value by using the user exit of extension CATS0009.
When I complete the value of my new fields in structure CATSD_IMP, there are not taking into account and the CATS screen doesn't display the value.
Am I using the wrong table ? wrong user-exit ? or my code ..
Thansk a lot again for your help.
Fanny GROUX

Similar Messages

  • How to add one column to the standard t.code : CAT2.

    Hi,
    How to add one column to the standard t.code : CAT2.
    thanks

    Hi Chinna
    see the  enhancements by using SMOD <b>CATS0007</b> , or <b>CATS0012</b> and create a project using CMOD and you can implement your requirement.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav

  • Add Audit Columns to the Dimension and Fact tables (Created & modified date Time)

    Hi All,
    I am new to SSIS , I have to Add Audit Columns to the Dimension and Fact tables (Created & modified date Time) of the package.
    Please let me know the best and easy way through which I can implement the same.
    If possible suggest some real time example or link where I can find the same
    Regards,
    Vipin jha
    Thankx & regards, Vipin jha MCP

    You can simply use ALTER TABLE ADD.. syntax to add the columns if the tables already exist.
    You can generate a single script for all tables using INFORMATION_SCHEMA.TABLES view
    You can make then of NOT NULL type and set the default value to GETDATE()
    In addition you can also have a Audit Trail trigger for UPDATE to make sure Modified date gets updated correctly on each update if not passed explicitly.
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

    do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

    do any one knows how to add those arrows from the right and left side of the screen in the youtube widget which allows you to navigate back and forth between video clips?

  • FBL5N : how to add a column of the Account's name?

    Hi,
    the list displayed by Tcode : FBL5N contain only the number of account, please how to add a column of Account's name ?
    Please advise
    Regards.

    When you are in the FBL5N display results screen, use the menu option Settings --> Special Fields. 
    There are also the following notes which would explain you how to add special or new fields to the line items :
    - 310886     Line items: Dynamic selections ignored
    - 215798     FBL*N: Special fields are not displayed
    - 373268     Line item: new display field
    The special field has to exist in table T021S.

  • How to add one column into the t.code: cat2

    Hi
    I am userexits
    here i want to add one column into the t.code: cat2 at particular location, and that added field have to display the data what i am selcting in that transaction.
    how to do this...
    thankx

    hi,
        CATS0005           
        CATS0007           
        CATS0009        
        CATS0010        
        CATS0012.
        Go through the documentations of above Enhancements to solve ur problem. I am not able to understand ur exact requirement. that is y i gave some more Enhancements.

  • How to add customized column in the time sheet CATS (transaction CAT2) ?

    Hello,
    I need to be able to add some columns in the time sheet CAT2 containing:
    - the name and first name of the person (in addition of the number), in display mode in the CATS time sheet.
    - a  text that I will found by reading some tables and values...
    Does anyone have any idea how to do so ? and if it's possible or not?
    Thanks a lot in advance for your help.
    Best regards
    Fanny GROUX

    Hi,
    Thanks a lot, it's really help...don't know why I didn't see this customized point before in SPRO.
    But I have an other issue, my new fields is added in the CATS screen and now I'm trying to put default value by using the user exit of extension CATS0009.
    When I complete the value of my new fields in structure CATSD_IMP, there are not taking into account and the CATS screen doesn't display the value.
    Am I using the wrong table ? wrong user-exit ? or my code ..
    Thansk a lot again for your help.
    Fanny GROUX

  • How to add a column at the end of table in already designed document..?

    Hi,
    I am writing a javascript for adding a column at the end of table in Indesign document. using our plug-in we have created the Indesign document.
    Each table i want to add one extra column at the end. Is it possible..? please help me if anyone has idea regarding this.
    Thanks,
    Vimala L

    Hi Vimala,
    Please try the below JS code, This code will add the new column in every table last column after.
    var myTable = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
    for(i=0; i<myTable.length; i++){
       myTable[i].columns.add(LocationOptions.after, myTable[i].columns[-1]);
    thx,
    csm_phil

  • How to add a column in the middle of the table

    hi all.
    using alter table i am able to add column at the end of the table.
    but what to be done if i want to mention the column number or order also.

    This cannot be done, without recreating the table. Of course, if it is just a nice thing, to make people feel good about the order, you can define a view in the order you want.
    Tom Best

  • How to add custom columns to the list view in Finder

    Hi,
    I'm looking for a way to view additional file details in the list view in Finder, for example audio bit rate, so I don't have to do "Get Info" for each file separately. I couldn't find a way to add columns other than the ones listed on the view options dialog.
    Can anyone help me find a way to do it?
    Thanks,
    Tal

    Have you checked the Help menu for what you want to do? I found this in Apple support - List View Options
    Check the AppleScript Forums. There is probably a script that you can use.

  • How to add a column to the middle of a matrix?

    hi all,
    Can any one help me regarding storing new column in Middle of the Matrix.
    when i am approching like going Tools->User defined fields->Marketing Documents  in that i am adding my fields in Row it will effect all the Modules in Matrixes like Sale/Purchase  modules i dont want that willbe  available for all modules like Sales and Purchase . I wanted only In Purchase Module will be reflected i wrote code also that coding also i kept in other Forum. Can u once check i dont want to reflect in all the Modules.I wanted Clear information Regarding asap??
    Regards
    ANAND

    Hi ANAND,
    I think DI API's FormPreferencesService should do the trick for you.
    You can find sample code in the SDK Helpcenter.
    HTH,
    Frank

  • How to add navigation cuepoints to the mediaplayer and seek to them? (OSMF)

    oHi, I'm working in a livestreaming player and I'm having some problems doing a seek to the 1st second, I've been reading something about it and I found that the seek action works based on keyframes.
    I found that keyframes can be add using cuepoints (NAVIGATION cuepoints).
    So I tried to do it like this:
    ==== Code capture =====
    var nuevoCuePoint:CuePoint=new CuePoint (CuePointType.NAVIGATION, 1, "primer segundo", null);
    var timelineMetadata: TimelineMetadata =new TimelineMetadata (mediaPlayer.media);
    timelineMetadata.addMarker(nuevoCuePoint);
    ==== /Code capture =====
    and then I try to do the seek to it:
    ==== Code capture =====
    mediaPlayer.seek(1);
    ==== /Code capture =====
    Anyway... I'm new in using this library so please excuse me for the dummy code and thanks for your advises

    Okay, there is some things about the CuePoint Sample that don't quite make sense to me.
    When I try to add markers to the dynamicTimelineMetadata, I keep getting "null" when I trace the dynamicTimelineMetadata.
    For this event:
    MediaElementEvent.METADATA_ADD
    Is that triggered when a marker is added to the dynamicTimeLineMetaData?
    Because if the dynamicTimelineMetadata is returning null,
    then how can I add a marker to it?

  • How to add multiple columns?

    Using designer API, how to add multiple columns to the repository tables? I want to add number of columns at a time instead of adding column by column.
    Thanks in advance.

    Can you use sqlplus?
    ALTER TABLE table_name ADD (column_name data_type), (Column_name datatype),...
    Check the SQL Reference 11-9.
    Hope this helps.
    Bill Swanson

  • Add one column to the screen exits

    Hi All
        I am doing Screen Exits,
    here i have to add one column to the screen
    and it have to retrive the data from the specified fields
    anyone plz give me the solution.

    Hi
    which screen exit?
    Max

  • How to add a column in table control

    Hi ,
       Can any one tell me how to add a column in table control? My requirement is to add two columns ( custom fields ) into table control ( It is a standard program). I have added the column in the table and also in the table control. But when I am running the standard program, The newly added column is not there. But I have added in the perticular screen. Change is not reflected.
       Can anyone help me on this please.
    Thanks in advance.
    Regards,
    Lakshmi.

    Hi,
    Ensure the following :
    1. After adjusting the database, you`ll have to use the database utility and activate the table.
    2. If you have changed the standard screen, in tcode se80 -- right click on the program and click activate all. This activates all objects related to that program.
    Now execute the program.
    Reward if helpful.
    Regards

Maybe you are looking for

  • HT2646 Do I need 2 HDMI cables to hook up my HD TV

    I just bought an AppleTV to allow us to view Netflix on an HD TV but I'm a bit confused about how to set it up. My first question has to do with the HDMI cables, currently there is already one that connects the cable box to the tv but it looks like t

  • Af:query with bind variables and Saved Search

    I have a VO and view criteria(VC). VC has a criteria item ObsoleteDate with range specified as bindVariables "dateFrm" and "dateTo" I dragged & dropped the named criteria as af:Query with table. Table toolbar has 2 buttons in which I set & clear the

  • Need to keep track of URL and a count variable

    Can anyone suggest the best way to keep track of a URL and a count variable associated with each URL. I have started using 2 List objects. When I add a URL I also add a 1 in the count List Object. I am using List Objects because I must be able to sor

  • Premiere Pro CC keeps crashing upon loading.

    Hi Everyone, Premier Pro CC 2014 keeps crashing upon loading, The Crash Thread that appears upon loading is: Crashed Thread:  0  Dispatch queue: com.apple.main-thread This is for a mac btw. Anyone know how I can fix this?

  • 2.1 EA1/EA2/RC1: Bookmark issues in the worksheet

    Hi, The right gutter in the worksheet: 1. doesn't jump to bookmarks when clicked upon (instead it goes to one of the top lines) 2. doesn't remove bookmarks (when removed from the left gutter) Can this be bugged if it isn't? Thanks, K.