Assign Sequential Order

How can I assign a sequential order to records using a timestamp within a SQL query?  For an example, if there are 3 call records in a table, I need to know the sequential order each call:
Call 1 - 10/21/14 09:00 am
Call 2 - 10/21/14 09:45 am
Call 3 - 10/21/14 11:02 am
AS

Thanks so much.  I think this could work except, I need to have it group and count by a unique identifier so that it can order the calls based on a particular unique identifier.
Something like:  ??
SELECT
callid,
ROW_NUMBER()
Over(Order
by callplacedtime)
rn FROM TN_Records
WHERE
GROUP
BY callid
projectname='03254'
AS

Similar Messages

  • How to assign an order to a GL account

    Hi all,
    Can anybody please let me know how to assign an order to the GL account?
    Thanks,
    S.Sumana.

    Hi,
    There is no such an assignment. When you post a document, you define your G/L accounts and cost objects. If you want to make a default internal order for certain cost element, you can go to KA02 or OKB9 and define the defaults there.
    Regards,
    Eli

  • Inventory receipt against account assigned Purchase order

    Hi,
    When we do the MIGO-GR against a normal purchase order, we debit the inventory and credit the GR/IR clearing account. I would like to know whether we can post the same entry while doing the MIGO-GR against an account assigned purchase order.
    If there is any work around please let me know.
    appreciate any inputs on this.

    Hi Kishore Kumar
    When you have an account assigned PO, the GR entry cannot be
    Inventory A/C Dr and GR/IR A/c Cr
    It can be either debit to Consumption Account or any exps A\c and credit
    to GR/IR
    Regards
    Chandrasekaran

  • GTS 7.2 - Error with account assigned purchase order without material

    All,
    I am creating an account assigned purchase order without any material master in the feeder system (ECC 5.0) and it a standard SAP functionality.
    I am getting the following GTS related pop up message and documents are posted to technically incomplete documents in GTS 7.2.
    "Legal Control: Custs Prod. Mast. Required
    Material                                                  "
    Any ideas on how get rid of this error message
    Edited by: James Puzon on Oct 3, 2008 9:32 PM

    James,
    Even though material numbers are not mandatory on POs in the feeder system (ie in ECC) they ARE mandatory in SAP-GTS.
    This means that every line item (PO, SO, delivery) that is sent to GTS for compliance screening or Customs processing MUST have a material number in the feeder system.  You have a couple of options to resolve this:
    1. Always use a material number on all transactions that you enter in your feeder system if they are exports or imports (ie relevant for GTS). You can create service materials or "dummy" materials in ECC for items such as user manuals, warranties or installation services that are part of a particular shipment.
    2. You can add logic in the interface for GTS to always transfer a particular material number to GTS if the material number is blank on the line item of the feeder system document.  Ideally you would want to link this custom logic to a custom maintenance table in ECC so that you can easily change the material number that is sent to GTS without having to change the code.
    3. Override the error message by changing the message type to a warning or informational message (not recommended because this would require a small code modification because I don't think the message type is configurable for this error).  Even if you did make this code change you would likely run into more issues in GTS because license determination and other GTS services need a material number to function properly.
    Hope this helps.
    Sascha

  • Acct determination for Account-assigned purchase order with keys not define

    Hi,
    I'm trying to post an IDOC of type BBPIV through XI to an R/3 system.
    The posted idoc in R/3 is in status 51 (Application document not posted) with the error message "Acct determination for Account-assigned purchase order with keys not defined in chart of acts WP2P"
    As per my understanding this is something related to FI.
    Long text of the error is "The system cannot generate an automatic posting because there is no account determination defined for Account-assigned purchase order with keys   in chart of accounts WP2P.
    Correct the account determination for Account-assigned purchase order"
    Please help me how to solve this.
    Regards,
    Rashmi

    Hiya,
    This looks like its a MM posting / transaction.
    You need to go to OBYC and maintain the account assignment. If you provide the business scenario (GR into Stock, Subcontracting, etc.) for the process, I may be able to help.
    VKOA is for SD account assignment and I don't believe you can use that here.
    Cheers.

  • Significance of account assigned purchase order

    Dear Gurus,
                          I would like to know the significance of account assigned purchase order in detail. Also kindly explain the difference between account assigned po and standard po.Thank you.

    Hi,
    Normally  we will use account assigned PO's for Procuring Non-stock & Non-valuated materials.
    For ex: consumable materials such as stationary items, spares etc.. we wont take into stock rather we will directly issue to the cost centers since these are low value items.
    There are different kind of account assignments such as Consumables (K-Cost Center), Assets - A, Order - F(internal Order) etc.
    By using above account assignments value of the materials will be directly posted to the respective G/L in the account assignment.
    Whereas Standard PO's are one created for materials which we will take into stock & valuation will be done @ plant level
    Thanks & Regards,

  • Account-assigned purchase order KBS is not activated

    Hi Friends,
    please expalin me maintain FI configuration; automatic postings procedures Account-assigned purchase order KBS transction  account detemination is not activated.
    Thanks
    E.vasu

    Hi,
    KBS  only define posting key (to which account the postings  to happaen).In  any account assign purchase order,  system prompted to enter GL account (and CO object), which  defined the account posting. Ex: Check in OMJJ - For mvt type 101 - update control - GR for acct. assgt. (consumption indicator V with quantity and value updation) - system defines postings as KBS and WRX, KBS refers to the consumption GL account.
    KBS key doesnt require any additional settings in OBYC. It only looks for account specification in PO (say K /C/P) and GL account and can be assigned in OKB9 T.code.When  we do GR for  PO with account assign {KBS (consumption)}, it will debit the given GL account (assigned in OKB9 t.code) and credit GR/IR account (which define in OBYC).
    Regards,
    Biju K

  • Goods Receipt for Account-assigned Purchase Orders

    Hello,
      We want to make Goods Receipt for Account-assigned Purchase Orders. When we try, SAP gives the error 'Account determination for entry PCOA KBS 0001 not possible'. According to SAP online help, account assignment is adopted from the purchase orders for the transaction/event 'KBS' and we cannot assign transaction key 'KBS' to an account using transaction OBYC. How do you make it work? Any solution pointers will be appreciated and rewarded.
    Thanks,
    Venu

    create an implicit enhancement point in function module CKMV_AC_DOCUMENT_CREATE.
    IN STRUCTURE IT_ACCIT U CAN MODIFY THE gl ACCOUNT IN RUN TIME .

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • Up until this latest upgrade to iTunes, all my tv shows were listing in episode sequential order on my iPod.  Now they are only showing up in alphabetical order.  Help?

    I loved my iPod Classic because I would load a television series on it and be able to watch it in Episode Sequential order.  But since this latest update to iTunes, all my television files (while staying seasonally organized) are now listing alphabetically.  Help?  Ideas? Explanation?

    add your release date manually if it isn't there.
    unfortunatly iTunes won't let you do it. i use a program called "TvTagger". just search google, third result from top, that's the one. you have to enter a release date like this: YYYY-mm-dd . I did it and I think it's worth the hassle. not only are your shows sorted correct, but the ugly "Unknown Release Date" line is replaced by the actual release date

  • I need an app to search PDF, words not in sequential order. Please help

    Hopefully this means something to someone. I need to search through hundreds of PDF files but need to search for the words in the file name in non sequential order.  Every app that I have looked at so far can search for words in the middle of a file name but type them out of order and it doesn't recognise.
    I hope someone out there can help. Many thanks in advance.

    hullo there
    i know that writepdf lets you search for keywords within actual docs, then it comes up with a list of interactive links of documents that have that keyword
    would that be any good?

  • How do I get the playlist in shuffle to play in sequential order rather than alphabetic?

    How do I get the Shuffle to play in sequential order not alphabetic order ?

    I just posted this on another discussion about the same topic:
    I spoke with Apple today, and they explained how to fix it.
    First, plug in the iPod.  Highlight the ipod on left side of iTunes.  Then go to 'Summary' and make sure the 'Manually Manage Music' is checked.  If not, check it, then sync.
    Then, drag and drop your playlist into the ipod.  On the left side of the ipod name is an arrow.  Click that, which will show 'Music' and your playlist.  Right click the playlist, then hit 'Copy to Play Order'.  This option will not be available if you haven't already checked the 'Manually Manage Music' in Settings.
    THEN, hit sync, and disconnect/remove the ipod.  When you turn on your ipod the music will still be out of order.  You have to press and hold the voiceover button.  The voice will list your options, starting with 'All Music', then the name of your playlist.
    While you are hearing the name of your playlist, press play on the ipod, and it will play them in the correct order.
    And there you have it.
    Why so hard, Apple?

  • Can i assign an 'order by' clause dynamically in forms ??

    I know it's possible to assign an 'order by' clause in reports with lexical parameter.
    for example..
    select A
    from TABLE
    where A is not null
    &V_ORDERBY
    In this, v_orderby might be 'order by name' like that,,,
    can i assign an 'order by' clause dynamically IN FORMS ??
    If you understan my question, please answer to me,,,ㅜㅜ

    Have you tried this build-in function?
    SET_BLOCK_PROPERTY('[BLOCK_NAME]', ORDER_BY, 'SORTCOL1, SORTCOL2...');
    Where 'SORTCOL1, SORTCOL2...' are the table columns name.

  • Assign SD-Order to a new Comany Code

    Hello,
    I want do assign SD-Orders to an new Company Code.
    on what should I look for or on what should I take care?
    Thank you

    Hi Chris,
    I think you have copied the co. code using Trcode , When you have copied the co code all the gl master records from the source co code is also coiped to to the target company code. these gl masters use the COA(Chart of accounts)  used by the source co. code.
    If you want to assigna new COA now to the target co code then you have to delete all the gl accounts from this new co code you can do this by executing TR Code OBR2. Select the gl accounts, Select the check box for "with general master data" and provide the company code and execute. Now you can assign a new COA to this new company code
    Regards
    Pratiksha
    *assign points if useful

  • Assign Internal order to activity Type.

    Hello All,
    I have a requirement in which i have to find a way to assign Internal order number when a activity type is created. The current setting in KL01 we can assign cost centre categories. Please let me know how a Internal order can be linked to Activity type.
    Thanks & Regards
    Naveen

    It is not possible.  There is no such functionality even from functional point of view.
    Check at transaction code OKEI
    Srinivas

Maybe you are looking for

  • What's the best way to animate a photo on top of a clip?

    If any Shake users consistently and easily keyframe-animate either the Move2D node or the Pan node, I would be most grateful to hear how you do it. I am trying to get a small photograph to move in various places on top of a video clip playing in the

  • IN Compsition Environment: interface controller in web dynpro

    Hi All, I've installed NW CE 7.1 and am trying to trigger an event created in the Interface controller. I observed that the methods and the events declared in the interface controller are not accessible in the view level. Has the WD design time conce

  • BT Infinity 2 - HH5 issues and not hitting speed? ...

    Hi, Thanks for reading! I had BT Infinity installed mid April. My Wholesale Chart is below: However due to a mix up I received a HH3 which was installed with separate OR Modem. My UL/DL at the time was 12MB/52MB.... nowhere near the speeds listed abo

  • CR4E SQLServerDriver could not be found

    I am trying to resolve this issue for 2 days now. I red all the forums but can not find an answer. I have connection to the SQL Server 2000 and I am using the  Microsoft JDBC driver. Do I have to setup the CRConfig.xml? If so how? Here is the error I

  • Change element type of an array of containers (from LabVIEW)

    Hi, I have an empty Array of Container type and need to insert an element of a custom data type definition. If I already have an element of the type definition, it is simple to copy that element and insert it as a new element. But inserting a new ele