Date fomat

Hi all,
I need the output of date in format..
October 25,2006.
is there any function module to get the output in this format?
Regards,
ajith

Hi again,
1. 20061025
   ---> October 25, 2006.
2. For this purpose, there in an independent subroutine in my program.
3. just copy paste.
REPORT abc.
DATA : mname(20) TYPE c.
PARAMETER : d TYPE sy-datum default Sy-datum.
PERFORM getmonth USING d mname.
WRITE :/ mname.
*& Form getmonth
text
-->M text
-->MNAME text
FORM getmonth USING d mname.
  DATA : month_names LIKE t247 OCCURS 0 WITH HEADER LINE.
  DATA : m(2) TYPE c.
  m = d+4(2).
  CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE =
  TABLES
  month_names = month_names
  EXCEPTIONS
  month_names_not_found = 1
  OTHERS = 2
  READ TABLE month_names INDEX m.
  IF sy-subrc = 0.
    mname = month_names-ltx.
  ENDIF.
  CONCATENATE MNAME D+6(2) ',' D(4) INTO MNAME SEPARATED BY SPACE.
ENDFORM. "getmonth
regards,
amit m.

Similar Messages

  • Date Fomating with RFBIBL01

    Hi All,
    I have a Z Program which is using standard report RFBIBL01 for Uploading G/L Records. It creates a session when I run the session through SM35 the date field BSEG-ZFBDT is not getting populated. I am Getting "Formatting error in the field BSEG-ZFBDT; see next message" and "Fill in all required entry fields".
    Please let me know the approach i need to take to get it fixed. Do i Need to fomat this field, then how?
    Thanks,
    Vikas

    Hi,
    As per config ZFBDT is manditory you can check the data file whether its avialble for that record. If you not you
    need to provide them in file.
    You can ask Function to show you Feild status config for GL posting which will make you understand what all the fileds are manditory and optional.
    regards,
    Shanmugavel Chandrasekaran

  • MySQL date fomat with PHP

    I have a problem with format date stored in mySql db ( in the
    fied named 'dt_news') as dd-mm-yyyy.
    Now when I view my php page where I show all the records, I
    have the following type yyyy/mm/dd.
    Please help me to modify the attached code an have that
    result.

    Add to your code
    <?php
    function mysql2date($date){
    $temp = explode("-",$date);
    $newdate = $temp[2] . "/" . $temp[1] . "/" . $temp[0];
    return $newdate;
    Then instead of:
    <?php echo $row_View_News['dt_news']; ?>
    Use:
    <?php echo mysql2date($row_View_News['dt_news']); ?>
    This will change the mysql date format from YYYY-MM-DD to
    DD/MM/YYYY
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

  • XML Publisher to Excel Report : Date format problem

    Hi,
    I am trying to create an Excel report with XML Publisher. I have an issue with the Date Fomatting.
    In the XML template, I have set the "Date" column in date format. But the excel output report "Date" column returns as "General text" (string) and it is sorted as text, not as date.
    Can anyone please help me out?
    Thanks!!!

    Hi,
    Did this post solve your problem? I have the same issue that I need to solve.
    I have an xsl-fo template with dates in it.
    The dates are in english.
    My excel is setup to use danish.
    When I export to excel it knows the month jan, feb, mar, apr, ... which are the same in danish and english.
    But months where it differs like may (danish maj) the cell is a general text instead of date.
    Is there anyway you can set/transform the date in the xsl-fo template so it does not care about the language in excel?
    Thank you in advance.
    BR Kenneth

  • Converting Date Column to format MM/DD/YYYY in RPD

    Hi all,
    I have a requirement like converting a Date column to format MM/DD/YYYY in RPD. Any help as we are not supposed to use the BI Answers Data Fomat for showing this format.
    Thankyou,
    Edited by: [email protected] on May 10, 2010 11:49 PM

    Hi Saichand,
    I need the resulting column in DATE format only. The solution which you specified converts the datatype to character. Is there anyway to convert the format but not the datatype.

  • Is there any function module to convert date format?

    Is there any function module to convert date format from mm/dd/yyyy to dd.mm.yyyy or sy-datum?

    Hi,
    wirte statement converts any date fomat in system date fromat
        WRITE w_DateTO w_date_sys.
    Regards,
    Sriram

  • Picking Month from Date in ABAP query

    Dear All,
    I want to pick month from date in a abap query but it is giving error "BDTER" is not a valid comparison operator. comparison operator.
    Where i am wrong my query is below.
    SELECT SUM( BDMNG ) AS BDMNGT FROM RESB INTO CORRESPONDING FIELDS OF IT_MRP
    WHERE MONTH( BDTER ) = '12'.
    With Regards
    Ashwani K Mathur

    Dear Deepankar,
    Thanks for reply.
    Date fomat is yy/mm/dd (like 20071231) after your suggestion i have modified query.
    SELECT SUM( BDMNG ) AS BDMNGT FROM RESB INTO CORRESPONDING FIELDS OF IT_MRP
    WHERE  BDTER+4(2)  = 12.
    but while compiling it is giving error Field "BDTER+4(2)" unknown.
    Please suggest.
    Ashwani K Maathur

  • Convert yyyymmdd date format to mm/dd/yyyy

    hi,
    I convert the date fomat in my program from yyyymmdd to dd/mm/yyyy format using this code:
    WRITE it_pos-bldat TO i_outpos-bldat MM/DD/YYYY.
    I declared the bldat field by: bldat(10) TYPE c so that the field will contain the '/' character.
    The output of my program is in alv format and the problem is when I sort the bldat field, it will be sorted as a character field and not by date.
    Ex. 01/06/2005
        02/23/2004
        03/12/2006
        04/09/2004
    It should be sorted like this:
    02/23/2004
    04/09/2004
    01/06/2005
    03/12/2006
    Please let me know how I can convert into mm/dd/yyyy format and can still be sorted in the alv by date.
    Thanks!
    Eric

    <b>HRGPBS_HESA_DATE_FORMAT</b>
    Format a date valid for HESA: DD/MM/YYYY
    data:date_form type CHAR10.
    call function 'HRGPBS_HESA_DATE_FORMAT'
    exporting
    P_DATE = sy-datum
    importing
    DATESTRING = date_form
    exceptions
    others = 1.
    write : date_form.
    also check thread..
    Re: Regarding Date conversion

  • Adding a clock to a field in a PDF using Adobe Designer

    Hi,
    I am trying to add a clock field to a PDF.
    It needs to be a continous clock in the format of HH:MM:SS.
    I am having alot of trouble.
    It is probably quite simple.
    Can anyone help?
    Thanks,
    Damo.

    Drag and drop the current date field which is under.Object Library > Custom > Current Date.
    Select the field In the Binding change the Date Fomat to Time.If you want to change the pattern Object > Field > Pattern > Locale Select English(USA) and select what ever pattern you want.
    Then modify the script of the same field as below.
    $.rawValue = num2time(time(), "HH:MM:SS")  Language should be formcalc.
    Thanks
    Vjay

  • Printing in CS5 applications produce stack errors.  Never happened in previous versions of CS

    A good percentage of my files will not print natively from Illustrator/InDesign CS5. I have to convert to PDF.  There isn't any pattern to it, very random.  I already got the new print drivers.  I'm not the only person seeing this issue.  I've been printing with this printer from CS3, CS4 applications for over 2 years now.  What has changed?
    I downloaded the latest PS and PCL drivers from Oki.  It fixed my original printing issue with the document.  That was a few days ago.  I try to print another document today, same problem again, offending command: D Stack 311.254 on second page.  This is from Illustrator 15 and InDesign as well, same document.  I can only print the full document if I save it to a PDF.
    Any other suggestions.

    Hi,
    I was just using Illustrator CS5 (15.0.2) and I was printing a page using the PostScript3 drivers and I got the following error:
    ERROR: syntaxerror
    OFFENDING COMMAND: binary token, type=138
    STACK:
    7.08691
    -mark-
    (Text Over)
    I was able to solve the problem with moxie1924's fix above (selecting ASCII and not Binary under Data Fomat).  Thanks Moxie!
    Like others said, I did not have this problem in other software, just Illustrator CS5.
    Is this something Adobe is fixing in an update?
    Dave.

  • Failed loading from PSA into Cube

    Hello,
    I tried to load data from flat file into a cube. I defined the processing as PSA only in Infopackage, the loading was OK, but when I loaded data from PSA to cube, it failed. I checked the PSA, the Status indicator was red, this record is the first record in flat file. The detail error message as follow:
    TYPE: Red
    Message: Value "01.02.20" of characteristic 0Date is not a number with spaces
    ID: BRAIN
    NO.: 19
    LTxt:
    One record in flat file as this:
    M-01;GP-01;1000;01.01.2006;2006;K4;20
    the corresponded infoobjects:
    Material;material group;customer;calend day;fiscal year;fiscal year variant;quantity
    I was confused much on the error message, I checked flat file, infosource, transfer and update rules,cube and so on. Could you please help me to solve the problem? thanks advaned!
    Ryan

    Hi,
    0DATE has to be available in internal date fomat to book into the infocube. you have the following options:
    -Change the 0DATE-column in your flatfile to the format YYYYMMDD.
    -In the transfer structure, choose a conversion routine to convert the external date format to internal date format.
    Regards,
    Beat

  • Convert string to fomated date

    I have a string type "dd/mm/yyyy", how can i convert it to "MMMddyyyy hh::mm:ss AM/PM" date format ??

    Calendar cal0 = Calendar.getInstance(); // today's date
                   SimpleDateFormat dateFormat = new SimpleDateFormat("MMMddyyyy hh::mm:ss AM/PM");          
                                                      cal0.add(Calendar.DATE,-0);
                                                      Calendar calx=cal0.getInstance();
              String date0 = dateFormat.format(cal0.getTime());
                                                                                                        System.out.println("Date "+date0);
    use this,.
    if there is any problem write it again,
    bye,
    Samir

  • Fomating Dates

    Hello
    I'm having a bit of difficulty formating the current date.
    I have a function that sets a variable "transDate" to the current date using Calendar.getInstance()
    I then use my toString to print out some other stuff and the transDate variable. So it gives me the whole Gegorian Calendar. All i need is the "hour minute date month and year"
    I have tried using the DateFormat but it tells me i can't format Calendar type.
    I'll try muking some more but i thought there may be a real simple answer.
    Thanks

    It is the transDate you defined in setTransDate() is an "automatic" variable, it becomes garbage as soon as setTransDate() is done. The following code works
    import java.util.Date;
    import java.text.SimpleDateFormat;
    class MyDateFormat {
        Date transDate;
        public void setTransDate()
         transDate = new Date();
        public String toString()
         SimpleDateFormat hope = new SimpleDateFormat("hh-mm-a-dd-MMM-yyyy");
         String date = hope.format(transDate);
         //     return("*Account Summary*\n*Account #:"+ acctNum + "\n*Account Name:"+ acctName + "\n*Account Balance:$"+ acctBalance +"\n*Account Type "+ acctType+ "\n*Last Transaction Date:" +date+"\n\n");
         return ("\n*Last Transaction Date:" +date+"\n\n");
        public static void main(String[] args) {
         MyDateFormat d = new MyDateFormat();
         d.setTransDate();
         System.out.println(d.toString());

  • How to fomat a number cell to show up in Date format in FR in 11.1.1.3

    I developed a Financial Report using Essbase connection (Cannot create as Planning connection due to some restraints).
    I have a date type field in the report.The cell is displaying 20120123 which is fine since I am using the Essbase connection. But I would like it to be in a Date format (1/23/12) .
    Does anyone know as to how can I do this or its even possible ?
    Thanks in advance

    Hi,
    Have you tried the Date Function
    for example
    if the date is April 24:
    <<Date("dd-M-yy")>> displays 24-4-02
    <<Date("dd-MM-yy”)>> displays 24-04-02
    <<Date("dd-MMM-yy")>> displays 24-Apr-02
    <<Date("dd-MMMM-yy")>> displays 24-April-02

  • Data grid font fomating

    Hi everyone,
    I am trying to write some code that will allow me to set what
    the font looks like in a data grid. The font is going to chagne
    when a user chagnes something(i.e the user archives something i
    want the whole row to be italized based of a certain value that is
    set). How can this be done, and also in certain situations i only
    want a certain cell to change(i.e something new was added by
    another user i only want the first column in that row to be bold)
    how would that work...
    Thanks

    yea while i was working with VB , i was using data grids that lists the records those came from the access database.
    i'm using an access database again ,but with java codes i wanna do listing. im not making an applet, but a self GUI application, and dont know how to list the records. because in applets there's paint() method.in such an example of mine there's not.
    what can i do? if there is no data grid or something alike in java for self GUI applications, how can i list them as a whole in a frame?
    thanks

Maybe you are looking for

  • My iphone 5 is not showing up in devices on my computer

    My iphone 5 is not showing up in devices on my computer

  • OBIEE not applying outer join syntax to filters

    (Note: I've already thoroughly searched the forums before posting this. Thanks) My problem is the following: I'm trying to build a report that is a count from my fact table, grouped by month from my date dimension for a given year, resulting in 12 da

  • CUA and user parameters

    I thought CUA updated all user characteristics, but I just noticed that User Parameters are not updating on my system.  Is this configurable?  Is it supposed to work this way?  Does anyone know of documentation that explains this.  Thank you.

  • Sample code in PBO and PAI

    Hi all, i created a new field in the customer master (xd03) screen with a button. if i click that button, it will display the next screen with the new field. now i need to write the code in PBO and PAI events in that screen to get the data from table

  • Why the name "encodeUrl" is replaced by "encodeURL"?

    Hi, everybody I notice that the method encodeUrl( ) is replaced by encodeURL( ) in the interface HttpServletResponse. I don't why because I think the older name is better. If two words like HTTP and URL are both in a name, the name will look like "HT