"biggest" character in an order by operation using NLS_SORT=WEST_EUROPEAN

I thought this would be simple to find out, but it isn't.
I'd like to find the single character that comes out last in a "sort by" on a varchar field. If I use the normal ASCII sort order everything works as expected and the characters like ~ and } come after all other characters and numbers:
select * from my_table order by nlssort(my_field, 'nls_sort=ASCII7')
However, I can't always use the "order by nlssort" clause (the db is a data warehouse and there are hundreds of reports). The NLS_SORT parameter is set to WEST_EUROPEAN and it seems that numbers come after all letters (i.e. 0 is bigger than z).
My questions is: does anybody know a special character that comes after the number 9?
Or, in alternative, does anybody know a link to a complete table that shows the sort order for WEST_EUROPEAN?

Massimo,
with the term "unknown" records I meant the codes that are null or that do not are not found in dimensions (we are tallking about a data warehouse), so they are assigned an "unknown" or "N/A" value.
The second hint that you gave me is also useful, I didn't know about the existance of "nulls first" and "nulls last" clause, but data warehouse best practices say that there should be no fields left Null in the dimensions, so I have to find a different solution. One possible alternative is to add another columns to the table, to be used for sorting purposes only.
Andrea

Similar Messages

  • How can we remove an unwanted # in sales order texts created using a bapiFM

    Hi,
    i've written the following code which splits the record fetched from apllication server and moves it into a workarea.
    CONSTANTS:c_sep VALUE cl_abap_char_utilities=>horizontal_tab, "for separation
    SPLIT wa_tab1-rec1 AT c_sep INTO wa_inf_itm-inf_vbeln
                                           wa_inf_itm-itm_number
                                           wa_inf_itm-material
                                           wa_inf_itm-req_qty
                                           wa_inf_itm-uom
                                           wa_inf_itm-amount_pr00
                                           wa_inf_itm-amount_pi02
                                           wa_inf_itm-amount_mwst
                                           wa_inf_itm-amount_vprs
                                           wa_inf_itm-currency
                                           wa_inf_itm-text.
    Here c_sep will have a value '#' instead of 'space' in Flatfile from application server.
    The field 'wa_inf_itm-text' though it doesnot contain any value in debugging, when the sales order is created using FM 'BAPI_SALESORDER_CREATE_FROM_DAT2' the item texts are having a # character at the end of the text if it has any text(when checked in va03--sales order item text) or if it doesnot contain any text ,then also # character is seen in texts.
    Thanks & Regards,
    Prasad Reddy.

    hi
    use
    Replace all occurrence of '#' with space from .......
    I think it will solve ur problem.
    Rewards with point if helpful.
    Regards
    Santosh.

  • BAPI/FM for Confirmation of Production order at operation level

    Hi ABAPers,
    I am using the 'BAPI_PRODORDCONF_CREATE_ACT'for Confirmation of Production order at operation level.
    I am able to pass the Production order number and Active Operation get the confirmation done.
    But the Confirmed Qty is not being updating in AFKO table.
    The 'BAPI_PRODORDCONF_CREATE_HDR' cannot be used for Confirmation of Production order at operation level as there is no Operation/Activity(Vornr) field in the input table. Hence using this bapi confirmation of Prod order can be only at Order level.
    Can someone know any FM/BAPI which can be used for the Confirmation of Production order at operation level(not order level).
    Thanks in Advance
    Ramesh Babu Cikka

    Hi Ramesh,
    Please use FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'.
    This will work as like as T/Code "CO11".
    I hope this will help you.
    Example :
      CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'
        EXPORTING
          POST_WRONG_ENTRIES = '0'
          TESTRUN            = ' '
        IMPORTING
          RETURN             = ZRETURN
        TABLES
          TIMETICKETS        = ZBAPI_PP_TIMETICKET
          DETAIL_RETURN      = ZBAPI_CORU_RETURN.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT = 'W'.
    Lanka

  • Logical operator order of operation

    Hello,
    Does anyone happen to know the order of operation for logical operators? (&&, ||, &, |) For example, if I have the following statement:
    if (true && false | true || true & false)
    What is the order of evaluatioin?
    Thanks a lot
    - nygrl

    Thanks Jverd, but the problem is I don't know how to
    group subexpressions together without parentheses.
    For example, I found this in my book. if ( false
    e && false | true), accroding to the book, JVM will
    interpret this statement as if ( false && (false |
    true) ). But why?Why? Because the designers of the language decided that & and | have higher precedence than && and ||.
    Why did they decide that? I don't know. Might be historical reasons. Might be because there's some mathematical reason why it makes more sense. Might have just been arbitrary.
    I want to know the rules of how
    they group together without parentheses.I don't understand what you're asking. You found the precedence rules, right? Are you saying you don't know how to apply those rules?
    If that's your quesiton, the answer is pretty straightforward: Higher precedence binds tighter.
    For instance, * has higher precedence than +. This means that in a + b * c , the * binds more tightly than the +. It could be (a+b) * c or a + (b*c) . When I say "binds more tightly," you can picture the * pulling on the b harder than the + does, so it's like this: a    +    b*c --> a + (b * c) So if | has higher precedence than &&, then whenever you see an operand that could potentially be associated with an | or an &&, it's as if you'd put parens around it to associate it with the |.
    (Note: I'm taking your word for it that | has higher precedence than &&. I haven't looked, and I don't care, because I'd a) probably never use those two together in a single expression, and b) would absolutely add parens if I did use them, regardless of how well I understood their relative precedence.)

  • How to determine mobile operator used

    I have bought a second hand iPhone 4s. The seller did not know which operator used. I need this info in order to unlock the mobile and switch operator. How can I determine the old operator used?

    Go to settings, general, about, and see what it says for carrier. I would be concerned about a phone that I purchased where the person selling it did not know who the carrier was. Did they not know who they paid for sevice? I would not be surprised if you cannot use this phone.

  • Transfer LTP planned orders to Operational planned orders

    Hi
    Can anyone suggest how to transfer planned orders generated from LTP(Long Term Plan) to Operational Plan?
    Regards
    Pradipta Sahoo

    Dear Sahoo,
    You can transfer the simulative planned orders to operative planning using T Code MD43.
    Check this,
    Copying the Long-Term Planning Results to Operative Planning  
    Use
    Once you have optimized the results of long-term planning, you can copy them to operative planning.
    It is not only possible to copy the demand program to operative planning, you can also copy the planned orders firmed in long-term planning per material using the MRP transaction Interactive single-item planning.
    When copying the results to operative planning, you can set the system to create purchase requisitions and delivery schedules instead of planned orders for materials procured externally.
    Prerequisites
    You must firm the simulative planned orders you want to copy to operative planning. You can firm planned orders by:
    Making manual changes
    Using the planning time fence
    Setting a manual firming date
    If, when copying the data to operative planning, you want the system to create purchase requisitions or delivery schedules for materials procured externally instead of planned orders, enter the appropriate indicators in the Create pur. req. and Schedule lines on the initial screen of single-item, interactive planning (in MRP).
    When copying the results to operative planning, the system does not carry out any source determination. If you want the system to create delivery schedules and purchase requisitions to which a vendor has already been assigned, you must maintain the necessary master data in the Purchasing menu before carrying out the planning run in long-term planning.
    http://help.sap.com/saphelperp60_sp/helpdata/en/92/bf02af44bd11d182b40000e829fbfe/content.htm_
    Regards
    Mangalraj.S

  • KEY LOOKUP Operator using TCL

    Hi,
    I am trying to create a key lookup operator using tcl.
    OMBALTER MAPPING 'TESTMAP' ADD KEY_LOOKUP OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'\
    SET PROPERTIES (BOUND_NAME,CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES
    ('INSTITUTION_CHARACTERISTIC_DIM','true','OUTGRP1.INSTITUTION_CHAR_SRCKEY
    = INGRP1.INST_CHAR_SRCKEY')
    and then adding an attribute to the INGRP
    OMBALTER MAPPING 'TESTMAP'ADD ATTRIBUTE 'LAST_ACTIVITY_DATE' OF GROUP 'INGRP1' OF OPERATOR 'INSTITUTION_CHARACTERISTIC_DIM'
    This is creating a key lookup operator by the name
    INSTITUTION_CHARACTERISTIC_DIM, and i can see the Bound Name in the
    properties window, but when i double click and open the key lookup, i
    dont see the result table under the LOOK UP tab.Because of this, the
    attributes dont get added in the OUTGRP of the key lookup.
    Am i missing some important property of a key look up?
    can some one please help me with this...
    Thanks in advance...

    Hi,
    you have to bind the lookup operator to the table:
    OMBALTER MAPPING 'MAP_LOOKUP' ADD KEY_LOOKUP OPERATOR 'MY_LOOKUP' BOUND TO TABLE '/MY_PROJECT/MY_DB/DIM_CUSTOMERS'
    OMBALTER MAPPING 'MAP_LOOKUP' MODIFY OPERATOR 'MY_LOOKUP' SET PROPERTIES (CREATE_NO_MATCH_ROW, LOOKUP_CONDITION)VALUES ('true','OUTGRP1.ID_CUSTOMER=INGRP1.ID_CUSTOMER')
    OMBALTER MAPPING 'MAP_LOOKUP' ADD ATTRIBUTE 'ID_CUSTOMER' OF GROUP 'INGRP1' OF OPERATOR 'MY_LOOKUP'Regards,
    Carsten.

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • Sharepoint 2013 copy/move operation using Content and Structure fails

    Hi,
    We had a recent upgrade from SP2010 to SP2013 environment. After the migration, we realized that the
    copy/move operations using Manage content and structure(sitemanager.aspx) is not working as expected, neither does this give any error nor is it stuck. In fact if I check the content and structure log I find the message as
    succeeded but file/item is not copied to the target. 
    The strange thing is that if I am performing this operation with Full Control permission level it
    does not work but if I do the operation as Site collection admin it works without problem. I know if sub-sites are to moved then one should be site col admin but in this case I am trying to move just documents or pages.
    Any help will be greatly appreciated.
    Thanks

    Hi Vineet,
    According to your description, my understanding is that copy/move operation using Content and Structure cannot work in SharePoint.
    I recommend to check if there are any custom fields in the source list/library and target list/library. If yes, delete the custom fields to see if the issue still occurs.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/56d803d7-8573-4c29-9f6b-c63023941f44/manage-content-and-structure-cannot-move-or-copy-items?forum=sharepointgeneralprevious
    To copy or move files/items between sites, we need to have
    appropriate permissions on both sites.
    I recommend to check if the user has full control on both sites.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Req:Download of purchase order item details using ALV oops

    Hi all,
    How to download the purchase order item details using ALV oops from the output of header details

    Hi all,
    How to download the purchase order item details using ALV oops from the output of header details

  • Need code for sales order create report using bapi's

    need code for sales order create report using bapi's

    Hi,
    Go through below link
    http://www.saptechies.com/bapi_salesorder_createfromdat2/
    <b>Reward points if it helps,</b>
    Satish

  • Regarding purchase order pricing conditions using exits or badi

    Hi friends can anybody help me and  let me know the solution.
    Please explain how the change in the pricing condition amount value should update the cost in PO.
    and which EXITS or BADI use for .
    if anybody have the solution send me reply AS SOON AS
    Thanks,
    srinivas

    OK
    But the problem is pricing conditions like transport cost. Because when I do a new purchase order the system use last transport cost and i don´t want it.
    What I want (if possible) with infoupdate is:
    - Update ( PBXX & PB00)
    - Don´t update (other conditions like transport).
    Thanks....

  • How create a purchase order without imputation using bapi: BAPI_PO_CREATE1

    Hello Forum
    I have an request for purchase order with imputation K (cost center, EBAN-KNTTP). During the liberation of the request for purchase order, and using the Bapi: BAPI_PO_CREATE1, I want to create a Purchase Order without imputation (imputation empty or charge empty).
    The system displays the following error: The request for purchase order, item (position) 10, is attributed to another order...
    I imagine that is because the request for purchase order has imputation (charged) K and the purchase order will have no type of imputation (imputation empty).
    However, manually, Yes, I can create the purchase order. That is, I first release, the request for purchase order. Then I create the order of purchase using ME21 and with reference to request for purchase order, and when SAP returns the items of the request for purchase order, I manually remove the imputation K, and these items to become the purchase order.
    Please support me want to know how to resolve this case, why can not I create a purchase order without imputation to from the request for purchase order with imputation K, using Bapi
    Thank you.
    Greetings,

    Hi,
    In the item overview of the purchase order creation screen (ME21N), you have a column Purchasing Doc and next it item no.  You can give the existing purchase order number here with item no which will create a purchase order, and changes can be made wherever you require.
    Hope this helps.
    Thanks
    Krishna.

  • When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • How to perform merge operation using Data services designer?

    I am new here and new to Data Services Desinger as well.
    And currently, I want to do a merge operation using query transform or table comparison transform. But sadly, neither one of them is giving me what I want.
    So, wonder if you could help clarify if either one of them could achieve MERGE operation between and source and target tables?
    if positive, then how?
    PS:
    by MERGE, i mean, if data exists in target table, then only do update, else, do insert. same with the standard MERGE operation of oracle.
    If you need any more info, let me know!
    Thanks in advance.

    You can do this.
    You don't need the Tabe_Comparison transform actually.
    Just query the data you need and output the flow from your query to your target table.
    Then, you'll have to check the "Auto correct load" option: this will insert new lines and updates old ones. One checked, you can ckeck the "Auto correct load" checkbox.
    By default, BODS will know a line already exists based uppon the primary key columns of your target table. If you want to change the columns used to determine if a line should be inserted or updated, use the "Use input key" checkbox (and define some PK column in your query).
    Hope this helps
    Guillaume

Maybe you are looking for

  • Minor issue with open parameters upon initial PDF load

    Hello, everyone. I am experiencing an odd issue with using open parameters to view a PDF in a browser window. We are using ColdFusion Server 9.0.1 (soon to upgrade to 10) and the Solr Collection Server that is bundled with it.  The server is updating

  • Urgent.. Making efficient editor

    Hello java gurus, Presently Iam building my own editor for a new language.I want to make this an efficient editor. By an efficient editor i mean that when a very big file is opened into it, the whole file should not be there in the memory.I want only

  • ICloud iCal sync Issue: Only iPad has correct nfo

    Of the four places (desktop, browser, iPhone, iPad) where my iCal is viewable I only have the proper info on the iPad.  I have toggled the iCal On/Off in the preferences pane of both MBP and iPhone to no good outcome. How do I get the iPad's correct

  • Runtime Engine 6 and Windows XP

    Hi all, Ok, I created a vi in Labview 6.0i and compliled it. Installed Runtime Engine 6 on an XP machine where I want to run the VI. The problme I'm having is that the VI starts, but doesn;t seem to communicate with my instruments on the GPIB bus. Th

  • 8530 Calendar Won't Synchronize

    Calendar appointments made on my work laptop are not updating on my Blackberry device.  New e-mail messages download onto the Blackberry just fine, but only some of the calendar entries appear.  I have two e-mail accounts that download onto my Blackb