Can I use an expression in order by clause

SELECT
PERIOD_NUM, period_num *12,
period_name,
--TO_DATE(SUBSTR(PERIOD_NAME,1,3)| |SUBSTR(PERIOD_NAME,INSTR(PERIOD_NAME,'-'),3),'MON-RR'),
TO_NUMBER(TO_CHAR(TO_DATE((SUBSTR(PERIOD_NAME,1,3)| |SUBSTR(PERIOD_NAME,INSTR(PERIOD_NAME,'-')+1,2)),'MONRR'),'RRRRMM'))
FROM GL.GL_PERIODS
order by 2--TO_NUMBER(TO_CHAR(TO_DATE(SUBSTR(PERIOD_NAME,1,3)| |SUBSTR(PERIOD_NAME,INSTR(PERIOD_NAME,'-')+1,2),'MONRR'),'RRRRMM'))
desc
gl_periods is a table, period_name consists of values like oct-01_fy-01 etc and oct01_01_fy-01
I want to sort on this column based on period_name, so I am trying to convert into number like for oct-01_fy-01, the query gives
200110 and so on. the recent period comes first, But my question is I can't use the same to_number(.....) in the order by clause. oracle gives an error
ORA-01843: not a valid month.
Let me know whether anyone come across with this kind of situation

If you are sure the expression is correct, since you are using it in the select clause, give an alias and use the alias in the order by clause.
null

