Query for  customer and its all the underlying sites in AR

Hi Expert,
  Please help me to build a query for a customer and its all the underlying sites .
Thanks

Please check this thread:
Running Total in QLD
Thanks,
Gordon

Similar Messages

  • Re:Query for Item and its first child Itemcode from BOM...!!!

    Dear SAP Members,
    I need a query that contains
    ItemCode,ItemDescription from oitm table and its first child item code,Item Description,Quantity,currency and price from itt1 table.I have taken all the datas but there is no ItemDescription from itt1 table.How to join all these datas.
    Please Give suggestions or query for this issue.
    With Regards,
    Revathy

    Hi try this
    Declare @BOMDetails table(TreeType Nvarchar(MAX),PItem NVARCHAR(Max),PName NVARCHAR(MAX),CItem  NVARCHAR(Max),CName NVARCHAR(MAX),Comment NVARCHAR(MAX),onHand Numeric(18,0),[Committed] Numeric(18,0),FreeStock Numeric(18,0),[Status] NVARCHAR(MAX),Quantity numeric(18,0),Price numeric(18,0),Warehouse nvarchar(MAX),Currency nvarchar(MAX))
    INSERT Into @BOMDetails
    SELECT T1.TreeType ,T0.Father AS [Parent Code], T2.ItemName AS [Parent Description], T0.Code AS [Child Code],
    T1.ItemName AS [Child Description], T0.Comment, cast((T1.OnHand ) as Numeric(18,0)) as [Un-Committed Stock],
    cast(T1.IsCommited as Numeric(18,0)) AS [Committed Stock], cast((T1.OnHand - T1.IsCommited)as Numeric(18,0)) AS [Free Stock], T2.FrgnName AS [Status],T0.Quantity,T0.Price ,T0.Warehouse,T0.Currency
    FROM ITT1 T0 INNER JOIN OITM T1 ON T0.Code = T1.ItemCode
                 INNER JOIN OITM T2 ON T0.Father = T2.ItemCode
    WHERE T0.ChildNum=1
    Union All
    SELECT ' ',T0.Father as [Parent Code], T2.ItemName AS [Parent Description], '', '', '', 0,0,0 , '',0,0,'','' FROM ITT1 T0 INNER JOIN OITM T1
    ON T0.Code = T1.ItemCode INNER JOIN OITM T2 ON T0.Father = T2.ItemCode
    Group By T0.Father,T2.ItemName
    ORDER BY T0.Father, T0.Code
    update @BOMDetails set PItem='' ,PName='' where TreeType='N' or TreeType='P'
    Select PItem as[Parent Code] ,PName as [Parent Description],CItem as [Child Code],CName as [Child Description],Comment,Quantity,Price,Warehouse,Currency   from @BOMDetails
    thanks,
    Neetu

  • Cmd for exp and importing all the table data's in a specified schema

    i need to export table data without exporting the defenition how can i do this

    Why do you have such a requirement?
    Are you worried about import failures if the object already exists on the database?

  • Table for Customer and Vendor Special GL Carryforward Balances

    Hi,
    What is the table to get the customer and vendor special GL carryforward balances?
    Thanks in advance

    Hello,
    I have more details to add to the thread.
    If you are looking for carry forward balances for customer and vendor subledgers, the tables are:
    By month
    KNC1- customer (customer master transaction figures) - c/f debit/credit postings and lists by customer, company code and year
    LFC1-vendor - (vendor master transaction figures) -c/f debit/credit postings and lists by customer, company code and year
    By year
    KNC3  (customer master - special G/L transaction figures)- c/f balances by customer, company code and year (lists totals for debit and credit)
    LFC3 -   (vendor master - special G/L transaction figures)- c/f balances by customer, company code and year (lists totals for debit and credit)
    Hope this helps.
    KF

  • TS3899 I accidently turned ON contacts when I was turning ON my yahoo email account in settings and now all the emails from contacts have been merged to create SEPARATE contact right under the original contact name. Now I have double contacts for everyone

    I accidently turned ON contacts when I was turning ON my yahoo email account in Settings and now all the emails from contacts have been merged to create SEPARATE contact right under the original contact name. Now I have double contacts for everyone with an email address!!! how do I UNDO? it says all CONTACTS WILL BE DELETED...when I go to turn CONTACTS to OFF.

    Any contacts synced with the Yahoo account will be deleted from the phone if you turn it off. They will still be out there in Yahoo land, so if you turn it off and it deletes something you didn't want to, just turn it back on again.
    It's extremely unclear what you did when you say " I only created contacts and typed in emails that I had for those contacts.....so I am still not sure how to UNdo what I did without deleting anything"
    Undo WHAT, exactly? You said "I accidently turned ON contacts when I was turning ON my yahoo email account in Settings and now all the emails from contacts have been merged to create SEPARATE contact right under the original contact name."
    Just turn it off.

  • I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes  it synced evrything but the contacts and othe minior things were the only things that really transfered  my apps and all my

    I just got my new i phone 5 s and did all the syncing and backing up for my old iphone 4s and set my 5 up and synced it on itunes.  It synced evrything but the contacts and other minor things. those were the only things that really transfered.  My apps and all my music did not. Tthe thing is when i just went to go manually start dowmloading a few of the songs that i knew i already bought , itunes is making me pay forthem again.  Its not saying instal like it usuall does when you go download something aleady purchased on your itunes account.  I think or thought it might have something to do with the fact that i just changed my apple id name right before i got my new phine but my apps all re-downloaded (manually-no syncing) without making me pay for them again.  i dont want to have to purchase allllll my songs again.  Can someone please help me!!  Itried going back to my old id or signing out of this id and signing in as my old apple id but now it wot even get on that oneits likjeit doesnt exist anymore..   And when i plug my old phone it shows in the itunes everything thats supposed to be there but all that doesnt stay in the itunes when i actually un plug it so when i plug my 5 in to my computer none of the stuff is in the store for me to actually transfer it  I am so good with technology and this has me stumped  please help

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • Having a MBPr late 2013 and having a sound problem the sound does not come tom the headphones even its all the way up and when i remove the headphones it docent come out the internal speaker either ? any idea how i fix this?

    the sound do not come out the headphones sometimes altho its all the way up in the setting and when i remove the headphones the sound doesnt come from the internal speaker either and only a reboot fixes the problem and thats annoying! any idea how tto fix this?

    Hello. I've been able to play sound without problems through headphones or external speakers to date - the output always switched to these automatically until today. Now, sound output continues through internal speakers even if I plug in headphones or external speakers.
    - I tested the headphones and speakers on other devices: they work fine.
    - When I plug in headphones or speakers into the audio output port (I have verified that I'm not using the input jack) the devices are not detected and are not listed under the output tab in system preferences-sound.
    I concluded from this that I probably had a problem with the audio port, so to test that I tried the following. I plugged a powered multi-USB device with ports for microphone line-in and headphone line-out into the USB port and switched it on. I verified that it was working by plugging a USB stick into the multi-USB device - this was recognised successfully, so the device was clearly working. I then plugged in headphones and speakers into the audio line-out on the multi USB device - but still no sound came through them (and tey were not listed among output devices) and the Mac continued using internal speakers.
    What should I do? Does the latter test suggest that the problem does not lie with the audio port, or is my test not conclusive? What would you advise?
    Many thanks indeed!
    NG

  • HT201401 I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to und

    I have my a song purchased from Itunes and would like to use part of it for a ringtone and get all the way thur the process of getting it to my phone but it goes to sync to my phone it doesn't show up in my phone like it says it is suppose to under ringtones. Does anyone have any tips on how to do this.

    http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/
    https://discussions.apple.com/message/17777381 - making a ringtone
    Getting ringtones folder to show in iTunes - https://discussions.apple.com/thread/2629494 - iTunes > Preferences. Under the General tab below Show, confirm Ringtones is selected

  • I plug my headphones in my iphone and only one headphone plays music and its not the head phones because i tried it in my ipad could it be the AUX ? and does this come under 1 year warranty ?

    i plug my headphones in my iphone and only one headphone plays music and its not the head phones because i tried it in my ipad could it be the AUX ? and does this come under 1 year warranty ?

    yes i also tried other headphones in my iphone and same result and yes they was all the way in and by the way its an iphone 5 brand new

  • I have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    i have two iphones , i lost one  and entered to find my iphone and as mistake i block both and delate all the data of both. how can i get it on, im trying to restore it , but its not working ...

    Hi Roger
    Thank you for your reply.
    My original feed is: http://casa-egypt.com/feed/
    However, because I modified the feed http://feeds.feedburner.com/imananddinasbroadcast and nothing changed, I redirected it to another feed and then I deleted this feed.
    Is there any way to change the feed in itunes? The only feed I have now is  http://feeds.feedburner.com/CasaEgyptStation
    I tried to restore the feed http://feeds.feedburner.com/imananddinasbroadcast but feedburner refused.
    I know that I missed things up but I still have hope in working things out.
    Thanks is advance.
    Dina
    Message was edited by: dinadik

  • I just purchased harry potter and the deathly hallows digital copy but i just synced my ipod and its not there. i went back to get the copy again and its sasy the cose can only be used once. I dont have the movie and now i cant get it at all.

    I just purchased harry potter and the deathly hallows digital copy but i just synced my ipod and its not there. i went back to get the copy again and its says the code can only be used once. I dont have the movie and now i cant get it at all. i paid for it when i bought the movie but now i dont own it at all. i feel cheated, somebody please help!

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar 

  • HT201328 I have been given permission for unlocking my iphone 3 GS from Orange. I want to set up the phone for my wife to use with a new number and carrier. Do I unlock under my itunes account first or set one up for her and then unlock the phone.

    I have been given permission for unlocking my iphone 3 GS from Orange. I want to set up the phone for my wife to use with a new number and carrier. Do I unlock under my itunes account first ( I now have a new iphone on this account) or set one up for her and then unlock the phone. I am worried about upsetting the new phone.

    I would complete unlocking as is and then
    restore as new once you know the iPhone is unlocked
    Be aware Orange will process the request at their speed
    one of the reasons they usually reside at bottom of User Sat surveys
    will likely take weeks
    This may also help
    http://support.apple.com/kb/HT5014

  • How do I create my own favorite template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to templates, which take more memory. I have a large slideshow, and need all the space I can get

    First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn.  I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.

    Final Cut is a separate, higher end video editor.  The pro version of iMovie.
    Give iPhoto a look at for creating the slideshow.  It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them.  You can select from various themes and transitions between slides and add music from your iTunes library.
    When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
    Save the resulting Quicktime movie file in your Movies folder.
    Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
    Then follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version).  Personal preferences showing here.

  • Help - I have an apple id account, where is my iPod and iPad registered, but also the iPod of my daughter. How can I make an account for my daughter and keep all the apps she has on her iPod?

    Help - I have an apple id account, where is my iPod and iPad registered, but also the iPod of my daughter. How can I make an account for my daughter and keep all the apps she has on her iPod and in her own iTunes?

    Sorry, content bought with one Apple ID cannot be merged or transferred to another Apple ID.

  • We own 5 Apple devices but for some reason I cannot get iTunes to recognize one of the iPads.  The other 4 show up just fine and we can sync and do all the stuff we are supposed to do, but this one device is never recognized.  Tried everything.  Help!

    We own 5 Apple devices but for some reason I cannot get iTunes to recognize one of the iPads.  The other 4 show up just fine and we can sync and do all the stuff we are supposed to do, but this one device is never recognized.  I've tried updating the software, reinstalling iTunes, using different ports on the laptop, different cables...just about everything.  I have NEVER been able to connect this one device, but all the others are fine.  I'm at my wits end.  Is there someone out there who can help a relative novice figure out what's going on?  Thanks so much!

    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iTunes for Windows: Device Sync Tests
    http://support.apple.com/kb/HT4235
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    http://support.apple.com/kb/ts4062
     Cheers, Tom

Maybe you are looking for