Name of the day from date based on the logon language

Hi All,
Could anyone help me with any function module which gives the name of the day after entering the date. but the name of the day should be language specific. I know DATE_COMPUTE_DAY_ENHANCED gives the name of the day but this is in english. I want the name/ description based on the logon language.
For example, I login in EN and I execute the above function module for date, 19.10.2010. so the weekday is Thursday. but this 'thursday' should be given in the logon language not the same even if I login in DE etc.
Thanks a lot in advance!!
Regards,
Swathi

Hi Swathi,
You can try to use FM DATE_COMPUTE_DAY to get the day ID, and then consult table T246 or execute FM DAY_NAMES_GET to get the day description in the desired language.
Kind regards,
Garcia

Similar Messages

  • Finding Day from Date i.e. Monday, Tuesday etc

    Hi,
    I need to find out the day from Date. i.e. Monday, Tuesday etc. This is because if the date falls on Saturday or Sunday need to charge difference rates and on weekdays having normal rates.
    Thanks,
    Amol

    We should probably add a function for this as I've certainly seen the requirement before.
    Fortunately it's pretty easy to calculate using a simple rule - the trick is to pick a date in the past that was a Monday, and then use the modulo operator.
    For example:
    The day of the week = (the given date - 1980-01-07) modulo 7
    ie the 7th of January 1980 was a Monday, so every 7th day after that is also a Monday - so combined with the modulo operator this will give you:
    0 monday
    1 tuesday
    5 saturday
    6 sunday
    The only downside is that dates before 1980-01-07 will give a negative modulo (this is distinct from the mathematical modulo operator, but is necessary to be symmetric with the integer division operator truncating towards zero) - so dates before the baseline date will give:
    0 monday
    -6 tuesday
    -2 saturday
    -1 sunday
    You can either choose to write the rules to take this into account, or choose a baseline date so far in the past that it's unnecessary.
    Regards
    Andrew

  • Display of Error messages returned in BAPI in the logon language?

    Hi Experts ,
                          I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance

    >
    Shawn Sunny wrote:
    > Hi Experts ,
    >                       I  have a requirement where in I need to display the error messages returned in the return table of BAPI_BILLINGDOC_CREATEMULTIPLE in the logon language..Is there any function module to convert text in the return table to the logon language?..Any pointers on achieving this functionality would be of great help..Thankz in advance
    Hello Shawn,
    Messages are always displayed in the logon language so what's the big deal in it?
    May be the translation is not maintained for this message in the logon language, hence the issue.
    You maintain the translation from SE91.
    Get the message details from the RETURN table --> Trxn SE91 --> Select the Message to translate --> From the menu bar : Goto --> Translation
    BR,
    Suhas

  • Change to the runtime the logon language with ABAP

    Hello,
    I have a  question.
    Is it possible to change to the runtime the logon language?
    With the URL-parameter example it worked.
    http://www.****bsp/sap/z_page/default.htm?sap-language=en
    But I need this in the event handler with ABAP coding.
    thanks Eren

    you can either use
    CL_HTTP_UTILITY->IF_HTTP_UTILITY~SET_REQUEST_URI
    uri = sap-language=FR
    or
    CL_HTTP_REQUEST->IF_HTTP_ENTITY~SET_FORM_FIELD
    name = sap-client
    value = FR
    or
    use
    SET LOCALE LANGUAGE 'S'. within your abap coding
    Regards
    Raja

  • Subtract business days from date - calculated column

    Hello,
    I had a calculated column on a library that took two dates and found the difference between them in business days, but I am not sure how to subtract business days from a date...for instance I get a start date from a form and I need to
    subtract 10 business days from that date.
    Can anyone help?

    I've always resorted to Javascript/JQuery for that kind of function. I found an old fashioned loop worked the best for me - it supports going forward or backwards. I key it off of a change in a starting date, or sometimes a status change. My actual production
    code takes into account another list where we remove holidays and non-work days.
    newDate = getNextDate(newDate, -3);
    $("input[title='Date Due']").val((newDate.getMonth() + 1) + "/" + newDate.getDate() + "/" + newDate.getFullYear());
    function getNextDate(currentDate, offset) {
    // offset is business days
    var wkend = 0;
    var index = Math.abs(offset); // need positive number for looping
    var neg = true;
    if(offset >= 0) { neg = false; }
    var curDOW = currentDate.getDay();
    var nextDate = new Date(currentDate);
    for(var i=1; i <= index; i++) {
    nextDate.setDate(nextDate.getDate() + (neg ? -1: 1));
    var nextDOW = nextDate.getDay();
    if(nextDOW == 0) {nextDate.setDate(nextDate.getDate() + (neg ? -2: 1));} // Sunday
    if(nextDOW == 6) {nextDate.setDate(nextDate.getDate() + (neg ? -1: 2)); } // Sat
    // alert("offset is " + offset + "start: " + currentDate + ", next date is " + nextDate);
    return nextDate;
    Robin

  • Extrating day from date

    Hi All,
    Extracting day form sysdate is <?xdoxslt:sysdate(‘Day’)?>
    but i want to extract day from <?xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')?> (sysdate-1 date's day)
    How can i ? any ideas pleae share me.
    Thanks

    DD is working fine
    <?xdoxslt:xdo_format_date($_XDOXSLTCTX,(xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')),’DD’)?>
    Day and Dy is not working giving result like check boxes
    <?xdoxslt:xdo_format_date($_XDOXSLTCTX,(xdoxslt:ora_format_date_offset(xdoxslt:sysdate('YYYY-MM-DD'),1,'-')),’Day’)?>
    do i need to give any supporting format for xdo_format_date?

  • Text in Report Painter not displayed in the logon language.

    Dear fiends,
    I need change the language in the Report Painter, but i don't get translate the texts.
    My logon logon language is Spanish but in the report painter the language is English.
    In the transaccition GCRS the laguage is Spanish.
    I copy these reports from client 000 and regenerate them but the lenguage remains the same.
    I've also tried with GRRT transacction.
    These are a standard report. My componet version is 4.6C
    Can someone help me?
    Thanks in Advance.
    Carlos.

    Is this problem solved Carllos?? If so, please lt me know. Even Im facing the same.

  • Year , Month & Day from Date.

    Hi HANA experts,
      Do help me to resolve this issue
    How can we extract or fetch year from the date.i went through some of the SCN blogs.where they create calculation views...but the steps are not that clear to me.
    can anyone please explain??
    My scenario is :
    I have date field in ANALYTIC VIEW which i have fetched from ECC  tables.
    now i need to get  the year  wise month wise and day wise reports. so what steps i should do in calculation view to get that??
    thanks
    Neeraja

    there is no ECC under SAP...as we are using suite on HANA fro AWS.and there is no restriction done by the basis till now...
    as we are new to these unable to trouble shoot things easily.
    thanks for your reply..

  • Substracting number of days from date

    Hi all, I need to create a user exit to get a date value based on another variable. Basically, 100 days minus the first variable.
    var2 = var1 - 100
    How can I write this?
    Thanks.

    Ok, I figured it out. I had to declare variables of type d and then assign it.
    IF i_step = 2.
        data:zday type d,
              zday1 type d.
    *****Loops for Variable.*****************************************
        LOOP AT I_T_var_range
             INTO loc_var_range WHERE
                      VNAM = 'ZENDT' or
                      VNAM = 'ZENDATE'.
        zday = loc_var_range-low.
        zday1 = zday - 275.
    *      l_S_range-low = loc_var_range-low - 275.
          l_S_range-low = zday1.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO E_T_range.
        ENDLOOP.
        EXIT.
      ENDIF.

  • Need help finding accounts that expire 90 days from date created

    Hi, I am trying to find all temp accounts in AD that expire 90 days after the account was created.  Here is what I have so far. I am not sure how to calculate that. I am not receiving any output.
            $expireDate = (Get-ADUser -filter * -Properties accountExpires).accountExpires
        $accountExpireDate = ([System.DateTime]::FromFileTime($expireDate)).AddDays(-90).Date
        Get-ADUser -Filter {whenCreated -ge $accountExpireDate} -Properties whenCreated | select name | export-csv 'c:\temp\all_temp_users.csv'enter code here

    OK. I read your question again and I think I understand what you are asking now.
    Try it this way:
    $DaysSinceCreation = 90
    get-aduser -ldapfilter "(&(!(accountExpires=0))(!(accountExpires=9223372036854775807)))" -properties accountExpires,whenCreated | foreach-object {
    $accountExpires = [DateTime]::FromFileTime($_.accountExpires)
    if ( ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation ) {
    new-object PSObject -property @{
    "distinguishedName" = $_.DistinguishedName
    "whenCreated" = $_.whenCreated
    "accountExpires" = $accountExpires
    -- Bill Stewart [Bill_Stewart]
    Here is what i modified for expand the range of $dayssincecreation value. It appears to work but is kind of sloppy. Its not a big deal, but is there a way to make this cleaner? i tried a range variable and did not have any luck. Again thanks for all your
    help!
    $DaysSinceCreation = 85
    $DaysSinceCreation1 = 86
    $DaysSinceCreation2 = 87
    $DaysSinceCreation3 = 88
    $DaysSinceCreation4 = 89
    $DaysSinceCreation5 = 90
    $DaysSinceCreation6 = 91
    $DaysSinceCreation7 = 92
    $DaysSinceCreation8 = 93
    $DaysSinceCreation9 = 94
    $DaysSinceCreation10 = 95
    $DaysSinceCreation11 = 96
    get-aduser -ldapfilter "(&(!(accountExpires=0))(!(accountExpires=9223372036854775807)))" -properties accountExpires,whenCreated | foreach-object {
    $accountExpires = [DateTime]::FromFileTime($_.accountExpires)
    if ( ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation1 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation2 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation3 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation5 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation6 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation7 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation8 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation9 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation10 -or ($accountExpires - $_.whenCreated).Days -eq $DaysSinceCreation11) {
    new-object PSObject -property @{
    "SamAccountName" = $_.SamAccountName
    "whenCreated" = $_.whenCreated
    "accountExpires" = $accountExpires

  • Determine day from date

    Hi all,
    I would like to determine if the day is working day given a date. I want to exclude weekend and public holidays. Is there any FM which can give me that.
    Please help.
    Thanks
    Devang
    Edited by: Diksha Chopra on Dec 29, 2009 1:28 AM

    Hi
    Use this
    mport java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.List;
    public class WorkingDaysFinder {
        static List<Date>  holidayList =  new ArrayList<Date>();
        // holiday list
        static{
            holidayList.add(new Date("08/18/2009"));
            holidayList.add(new Date("08/19/2009"));
        public static void main(String args[]){
            Date day1 = new Date("08/17/2009"); // start date
            Date day2 = new Date("08/27/2009"); // end date
            Date dayCounter = day1;
            int counter = 1;
            while(dayCounter.before(day2)){
                // check for weekends and holiday list
                if(dayCounter.getDay() != Calendar.SATURDAY &&
                   dayCounter.getDay()!=Calendar.SUNDAY &&
                   !holidayList.contains(dayCounter))
                    counter++; // count weekdays
                dayCounter.setDate(dayCounter.getDate()+1);
            System.out.println("Working days = "+counter);
    Regards
    Monika

  • How to change the logon language in module pool program?

    Hello All,
    I had created a module pool program and had desiged a screen.
    When i am logged in English language i am able to see them in english as per the requirement it is working fine.
    But the requirement is wen i am logged in DE then the selection-screen texts should show in English and not in German.
    Kindly give me a solution for this.
    Thanks & Regards,
    Rajesh Kumar

    Hi Rajesh,
    This problem is because you have maintained a standard dictionary fields on selection screen and all the standard dictionary fields are maintained in DE language, on the screen layout, go to the attributes of that particular text field, there is a option MODIFIZ for dictionary fields (it is a drop down), selection F TEXT, now whatever the text u will define, it will remain same for all the languages, once u do this  then u again login in DE,l u will see the text maintained by u and not the DE text.
    Do reply if problem still persist.
    point if useful.
    Rohit G
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:24 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:30 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:37 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:38 PM

  • Changing the text symbols in the logon language

    Hi...
    I want a text symbol to have description in malay. I logged in to the R/3 system in malay language and went into the text symbols space of the respective program which is in SAPLHRHAP_C_IF_DOCUMENT in my case. I need to change the text symbol BEX (Exit) to BEX (keluar) in this malay log on.When I try to rename it, It says that "the text symbol is in original text and cannot be renamed"
    can you guys tell me how to do it?
    Regards,
    Aruna Nivetha.R

    if you want all your buttons everywhere to have white text, i'd subclass button and make the necessary change in that by calling setForeground();
    otherwise, call setForeground() on all your buttons...

  • How to make the selection screen field names to apper as in logon language

    hai
    the selection screen field names should appear
    as that of logon language
    and <u>before that once i logon with a language
    it should pop up the (some)message in the logon language</u>.
    For the selection screen filednames to appear as that
    of the logon language whether i have to maintain the textelements for all screen fields in all possible languages or i have to write only in english and tell mentioning it to change

    In <b>SE38</b> --> Goto --> Translate.
    Choose target language, and start making the translation -;)
    Greetings,
    Blag.

  • How can i determain the user language

    i have a user name how can i identfy is he indian user or german user.

    Hi
    But u need to know the logon language or the country of the user?
    In logon data the logon language is set for every user, u can find it in table USR01, but if need to know where the user is from: it's not easy, u can check the address data.
    Max

Maybe you are looking for

  • Having  Problem starting Weblogic  SP6

    The WebLogic Server did not start up properly. Exception raised: java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError at weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClas

  • Repeat workflow by termination event

    Hi I’m developing a workflow to assign a SAP position for a New Hire employee. The sceniro is “ If an employee is hired with default position, then WF have to be triggered to HR Administrator.So far the workflow is working fine. But there is a new re

  • I can't open the open window in pages

    I can't open the open window in pages

  • My macbook wakes up and then goes back to standy even when the lid is open.

    so my macbook turns on and then the screen stays on for like 2 seconds then goes back to standby. it does not shut down because when i wake it up again by pressning any button, it is where i was before. Also when it is in standy even when the lid is

  • Regarding badis

    hi gurus, i hv to use badi's in me54n...regarding release strategy...i m not able to find badis in release strategy hw can v find that plz help ,with the help of badis i will derelese a pr...whose po is already created. thnx in advance.