How to write date.........

how to write the code for the o/p for the date in a format like 10/10/2006.

Hi Satish,
DATA V_DATE TYPE SY-DATUM.
V_DATE = SY-DATUM.
CONCATENATE V_DATE6(2) V_DATE4(2) V_DATE+0(4) SEPARATED BY '/'.
WRITE V_DATE.
Thanks,
Vinay

Similar Messages

  • How to write data to an XML file present under application server

    frnds: can ne one tell me, how to write data in to a file, which is present under a application server
    Ex: i want to write a string data in to a file test.txt which is present under "http://localhost:8080/<some_webapp>/test.txt"
    Note:i have deploted a service<some_webapp> under Tomcat/webapps dir

    Very simple. A servlet can writes to that file if it has the good rights.
    In the servlet get (or post) method, use a code like this:
    import java.io.*;
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
    try {
    String filePath = this.getServletContext().getRealPath("/text.txt");//See http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
             PrintWriter writer = new PrintWriter (filePath);
            //or BufferedWriter out = new BufferedWriter(new FileWriter(filePath));
            writer .println("aString");
           writer.flush();
            writer .close();
        } catch (Exception e) {
           e.printStackTrace();
    }Hope That Helps

  • How to write data on to a location other than desktop or application server

    Hi all,
            I already posted this question.But  i didn't get exact answer
    Can anyone explain that how to write data on to a share drive located on other Nonsap server.Please I dont want to FTP the file.I dont want that solution.I need to write directly on to that Nonsap share drive..
    Thanks,
    Balaji

    I guess the only way is sending the file using a XI connection to the non sap system server,generate RFC adapters, inbound, outbound interfaces, using xml or soap or IDOC to move the file to that system.

  • How to write date format in bdc

    how to write date format in bdc report

    Hi,
         First you have a data decleration i.e data l_format(10) type c.
    now if a variable say l_date which is of sy-datum type, you will have to  <b>write l_date to l_format</b>, this will transfer the date in which you(user) have set the date format in user settings. Never hard code the format such as dd.mm.yyyy. or mm/dd/yyyy because the may have different formats, and the BDC will fails. After you have used write to to new l_format, pass this new value to BDC recording.
    Reward if useful.
    Kiran

  • How to write data to text file using external tables

    can anybody tell how to write data to text file using external tables concept?

    Hi,
    Using external table u can load the data in your local table in database,
    then using your local db table and UTL_FILE pacakge u can wrrite data to text file
    external table
    ~~~~~~~~~~~
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2153251
    UTL_FILE
    ~~~~~~~~~
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#sthref14093
    Message was edited by:
    Nicloei W
    Message was edited by:
    Nicloei W

  • How to write data from query into Real time cube?

    Hi All,
    Can anyone explain me step by step how to write data into a real time cube from front end queries.
    Thanks in advance

    Hi
    You can do this using Integrated Planning
    You need to create a aggregation level on the Real Time infocube and can create Planning function/sequence, Variables if needed.
    Then you can create query on this aggregation level and you can make the keyfigures Input ready in property pane and you can change the data and save it into cube.
    Please find below help link which clearly explains step by step about Integrated Planning like creating input ready queries etc.,
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/0c033316cd2bc4e10000000a114cbd/frameset.htm
    Regards
    Ravi

  • How to write data in a real-cube from a internal table

    Hello Friends
    as you know, we can load data into cube by data sourc, transform rules.  But now, i want write data into a real-time cube from a interinal table .
    I want to know how can I do it.
    thanks !

    Not possible as there shd be some interface or connectivity shd be there to laod the data..
    possible ways are download to excel using FM GUI_download and use that one as a DS...

  • How to write data on Ms word document

    Hai all,
    plz slove this problem.....
    while click the button open ms word document with data....
    how write data on word document...

    in languages like delphi, c++ you can do this with OLE automation. but im not kinda sure about OLE support in java.there could be API's for this. just try a search on the net.. Read through OLE automation.
    /Cheers,
    -MadGuy
    From Sri Lanka

  • How continuously write data to a txt file

    hello, 
    first of all, sorry for bad English, but I have a problem to continuously write data to the txt file.... I have one 2D array with values of some function and based on 2 sliders (values of the sliders) i want to interpolate value using bilinear method... and after that value of the sliders, interpolated value, and value of the nearest points i wish to write to txt file ... for every 2-3 seconds perhaps it would be ideal to be formated as :: 
    x   y   f     f1   f2   f3   f4
    but... first i have problem with writing data, because every time it deletes old data and just write new one and it's not horizontal... I'm very very new at this (it is obvious) and any help will be very appreciative  
    thanks  
    Solved!
    Go to Solution.
    Attachments:
    Proba.vi ‏21 KB

    Hi there,
    May I suggest you start with the LabVIEW tutorial?  Or perhaps this one?
    I say that because 1) you said you're new at this, and these tutorials are great for getting started; and 2) you don't seem to understand the concept of dataflow.
    A structure, such as a loop or subVI or function, cannot start executing until it has all of its inputs available.  Therefore, the loop which contains your file write (bottom loop) cannot execute until your top loop is done executing, because it depends on inputs from your top loop and those inputs aren't available until the top loop is finished.  Thus, your file will contain only the data from your final top loop execution.  You might be thinking that your loops are executing in parallel.  They are not.  Your file loop is executing after your data loop has finished...that is to say, your file loop executes exactly once, after you press your stop button.
    You can do two things here to fix that:
    1.  You can move your file write into the top (data) loop. (probably easier for now)
    2.  You can use a queue to transfer the data from your top (data) loop into your bottom (file write) loop. (more complex, but a better idea in the long run)
    One other thing.  Move the "open file" function outside the loop.  Opening and closing the file in each loop iteration will cause problems.  Open the file once.  Write to it in each loop iteration.  Close it when you're done.  Like this:
    Note that this is not complete code...you need to provide the data to write.  This is just to show you how to set up a continuous file write.
    Ok, start with the tutorials and we'll go from there. 

  • How to write data to existing file using spool command?

    Hi,
    I am calling a stored procedure from a shell script. This stored procedure is having a CLOB object as an OUT parameter. How to write the data in CLOB object a existing file which is there in my client system. Below is the shell and sql scripts.
    Shell script
    ( echo "hello" ) > /root/file.txt
    sqlplus -s $user/$pass@$tns @/root/proc.sql /root/file.txt << EOF
    EOFSQL script
    set pages 0
    set trimspool off
    set serveroutput off
    set feedback off
    set term off
    set echo off
    variable out CLOB
    define file='&1'
    begin
    pack.proc(:out);
    end;
    spool &file
    select :out from dual;
    spool offThis code writes contents of the OUT variable to file.txt, but my existing data ('hello') is lost. Please help me.
    I figured the it...Use append in the spool command... :)
    Edited by: Balaji on Jul 19, 2012 8:55 PM

    >
    Hi Balaji
    I figured the it...Use append in the spool command... :Please mark the thread as answered as per the FAQ.
    Paul...

  • Sample of how to write data to NI 9802 SD Card C-Module

    I have basic knowledge of LabVIEW but now I want to go into Real-Time and FPGA. I want to learn how to write a data read from an analog input to a SD card using NI 9802.  For the purpose of learning data rate does not matter, as long as I can write something to the memory card.  I read some documents online but I have not found an example so I can understand how to do it.  I will much appreciate if there is any help.
    My settings:
    - cRIO 9073
    - Slot 0: NI 9229 (reading only AIO)
    - Sot  1: NI 9802 (Memory card is inserted to slot 0) - must be used in FPGA mode only.

    Hi,
    To getstarted with, you can first attempt to mount and unmount the NI 9802 using the invoke methods "Mount SD Card" and "Unmount SD Card" in the RT vi. For this you only need to open an FPGA reference to the FPGA vi. After Mounting, you can obtain the drive letter and use it to create the file and write data.
    Best Regards,
    Gogineni
    Kudos are welcome

  • How to write data/result in excel or external data source in c#??

    Hello Team,
    I have automation framework in c#. So there are multiple testmethod and testclasses.....so i havt to write result of every testmethod ...in below format..in excel 
    [TestMethod]
    public void Demo()
    WriteIntoExcel("TestClassName","TestmethodName", Pass/Fail, Time);
    I can all info in every methods but i dont know how to write it in excel or any other external datasource after every method .....
    Actually i want c# code to which will write data/result in excel ...excel might be saved in shared drive...
    Thanks in advance

    Hi Mon,
    We also could use OleDbConnection to insert data into excel.
    using System.Data.OleDb;
    using Excel = Microsoft.Office.Interop.Excel;
    using Microsoft.Office.Interop;
    //in the method section use as :
    string datevariable = "02/02/2010";
    string namevariable = "Shyam";
    string strConnectionString ="";
    string cmd;
    string filepath = ""C:\\sample.xls";
    strConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filePath+@";Extended Properties=""Excel 8.0;HDR=Yes;""" ;
    OleDbConnection conn =new OleDbConnection (strConnectionString);
    try
    conn.Open();
    catch(Exception e)
    Console.WriteLine(e);
    try
    // Insert into Sheetname
    cmd = "Insert into [Sheet1$] ( [Date], [Name]) values ('" +datevariable+ "','" +namevariable+ "');
    //Similarly you can update also
    OleDbCommand cmdUpd=new OleDbCommand(cmd);
    cmdUpd.Connection = conn;
    cmdUpd.ExecuteNonQuery();
    conn.Close();
    catch(Exception e)
    Console.WriteLine(e);
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to write data to file Java ME cldc 1.1 midp 2.0?

    I newly in java me, please help me.
    I make project in NetBeans 7.0.1. and use cldc 1.1 midp 2.0.
    I want to write data to the file.
    How can I do it?
    I try to use FileOutputStream. But it don't exists in java.io
    NetBeans shows me only this list of classes and interfaces in java.io:
    ByteArrayInputStream, ByteArrayOutputStream, DataInput, DataInputStream, DataOutput, DataOutputStream, InputStream, InputStreamReader, OutputStream, OutputStreamWriter, PrintStream, Reader, Writer.
    Why it so short?
    And how I can write data to file?
    Data can be array of bytes (byte[]) or Object it better.

    You must use JSR 75: FileConnection. Please check the following article "Getting Started with the FileConnection APIs":
    http://developers.sun.com/mobility/apis/articles/fileconnection/
    Be sure to use FileSystemRegistry.listRoots().
    And welcome to Java ME development. :)

  • How to write data to xml file?

    Hi,
    I have done a project which read data from a web then write in log file.
    Now i want to write data in xml file.
    how to write?
    i read some java and xml tutorial, quite quite difficult.
    Who can give a simple example with some comments?
    If you also give some tips on learning java web services, i will be very appreciated.
    Thanks
    Yang Bin

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    hope it's helpful
    land

  • How to write data from Basic Cube to Transactional Cube

    Hi experts,
    My problem is the following: I have a Transactional Infocube (IC1) and a basic Infocube (IC2). They have both the same structure. IC2 is loaded with data and other data is keyed in IC1.
    I would like to write data from IC2 to IC1 and eliminate data redundancy if there can be some.
    Can anyone tell me how I can do that?
    Thanks in advance

    Hi,
    Yes , you have to create a multiplanning area ..
      In the planning level , filter the value which you want to copy from basic to transactional cube .
    Fields to be changed : Planning area and others as per your need..
    Field for condition :  if you want to copy data from 2006 then give calyear as field for condition.
    Parameter group : give the value 'from' as basic cube  'to' as your transactional cube ..

