Regarding Aging / Net dues report another way

Hi,
I have seen aging report for customer in SAP B1, its okay but not serve my purpose. i want this report little difference.
when i run this report system will ask to put the date and all customer will show.
example for one customer below:
i put the date 15-01-2011 then Net Dues will show like below:
Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
  Balance
ABC--01/01/2011INV001 1000--
14     
ABC      -
03/01/2011-- INV002  4000--
12     
ABC -
07/01/2011-- INV003 5000--
8     
ABC-- 15/01/2011 INV004  80001--
  18000
Now, Incoming payment made on 16-01-2011 amt     4500     
now i want to see net dues on 16-01-2011, it should come like below;
Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
  Balance
ABC      -
03/01/2011-- INV002  500--
13     
ABC -
07/01/2011-- INV003 5000--
9     
ABC-- 15/01/2011 INV004  80002--
  13500
look what has happened, INV001 has paid fully and INV002 has partial paid. ( 4500-1000-3500=500 for inv002)
if it is possible to make query report please help me about this.
Regards,
Mizan
Edited by: mizan700 on Apr 25, 2011 4:50 PM

Hi Zal,
Thanks for your hard work.
please see the link below  and which i have marked red color. actually i want to know   Bangladesh Lamps Ltd total balance due is 2071528.90. against which Invoice.
http://www.sendspace.com/file/cy9j92
Below is my SQL query
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
-- =============================================
-- Author:          <Mizan>
-- Create date:      <26  Apr 2011>
-- =============================================
ALTER PROCEDURE [dbo].[@BGWL_NetDues]
     (@Age DATETIME)
AS
BEGIN
--DECLARE @Cardcode varchar(12)
--DECLARE @Cardname     varchar(50)
--DECLARE @CardFName     varchar(100)
--DECLARE @Itemcode     Varchar (8)
--DECLARE @Dscription     varchar(100)
--DECLARE @Quantity     FLOAT
     SET NOCOUNT ON;
     IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE NAME ='Temp_NetDues')
Drop table Temp_Netdues
CREATE TABLE Temp_Netdues (Cardname varchar(100),
DocNum int, InvDate datetime, Days int, InvAmt Float, Balance FLOAT )
INSERT INTO Temp_Netdues
Select A.Customer [Name of Customer], A.DocNum [Invoice#], A.InvDt [Date],
datediff(dd, A.InvDt, @Age) [Days],
A.InvAmt [Invoice Amount],A.[balance] from
SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], T0.[DocNum],
max(T0.[DocDate]) [InvDt], T0.[DocDueDate], T0.[DocTotal], T0.[PaidToDate],
Doctotal - paidtodate [InvAmt], 0 as balance
FROM OINV T0 where datediff(dd, T0.[DocDate], @Age)>0
group by cardcode, docnum, docduedate, doctotal, paidtodate
having ((doctotal -paidtodate) > 0)
union all
SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], 0 as [DocNum],
'' as  [InvDt],  '' as DocDueDate, 0 as [DocTotal],0 as [PaidToDate],
0  as [InvAmt],T1.balance  [Balance]
FROM OINV T0 , OCRD T1 where datediff(dd, T0.[DocDate], @Age)>0 and
T1.[CardCode]=T0.[CardCode]
group by T0.cardcode,T0.[CardName],T1.balance
having ((sum(doctotal) ) > 0)
) A
order by  [Name of Customer],[Invoice Amount] desc
update Temp_Netdues set InvDate='', days=0 where docnum=''
--delete  from Temp_NetDues where docnum=''
SELECT  *  FROM Temp_Netdues   order by Cardname,Balance asc
END
Regards,
Mizan
Edited by: mizan700 on Apr 26, 2011 2:44 PM

