Date Format in Zreport similar to the default date format set using su01.

Dear All,
            I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode.
Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also, date should appear as '2009-12-24'.
Is there any code  or  Function Module to change the date format in report as in the default Date format?
Can u help me in this?
Bye.....
Cheers
Christina.

Try the following code.
select the format of current user from usr01 table.
    SELECT SINGLE datfm FROM usr01
    INTO w_datfm
    WHERE bname = sy-uname.
Format based upon the current user settings. put this total code inside one form for reusability.
    IF w_datfm = '1'.
      CONCATENATE w_date6(2) c_dot w_date4(2) c_dot w_date+0(4) INTO outtab-value.
      CONDENSE outtab-value NO-GAPS.
      CONCATENATE w_rundate6(4) w_rundate3(2) w_rundate+0(2) INTO w_date.
      CONDENSE w_date NO-GAPS.
    ELSEIF w_datfm = '2'.
      CONCATENATE w_date4(2) '/' w_date6(2) '/' w_date+0(4) INTO outtab-value.
      CONDENSE outtab-value NO-GAPS.
      CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
      CONDENSE w_date.
    ELSEIF w_datfm = '3'.
      CONCATENATE w_date4(2) '-' w_date6(2) '-' w_date+0(4) INTO outtab-value.
      CONDENSE outtab-value NO-GAPS.
      CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
      CONDENSE w_date.
    ELSEIF w_datfm = '4'.
      CONCATENATE w_date0(4) '-' w_date4(2) '-' w_date+6(2) INTO outtab-value.
      CONDENSE outtab-value NO-GAPS.
      CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
      CONDENSE w_date NO-GAPS.
    ELSEIF w_datfm = '5'.
      CONCATENATE w_date0(4) '/' w_date4(2) '/' w_date+6(2) INTO outtab-value.
      CONDENSE outtab-value NO-GAPS.
      CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
      CONDENSE w_date NO-GAPS.
    ENDIF.

