Few queries across the BSEG & REGUP tables.

Hi all.
Am hoping that you might be able to assist. I have a dataset that has a few tables from a SAP system & I have been asked to run a few queries across the BSEG & REGUP tables.
I have tried using EBELN, BELNR, AUFNR and REBZG to try and join the two tables but unfortunately these fields are not consistently populated. Is there any other fields that I could use that are common to both tables and should be populated by default ??
Any assistance that could be provided would be appreciated.

Hi Ashutosh Kumar
You can join both table with
                          BUKRS - Company Code
                          BELNR - Accounting Docu. No.
                          GJAHR - Fiscal Year.
                          BSCHL - Posting Key.
                          SAKNR - G/L account number.
Reward Me Points .
Thanks
Pari

Similar Messages

  • A few queries regarding the beauty that is Nokia 5...

    I got this beautiful lil machine a lil over a week back. It looks lovely, and sounds even better. And even though, being a student/intern, it cost me more than my monthly salary, I am mighty pleased I got it. And despite the opposition before, it's a great hit, both at home and work. 
    Just a few queries regarding the usage from my experience so far, the answers to which I could not find in this forum and a few other review sites. [Apologies if I'd missed something.]
     1- First, the battery. It only lasts for a little over a day on full charge. From what I'd heard and read, it looked like it should last quite a bit a more, atleast 2 full days. The phone even hung up a couple of times, while recording/playing video. Upon which I had to remove and reinsert the battery. How seriously wrong is this ?
    2- How do you forcefully exit an application, if need be ? It suggests in the guide, and from the reviews I read, there's supposed to be an exit and a start button with the applications when you bring up the task manager. Where're they?
    3- There's this option where you can insert a Slideshow as your Wallpaper. But when I go to it, select the desired images, [ Tried various random images, yes ]it only shows Options and Back button, when select Back, it just goes, well, back. Nothing really happens to the wallpaper. How does that work ?
    4- This might seem like a petty issue, but it can be pretty annoying. Once you go to Options and tell it you are marking, e.g. in the Inbox or the File Manager, how do you mark multiple items, WITHOUT having to go to Options >Mark >Mark/Unmark for each item ? What's the point of having a seperate Marking option in the first place then, when I could just Move or Delete each item seperately anyway. 
    5- And last, any news on a free full version of a document viewer ? From what I looked up, it costs around US$70, which is about a quarter of the phone's purchase price itself. And that's not a modest sum, that too for a basic application such as this, for a anyone with my status.
    Just so any prospective buyer or amateur user such as myself doesn't get scared off by the seemingly long list of inquiries, the phone's an absolute pleasure to use. Specially, for someone with their first Touchscreen/Symbian experience. I got this phone after a LOT of research, both online and in the field. And it's bloody well worth it so far. 
    I know, it's a huge post, but you'd have my utmost gratitude for an accurately detailed response. Thankyou. =)
    Solved!
    Go to Solution.

    Why of course. Something happening to your phone during the process would brick it, not to mention that the attempt would install something in your phone that voids the warranty, meaning that you just made yourself a very expensive paperweight. ^_^. We're not really allowed to talk about it, other than the fact that with the above possibility, I strongly advise you not to do so. There is a way to do it without hacking it. I know of people who have managed to do it without hacking, but it was on the 5800. Hmm, ok, maybe they'll work for you too though.
    http://forum.dailymobile.se/index.php/topic,4254.0.html 
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

  • Few queries regarding J3RFLVMOBVED Report

    Hi all,
    I have a few queries regarding the J3RFLVMOBVED Report.
    First and most inconsequential, the report reads Stock Overview (Russia). So why Russia?
    Second, there are two checkboxes in the selection selection screen namely,
    Read List from Database
    Save List to Database
    When I run this report once, it takes about 10 mins to fetch the output. But if I select Read List from Database, I get the result in a matter of few seconds to a couple of minutes.
    So obviously I would like to know the secret behind this magic trick.
    Also, what does Save List to Database do? Im a little apprehensive of trying this option. Just dont understand what it means. Hence did not try it yet. Does it mean that it is saving to a buffer or to the database as suggested(which I feel is highly unlikely).
    I did debug the program. But found it too much to comprehend - pardon my n00biness for that.
    If anybody has looked at this report or a similar one, with the above checkboxes, please help me out.
    pk
    PS: Logging out for the day. Will respond to replies on the morrow.

    Hi Amit,
    The Documentation for this report can be found either in Tcode J3RFLVMOBVED by clicking on the Blue i button or by going to the report J_3RMOBVED and checking the documentation there.
    This part of the documentation is pretty useful:
    Options to keep / receive the report from a database.
    If the option "Keep report in database" is active our report is kept in the databases table "INDX"  with the key "IM". That report can be used operatively for the further analysis.
    The storing is possible on two vevels:
    on a plant level
    on  a company code + GL account level
    In both cases storing is possible only for one period (month).
    Will check out the Notes. Actually services.sap.com has problems opening in my browser. Will have to get that rectified first.
    Thanks for the info.
    pk
    PS: Im on ECC6
    Edited by: kishan P on Feb 4, 2009 4:22 PM

  • Whats the use of table TBD05?

    Hi..
    I want to know the exact use of table TBD05 (Distribution model for message types)..
    And what shall I do to maintain the values in this table.?
    I am facing a problem when I am trying to create an IDOC with ALE as a medium.When I dubugged the code, some of my segments are not getting populated and also I came across the above mentioned table.?
    Please guide me how shall I proceed?
    Thanks

    Subhash,
    You create and distribute a model in BD64. The details of that are stored in this tables.
    A model gives you the details of the sender / receiving systems and what are the message types that are getting transferred between these systems.
    Regarding the IDOC segments issue, can you explaing how are you triggering the IDOC and which message / idoc type you are dealing with.
    Regards,
    Ravi
    Note :Please mark the helpful answers
    Message was edited by: Ravikumar Allampallam

  • A few months back I Dropped my iPhone 4 and I cracked my screen and now i cant unlock my phone due to touchscreen not working plus there are blured lines across the screen and I can't see anything that it displays. Now when I try too connect my iPhone 4 t

    A few months back I Dropped my iPhone 4 and I cracked my screen and now i cant unlock my phone due to touch screen not working plus there are blurred lines across the screen and I can't see anything that it displays.
    Now when I try too connect my iPhone 4 to iTunes on my computer at home an error message comes up saying that I have to unlock my iPhone 4 for it to communicate to my device.
    But the problem is that I can't unlock my iPhone 4 because I'm unable to see the key pad and my touch screen no longer responds when I touch it.
    I just want to reset my iPhone 4 back to its Factory Settings & start all over from the beginning.
    How can I unlock my iPhone 4 with iTunes on my computer or any other option you suggest me trying.
    Thank you in advance,
    SiHero

    If you have had a "local guy "repair your iphone you will not get any support from Apple for warranty OR post warranty
    If Verizon return it to Apple it wil not be handled by Apple
    If Verizon also use unauthorised repairers you may be lucky
    (Apple do not sell parts to local guys or anyone else )

  • TS2972 I cannot seem to get all of my music shared across the network from my MacBook Pro to my iPad. This was not an issue a few days ago. Can anyone help?

    I cannot seem to get all of my music shared across the network from my MacBook Pro to my iPad. This was not an issue a few days ago. I can see all my songs if sorted that way, but if i sort by artist, only a few of them are present. Can anyone help or have any insight?

    Well I didn't think of it before, but I logged out of my apple ID othe iPad's home sharing. The I logged back in and it worked. It's a little weird, but I will take it. Thanks!

  • Performance Problem in using the BSEG table - Required alternative

    Hi All,
    Pl go thru the below program.
    I am unable to change this code
    It is having 46 performance errors
    Pls check the code and suggest.
    *To get Pmt Doc No & Posting Date
      SELECT SINGLE
             BELNR
             ZFBDT
             FROM BSEG
             INTO (WA_ZFT011_FIFO-PAY_DOC_NO, WA_ZFT011_FIFO-POST_DATE)
             WHERE AUGBL = W_CLR_DOC
               AND AUGDT = WA_ZFT011_FIFO-CLR_DATE
               AND BSCHL = '15'.
      IF SY-SUBRC <> 0.
        SELECT SINGLE
               BELNR
               ZFBDT
               FROM BSEG
               INTO (WA_ZFT011_FIFO-PAY_DOC_NO, WA_ZFT011_FIFO-POST_DATE)
               WHERE AUGBL = W_CLR_DOC
                 AND AUGDT = WA_ZFT011_FIFO-CLR_DATE
                 AND BSCHL = '11'.
    The above code is having performance error "NO field of a table Index in WHERE"
    The same error repeated for 45 select statements and for all statements the "BSEG" table is used for selecting data.
    But creating a secondary index on BSEG table columns will not be possible
    So pls suggest me accordingly
    Awaits for the Reply.
    P Kamal

    Hi,
    Perhaps my post here: Re: BSEG table performance issues might help you.
    Regards, Gerd Rother

  • Updation of the MENGE field in the BSEG table

    SAP 4.6C
    The material is moved from one plant to another. The excise on the same is also moved from one plant to another via STO. The value in the GL accounts is calculated using the quantity in the STO. However when the FI posting is triggered, the quantity does not flow to the BSEG table (MENGE field), but the value is populated.  The posting is triggered via conditions and via OBYC setting
    How can we populate the quantity in the FI document.

    Hello,
    There is a note to help you on to achieve this requirement. CAn you please check the note 608340??
    This note has a detailed description about what should be done to update the field MENGE.
    Regards,
    Renan

  • Remove Power Query queries while keeping the query output tables

    I use power query to load data from external sources into several excel tables. Before sending this excel to a client, I would like to remove all power query queries (M code) while keeping the output/query tables at place.
    My current workaround is:
    unload Power Query
    convert each table to range
    load Power Query
    delete queries (M code)
    Is there a better/faster way to achieve what I want?

    You can unlink the existing tables and remove custom XML data in Document Inspector. No need to duplicate the worksheet.
    exactly. and even unlinking the tables is not neccessary for DocInspector to remove the custom XML of PQ.
    Do you have any suggestion on how to trigger the cleaning of PQ XML code via VBA? 
    the following code does not work:
    ActiveWorkbook.RemoveDocumentInformation (xlRDIAll)

  • I have a 2 inch gray bar across the top of my home page now after dragging a few windows around my desk top. I'm not sure if it's a mozilla thing or google thing but it just appeared and I would like to get rid of it. g

    My home page is just www.google.com with a search box and a picture of some planets as a background from my computer. While I was dragging the restored down browser window, I slipped with my mouse and now I have a light gray two inch bar across the top of my background picture. It's below the; Search-Images-YouTube-News-Gmail-More icons. When I right click on it and select inspect Element (Q) it says div#gbx1.gbqfh in three different colors. I would like to get rid of it, but I don't know if it's a google or Mozilla issue. I know google has been changing things so it wouldn't surprise me if it was just a coincidence.

    Is there any text in that gray bar?
    I see some buttons on it, do they have a tooltip?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    Are you using a proxy to connect to the internet?
    See "Firefox connection settings":
    *https://support.mozilla.org/kb/Firefox+cannot+load+websites+but+other+programs+can

  • Export & Import internal table data across the programs

    Hi All,
    I have two different reports,let say ZPRO1 & ZPRO2. I want to export internal table data of ZPRO1  to  ZPRO2 and then I want to do some calculations in ZPRO2 with the imported internal table data(ZPRO1).
    If I use 'SUBMIT' or CALL TRANSACTION syntax ZPRO1 is displaying..but I want to use only internal table data of ZPRO1.
    Pls advise.
    Pranitha.

    Hi,
      Please follow the simple code and try to solve your issue.
    Code in program1
    types: begin of ty_itab,
           matnr type matnr,
           end of ty_itab.
    data: it_itab type table of ty_itab,
          wa_itab type ty_itab,
          it_itab1 type table of ty_itab.
    select matnr from mara into table it_itab.
    export it_itab to shared buffer indx(st) id 'ABC'.
    Code in program2
    types: begin of ty_itab,
           matnr type matnr,
           end of ty_itab.
    data: it_itab type table of ty_itab,
          wa_itab type ty_itab.
    import it_itab from shared buffer indx(st) id 'ABC'.
    loop at it_itab into wa_itab.
    write:/ wa_itab-matnr.
    endloop.
      Please delete shared buffer indx(st) id 'ABC', once we don't need the internal table data.
    Regards
    Dande

  • Information on how to run SQL queries on the CUCM itself please

    Good Day All,
    I need to run an sql query on the CUCM to list all of my directory numbers, their partition, and their external mask values.
    I came across this excerpt below earlier so I have a bit of an idea how to do it but iw would be great to see some other examples of sql queries.
    Any assistance is most appreciated.
    Also, is there a document somewhere to tell me how to run these queries?
    Thanks in advance
    Regards
    Amanda
    Currently Being Moderated
    05/04/2011 5:18 AM (in response to Joshua Royle)
    Re: Is there a way of pulling a report off CM showing all phones that have diverts on?
    Try if running this SQL query from the CLI helps you, it should list all DN's that have CFA enabled to VM or a DN:
    run sql select dnorpattern,cfadestination,cfavoicemailenabled from CallForwardDynamic c, numplan n where c.fknumplan = n.pkid and (cfadestination != '' or cfavoicemailenabled ='t')

    Hi Amanda
    Basically it's standard SQL, so it wouldn't hurt to google 'informix select statements' and do a little reading to get the basics. There are millions of permutations of queries so it's a matter of understanding the syntax, and then applying that to the database in question. The only difference when running commands from the CLI are that:
    - You prefix the standard informix SQL statement with 'run sql'
    - You don't get any help from CUCM with the syntax, so you might be well advised to use something that understands SQL a little and colorises it as you type, and then paste the resulting commands into the CUCM SSH window. I use a text editor named JEdit, if you create a text file and save it as a file ending in .sql it will highlight your syntax.
    - Other programs are available that do reasonable syntax highlighting (e.q. SquirrelSQL) that are designed for querying the DB directly, but you can't actually query directly against the DB for security reasons. You'd still have to copy/paste the commands.
    Now... to understand the DB you'll need a reference describing all the tables etc. This is here:
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_programming_reference_guides_list.html
    Pick your version of CUCM and download the 'Data Definition' document.
    A few notes on the command:
    run sql : is just the CLI command that tells the shell to run the following text as SQL.
    select : the SQL command to retrieve data
    dnorpattern,cfadestination,cfavoicemailenabled : the column names to retrieve
    callforwarddynamic c, numplan n : the names of two tables, and the abbreviations you want to refer to them as
    where c.fknumplan = n.pkid : this tells SQL to return values from the two tables where these fields match up. In the data definition you'll see notes that c.fknumplan (i.e. the fknumplan column in the callforwarddynamic table, as noted by the c. prefix) refers to the PKID column in the numplan field. This is a very standard type of join in the CCM DB.
    and (cfadestination != '' or cfavoicemailenabled ='t') : another clause, basically in this query we want to see only rows where cfadestination isn't blank or cfavoicefmailenabled is set to 't' for true).
    Most tables are linked in one of two ways in this database:
    - a column prefixed 'fk' refers to the pkid field (there is always only one pkid field per table) in the table following the 'fk' prefix. E.g. above fknumplan refers to the numplan table, pkid field. fkdevice would refer to the device table, pkid field.
    - a column prefiex 'tk' refers usually to an enum table which is prefixed with 'type'. This is a table that maps the number value in the 'tk' field to a string. An example would be tkmodel - this represents the phone physical model type (e.g. 7962), and maps to a table called typemodel, and the 'enum' column in that table.
    Regards
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • Multiple running queries at the same time

    Hi!
    I looked around (and RTM) for this but didn't find anything, so I'm asking here.
    I have quite a few long running queries (data loading and such things, warehousing stuff), and I need to be able to run multiple queries/statements at the same time. In TOAD I can do this, start a procedure and while it is running I can do SQL statements in another session tab (it supports threaded sessions - it starts queries in their own background thread/session).
    When I start a long running procedure or query in SQL Developer I can not do anything until the procedure execution finishes. Is there any way (setting/preference) to enable SQL Developer to be able to run multiple queries at the same time?
    I really would like to move away from TOAD, but this is a major showstopper for me.
    Thanx for any tips.
    Alex

    Hi!
    This post is going to be a little longer, but I have to clarify things out.
    I did not mean to throw any wild accusations, because I did my fair share of RTFM and searching the help. I can tell you that if you put any of these in the help search box:
    session
    non shared
    non-shared
    connection
    concurrent <- I guess this one should yeld something
    multiple
    spawn
    you won't find anything usefull, the article that comes closest, is this:
    "Sharing of Connections
    By default, each connection in SQL Developer is shared when possible. For example, if you open a table in the Connections navigator and two SQL Worksheets using the same connection, all three panes use one shared connection to the database. In this example, a commit operation in one SQL Worksheet commits across all three panes. If you want a dedicated session, you must duplicate your connection and give it another name. Sessions are shared by name, not connection information, so this new connection will be kept separate from the original."
    It does not mention any spawning of non-shared connections from the current one, nor it does mention using a accelerator key combo. But since there could be written something about it, I guess you could call it a documentation bug, because it does not provide any clue to this functionality. The help is definitely of no help in this case. As you can see, I do not throw accusations without trying to find out something first. I guess if someone is not as deep into SQL Developer as you are, there is no way for him/her to know this.
    OK, I tried your suggestion, and (sadly) it does not work as I suppose it should.
    Here's what I did:
    - start a new connection, and enter the following code in SQL Worksheet:
    declare
    j number;
    begin
    for i in 1..1000000
    LOOP
    j := sin(i);
    end LOOP;
    end;
    As you can see, it doesn't do much besides holding the connection busy for a while when executed.
    - start a new non-shared connection from the first one using CTRL-SHIFT-N (as you suggested) and put the following statement in the new SQL Worksheet (with "__1" appended to connection name)
    select sysdate from dual;
    - go to the first SQL Worksheet and execute the procedure
    - while the procedure is executing, go to the second SQL Worksheet and hit F9.
    The sysdate is returned as soon as the first SQL Worksheet finishes and not any sooner. It may run in separate session, but the result is not returned before the other session is finished doing what it is doing. I guess the correct behaviour would be to return the sysdate immediately.
    I verified this behaviour repeating it 3 times starting with a new instance of SQL Developer, each time connecting to another schema and spawning the new non-shared session. The database used was Oracle 10.2.0.3 EE on RHEL 4 UPD3.
    The concurrent execution lacks concurrency. The statements might be executed concurently on the database (i did not went the extra mile to verfiy this), but the returning of results is just not independent of other sessions. To the end user this is as much concurrent as it is serial execution.
    I hope developers get this issue straightened out soon, as I said, I'd love to move away from Toad, but I'll have to wait until they fix this out.
    Is there anything else that can be done to make it behave correctly?
    Kind regards
    Alex

  • Sync files across the Managed Server.

    We have exploded war deployed in the Weblogic Cluster and in this there is a feature which would create a zip file in the exploded folder and this zip file will be downloaded through the URL. Now the problem in clustered environment is when the application write the zip file which will be available in only one of the managed server and when we try to download the zip file through the LoadBalancer URL it may not hit the same Managed Server in which the zip file is available.
    Is there a way in weblogic cluster to sync the files across all the managed server so that we can access the file through loadbalancer.

    Hi Suresh
    1. Your issue has nothing to do with the cluster setup and the way you deploy the application (as EAR or Exploded). Basically in your application, you generate a file and automatically that gets stored in that machines location. Now when you access it from a load balancer, the request may go to other machine and naturally it will not find the file there. There is nothing in the cluster setup or something that can copy the files and replicate acorss the machines. Infact that will be way too complex. I will couple of solutions.
    2. Create a shared folder like public folder. Say in Windows, create a folder with some folder structure and map it as say X: Drive. now this X Drive can be accessed from any other machine like Machine1, Machine2 (after setting the sharing properties). First try directly from Windows Explorer itself. Now within your application, when you generate and store the file, refer this X: Drive with full path. You can make it more flexible by using a .properties file that has key value pair. Key is like FILE_LOCATION and value can be like X:\a\b\c. Now using simple Java Properties class API to load the contents from this file. You can add all the constants, check for if .properties file exist like that. Once you have all the properties loaded, then refer this key, to get its value and use that to store the file generated. Use the same approach, while retrieving the file also. Use the key to get the location and then look for the file you want to download. This should work, when the request goes to any managed server in the cluster. I used it. I created a utility class like MyAppPropertiesLoader, with some static methods, that reads the file only once, if it is null, and then get values using simle methods like getString(String aKey), getLong(String aKey) etc. The huge BENEFIT of this is, once you deploy the application say in Unix, natually, the shared location has to be one of the unix boxes. Then just mount this location on both the managed servers (mount is similar to mapping a drive in Windows OS). Also the location of the files can be changed anytime in the properties file. Say in QC, the location may be X:\a\b\c\qc. But for UAT on Unix it can be like /x/y/z/uat/. Now this .properties file can exist directly under the Domain root folder so you can access it directly without any path in your java code. You can also use System properties like user.home etc. Make sure to copy this .properties file on both the domains. The original master domain. And the psueduo domain that is generated when you run the unpack command if you have managed server in another machine.
    3. This is much simpler but kind of not recommended. Simply, create a simple table with few header columns and one BLOB/CLOB column. Store the file in this database table and retrieve from it. This means you will have JDBC code, and the code to create clob to store and generate file from clob for retrieval.
    My preference is the first option given above. Getting tools to copy files may be complex. Its not like syncing the data across but its the files that needs to be copied across the machines.
    Thanks
    Ravi Jegga

  • Few queries about foreign revaluation for vendor/customer open items

    I am trying the transaction F.05 for the first time for vendor & customer open items in foreign currency. I have a few queries:-
    1. The ouput contains 2 exchange rates. One is picked from the transaction header. My query is from where is the other rate being picked up. In my current system, I could make out that exch rate in transaction header is being picked automatically from table OB08....however I am unable to deduce the source of the 2nd exch rate.
    2. What is the significance of "balance sheet preparation valuation". Earlier in test runs, only "new difference" was getting populated. However the user wanted to see "old diff" also. So while doing some trial run in test client, I checked the "bal sheet prep valu" and posted.....after this run, I am getting values in "old diffe" and "new diff" also. And the posted amount is the difference of the two. What is the significance and ideal way?
    3. Should the entry be reversed if I am revaluating at year end? Why I am asking is because in some threads I read that revaluation at year is not to be reversed....
    Thanks,
    SM

    1. To find out difference latest date(Key Date for OI Overview) will be taken by comparing with document posted dated. Based on that system shows diffrences
    2.   The items are valued using the exchange rate valid at the key date. The
          difference determined in local currency is output and posted. The
          valuation can also be done for parallel local currencies and according to
          different valuation approaches (HGB, GAAP).
          The result of the valuation is required for the creation of the financial
          statements. You should therefore carry out the valuation before the
          grouping of receivables and payables with program SAPF101. The valuation
          difference is then noted in the document. Use the valuation areas to
          calculate a different valuation method, or to save the result for further
          processing activities.
    3.   we need to reverse entries .

Maybe you are looking for