Similar Messages

  • How to change AR aging 4-bucket report to 7-bucket

    hi 2 all
    how to change AR aging 4-bucket report to 7-bucket  in oracle apps r12 . in AR module 7 bucket report also exist but it include all collection (applied & unapplied) my requirement is that aging create on applied collection just like 4 bucket. thanks
    Regards ,
    Zulqarnain.

    the planning book transport as mentioned by Ian will get your time bucket profiles   to production
    ....along with macros
    Producton systems are usually closed to make planning book changes (the system would be locked - its not an authorization issue)
    its better to transport the planning book with the correct time bucket profile
    P,S: there is a quick and dirty way to make the change you want though without going though the transport...  but if you can transport... do that

  • Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    Can I put more than one user under one Apple ID account. I want to let other family members use imessage on their own Apple device. Or is there another way to get this end result?

    You can seach the net for solutions like this one http://appletvvpn.com/how-to-connect-apple-tv-2-to-vpn/ another idea is to use a PC as the control and fit that with a wireless card and set up a ad hoc wireless network that the Apple TV uses. 

  • Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing

    Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing. It appears from these forums that a lot of people are having the same problems wit this latest update.

    Hi erastyle,
    Actually the Licensing information for the package is missing hence it is not launching any applications. You need to Reserialize the products using APTEE which you can find it on the Machine where you have created the package. If you dont have the access to that Machine then please download and install Creative Cloud Packager and it will download APTEE in the below mentioned location.
    Windows:
    C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities
    Once downloaded please follow this KB article to use the Tool.
    http://helpx.adobe.com/creative-cloud/packager/provisioning-toolkit-enterprise.html
    Please let us know if it helps.
    Regards,
    Abhijit

  • Regarding Reliance net connect ZTE AC 2738

    Regarding Reliance net connect ZTE AC 2738
    Dear I am unable to install all the drivers on Win 7; Its shwing error log Also when I am going to connect it again & again its showing please insert in another port while I tried for aal the port.
    Please Suggest

    You need to contact Reliance Technical Support for assistance:
    http://www.reliancenetconnect.co.in/
    This is not a Microsoft product and the manufacturer/vendor has sole responsibility for support of their products.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • I'm trying to downgrade my icloud storage; however, my MAC book will not upgrade pass 10.6.8 and I don't have my iphone anymore.  If there another way for me to do this?

    I'm trying to downgrade my icloud storage; however, my MAC book will not upgrade pass 10.6.8 and I don't have my iphone anymore.  If there another way for me to do this?  I've tried everything I can find online and of course my coverage has expired and can't call the support team.

    Hello Lara,
    have you already called Apple and explained your current situation, because I don't see a way to downgrade your storage plan with a Mac only running Snow Leopard and without a iOS device running at least iOS 5.
    Best regards.

  • V_NL Net price report problem

    Hi Experts,
    I have a problem in V_NL Net price report it is not showing net price correctly in report vs sales or billing net value.
    I could tell what is our scenerio in pricing report and what i have done on SAP.
    We need net value pricing report for each material for particular customer excluded frieght and tax.   As per user requirement we customized the report and included fiield sales office on that. 
    When we ran the report it shows entirely different price we don't know where those net values picked from. When i checked previous posts and i implemented OSS note 415141 for further adjustments.  Still i couldn't get the correct report if anybody would have worked on same issue....
    What should i need to do on configuration side to get this report correctly.
    Kindly reply back and let me know the solution.
    regards
    rc gopi

    This is teh documentation I got for the program SDNETPR0
    Short text
    Create net price list
    Description
    This program is used for creating the 'Net price list'.
    Requirements (example)
    The following must exist:
    Order type TA is defined
    Billing type FX is defined
    Item category DLN is defined
    Copying control for the combination FX - TA - DLN is defined
    The default data for fields 'Billing type', 'Order type' and 'Item category' allow individual copying control. In this context, you must bear in mind that the system will run through the  copying requirements and data tranfer routines created for this purpose and stored in copying control.
    These entries and objects are released with the standard.
    The system also requires that the pricing procedure uses subtotal 2 (KZWI2) for temporary storage of the net price.
    Output
    The output contains the following per customer:
    Material incl. description
    Price content (sales quantity unit)
    Price incl. currency (VBRP-KZWI2)
    The document types and I.Cs mentioned here are for examples. The area output says what details are presented to the user finally based on the details inputted.
    Most of the fields are mandatory here.
    Hope this helps. You can reward if this helps you

  • Aging - 7 Buckets Report needs to display by Calendar month not by days

    The requirement is to display the Aging - 7 Buckets Report display by calendar month not by days. So is it suggestible to customize it or write a new custom report?
    Please let me know if you have any solution on how to do it? i appreciate your help and time.
    EX:If this is OCT and the report is run during this month
    OCT-10 SEP-10 AGU-10 JUL-10 JUN-10 MAY-10 APR-10
    Customer Amount Current Past Due Past Due Past Due Past Due Past Due Past Due

    Hi
    Could you please let me know if you were able to achieve Aging by bucket months?
    Can we create aging bucket that is monthly and not on the basis of days?
    Regards
    Divya

  • Aging 7 Buckets Report ARXAGMW  error REP-1212 Object Body is not enclosed

    Hi
    I am customising standard AR Aging 7 buckets report by account(ARXAGMW).
    I just need to add 2 fields,That i have added successfully.
    But the report output format is not printing properly.
    I mean if there are 4 columns custname,custno,endcustname,endcustno.
    it is printing the output as
    custname custno endcustname endcustno
    abc communications inc 1234 abc communicatio 1234
    xyz communications inc 5678 pqr communicatio 9657
    but i want to print with full name(endcustname) as how it is printing for custname.
    So itried to increase the report width to 300 and try to run the report,but i am getting the error.
    I tried with standard report also by increasing the width but same error.
    Could anyone please tell me when we increase report width what else i should change.
    The error is
    REP-1212: Object 'Body' is not fully enclosed by its enclosing object 'P_REPORTING_ENTITY_NAME'.
    Thanks,
    Malla

    Hi,
    "Not allowing" means? Do you get any error?
    Is this the same style used by this concurrent program? I assume that the report type is text.
    If the report type is bitmap, size the page size in the "Execution Options" field as "PAGESIZE= <width>x<height>" and submit the report again.
    Note: 297522.1 - How to investigate printing issues and work towards its resolution ?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=297522.1
    Regards,
    Hussein

  • [RB 6i] Format text in the field using HTML-tags. Or another way...

    If some fields of tables in database contain html tags such as 'H<sub>2</sub>O' (here is html tag 'sub') or 'some<b>text</b>'(here is html tag 'b') how can I to make Report Builder 6i to understand these tags or at least don't show them?
    Or how in another way can I format a part of text inside the field?
    thanx before
    Max

    Hi Maxim,
    If the output is PDF, the only way is to filter the incoming values yourself. You will need to create a PL/SQL column and remove the HTML markup tags. This, of course, leaves you without attributes you wanted in text (ie: the no "Bold" characters). You can still do this in with the same report basing the output from the PL/SQl formula column on the "desformat" input parameter.
    Reports doesn't have any "markup" capability. ie: A field only has one font & one colour. You can have multiple fonts for boilerplate text but, again, only a single colour.
    Robin.

  • Can't get MAC to shut down and start up via the schedule button in system preferences energy saver. Is there another way?

    Can't get MAC to shut down and start up via the schedule button in system preferences energy saver. Is there another way?

    Try this to start:
    Repair the Hard Drive and Permissions
    Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • I am currently running 10.7.5 on my macbook. I tried downloading Mountain Lion application...but it says 'error'',,,is there another way to upgrade my OS?

    I am currently running 10.7.5 on my macbook. I tried downloading Mountain Lion application...but it says 'error'',,,is there another way to upgrade my OS?

    First we need to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report if you’re running 10.7 Lion). When System Profiler comes up check the Model Identifier and post it back here.
    The Early 2006 model 1,1 Core Duo can only run a maximum of 10.6 Snow Leopard.
    The models Late 2006 Core 2 Duos 2,1 through Early 2008 4,1 can only run a maximum of 10.7 Lion.
    The Late 2008 model 5,1 Aluminum Unibody through the Mid 2010 White Unibody model 7,1 can run 10.8 Mountain Lion.

  • TS2755 i need to know how to block someone from sending me txt/imessges and calling me. they have a iphone too so i have been told the only way to block them is to turn off my imessages and only recieve regular txt messages. is there another way to block

    how do u block someone from sending imessages and txt and calling ur phone when they have a iphone also. I have been told the only way is to turn off my imessages and recieve regular text messages.. is there another way?? i have searched for apps and cant find one. neeed help!!!

    There are no apps and that is not a feature of iOS.
    iMessages are handled by Apple's own system, and there is no way to block a specific sender.
    SMS messages and voice calls are handled by your cell service provider, so you need to ask them what blocking (if any) features they offer.  If the texts are just spam, you should be able to report them to your carrier and they can block that sender.  Other blocking options will vary from carrier to carrier, so call yours and ask them what they can do.

  • I have lost my iPad 3 (3G). I do not use iCloud and I do not have the 'Find my iPad' app installed. What can I do to find it? Is there another way to bring up a map of where it is?

    Although I have Telstra 3G
    I do not use iCloud and I do not have the 'Find my iPad' app installed. What can I do to find it? Is there another way to bring up a map of where it is?
    I dont know the opperating system but I only got it recently...
    I also have a mac book pro also without iCloud.

    Without Find My iPad having been enabled on it then there isn't any way to locate it - and that would only work if it's connected to a network and hasn't been wiped or had Find My iPad disabled on it.
    If you think that it was stolen then you should report it to the police. You should also contact your carrier and change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.

  • Software update tab does not do anything. Is there another way to check for updates?

    Helllo,
    I"m trying to update my OS to 10.8.4 but when I click on Apple > software update, nothing happens. How do I fix this problem or is there another way to look for software updates? Thanks!
    Mike

    Download and install 10.8.4 Mountain Lion Update v10.8.4 (Combo). Before you install be sure to do the following:
    Repair the Hard Drive and Permissions - Lion/Mountain Lion
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu. Select Restart from the Apple menu.

Maybe you are looking for

  • How to check special characters in view

    hi, I have a field in view,in which want to check the field value doesnt contain any special characters. the field is a char field and it is not associated to any specific data element. Can u please help me in this reg. Regards, Saujanya

  • Mail downloaded headers but not content...

    ...and now won't download message headers either ... i can't receive new mail and i can't get to the content from any mail. i'm at a loss. here's what i did andexperienced today: 1) deleted 'old' mail account (hadn't pulled new mail since 11/2 9AM) 2

  • The vertical paginators is not displayed

    Hi all, Default, the vertical paginators are always visible, regardless of the number of visible rows you choose. But why vertical paginators didn't show in the footer of ALV??? Thanks a lot!

  • Unistalling will i lose my library

    I need to uninstall itunes in order to install odler ipod software that has an older version of itunes. Will i lose my library if i uninstall.

  • How to impliment executable files as a sub vi

    I am runnig Labview 2012 on a windows machine do collect data from a measurment probe. I have several C programs written for data analysis that I manually execute after the data is taken. My question is this: Is there any wat to impliment an external