Sorting not working correctly for date field in alv report

Hi All,
My report displays many rows also containing date type fields of bldat,budat .
When I sort the report selecting field of type bldat budat the sorting is not correct for the year.
Ex:
Invoice doc dat
01-25-2011
01-21-2011
02-02-2011
10-25-2010
11-20-2010
If I use ascending then it is sorted as :
Invoice doc dat
01-21-2011
01-25-2011
02-02-2011
10-20-2010
10-25-2010
Why the sorting is not working correct for year.(2010 records should have been first).
The field wa_tab-bldat is of type char10.
It is populated as wa_tab-bldat = bsak-bldat.
Kindly suggest what can be done.

The field wa_tab-bldat is of type char10
Then what it does is correct.
Refer to type datum...it will work

Similar Messages

  • Email pushing not working correctly for office email - 3 seperate devices/carriers

    We switched email hosts several months ago and since our email pushing has not worked correctly. Our host/IT guy has been very unwilling to help me through this (I get the pleasure of being the in-house IT source)
    I personally am on AT&T have no problems with the other 3 emails I have set up on my blackberry. However I receive my work account one time a day at roughly 6:15. Another user is on Alltel and he receives spotty emails throughout the day, but his gmail account comes through instantly. The third user is on nextel and he receives his 2-3 times per day.
    I began to think this was an email host issue since the three of us are all on different carriers, until I found out a fourth user, also on nextel, receives his emails fine.
    Users 1-3 are on Outlook 07 on various versions of the Curve. We have all our messages to stay on the server.
    User 4 is on the older nextel blackberry push to talk, and is not on outlook. 
    We do not have an exchange server. Our emails were all set up through our devices.
    Any suggestions? The answers I have received through our carriers is to make sure that our messages are set to be left on the server. Everyone else at the office has given up - but for me this is the quest for the Holy Grail.......I'm determined find the answer!
    Thank you in advance for any suggestions.
    Caitlin Talbot 

    Potential solution for windows for a side-by-side install. This works for me.
    To setup a firefox install side by side so that links from external programs (like email) can open (so you don't get a "Firefox is already running but is not responding" message) do the following.
    The solution entails the use of the -no-remote switch. Don't use it for the default browser. Use it for the non default browser.
    I'll use firefox 3.6 and firefox 4.0 as examples but this should work for future versions.
    + Install firefox 3.6 and Firefox 4.0 in different directories. Eg.
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox 4\firefox.exe
    + Open profile manager. Start > Run : firefox.exe -ProfileManager
    + In profile manager create Two Profiles.
    firefox3.6
    firefox4
    + In profile manager select firefox 4 as your default (assuming you want to default to the latest) and tick "Don't ask at startup"
    + Create two windows shortcuts.
    * General: Mozilla Firefox 4 (default). Shortcut > Target: "C:\Program Files\Mozilla Firefox 4\firefox.exe". Shortcut > Start In: "C:\Program Files\Mozilla Firefox 4"
    * General: Mozilla Firefox 3.6. Shortcut > Target: "C:\Program Files\Mozilla Firefox\firefox.exe" -p firefox3.6 -no-remote. Shortcut > Start In: "C:\Program Files\Mozilla Firefox"
    That's it. Links from external programs should now open in your default browser.
    Further details see. [http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile Opening a new instance of your Mozilla application with another profile]

  • Date field not working like a date field

    We have quite a few date objects in the Universe but only some seem to function as a date field whereas some do not.
    The easiest way to tell whether a date field is functioning as a date field seems to be to add the date fields as a filter in a query. If it is a proper date field a Calendar option appears. If it is not, no Calendar option appears.
    In the screenshot below, the Latest Approved Date functions like a proper date object and shows a calendar option. The other field does not even though it is a date field too.
    I'm checking with this forum as the Universe designer didn't have any answer for this.

    HI Vivek,
    Go to Universe Designer
    click on object (Latest Approved Date)
    click on definition
    go to TYPE scroll down and select type as DATE
    and export now check the filter it will work
    try once
    Regards,
    Ranjeet

  • 'Get Variant' button not working correctly for report

    Hi,
    I have created an internet service for a custom report.  For some reason, when I click the 'Get Variant' button I get a popup, but it does not have any entries to choose from.  It is blank.  In SE80, the button works correctly.  Any ideas?

    I figured it out myself.  I didn't have the parameter ~webgui set.

  • Pre-approved Overtime (IT2007) Not Working Correctly for Night Shift WSR

    Hi All,
    I have come across this issue in pre-approved overtime (IT2007) for night shift WSR.
    The planned working time for an employee on 04-Jan-14 is from 22:30, 04-Jan-14 to 06:30, 05-Jan-14.
    The employee clocks in at 22:30 on 04-Jan-14 and continues work till 10:30 on 05-Jan-14. Hence, he has worked 4 hours of overtime from 6:30 am - 10:30 am on 05-Jan-14 for the night shift of 04-Jan-14.
    A pre-approved overtime quota was created in IT2007 for 05-Jan-14 from 06:30 am to 10:30 am.
    However, the overtime doesn't get calculated because in IT2007, there is no previous day indicator to assign 06:30 am - 10:30 am on 05-Jan-14 to the night shift of 04-Jan-14.
    The time pair in TIP table of 04-Jan-14 will have overtime timings from 30.5000 to 34.5000.
    The overtime approval will be for 05-Jan-14 from 6.5000 to 10.5000. Hence, there won't be any overtime wage types generated.
    If there was previous day indicator in IT2007, then the pre-approval timings will be from 30.5000 to 34.5000. This will ensure the pre-approved overtime timings will match with the overtime worked and will generate overtime.
    Please refer the below screenshot for reference.
    It seems that this issue was reported last year too in SCN. Below is the link for the same:
    http://scn.sap.com/thread/3343292
    I have raised this issue with SAP and waiting for their response. So far, it hasn't been satisfactory.
    Does anyone have any solution to this?
    Thanks and regards,
    Vivek Barnwal

    Hi Johannes,
    SAP actually provides a standard functionality for this requirement. Actually, it was stupid of me not to do enough research and come to the conclusion that this is not possible in standard SAP.
    For pre-approved overtime for night shift where timings are considered, please write as below:
    GOT  TO20   01   TEX
    TEX will ensure that the approval for next date gets considered for current day.
    I hope this resolves your query.
    Thank and regards,
    Vivek Barnwal

  • List Binding is Not Working Correctly for an ADF Table

    I created an ADF Select One Choice for a field being displayed in an ADF Table - mutliple records.
    The issue I'm seeing is that all the records in the ADF Table are showing the same value in the field defined as a "List", but the field values are not all the same.
    It almost looks like the List is taking the value in the first record and assigning the value to all the other records in the ADF Table.
    Please help.

    The solution is explained here:
    http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/editabletabledropdown/dropdownlistineditabletable.html?_template=/ocom/technology/content/print

  • Crm pc ui F4 Help does not work properly for custom field

    Hi ,
    I am having a issue with F4 help. For a custom field I have enabled BP search. The custom field gets populated with selected BP number from the search screen.
    Problem is, 
    Once opportunity is saved, for standard fields BP name gets displayed while for my custom field BP name does not get displayed only BP number stays at the place.
    What should be custom field size to accomodate BP selection?
    Have anybody done something like assigning BP search with custom field ?
    Any Ideas if I am missing something?

    Hi Bhatt,
      Your problem isnt in the F4 application. The problem is the logic of class corresponding to fieldgroup that your field is contained.
      You need a development like standard.
    Regards.
    Manuel

  • Reg : F4 help for custom fields in ALV report

    hi friends..
    in my internal table i have fields including 1 custom field..
    DATA : BEGIN OF i_final OCCURS 0,
      pernr LIKE p0000-pernr,
      begda LIKE p0000-begda,
      plans LIKE ZPOSITION-plans,  (custom)
      werks LIKE pspar-werks,
      end of i_final.
    i want to display this i_final table in alv. for that i genetrate one fieldcatalog
    PERFORM fcat USING:
                      'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
                      'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
                      'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
                      'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
    in custom table zposition, i maintain serch help for custom field "PLANS".
    then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
    i got f4 all std fields but for my custom i am not getting the f4 help
    how can i get the F$ help for this custom fields Zposition-plans..
    plz give some idea

    Hi
    In that Ztable against the field
    PLANS give the check table name as  <b>T528B</b>
    then it will automatically give the search help
    or you can create your own search help(elementary) and add to that field
    Reward if useful
    regards
    Anji

  • Aperture Browser Sorts Not Working Correctly

    There is a sorting anomaly (I think it's a bug) whereby Aperture does not sort fields correctly.  I have a version naming scheme that starts with YYYYMMDD and Aperture does not sort the entire photo library correctly.  For example, scanning through the browser I will get several pages of items sorted correctly, in my case, from oldest to newest, then it will show a bunch of photos out of order.  For example, 2001 photos, 2008 photos, 2004 photos.
    This is driving me nuts.  I have repaired the library database to no avail.  I have copied the version names and read them with a text editor to see if any obscure text - anybody else experience weird browser photo sorting behavior?  The same anomaly exists if I sort by file name or if I sort by version name (most of my photos have same master file name as version name).

    Here's a screen shot of some of the inconsistent sort results - sourced from "Photos" container...weird
    This has been in existance for months.  I thought I had resolved it when doing a bunch of consolidation stuff the past few days but now it is here again. Can't help but wonder if I have a corrupt database.  I repaired the DB earlier today and Aperture added 10 photos to my Photos container - very weird.  I have not taken the final step of rebuilding my database.  Aperture has also started hanging on me in the past few hours - most recently while trying to update my Vault.  I have about 9150 photos in total in my database.

  • Filter Between in QAAWS not working correctly for period, how to resolve?

    I created universe based on query on bw and then created query in QaaWs.
    I trying to query summary of sale amount for the periods that selected on the prompts screen.
    I put sale amount in Result Ojbects pane and put periods in Filter Objects pane.
    And set periods option to prompts in between. When I entry periods 008.2009 - 009.2009
    The result of sale amount is not correct. It's seem only show the value of one period.
    Does anybody know about this issue and maybe how to resolve?
    Thanks.

    Hello David,
    I use an OLE DB connection to a MS SQL Server 2005.
    Connection Details say:
    Version 2.0.0.29
    Build 12.1.0.882
    Network Layer OLE DB
    DBMS Engine MS SQL Server 2205
    Database used is MS AdventureWorksDW sample database (data warehouse sample)
    I noticed that only with this database, ranking is selectable (not with the AdventureWorks non-DW sample database).
    Ranking itself seems to work, if I activated ranking (e.g. Top 10 customers) everything is ok.
    (Also if I  send a direct SQL command with ranking to the DBMS, it seems ok.)
    Issue arise if I add year filter. Combination of rank and year filter does not seem to work properly.
    Any idea why? Or do you wanted to say that this issue might also be related to DBMS support? I would hope / expect to get a straight "ranking not supoorted" and not incorrect data back ...
    Thanks for your answer anyway!
    Regards,
    Stefan

  • JSF Design Time View Not working correctly for ADF/JSF components

    My project is not using any external tag libraries. It is based purely on ADF core/html and JSF core/html components. The design time view does not show the appropriate presentation, everything is shown as nexted frame containers (I suppose how you would show a component that does not have a visual representation).
    If I create a new project and copy my jsp (jsf) pages over they show perfectly. I did this activity and all was going well in the new project and then I lost the design time view again. I cannot tell you what I did to cause the issue, maybe it was a modification to the web.xml as has been suggested in some other threads. Can anyone tell me what I should be looking for that causes this problem, what corrective actions I might take to eliminate the issues

    Ok I have isolated this issue. In my phase listener I had this line of code:
    private static final Logger _logger =  Logger.getLogger(EigRequest.class.getPackage().getName());
    and I changed it to
    private static final Logger _logger =
    Logger.getLogger(EigRequest.class.getName());
    and design mode started to work. I guess either of the above works for me although I do not understand why the line works when you run the application but not in design mode.
    Moral to the story is if something fails in any one of these types of decorators you will drop into a raw view mode. The question I have is if errors are occuring how do I figure out where they may be. There is no indication that anything is wrong with the exception that you lose most of the design mode functionality.
    This was not a compile issue, this was not a runtime issue. It took me quite a few hours of writing a test program to validate that it was not just writing a phase-listener issue; then launching, editing, relaunching the application to find the problem. I will say that a good portion of the code came from a Eclipse project. If you add the offending lines of code while using JDeveloper you do not loose design mode immediately. You only see the problem the next time you start JDeveloper which complicates finding the problem.

  • DBA panel not working correctly for RAC databases

    I hope this is the correct forum for this stuff... I learned that there is a DBA panel in SQL Developer - which is a great idea. But then, trying it on a RAC database, the output is quite confusing. For example, the init parameters are desplayed twice, or better: once for every instance. But a display column to identify the instance is missing. I assume that the query goes to gv$parameter but doesn't make use of the INST_ID column. Or am I lacking some configuration trick...?

    This probably has nothing to do with your problem but something is screwed up in the way CSCC handles Configurator panels.
    Converted a panel made for CS6 using Configurator4. Got it loaded into CC. It was not quite right so I made some minor changes. The changes never showed up in CC. Deleted the original folder under Panels, changed the name of the panel and reinstalled. Whoa! The original deleted panel was the only one that showed up under Extensions not the new one. This in spite of the fact that that folder no longer existied.
    I have tried all sorts of maneauvers but the fact is that the original panel is the only one that PS recognizes even though it does not exist on the drive. It is locked into PS and nothing I have done will change it.
    Larry

  • JSP Custom tag not working correctly for multiple users

    I am doing some support work for an existing web system. When doing single user access (a custom tag is called within the JSP); the output of the Custom tag is fine. However, during multiple user access to the JSP, as I could see on the log files, 2 users access the custom tag at exactly the same time- the output of one of the users was incorrect. The custom tag btw, uses TreeMap, Stringbuffer and does not have a body, only attributes passed to it. It takes an input file and a Hashmap as input attributes and it sets a string in the page context which is later being used in the JSP. No error is logged, its just that the string produced(placed in the page context) is incorrect. This only happens when this tag is called at same time(when multiple users accessing the page) Has anyone encountered this problem? Is there a known pooling/thread problem with custom tags?

    in a servlet/jsp (a jsp is compiled into a servlet),
    the class atrributes are shared. only the
    variables declared in the doservice (doGet or doPost)
    method are threadsafe.
    post your jsp plzhere's the snippet of the jsp code:
    <%@ page language="java"
    errorPage="Error.jsp"
    autoFlush="false"
    buffer="128kb"
    import="java.text.*,
    java.math.BigDecimal,
    java.rmi.RemoteException,
    java.util.*,
    java.io.*,
    %>
    <%@ include file="Secure.jsp" %>
    // a set of request.getParameter are being called here
    HashMap myMap = new HashMap();
    myMap.put(xmlDPhoneNumber, dPhoneNumber);
    myMap.put(xmlDPhoneType, "D");
    myMap.put(xmlDPhoneExt, dExtension);
    myMap.put(xmlDPhoneDigits, dPhoneDigits);
    // other myMap putting of key values are called here
    %>
    <test:applyCustomerSearchValues id="resultXml" xmlTemplate="/xml/message/CustomerUpdateRequest.xml"
    xmlMap="<%= myMap %>" />
    <test:transformXMLString id="customerUpdateRequest"
    xmlString="<%= resultXml.toString() %>"
    xslFileName="/xsl/message/CustomerCreateRequest.xsl"
    paramMap="<%= PMap %>"/>
    now here's the thing: the xml produced by test:applyCustomerSearchValues is resultXml which is used in test:transformXMLString. I got no problem with the output of test:transformXMLString. I am sure that a phone number is being passed into the former as part of the HashMap key-value. However when test:applyCustomerSearchValues is called when 2 users access the jsp, it seems like the the first xml produced does not have the phone number in it - but the other has it. The xml is OK for both users, its just that the values of the HashMap do not seem to be passed correctly into the xml produced.
    --- here's the snippet of the log, the first httpWorkerThread-80-6 does not have the phone number, however the second one-httpWorkerThread-80-7 has the phone number. The first one should also have a phone number as in the start of the log, the number was listed, but as the system called the test:applyCustomerSearchValues tag, the number was not included. There are different phone numbers for the 2 users. The odd thing here is, the userID which is the 'LastUpdatedBy' element has been set correctly. The userID is being fetched from a session attribute while the phone number is fetched from a request parameter, both are being placed in the HashMap attribute passed to the custom tag.
    2007-06-05 10:55:41,954 DEBUG [httpWorkerThread-80-6] (?:?) - ApplyCustomerSearchValuesTag : String produced is :<Values><Customer>
    <Status>
         <CustomerType></CustomerType>
         <FirstContactDate>2007-06-05</FirstContactDate>
         <StatusFlags>
              <Fraud>N</Fraud>
              <BadCheck>N</BadCheck>
              <BadCredit>N</BadCredit>
              <DoNotMerge>N</DoNotMerge>
              <ARHoldRefundCheck>N</ARHoldRefundCheck>
         </StatusFlags>
         <LastUpdatedDateTime>2007-06-05 10:55:41</LastUpdatedDateTime>
         <LastUpdatedBy>5555</LastUpdatedBy>
         <OPAlertClass></OPAlertClass>
         <MailListStoreID></MailListStoreID>
         <OriginatingSource>CSA</OriginatingSource>
    </Status>
    <DPhone id="D">
         <DPhoneNumber></DPhoneNumber>
         <DPhoneDigits></DPhoneDigits>
         <DPhoneType></DPhoneType>
         <DExtension></DExtension>
         <DAreaCode></DAreaCode>
         <DPhoneCountryCode></DPhoneCountryCode>
    </DPhone>
    </Customer>
    </Values>
    2007-06-05 10:55:41,954 DEBUG [httpWorkerThread-80-7] (?:?) - ApplyCustomerSearchValuesTag : String produced is :<Values><Customer>
    <Status>
         <CustomerType>N</CustomerType>
         <FirstContactDate>2007-06-05</FirstContactDate>
         <StatusFlags>
              <Fraud>N</Fraud>
              <BadCheck>N</BadCheck>
              <BadCredit>N</BadCredit>
              <DoNotMerge>N</DoNotMerge>
              <ARHoldRefundCheck>N</ARHoldRefundCheck>
         </StatusFlags>
         <LastUpdatedDateTime>2007-06-05 10:55:41</LastUpdatedDateTime>
         <LastUpdatedBy>1840</LastUpdatedBy>
         <OPAlertClass></OPAlertClass>
         <MailListStoreID></MailListStoreID>
         <OriginatingSource>CSA</OriginatingSource>
    </Status>
    <DPhone id="D">
         <DPhoneNumber>(123) 123-4788</DPhoneNumber>
         <DPhoneDigits>1231234788</DPhoneDigits>
         <DPhoneType>D</DPhoneType>
         <DExtension></DExtension>
         <DAreaCode>123</DAreaCode>
         <DPhoneCountryCode>US</DPhoneCountryCode>
    </DPhone>
    </Customer>
    </Values>
    Message was edited by:
    Mutya

  • Date not coming correctly in date field

    Hi all
    I have added a field on a screen of type dats (8 char)
    So if user gives date as 10/11/2009 he can only update the field with 10/11/09
    If i change the length to 10 then if user gives date in a wrong format also like abcdefg
    then also it will be updated ?
    how can thsi be resolved?

    Hi,
    if you are using selection screen then try the code given below..
    parameters :
    p_date like sy-datum.
    write p_date.
    otherwise if you are using screens,
    then instead of drawing the input field and assigning the dats value to it,
    use dictionary fields by pressing F6 on the layout of the screen,
    from the table syst, select the field datum...
    this works for sure...
    regards,
    Siddarth

  • Additional Results Condition Not Working Correctly For Parameters

    TestStand 2014
    Trying to log a parameter only if the step status is "Failed" won't log the parameter when the step actually fails.  However, variables with the same condition will log just fine.
    The attached sequence demonstrates this.  Basically I have a subsequence that returns a random number and a string as parameters.  I use the random number to evaluate against my limits for the test call.  I want to log the string parameter only if the step fails.  So I set it as an additional result and set the condition to
    Step.Result.Status == "Failed"
    The data never shows on the report.
    But when I put an explicit additional result with the same local variable and put the exact same condition it shows on the report when the step fails.
    I'm baffled as to why parameters won't log with this condition but explicit additional results work just fine with the same condition.
    Any thoughts?
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Solved!
    Go to Solution.
    Attachments:
    ParameterWontLog.seq ‏7 KB

    The condition for the parameter's additional result is evaluted before the sequence call's status is set to failed. The 'out' parameter additional results are probably being evaluated right after the code module call, so if the the step's status isn't changed by the code module call, then it will still be "Running".
    I can see how it would be nice if it worked the way you are asking, but keep in mind for in/out parameters it's typically the same expression/variable in both the 'in' and 'out' additional result, so the time at which the result is logged is important. It has to be done before the code module call for 'in' parameters and after the code module call for 'out' parameters in order to accurately reflect the state of the variables at those points in time. I think the intent is that the additional result for parameters should reflect the state of the variables at the point in time immediately right before the call for 'in' parameters and immediately after the call for 'out' parameters. Thus if you want to conditionally log a value based on the status (where the status is not changed directly by the code module), then using a regular additional result like you discovered is probably the best way to go.
    Perhaps for out parameters we could delay logging until the very end, but that might result in a change in behavior if the variable state changes again before that. If you would like for us to consider that or have another idea for how to handle this better please let us know or perhaps post something to the Idea Exchange.
    Another possibility is that we could temporarily log the results before and after the code module call, but then not evaluate the condition until the very end and throw out the logged result if the condition is false. That might still cause a change in behavior though if the "Value to Log" expressions have side-effects.
    Hope this helps clarify things.
    -Doug

Maybe you are looking for

  • How do I use my own playlist with "Spotify Running"?

    I was excited to see the Spotify Running shows up on my phone app now. But I can't find a way to tell it to use which of my own playlists to you. I can only see the pre-made playlist from Spotify.     It must just be me. I'm sure Spotify wouldn't hav

  • How do I sync the calendar on my Mavericks driven iMac with the calendar on my iPhone 4 IOS 7.0.4?

    I want to sync my calendar from my Mavericks driven iMac to my iPhone 4 iOs 7.0.4. I used to do this easily through itunes but I have been informed I now have to use icloud to do so. I did not want to complicate my "mac" life by using icloud but have

  • Navigation is not working in forwarded page

    HI , I am forwarding one jsp formatted JSF page to other page . index.jsp to home.jsp like <jsp:forward page="jsf/home.jsp"/> .I am having some af:commandImagelink in home.jsp page which is navigating to other pages .When I am accessing the home.jsp

  • Problem with App Syncing

    When I just recently synced my iPod, I unlock it to see that I am missing four applications from the springboard, one of them paid. I open up iTunes to see that the four apps are completely gone from both my iPod and iTunes. Keeping in mind that this

  • Static vs non static methods - best practice

    I have a question with regards to program design. If I have a class that looks something like: public class SampleApp extends Engine implements Listener_OnMyEvent public static void main(String argv[]) int x=10; //Call metod1 Method1(x); public metho