Query about transactions over the whole chart of accounts

hi, i'm a beginner with the SAP SDK, so pleaase be patient , i 'm working to do a SQL-query (yeah, i'm not allowed to use  the COM objects) for all the transactions made on every account and also to retrieve their profit centers, so i have a few questions/validations that i need about the SAP bd-model:
as far as i know, the tables involved with this query i need are:
OJDT - journal entry
JDT1 - journal entry rows
OOCR - Distribution rules
OACT - Accounts
OPRC - Profit Centers
..¿or can i just skip the OOCR table and join the tables JDT1 and OPRC using the PrCode field? (the reference says this field is a FK of the OOCR table so that's why i'm not sure about this, even if the field name is fool-proof )
thanxs for your time!!
EDIT: this is the query so far,  i have  my doubts about the use of PrcCode(JDT1) as a FK for the OPRC table (because like i was mentioning before, the documentation says it isn't, it's a FK for the OORC table)
also the DI API Help file says there is also another 4 FK fields (ocrcode2,ocrcode3,ocrcode4,ocrcode5) for the OOCR table, so i'm wondering if this SQL query is fine like this or if i'm missing something else please help mee!
SELECT
je1.TransId
,je1.Debit
,je1.Credit
,acc.AcctCode
,acc.AcctName
,prc.PrcName
,prc2.PrcName
,prc3.PrcName
,prc4.PrcName
,prc5.PrcName
,je.Memo
FROM
JDT1 as je1
left join OPRC as prc on je1.ProfitCode = prc.PrcCode
left join OPRC as prc2 on je1.OcrCode2 = prc2.PrcCode
left join OPRC as prc3 on je1.OcrCode3 = prc3.PrcCode
left join OPRC as prc4 on je1.OcrCode4 = prc4.PrcCode
left join OPRC as prc5 on je1.OcrCode5 = prc5.PrcCode
inner join OACT as acc on je1.Account = acc.AcctCode
inner join OJDT as je on je1.TransId = je.TransId
and je.RefDate <= '20101028 00:00'
GROUP BY
je1.TransId
,je1.Credit
,je1.Debit
,acc.AcctCode
,acc.AcctName
,prc.PrcName
,prc2.PrcName
,prc3.PrcName
,prc4.PrcName
,prc5.PrcName
,je.Memo

When u have created your company that time u should create with copy anuway
but it's look to me your COA is not generated with depending accounts

Similar Messages

  • Can I choose which season artwork is used for display over the whole TV show?

    I have a TV show with multiple seasons and multiple album covers, but iTunes chooses one to display over the whole show list that I don't like. Is there some way to choose which season cover is displayed over my whole show, you know, WITHOUT changing all the album artworks of all the episodes?

    LaunchPad-Control was very useful to do exactly what you want on OS X Lion the developer has stated that there are problems when running on Mountain Lion and will not provide any support.
    Your only option now is to create folders with related applications.  Click on an application in Launchpad then drop it onto another thus creating a folder then rename the folder to something meaningful.

  • Help macintosh took over the whole desktop!!

    OMG. this is so irritating. applications take over the whole desktop. hitting esc does not return to normal.
    my dock is on always visible. help me get out of this stupid mode of whatever it is in.
    also this seems to be accidentally initiated by my wife at some point of internet browsing.
    is there a way to premanently disable this catstrophic feature? hate it.

    Sam Beaver wrote:
    this seems to be accidentally initiated by my wife
    is there a way to premanently disable this catstrophic feature? hate it.
    No comment.

  • Payments relevant to Treasury instruments over the in-house bank accounts

    Hi Experts,
    I'd like to ask you what are major tasks, like Customizing and definition of relevant Master data, if you would like to implement payments processing relevant to Treasury instruments over the in-house bank accounts for group of companies, e.g. some companies are doing internal deals and then executes related payments over the in-house bank instead of using external banks.
    thanks a lot in advance.
    Rgds,
    Renatas

    Hi,
    If you are asking about the steps to be done from transaction manager side to use already configured In House cash, the steps will be minimal.  It is just changing bank and payment method details in business partner.
    But if you want to know about configuring the In House cash itself for processing the internal payments from transaction manager, then it involves quite a good amount of work.  At a high level these are the steps but certainly by no measure this is complete or exhaustive.
    1. Decide the companies which are going to participate in IHC (I assume IHC is only going to be used only for internal payments).
    2. Customize IHC and create IHC specific Business partner master data (like bank area, conditions, account management, bank statements, IHC transaction types etc. ) 
    3. Use the payment methods and bank master details in the transaction manager BP (this is the step to be done inside Transaction manager)   
    Regards,
    Ravi

  • HT1420 Feeling really stupid with my new MAC - I can't find the "Store" menu in iTunes as referenced in the support article on how to authorize a computer.  Where is that menu option?  I've looked all over the page, in my account, etc.

    Feeling really stupid with my new MAC - I can't find the "Store" menu in iTunes as referenced in the support article on how to authorize a computer.  Where is that menu option?  I've looked all over the page, in my account, etc.

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • I have a new computer and when i plugged my iphone in to upgrade it, I lost all of my songs and applications. I need to know how to recover it as I've looked all over the webstie and my account is empty?

    I have a new computer and when i plugged my iphone in to upgrade it, I lost all of my songs and applications. I need to know how to recover it as I've looked all over the website and my account is empty?

    If you are in the USA (is that Pearland, Texas), with iTunes 10.3 and iOS 4.3.3 or later, you can download your previous purchases directly to your iPhone, iPad, iPod touch, or computer.
    Here are the instructions:  Downloading past purchases from the App Store, iBookstore, and iTunes Store: http://support.apple.com/kb/HT2519

  • Why does not safari allow to keep the zoom level over the whole website? This is universal problem for all ipad browsers.

    This is a big problem on sites like Tomshardware and Sweclockers and probably many more that Safari is not capable of keeping the zoom level the same over all website pages. And it makes the browsing experience on the IPAD an annoyance.
    You have to constantly double tap to see the website clearly for each webpage load. There should be settings to allow to remember the zoom level
    for a whole website. So you don't have to double tap on every new page of the website.
    The other browsers like ICAB and Mercury are not handling this any better and seem to be limited by the webkit rendering options available.
    It's instantly visible on Sweclockers and it becomes a problem on tomshardware when you click on a review link.
    I have included pictures here that showcase the problem.

    We are all just your fellow users here. If you intended this as a suggestion to Apple, your best bet would be to submit it at this link:
    http://www.apple.com/feedback

  • Has anybody found a fix to Facebook video calling in Mavericks, or am I being a moron over the whole issue?

    I'm having, and have for a while now, since installing Mavericks had a issue with using video calling for Mavericks. Even though the video icon for video calling is availible in safari, Firefox etc the java app will not download and install. I know there were issues with this initially but have they been resolved? It is doing my proverbial head in, I've searched forums looked at my library playlists etc etc etc, but a fix has evaded me. please please please please somebody give asome sort of affirmitive answer one way or another as to: 1. can it be fixed or 2. will it be fixed!!!!!!!!!

    Hi Jerry,
    thanks ....
    I've just sussed an action .... after I wrote out my own question, I started thinking about it in a different way, the 300 dpi secondary issue was just a niggle after all .... I was coming back to close this question as solved .... I went back to the initial re-size / action logic
    Thanks for you help, your answer was spot on, the erroneous results that I was getting earlier were just frustrating ....
    action screen-shot attached .... the 2nd step independently from the 1st seemed to answer both height and resolution requirements ....
    Gary

  • I'm about to throw the whole system out the window...

    iTunes said that I had too much stuff to fit on my iPod and it would make a "My iPod Selections" playlist to update from. Well, it made it, but alot of the songs I really wanted weren't put there, and the ones I could live without were put there. Frustrated, I deleted it (after messing around for a few days.) Then it said that I can no longer update my iPod because the selected playlist to update from no longer exists. So, I made a new playlist with everything i want on it. I attempted to update, and the same message showed up. I even changed the name of the setlist to be the same as the one i got mad at. still didnt take it. I realise that i probably shouldnt have deleted that setlist to begin with, but whats done is done. Anyone care to help? My iPod is currently completely empty.
    iPod Nano   Windows XP  

    See if this helps;
    http://discussions.apple.com/thread.jspa?threadID=121728&tstart=150
    Cheers!
    -Bryan

  • Solution for copying individual chart of account segements betw. clients

    Hi all,
    I'm facing the problem, that we we have three clients setup on one system. Within the leading new group chart accounts have been added which also need to be added in the other two clients.
    Is there anything like ABAP programs RFBISA10 and -20 which can support me in doing so. To prevent unclarity:
    The respective accounts only exist in chart of accounts segment and i don't want to copy the whole chart of accounts via IMG.
    Thanks in advance for your effort.
    Best regards.
    Johannes

    This was an overly-long post with a lot of irrelevant details and lacking some of the important ones. So I am inferring the following:
    • You are connecting to your mail server via POP
    • You are leaving Mail running on the machine at the office
    • You have the machine at the office set to delete mail from the server
    • At the shop, Mail is set to leave mail on the server
    If any of this is incorrect, please correct me.
    Now, there are several easy solutions. The easiest, if your mail server supports it, is to switch from a POP connection to IMAP. POP was designed around downloading mail from the server one time and deleting it from the server, leaving you with only a local copy. IMAP is designed to leave mail on the server and synchronize local mailboxes with the server. So with IMAP, you could have exactly the same mail in the mailboxes on both machines. Of course, that means the mail takes up space on the server, which could eventually fill your allocated space and prevent you from receiving further e-mail, which means you've got to be aware of the limits imposed by your server and manage your e-mail accordingly.
    If your server doesn't do IMAP, then you can still use POP... you just need to leave it set as is and make sure that you quit Mail on the office machine. You'll be able to download new mails from the shop, and since the shop machine is leaving mail on the server, you'll still be able to download them on the office machine later so you have all your e-mails in one location.

  • Transport of Chart of Account at Company Code Level

    Hi,
    I see in IMG, we can only transport the whole Chart of Account(COA). Is there any way to transport the COA at the company code level?
    Thanks,
    CW

    Hi,
    OBY2 is copy form company code for chart of accounts. What I need is to transport chart of account at company code level from one client to another client.
    Rgds,
    CW

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Is the line charts problem still around in Apex 2.2?

    I think the problem is pretty well known:
    Someone wants to display three series, the first containing twelve values, one for every month.
    The second contains less values, starting at month 1.
    The third contains only a few values and starts somewhere in the middle.
    In 2.0 all series where stretched over the whole diagram width, which made the diagram pretty useless. Someone said this bug would be fixed in 2.2, but somehow I can't spot the difference. Please, have a look yourselves:
    http://apex.oracle.com/pls/otn/f?p=41909:2:3117835281290116
    Does it make any sense to put more effort in experimenting, or is the bug still open?

    Hallo Sabine und Dennes,
    Da habe ich mich wohl in einen deutschsprachigen Thread eingeschaltet ...
    Leider bestand in 2.2 / 2.2.1 fuer uns nicht die Moeglichkeit, die Schwachstellen unserer SVG Charts zu beheben. Dies werden wir erst mit der Version 3.0 angehen koennen, die im kommenden Jahr heraus kommen wird – ein genaues Datum habe ich natuerlich noch nicht. In der Zwischenzeit stehe ich aber gern fuer Fragen zur Verfuegung, um vielleicht der Zeitverschwendung etwas Abhilfe leisten zu koennen. Im oben genannten Beispiel erscheint mir ein Cluster-Bar Chart als besser geeignet, wie Dennes angemerkt hat. Zudem nehme ich auch gern Verbesserungsvorschlaege und Anregungen von Euch entgegen, vieles von dem was unsere Kunden uns vorschlagen, bemuehen wir uns in zukuenftigen Versionen aufzugreifen.
    Viele Guesse vom Oracle APEX Development Team aus New York,
    Marc

  • TS1702 Got problem about transaction Purchase Gold in games

    I can't buys more gold from infinityblade2 it always said please contact iTunes about transaction but I always check my account no any problem I still have a lot money In my credit card

    These are user-to-user forums, you can contact iTunes support here and ask them what the issue is : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Open/Save Dialoge Box covers the whole screen - CS3/Vista

    Hi,
    I´m using Photoshop CS3 on Windows Vista and I have the following problem:
    I can´t reduce the open/save dialoge box in Photoshop CS3 as I could in earlier versions, which I find very inconvenient.
    It stretches over the whole screen and there seems to be no way of reducing it. There are handles at the corners but they don´t work.
    Is this normal in CS3 or could it be just a wrong setting in Windows?
    I hope somebody can help me on this, thank you so much!
    Best regards,
    Mike

    Is this normal in CS3 or could it be just a wrong setting in Windows?
    No, it's not normal. There are two things I can think of:
    - the dialog repositioning feature of your graphics card is not working properly (NVidia Desktop etc.)
    - you resized the dialog in another program and now the huge size has become the system default
    In both cases the solution should be pretty obvious - either adjust the settings/ turn off the graphics card's special features or resize the dialog back in the program it was turned huge in the fi8rst place. For the latter, also checking your more general folder view options as well as manually deleting desktop.ini files may offer a way out.
    Mylenium

Maybe you are looking for