Similar Messages

  • Sale order bom can be used in to process order or not

    To change the BOM for particular order items the sale order BOM can be created , to copy the sale order BOM into production order CO08 can be used , whether the process order can be created with ref to sale order any option is available is SAP

    Hi,
    There is no such transaction for process order with respect to Sale order.If planned order is created with respect to sale order after MRP,that can be converted to process order thorugh COR8 transaction.
    try to explore COR8 transaction

  • Can I use airport express to extend my network AND stream iTunes???

    I have an airport extreme connected to the cable modem and sending a signal out to my home network. I also have a powerbook and an airport express connected to the home stereo.
    My question is, can i use the express to extend my extreme signal (to reach the back yard) and stream music from itunes at the same time? The set up utility seems to suggest that you do one or the other.
    Thanks!

    Are you sure you configured the Express to extend the Extreme's network? If you use the standard setup, the two base stations will be indistinguishable, i.e. you'll only see one entry for the wireless network.
    If you were connected to the Extreme when you configured the Express, try turning off Airport in the Airport menu and then turning it back on. The computer should pick up the stronger signal at that point.

  • I have an airport extreme and express, if I use the extreme as a base station connected to my old router can I use the express to extend the signal while also creating a new network that only I can use?

    I have an airport extreme and express, if I use the extreme as a base station connected to my old router can I use the express to extend the signal while also creating a new network that only I can use? Essentially having two wifi connection off the same network? If so how do I set this up?

    Extending using a wireless connection always results in a performance compromise.
    If the Express is going to extend using a wireless connection, then the Express will need to be located about half way between the AirPort Extreme and the general area where you need more wireless coverage. The more that you have line-of-sight between the Extreme and Express, the better the network will operate.
    Remember......the Express can only "extend" the quality and signal speed that it receives, so it needs to be located where it can get a very good signal from the Extreme. Although Apple cleverly uses the term "extend", a more accurate term for the Express would be "repeater".
    If the Express will extend by connecting to the Extreme using a permanent, wired Ethernet cable connection......highly recommended for best performance.....then the Express can be located exactly where you need more wireless coverage. There is no signal loss at all through the Ethernet cable, so the Express gets a full speed signal no matter where it might be located.
    Post back to let us know which way to you want to go.

  • Can i use Boolean Expressions in Mail Rules?

    Can i use Boolean Expressions in Mail Rules?
    I need to create a rule to check whether a message contains BOTH a first and last name of EITHER of two people.
    For example, the rule im looking to create goes something like this:
    If ANY of the following conditions are met:
    message content - contains - john & doe
    message content - contains - jane & doe
    ive tried and cant seem to get it to work...
    Message was edited by: mysterioso

    AFAIK Mail rules do not support boolean expressions.
    to do what you want you'd have to create two rules
    rule 1
    if ALL of the following conditions are met
    message content - contains - john
    message content - contains - jdoe
    and similarly for rule 2.

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • HT1515 How can I use Airport Express (1st generation) with OS X Mavricks?

    How can I use Airport Express (1st Generation) with OS X Mavericks?

    1st Generation AirPort Express will work fine with Mavericks.
    Are you sure that you have a 1st Gen Express?
    Check the model number on the side of the Express. 1st Gen is A1264.
    If you see A1084 or A1088, these are much older versions of the Express that were sold long before Apple began to use the Generation naming with "n" wireless devices in 2007.
    Mavericks will not support the A1084 or A1088. Use another Mac running Leopard, Snow Leopard, or a PC if you need to administer the older Express.

  • Same serial number + material combo can be used in different sales orders?

    Hi,
    We have a recurring issue in our system where a Serial Number/Material combination can be used in another sales order once it is already in ECUS status.
    Example: We sell and post material 123 with serial number 456, it goes into ECUS status, and we are then able to create a sales order with the exact same numbers.
    Is this something that I should escalate to OSS? Why is this happening? Is there an IMG setting where I can turn on this functionality?
    I woud be very grateful for any help! Thank you so much!

    Hi San,
    The org. determination rule is setup correctly, I've followed the link below to determine sales area on item level - to clarify, we are creating online sales orders (B2B scenario)
    https://help.sap.com/saphelp_sm40/helpdata/en/61/ac747795b511d3b53e006094b9ea37/content.htm?frameset=/en/63/02b638faa32d…
    Check the table in the section "Organizational data at item level" - i have already assigned an org.determination profile with no determination rule on item level and still facing the same problem.

  • How can I use the field "Sales Order" on derivation?

    Dear All.
    This is about PA characteristic derivation.
    I want to change the characteristic value "Sales Order (KAUFN)" by derivation.
    But I cannot select the characteristic field on target field.
    The field "Sales order(KAUFN)" doesn't exist there.
    Why? How can I use the field "Sales Order" on derivation?
    Y.C.Bae

    Hi Bae,
    in order to be able to choose fields KAUFN (for sales order) and KDPOS
    (for sales order item) as target fields of derivation step 'enhancement'
    you have to modify the coding of subroutine EXIT  GET_ALLOWED_TARGETS
    in program RKEDRCOPA like this:
        NAME-IDENTIFIER = 'CO-PA'.
        NAME-TABNAME = FIELDTAB_ENTRY-TABNAME.
        NAME-FIELDNAME = FIELDTAB_ENTRY-FIELDNAME.
        IF FIELDTAB_ENTRY-USGFL CA 'DUV'
    BEGIN OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KAUFN'
             OR FIELDTAB_ENTRY-FIELDNAME = 'KDPOS'
    END   OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KNDNR'
             OR FIELDTAB_ENTRY-FIELDNAME = 'ARTNR'
    Actually sales order number and sales order item shouldn't be changed
    by derivation (therefore they are no valid target fields in standard)
    but if you need to fill them within an enhancement this modification
    will help you to define them as valid target fields. But this is just
    the technical frame so far; the logic from which table you'd like to
    derive the sales order number correctly depends on your implementation
    of the enhancement! I just want to ask you to be rather careful with
    the implementation of the exit so that the sales order number isn't
    changed in cases that shouldn't be concerned.
    Regards,
    Abhisek

  • How can I use AirPort Express when traveling?

    How can I use AirPort Express when traveling?

    How can I use AirPort Express when traveling?
    Connect the AirPort Express to the Ethernet port in your room.....to be able to create your own private wireless network in your room for multiple devices.
    You will still have to pay the hotel Internet charge for one device, if the hotel charges for Internet access.
    If the hotel only provides wireless service, then a single AirPort Express will not help you.
    However, if you have two AirPort Express devices, then you can use one to "join" the hotel wireless network, then connect the second Express to the first using an Ethernet cable and create your own wireless network for multiple devices in your room.

  • After I switched carriers I can't use outlook express e mail.

    after I switched net carriers I can't use outlook express for sending e mail anymore.

    I'm not sure what you mean. Are mail links not opening Outlook Express? If so, see [[Changing the e-mail program used by Firefox]]

  • Can you use the Express as a wireless bridge?

    I need to get an ethernet connection to a slingbox next to my airport express. My airport express is currently configured as a client that connects wirelessly to my netgear router that connects to my cable modem. I can play itunes on any computer to the airport express.
    Is it possible to use that ethernet port on the AE to bridge my slingbox back to the netgear/cable modem?

    Can you use the Express as a wireless bridge?
    Yes as long as WDS is used with a compatible device.
    Is it possible to use that ethernet port on the AE to bridge my slingbox back to the netgear/cable modem?
    No. The Netgear base station is not compatible with Apple's WDS implementation.

  • Can I use AirPort Express as booster/extender to LinkSys router signal?

    I have LinkSys N router (which I got free, else would've bought AirPort), its signal isn't strong enough in office room.  Can I use AirPort Express as a booster/extender?  Some sources say Express can only talk to another Express, others say it can communicate with the LinkSys.  Which is it?  I don't want to spend the money for two Expresses unless I have no choice (very limited budget nowadays).
    I've been hassling with this for over a month, and I'm extremely frustrated. 
    Thanks to anybody who can help me with this.

    Most likely no. That is because most non-Apple router's implementation of WDS is not compatible ... and this is true the other way around. It is true that some early Linksys models, mainly the WRT-54 series were compatible, but I have not seen anything since then that is.

  • Can you use logic express on a mac mini for recording

    Can i use logic exprees on a mac mini for recording? Ive seen alot of 8,12, and 16 track recorders with a cd burner and it seems like a logical and more productive gues for me to buy a macmini for the same thing of recording and then I can uses logic express, a far better program for recording. can the mac mini handle the load of processing tracks and how much ram should I uses? thanks tim

    sorry, I'd like to butt in here:
    I would like to do the same thing, so I am curious about this forum and rather than starting a new one, can I get some advice on this possibility:
    Mac Mini
    1.83GHz Intel Core Duo
    2GB 667 DDR2 SDRAM - 2x1GB
    80GB Serial ATA drive
    Glyph External HD 250 Gig
    Mackie Onyx 1620 w/Firewire
    Logic Pro 7.2
    thoughts?
    The most number of tracks I could see at once would be 16.
    Here is something I am most curious about...
    Firewire Hard drive
    Firewire Interface/mixer
    Firewire camera for FCP
    to much firewire?
    Please let me know if you have other thoughts aswell...
    Shuke
    thanks guys, this forum is fantastic!

  • How can I use my ipad in a hotel that only has ethernet connections.    The apple store clerk told me that I can't use airport express unless I also have a computer with me in the hotel.

    How can I use my Ipad in a hotel that only has ethernet connections?  The Apple store clerk told me that travel express won't work in my hotel unless I also have a computer.

    The issue with the Airport Express (or any of the Apple routers) is that you need the Airport Utility to configure it.  Airport Utility works on OSX and Windows, but not on the iPad (or iPhone or iPod Touch.)  It will work, if you can preconfigure the Airport correctly ahead of time, but you'd be stuck if you did need to reconfigure while at the hotel.
    You can use most any other router that is configured with a web page, which means you have a chance of configuring with Safari on the iPad.  If you want something somewhat portable, I use a "travel router" made by D-Link. The current model is the DAP-1350.  Other companies make similar travel routers, but I have no experience with the others.

Maybe you are looking for

  • Help with a CD writer cha

    Hi !?I change my old CD writer with a DVD writer. But now, when I try to burn a MP3 disk, the DVD-W is not recognized by the Mediasource. Must I reinstall the Mediasource ? I have an old Mediasource version. Please help me. Thanks??

  • Usage of 'BAPI_ACTIVITYCRM_CHANGEMULTI'????

    Hi All, Can anyone help me with the following BAPI. I have used it as follows:- CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI' TABLES header = it_header headerx = it_headerx PARTNER = PARTNERX = ORGANISATION = ORGANISATIONX = DATE = DATEX = TEXT = TEXT

  • Sap tax nature

    can any one explain the tax nature in sap when using third party tool for calculating the tax

  • ODBC 11 dont work with tables which have a PrimaryKey consist of 3 columns

    Hello, i have Access-2003-program which is connectet to a oracle10-Database or a oracle11-Database over instant-client and ODBC 11_2 (32 Bit) Update and delete in a table which have a primaryKey constist more as 2 columns don not work any more. If I

  • Play music on iPhone in my car

    how can I play the music on my iPhone in the car? I purchased monster mini-stereo cable to connect the iphone to the aux jack in my car, however they are not compatible. I called Apple and was advised to purchase the Belkin mini-stereo cable. I did,