Similar Messages

  • What is the default screen brightness setting?

    Could someone please tell me what the default screen brightness setting on a Retina Macbook Pro 15" is? Is it 50% when charging and one point less when on battery?
    Thanks in advance!

    That isn't really a default setting. It is arbitrary, one system might be different than another at first turn on.
    Simple way to tell is wipe your hard drive and reinstall OS X. Whatever the screen brightness is at the completion of the OS X install is the default. Make a record of it.
    petvas wrote:
    Of course there is a default setting. It's the setting that is configured when you first turn on your mac.

  • In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    I'm not quite sure what it is you are looking for, but there are a three different ways to view the files and folder in a directory in Finder - Icon view, List view, or Column view - or you can use Terminal and use the various options for the ls UNIX command for listing a directory. For those options, see:
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ls.1.html
    Hope this helps.
    Regards.

  • How can i change the default application that Lion uses to open a document?

    how can i change the default application that Lion uses to open a document?

    Right-click on the document, select Get Info... In the lower half of the tall window that opens is a section labeled Open With (you may need to click on the disclosure triangle to see detail). Select from the pop-up list which app should open this document. If you want that to become the default condition, click on the Change All... button.

  • What is the default screen brightness setting and keyboard backlight brightness default setting, and how to you go back to default?

    What is the default screen brightness setting and keyboard backlight default setting? I just got a new Macbook Air and fiddled a lot with it, and now just want to know how to set the brightness levels back to default. Thanks everyone!

    Hey sberman,
    I maxed out the screen brightness before I clicked on "restore defaults" in system preferences> energy saver (which has to do with battery, not exactly screen brightness) to see if the screen went back to a "normal" brightness level, but it didn't. I don't think it restored the brightness to default..

  • Impersonate User: Mimic another user similar to the Default Profile

    I'm looking for a way as an Administrator to impersonate another user similar to the way you can login to the portal using the Default Profiles.
    Example: I select a user to impersonate and then click a button. I'm then in the portal as that user.
    There may be a problem opening documents, etc, but I'm more interested in making sure that I see the content that the other person is seeing.
    It would be a great help to diagnose security problems such as "Why can't I see this portlet, etc."
    One solution I thought of was to switch ID's in the PTUSERS table. This solution wouldnt' want to go any further than dev though. I don't really like this solution because if you forget to switch them back or they are in the portal when you switch them......there's a problem.

    I think that changing the PTUsers table is unlikely to do what you want. It's likely to break the system because there are a number of other tables that contain data about users, and you have not changed those tables. Additionally, information may be cached in memory, so changing the tables would not change that information.
    I think that there is a significantly easier way to do this, though it may still not be easy. The IPTSession interface supports a function called ImpersonateUser. If you are logged into the Portal as an Administrator, you can call ImpersonateUser to switch your session over to that of another user- from then on, the Server will treat you as the second user.
    This is a very easy call to make, but it's only half the story- the UI also has to know to treat you as the new user (e.g. use the correct language settings, flush cached session info, etc.) This is basically like doing a login. I don't know the details of how this would be done (a discussion forum about UI customization would be more useful here), but I could imagine doing something like copying the login screen logic to a second, "hidden" login screen which takes in a username, but no password. The page would only operate if you were already logged in as an Administrator, but it would perform the "standard" login logic, except that it would do Session.ImpersonateUser on the pre-existing session instead of creating a new session and logging in as the new user.

  • ITunes Media folder moving from the default (I'm not using an external drive)

    I tried for a long time to find the answer to this problem, but all the posts I saw from people asking similar questions were from those who were trying to relocate their iTunes Media folder to another hard drive. I'm just trying to change it to somewhere else on the same hard drive. Each time I move the folder and change the location though, as soon as I close iTunes and open it again, it resets the location.
    I just won't want the iTunes folder to appear in my Music folder. It keeps recreating the folder there and changing it back to the default. How do I fix this?

    Hi All, having ran out of space on my hard drive I read the above and decided to give it a go as it seemed so simple. Unfortunately having copied the entire iTunes folder to my external drive and then launching iTunes pressed the option key and nothing happened. My iTunes itself linked up with the cloud and showed me a tiny amount of my music. I went to preferences / advanced settings and changed the location manually, this still didn't work. It seems (from spending time looking at the new iTunes folder and looking at the one that i had placed in the trash various, that my computer in its inevitable wisdom hand left out various sub folders). So now i am trying to fix this. I still want my iTunes folder on my external but i want it to work which it is not. Help please. I would not describe myself as a computer or Apple whizz kid by any stretch of the imagination and so need answers to be relatively simple or just in non computer lingo!! cheers all, any help is much appreciated

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • The default browser is set to 5.0. I want it to open 4.0.

    I just installed the Firefox 5.0 update. I currently have 3.6, 4.0 and 5.0 installed on my Mac Book Pro for development purposes. Many plug-ins I use for development don't work in 5.0 currently so I want to use 4.0 instead. How can I make my default browser 4.0?
    Currently, 5.0 keeps automatically opening when I click on a link from an external source/RSS reader.

    I am not a Mac user, but have multiple versions and profiles of Firefox. I note you ask about Macs, but have system details showing as Windows 7.
    I can only speak from a PC perspective, but no doubt you can sort it out yourself. It is down to the OS which browser is the default, although firefox has the option to check and reset that at startup.
    No doubt if I delved into the registry I could find how it sets the default browser, but in practical terms what I do is allow the OS to set itself up.
    # Choose any other alternative browser such as IE, make that the default, and allow that to take effect.
    #Then deselect IE as default browser checking.
    #Now start up the chosen version of Firefox, use Firefox's options to set that as default browser. (Options -> advanced -> general system defaults )
    It works, although some applications may choose IE regardless.
    *You may be interested in http://kb.mozillazine.org/Default_browser
    With luck something similar may work on a Mac

  • How to change the default left alignment setting in Word 2010 professional (personal use)

    Hi, I use Word 2010 Professional for my personal use at home, and somehow the default setting for the left alignment in a new Word document has been changed to a hanging indent at .25.  So every time I open a new Word  document, the left margin
    has an indent setting.  I have to change it to 0.0 every time, which is annoying.
    I've tried to go into the "Options" section, under "Custom Settings" to de-select an auto left margin indentation, but I can't seem to find an option to do that.  Can anyone please tell me how to change this setting in the master Word 2010 template,
    so that every time I open a new doc, the left side is aligned at the 1" margin with no hanging indent?
    Thank you.

    Page Layout-Page Setup-Margins-Custom Margins...-change your setting-Set As DefaultStay Hungry, Stay Foolish

  • Why isn't the default outgoing email setting working correctly?

    In my mail preferences I have send new messages from a specific email address selected. However, mail just keeps sending from the inbox address I am currently in. I really need the default to work. It used to before I upgraded to Mountain Lion.

    I am having the same problem after upgrading to Mountain Lion.  If I don't change the option in the composition window ("From" tab), it chooses another server, mostly the iCloud address.  I want it to just use the default at the moment.  I wonder, if other people are having the same problem?
    Thank you,
    Gloria

  • Set the default value in selectonechoice using bindings property

    Hi,
    I have a question to ask about selectonechoice.  I have scanned the forum but I just cant get this to work by myself.
    My business service is a web service.
    Use Case:
    From the web service data control, I should display a drop down of all available options but I should be able to filter the list of selectItems shown in the dropdown.
    After the data is filtered, the drop down should display the first item in the list.
    so this is what I did.  I drag the iterator in my data control as selectOneChoice.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.codeList.items}"
                       id="si3"/>
    </af:selectOneChoice>
    ...but I cannot include all the data returned by the web service so I used the logic below to filter my data with the assistance of a managed bean.
    <af:selectOneChoice value="#{bindings.codeList.inputValue}"
                      label="Code">
        <f:selectItems value="#{pageFlowScope.myBean.codeTemplates}"
                       id="si3"/>
    </af:selectOneChoice>
    public class MyBean{
        private List<SelectItem> codeList;
        public List<SelectItem> getCodeTemplates(){
            if(codeList==null){
                codeList = new ArrayList<SelectItem>();
                    More Codes and logic..access the iterator and filter the data
                    Data below comes from the web service data control..
                    codeList.add(new SelectItem("90", "Crew"));
                    codeList.add(new SelectItem("91", "Manager"));
                    codeList.add(new SelectItem("94", "Staff"));
                //set the value to the first item in the list
                getBindings().setValue("#{bindings.codeList.inputValue}", 90);
            return codeList;
    My problem is that on first load of the page, I am encountering this problem.
    Could not find selected item matching value "90"  in RichSelectOneChoice.
    I know I can used the value property of my selectonechoice into my managed bean but I dont want to do that for now.
    I have set the valuePassThru property also but it does not help also.  The unselectedLabel is of no use since I dont want that to reflect at all.
    I am just not sure why I cannot set the value of my bindings given the code snippet above.
    #{bindings.codeList.inputValue} is a listBinding defined in my page definition.
    Any hints?

    Hi Frank,
    FrankNimphius wrote:
    Hi,
    did you ensure 90 is in the list and that its of the same data type?
    Frank
    Yes, I haved checked it.  To verify, I set the valuePassThru property to true and then in the generated markup, I used firebug to verify if the value is indeed set to 90.
    If I set the valuePassThru to false then the index value 0,1,2...n is assigned.
    I am doing this during onload operation and using lazy loading of the list.  I have set the immediate attribute as well but still not successful.
    JDEV 11G 11.1.1.7

  • Trying to get round the default render kit's use of tables

    Apologies if this is a simple question - I'm solid with Java and HTML but I'm new to JSF.
    The default render kit uses tables a lot, eg for the +<h:selectOne>+ tag. This is not something that I like - I want a radio button group to be rendered as a +<ul>+ list. It's way more versatile to style up with CSS and it's semantically stronger.
    Achieving his appears to be harder than I first thought. The tag structure that the renderer outputs is cooked right into the middle of the source code (a seventh-generation class, I note - wow! Clearly, "extension bad, composition good" is falling on deaf ears somewhere), so overriding the renderer means duplicating all its business code for the sake of a couple of tags.
    Then, unless I'm doing something wrong (which is eminently possible), it's not actually possible to swap out the renderer for the javax.faces.SelectOne component; I've added the relevant elements to faces-config.xml but the kit always uses its default renderer instead of mine.
    So, that means I will have to create a custom component and tag as well as the renderer, right? And a new render kit?
    I'm guessing I must be missing something - I can't believe it's so difficult to just render a list of buttons in a list instead of a table. I was kind of hoping to be able to supply a sort of template for such grouped items.
    From looking around, I've not noticed any third party HTML render kits, either. Guess I'm not looking hard enough - does anyone have any pointers?
    So - to my main question. Has anyone done this? Implemented a simple solution to having pages full of tables? Any details would be great, plus any pointers to stupid things I'm doing - I'm sure there are plenty :)
    Thanks

    Towards your specific issue with the radio buttons, use Tomahawk's t:selectOneRadio component with the "spread" layout along with the t:radio component. This will allow you to layout the radio buttons however you like.
    In general, when faced with these types of "how can that be missing?" holes or annoyances in JSF I find the solution in Tomahawk.

  • Error loading control. a newer version needed. the default settings will be used

    Hi I am using LabVIEW DSC 7.1 for programming my application. My VI contains NI hypertrend which I am publishing on a browser using the web publishing tool. When I open the web browser on a different computer I get this error- Component works  Error loading Control. A newer version needed. The default settings for the control will be used. I have disabled firewall, pop up blocker etc...but for some reason it keeps giving me the same error. I read the knowledge base and it talks something about the .OCX file. I am not sure what I am supposed to do..I also have the DSC runtime installed in my machine. I'd appreciate it if someone could help me with this.

    If you're on a 64-bit OS, OCX files  must be in the folder: %windir% \ SysWOW64 
    and not in %windir% \ System32 (only for 32 bits OS)
    >> %windir% is  the environment variable that defines the Windows folder! (eg: C:\Windows)
    French version:
    Si tu es sur un OS en 64 bits, les fichiers .ocx doivent se trouver dans le dossier : %windir%\SysWOW64\
    et non pas dans %windir%\System32
    >> %windir% étant bien sur la variable d'environnement qui défini le dossier de Windows ! (par ex: C:\Windows)

  • In edit preferences, my LR 5 shows CS6 as the default but I now use CC...how do I get it to recogniz

    In edit preferences, my LR 5 shows CS6 as the default but I upgraded to CC...how do I get it to recognize CC instead of CS 6?

    CLose Lightroom - Close CS6 and open Cc - Reopen Lightroom it should have CC as the default
    You can designate an application to be used as an external editor in the External Editing preferences dialog box. After you choose an application, you can always use Preferences to change to a different application.
    In the External Editing preferences, click Choose in the Additional External Editor area.
    Navigate to and select the application to use, and then click Open (Windows) or Choose (Mac OS).
    You can also select an external editor by choosing Photo > Edit In Other Application from the Library or Develop module. You’ll be prompted to navigate to and select the application to use. After you choose an external editor, the name of the application appears as Edit In [Name of Application] in the Photo menu.

Maybe you are looking for

  • Sale Order Invoicing problem

    Dear All, Please help me in this i am getting when i am trying to post the Sales invoice after doing Post Good issue. Request all experts to help me in this. waiting for reply in anticipation. Details of Error given below Delivered/invoiced quantitie

  • I want to use the iphone4 with local GSM providers in Nigeria

    I have an iPhone4 which I bought as a pay-as-you-go from O2 in England (UK). But now I have moved to Nigeria. I want to use the iphone4 with local GSM providers. How do I go about it? Please help.Thanks.

  • My iphone 3gs wont connect to the service it just says searching any ideas what to do

    so hears th deal guys my 3gs wont connect to the sevice its not unlocked or jail broken and on top of that i was in the processes of restoring it and it wont let me connect to itunes the phone wont read the sim for some odd reason

  • Contact Pictures Gone Too?

    If I remove the pictures from my iphone that I have chosen to use for my contact pictures will the contact pictures be gone too?

  • PSE10 Photobook print and save problem

    Hey all I have had some major problems with creating Photobooks on PSE10. The problem is that I have is that it is not saving the PSE file correctly. My last project (kids school prject) was complete (8 pages) and looked good with a title page. I tri