What is and how to write a Report Debtors Aging Report (FI)?

Hi all,
I am anticipating to write some Abap-FI reports..Here is one of them..Anyone can help me with writing a Report , how to do 'Debtors Aging Report (FI)' ..
But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea, how it can be acheived...what kind of report should be used , abap techniques, tables, the structure of the program etc. things that probably look natural to expert-abaper...:)
Appreciate your help!
Regards,
Boby

hi,
tables : bsid all data
            bsad  augdt >  rundate
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS' for to calcudate due date
pass bldat & rundate as parameter.
on basis of days put CASE condition.
raj

Similar Messages

  • How to Summarize a Detailed Debtors Aging Report

    Dear All,
    I have written a Query for a Detailed Debtors Aging Report - i.e a report which lists ALL unpaid invoices. It works smoothly.
    I use SAP B1 8.8.
    Now, I want to create a Summarized Debtors Aging Report  which groups all the unpaid invoices for a particular debtor and displays only 1 row for each debtor.
    I use the following commands: SUM(), GROUP BY to modify the original query.
    A very simplified version of my Detailed report is in Screen 1.
    The modifications I made to it to convert it to a Summarized report are in Screen 2. It does not work!
    I have traced the error to the following:
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred WHERE DateDiff(mm, T0.TaxDate,@taxdt) = 1))
    AS '1 Mth Ago'
    This is the code I use to put the amount due in the appropriate Age Bracket.
    The SQL Error Message is:
    Cannot perform an aggregate function on an expression containing an aggregate or a sub query
    Could you please help me rewrite this so that it works?
    Thanks
    Leon Lai
    Screen 1 : The Original DETAILED report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    (T0.Debit - T0.Credit) AS 'Orig. Rs',
    (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
    (SELECT T0.BalDueDeb - T0.BalDueCred WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1)
    AS '1 Mth Ago'
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    Screen 2 : The Modified SUMMARY report
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM ((T0.Debit - T0.Credit)) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM ((T0.BalDueDeb - T0.BalDueCred)) AS 'Bal. Rs',         /*Added SUM()*/
    SUM ((SELECT T0.BalDueDeb - T0.BalDueCred
        WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1))    
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2                   /*Added GROUP BY*/

    Hi,
    Try:
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE     T0.Account
            WHEN 1220101 THEN 'Prim Cust'
            WHEN 1220102 THEN 'Fgn Cust'
            WHEN 1220103 THEN 'Local Cust'
            WHEN 1220104 THEN 'Staff Loan' 
            WHEN 1220105 THEN 'Dep with TP'
            WHEN 1220106 THEN 'Adv to Cust'
            WHEN 1220108 THEN 'Sund Drs'
            ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM (T0.Debit - T0.Credit) AS 'Orig. Rs',                 /* Added SUM()*/
    SUM (T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',         /*Added SUM()*/
    (SELECT SUM (T6.BalDueDeb - T6.BalDueCred) FROM JDT1 T6
        WHERE DateDiff(mm, T6.TaxDate, @taxdt) = 1 AND T6.TransID=T1.TransID)   
        AS '1 Mth Ago'               /*Added SUM() PROBLEM IS HERE! */
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2                   /*Added GROUP BY*/
    Thanks,
    Gordon

  • What is and how to write a report  G/L Distribution Report (AP)?

    Hi all,
    I am anticipating to write some Abap reports..Here is one of them..Anyone can help me with writing a Report , how to write 'G/L Distribution Report (AP) -
    But since I am new to Abap , if you wish to reply, please use a little more detail and simple explanation, step by step so I can understand what is the idea(The Business use, and business idea of doing such report?), how it can be acheived...what kind of report should be used , techniques, tables etc..?.:)
    Appreciate your help!
    Regards,
    Boby

    hi,
    tables : bsid all data
                bsad  augdt >  rundate
    CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS' for to calcudate due date
    pass bldat & rundate as parameter.
    on basis of days put CASE condition.
    raj

  • I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    I have Calendar v 7.0 and Entourage 12.3.6 2008 on OS X 10.9.2. I cannot import Entourage events into Calendar - this was never an issue with iCal. Whats happened and how can I import details into Calendar or do I need iCal back?

    adamboettiger wrote:
    Sophos and MacKeeper
    There are many reported problems with both these programs.
    Run through this list of fixes in order, will tune you right up.
    They are in order for a reason.
    ..Step by Step to fix your Mac

  • Firefox has remberd a password to a website ... chessatwork and I get loged in to my main page and when I click on any link it takes me right back to my log in page, where it has it stored.... password and user name,,, whats up and how do I turn that off?

    Firefox has remberd a password to a website ... chessatwork and I get loged in to my main page and when I click on any link it takes me right back to my log in page, where it has it stored.... password and user name,,, whats up and how do I turn that off? chessatwork has ran great for me for many yrs, then one day I down loaded firefox and went to play chess on this site chessatwork.com, well the window popped up asking to remember the log in and pass word and so I said ok, and it did, but now when I click log in and I go to my main page (home) and click on any link, say to play game I return right back to log in

    See http://kb.mozillazine.org/Deleting_autocomplete_entries<br />
    Remove a saved password here: Tools > Options > Security: Passwords: "Saved Passwords" > "Show Passwords"
    You may also need to remove the cookies from that website.<br />
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • Factory reset - the what, why, and how for Gingerbread

    I wanted to share this information regarding a Factory Reset and how it is used for Gingerbread - both the what, why, and how - in case anyone is interested in the details. If you embark on this process, this thread is worth a close read. thanks to d.harris for writing this up for the SOAK group. good luck everyone and remember, YMMV.
    First, what does a "factory reset" do? The short answer is: it will return your phone to the condition it was in when you first purchased it EXCEPT the Android version will match your phone's latest update. For example, I had Android 2.2.1 (Froyo) on my phone before the "soak". My phone was updated to Android 2.3.3 (Gingerbread or "GB") during the "soak". I had some trouble with video performance in the Fox News app and missing album cover art in the Google Music app. So I decided to do the factory reset. After the reset was finished, my Droid X still had Android 2.3.3 on it but all of the settings had been restored to their factory defaults. And presumably, all Android operating system (OS) caches had been flushed. All of the data that was stored in my phone's memory was cleared. So my contacts were all gone. And I had to reactivate my phone (*228 1) just like a new phone and reenter my Google account info.
    Does a factory reset actually clear the entire contents of the phone's memory and re-install Android from scratch? (That's what I wish it did.) But I'm not sure that it does that because the entire process seems to go too fast for that. However, a factory reset does seem to do a better job of cleaning out the remnants of the previous OS (Froyo 2.2.1) than a standard "update" does. But that's not all.
    The factory reset also clears all of the apps that were installed in the phone's memory. And it clears all of the app data that was installed in the phone's memory. So you will have to reinstall all of your apps from the Android Market (or wherever they came from). Normally, you do not have to pay for them again because the Android Market remembers your previous purchases as long as you register your phone with the same Google account.
    However, the Android Market does not remember the free apps that you installed---so you should make a list of all your apps before you reset your phone so you won't forget the free ones. The reason I wrote "installed in the phone's memory" above is because a factory reset gives you a choice whether or not to clear your phone's micro SD memory card. If desired, it will leave it alone. So any apps or data will still be present on your card after the reset. However, your phone will not be aware of the apps on the memory card because all "knowledge" of them will have been erased from your phone's internal memory---you'll still have to reinstall ALL of your apps. But the data files will still be there. Regarding the "built-in" apps that come pre-installed with Android, they will also be restored to their original state and version when you do a factory reset. So you'll need to update some of them (like updating Google Maps and updating Adobe Flash from 10.1 to 10.3).
    Before you do a factory reset, you should have a fully charged battery becaues you do NOT want to run out of power in the middle of a reset---that could "brick" your phone. I always take an extra precaution: in addition to a fully charged battery, I also connect my phone to AC with the Motorola AC-to-USB charging adapter that came with it. Not only does it insure that I won't run out of power, it also keeps my battery fully charged so I have a 100% charge after the factory reset (you'll have a lot of work to do afterward to reinstall your apps and restore all of your Android and app settings back to your preferences).
    Here's a pre reset checklist:
    • Export your contacts to your SD card so you can easily restore them later (Contacts/Dialer menu > Import/Export > Export contacts to: SD card).
    • Make a list of all of the apps that you installed (Android menu > Manage Apps > Downloaded tab).
    • Get a copy of your Google account login info (user name and password).
    • Get a copy of your Verizon Backup Assistant PIN (if you use this service).
    • Turn off your phone and pull its battery. Wait 30 seconds or more and reinstall the battery and turn the phone back on. This will make sure that there is nothing hinky in your phone's volatile memory as the factory reset begins.
    • Fully charge your phone's battery and plug the AC charging adapter into the phone.
    Now you're ready to do the deed. Follow these steps:
    1. If it's not already on, turn on Google's "back up my data" option with Android menu > Settings > Privacy > Back up my data. This is required for the next step.
    2. Turn off the "automatic restore" option with Android menu > Settings > Privacy > Automatic restore. This will prevent your phone from trying to download every paid app that was previously on your phone all at once. It is much better---especially if you have a lot of apps---to install them one at a time. Plus, you may not want some of them to be reinstalled right away if you are trying to determine if one of them is causing trouble under GB 2.3.3.
    3 If you do not want to use Google's "back up my data" service to restore your wi-fi passwords and such, then return to Step 1 and turn it off.
    4. Begin the factory reset with Android menu > Settings > Privacy > Factory Data Reset. You'll be asked to confirm that you really want to do a factory reset and you'll be given the opportunity to clear your micro SD memory card as a part of the process. I chose not to clear my memory card because I have a 32 GB card with "tons" of music and other files that I do not want to have to restore (it would take hours).
    When should you do a factory reset? Everyone should do it before they give their phone away, sell it, or discard it. You don't want someone else to have access to your personal data! And, a factory reset can be a helpful troubleshooting tool when faced with problems.
    By the way, my factory reset did not help the video problem I was having with the Fox News app nor did it enable Google's Music app to find all of the album art on my micro SD card. Both problems persisted after the reset under GB 2.3.3.
    Finally, there are other things you can do to flush old data from your phone such as clearing the cache partition of your phone's built-in memory. This requires the use of its "Android system recover" menu. Even though I expect this cache data to be cleared during a factory reset, I did it after my reset just to make sure. Clearing the cache partition is usually what folks try before a factory rest so they can (hopefully) avoid the factory reset. I'll leave it to a Motorola staff person to go into that.

    OK, got it ...  the Power ON Factory reset procedures might have changed with GB ... 
    To get to a Factory reset using the Power up method:
    1.  Power Off phone
    2. Press & Hold the HOME Button
    3. Press and Hold the Power ON button.
    You come up to the Triangle with the Exclamation mark & android guy.
    Press BOTH the Up and Down Buttons at the same time.  This brings up the Blue menu of options.
    use the Up/Down arrows to scroll thru the choices. Press the POWER Button to Select the menu item you choose.
    You can harmlessly test this and just choose to Reboot without doing anything, just to see how it works in case you ever need to do this in the future.
    edit:  It was concluded in the test group that they changed this process to align it with the new DX2 as the camera button isn't hard-wired like it is in the DX. So likely they just wanted to make this process the same for both platforms.  At least it sounds like a good reason...

  • Not printing text-only graphics on Canon. Not printer problem-print ok on Brother and another network Apple prints ok on Canon. Believe a computer setting was inadvertently reset. What setting and how do I reset?

    Not printing text only on Canon--grahics print ok.  Not printer problem.  Prints ok on a Brother and another network Apple prints ok on Canon.  Believe a computer setting was inadvertently reset.  What setting and how do I reset?

    Without your printer model numbers, readers can only give you vague general directions.
    System Preferences > Print&Fax > ...
    ... shows a list of all set-up printers.
    If you are having serious problems, it makes sense to "Reset the Printing System" (which also removes all printer set-ups) and add back each printer. It only takes a few minutes.
    Mac OS X 10.6 Help: Resetting the printing system

  • Everythiing disappeared from my Itunes on my PC. No playlists and no music. Found some music in my files and reloaded but only 3 3G out of over 7G that I had on my Ipod. Carbonite checked and they couldnot find any more. What happened and how to get misic

    Everything disappeared from  my Itunes on my PC. No playlists and no music. Have carbonite and they could only find in the files 3.3G and I ahd over 7 G in there.
    What happened and how do I get it back?  Also if I attached my I pod will I lose the music that is in there and not in I tunes?
    Would going to system prestore help?
    Dave
    [email protected]

    This explains how to do what you want to do. It was written for an iPhone or an iPod Touch, but the process is the same for an iPad.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive
    https://discussions.apple.com/docs/DOC-3141

  • My mobile hotspot no longer works since I upgraded to mountain lion. What happened and how do I get it back?

    My mobile hotspot (Samsung Note II)  no longer works since I upgraded to mountain lion (running on MacBook Pro)  What happened and how do I get it back? "
    Keep getting error message:
    "Could not join “NAME-HOTSPOT”.
    A connection timeout occurred"
    Please someone help me with this - I do a lot of travelling and use my hotspot! 
    Thanks

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wrieless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • After downloading Namoroka 64 bit for windows 7 all my search engines are gone. What happened and how do I get them back?

    After downloading Namoroka 64 bit for windows 7 all my search engines are gone. What happened and how do I get them back?
    == This happened ==
    Every time Firefox opened
    == This week ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; FunWebProducts; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTB5.6)

    Do they appear if you start Firefox in Safe Mode? See [[Safe Mode]]

  • I just updated my iTunes and now ALL of my music is gone what happened and how do I fix it ASAP?

    Litterly 15 Mins ago all of my music was present. I - in fact - just finished using it to play a song. Then I got a window that popped up saying that my iTunes is in need of an update. So I update it then it said it was all up to snuff...
    So I go back into my iTunes to continue using it
    but now It's ALL GONE!!!!
    what happened and how to I fix it ASAP???
    ---because this is like 80g's of music man, I spent Months - MONTHS ripping all my cd's and formating EVERYTHING NICELY into iTunes just to have the work poof disapear?
    come on!

    But I do back up everything, as much as I am able...
    However, it seems to me I've got to shift everything back into iTunes - Again.
    if this is the norm, I would like to see - for others because now I know! - a little warning
    "Hi, We're iTunes, and you need an update. So please update, just let it be known however, then when you do - we'll delete your catalog and any playlists. Thanks for using iTunes"
    something like that, because now I've gotta re-load everything back... bolics I say bolics.

  • My sent messages are not displayed...what happened and how do I restore?

    My sent messages are not displayed...what happened and how do I restore?

    http://kb.mozillazine.org/Disappearing_mail

  • I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a  , which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a +, which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    There's another way.
    Right or control click the + then click Remove Item.
    Just remembered that keyboard shortcut!
    You're welcome 

  • HT201210 I just updated my iTunes and now I get a message that the application has failed to start because MSVCR80.dll was not found.  What happened and how do I fix this?  I can't access any of my music now.

    I just updated my iTunes and now I get a message that the application has failed to start because MSVCR80.dll was not found.  What happened and how do I fix this?  I can't access any of my music now.

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99460)

  • I created a 5x7 postcard document in Word with text boxes and graphics.  When I converted it to PDF, some of the items were missing, even though they were in the boundaries of the page and looked fine on the Word document.  What happened, and how do I fix

    I created a 5x7 postcard document in Word with text boxes and graphics.  When I converted it to PDF, some of the items were missing, even though they were in the boundaries of the page and looked fine on the Word document.  What happened, and how do I fix it?  I'm trying to upload the PDF version to Vistaprint.  Thanks.

    Reader doesn’t create pdf files. You can use Acrobat (ask in that forum) to create pdfs. You can subscribe to the Adobe PDF Pack which has a create pdf functionality (please ask in that forum), or you can use a third party utility such as ghostscript, cutepdf, or Microsoft’s own PDF creation capability. For third party pdf creation you will need to ask in a forum dedicated to that software as fellow users of Reader are unlikely to have the knowledge to help.

Maybe you are looking for

  • How can i get my printer to connect with my computer to print?

    I have a HP photosmart prem-web C309n-s printer. I have two different computers. One is a 4 year old HP laptop, and I just recently purchased an HP touchsmart 320 PC. I installed the printer when I first got this computer, and the printing worked fin

  • How to send a text to a group

    I have the Iphone 4s 1. you should be able to easily make a group for texting on the phone, without having to go to a computer 2. even after setting up a group text, you still have to individually select the members of your already created group in o

  • Add selected value to holding table

    hi i have a situation where i search user from the table,and go and add those selected user in OID,But now before i add those user to OID i what to add tham in holding table not database table, where i can see all user i have selected,and have a chec

  • System must show msg - Due to phys. inv., material is blocked for movement

    Hi, We want that when do anything (create PO, create BOM, material movements etc) on XXXXX material, system must show the message - Due to phys. inv., material is blocked for movements. If we mark X in Phys. Inv. Block indicator in material master un

  • Can't find original file?

    For about half of the songs in my library, iTunes says it can't find the original file, and consequently I have to go manually dig through the iTunes music folder looking for the desired song if I want to play it. It should be apparent why this would