Maybe you are looking for

  • Binocular search for Cost Center is not returning any data

    Hi Gurus, When clicking on the SRM-Shooping Cart-Cost Assignment- Account Assignment Overview- Cost center Binocular search icon,  it is not returning any data.  However,  when drilling down in the Account Assignment Overview, you will see another Bi

  • Spotlight "disappearing"?  New since update to 10.4.5

    I'm experiencing a major Spotlight error since updating to 10.4.5 through Software Update. In my menu bar, I have a few items. From left-to-right: an e-mail monitor, a SMART status monitor, my Fast User Switching icon, the clock, then Spotlight. When

  • Using case in a function

    Hi, I have a fuction that accepts one input parameter, called v_inp. And this is the code of the function that i see in the code editor: --initialize variables here V_OUTPUT NUMBER; -- main body BEGIN case v_INP when 15,16,17,18,19 then V_OUTPUT := 1

  • Change decimal points in SD Condition type from 2 to 3, for EU

    Hello, We have a slight problem with the amounts. We are using resource related billing in the project and to track some expenses, there are some condition types created. Since the currency is maintained as EU, the decimal places are maintained as 2

  • When will 10.8.2 Arrive on MacBook Pro 13" Retinas

    I purchased a new MacBook Pro Retina 13" last week. I notice that there have been some recent issues with the 10.8.2 update for Mountain Lion. I believe that this update patch is now on full release (i have seen websites talking about the release of