Explain TO_CHAR(),TO_DATE(),TO_NUMBER() with examples

Hi All,
I have little bit confusion on TO_CHAR(),TO_DATE(),TO_NUMBER().
Can any one please explain when will use that functions with examples.
Thanks & Regards,

974825 wrote:
Hi All,
I have little bit confusion on TO_CHAR(),TO_DATE(),TO_NUMBER().
Can any one please explain when will use that functions with examples.
Thanks & Regards,
For to_date and to_char (as applied to dates) see: http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/ - But I want to store my date as ...
Once you understand how it works for dates, you should have a good foundation for understanding how it works for numbers.

Similar Messages

  • Explain about xml schema with example

    Hi,
    Kindly anybody explain about xml schema with example?
    With Regards,
    L.rajesh

    Maybe this is what you are looking for ??? If not give us more info...
    Re: How it work?

  • Could anyone please explain Polymorphism to me with Example?

    I am trying to learn the concept of Polymorphism in Java and I am having a tough time understanding what it is. I keep confusing it with inheritance which I am now comfortable with but I don't get what the book says about polymorphism and a lot of tutorials I have seen do not seem to explain it as to a layman. Please Help a newbie to programming understand POLYMORPHISM
    Java NewBie

    Here's a real-world example: I had a large data structure (a tree, basically) whose contents aren't relevant to this discussion. I also had a variety of functionality required, a bunch of which required visiting every node of the data structure.
    Now, I could write the same tree-spanning code over and over again for each separate bit of functionality that required it. Or try to create a library function that spanned the tree (although in reality, it's hard to write library functions like that without a degree of polymorphism). But these were either redundant or clumsy or both.
    So the approach I took was to add a "visitAll" method to the data structure. (This is actually an example of encapsulation -- the data and the operations on the data are stuck together.) The visitAll method took an object, and for each node in the tree, it invoked a method (let's call it "absorb") on the given object.
    continued...

  • Explaination for background steps in MRP with example

    Dear SAP Guru's,
      I received the explaination for below steps in MRP.
    But, it wouid be better if i could get the explaination for step 2 with example, step 3 for lot size EX & step 5 also with example.
    1. Check planning File Entry
    2. Net requirements Calculation
    3. Lot size calculation
    4. Scheduling
    5. Source determination
    6. BOM explosion
    1. Check planning File Entry: An entry is made in the planning file as soon as any changes are done to the material which are relevent to MRP. Eg. Changing MRP type, Changing BOM Qty. System checks if there is an entry. chk sample planning file entry in md21.
    2. Net requirements Calculation: It checks the available stock of the materials. Required minus available = net required qty. availability check plays vital role in this.
    3. Lot size calculation: Depending on the lot size maintained in the material master, it groups the materials. eg. If you use lot size as FX(Fixed lot Size) with fixed lot size qty = 100, then system will create pld ord or PR for the material in fixed lot of 100 always.
    4. Scheduling: You can either carry out basic dates scheduling (values taken from MRP 2 view) or Lead time scheduling (values taken from routing) to this the floats are added and scheduling is carried out. By default it is backward scheduling. If the dates are going in past, today scheduling is done.
    5. Source determination: For externally procured materials, you can assign a fixed source (ME01). This vendor is assigned in PR during MRP.
    6. BOM explosion: For dependent requirements calculation, system explodes the BOM and plans the materials.
    Thanks in advance
    Regards
    Kalyan

    Kalyan,
    I do not see a business problem described in your email that I can assist you with.
    I suggest you read the standard SAP online help in this area
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/f4/7d27aa44af11d182b40000e829fbfe/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/420d29470a11d1894a0000e8323352/frameset.htm
    and associated topics.
    Rgds,
    DB49

  • Error handling with example

    Hi,
    Can any one explain please
    1.Why we need to create XSD,
    2.What is the use of dehydration,
    3.Types in XML
    Please explain any error handling with example.

    Hi',
    1.Why we need to create XSD,
    This is used as the input/output for the webservice/BPEL
    2.What is the use of dehydration,
    This is used to save the state of the composite/BPEL/Mediator in the database
    3.Types in XML
    complex, simple
    Error handing in file
    http://yatanveersingh.blogspot.com/2011/09/fault-handling-in-file-adapter-for-csv.html
    -Yatan

  • Sales area with example

    hai!
    i am a fresher to SAP SD..so  plz explain me what is sales area, sales organization, distribution channel & division with proper examples... also explain SD organizational structure with example..
    thanks

    Hello,
    Sales Organisation : The sales organization is an organizational unit within logistics, that structures the company according to its sales requirements. A sales organization is responsible for the sale and distribution of goods and services.
    It represents the selling unit as a legal entity.
    Distribution Channel : The distribution channel represents the channel through which salable materials or services reach customers. Example: wholesale, retail ,direct sales.
    Division : An organizational unit based on responsibility for sales or profits from saleable materials or services.
    Sales Area : Sales and Distribution is organized according to sales organization, distribution channel and division. A combination of these three organizational units forms the sales area.
    Creating a sales area allows you to exclude certain combinations of the different organizational areas.
    Prase

  • What is the use of profiles in oracle apps,could u pls explain with examples

    what is the use of profiles in oracle apps,could u pls explain with examples

    1b5595eb-fcfc-48cc-90d2-43ba913ea79f wrote:
    what is the use of profiles in oracle apps,could u pls explain with examples
    http://www.appspatrols.com/now/blog/understanding-profile-options-in-oracle-apps-oracle-e-business-suite
    http://www.oracle.com/pls/ebs121/search?word=Profile+Options&format=ranked&remark=quick_search
    Thanks,
    Hussein

  • Explain me Auth_id  and definer rights in detail with example.

    Explain me Auth_id and definer rights in detail with example.

    ibney wrote:
    Explain me Auth_id and definer rights in detail with example.How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    unwilling or incapable to Read The Fine Manual yourself?
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm

  • What is star schema - pls explain with example

    Hai.
    what is star schema - pls explain with example
    thanks in advance
    Giri

    Hi Giri,
    SAP's BIW employs extended star schama
    The extended star schema consists of a fact table (in two parts, E and F - f is the inbound table, E long-term storage). Dimension tables are connected to the fact tables via the DIMID(dimension id) which is a generated value and is stored in both dimension and fact tables. In addition, the dimension tables are connected to tables which hold master data values (or bind the dimension table to tables that hold the values), such as S tables, P, Q, X, Y. These dimension tables hold SIDs, again generated keys which relate values in the dimension table (the DIMIDs) with master data values. Thus, at the time of the query, join operations ensure that the master data values can be merged with the key figure values stored in the fact tables.
    Truthfully, one does not need to understand this schema extensively in order to model in BI in SAP NetWeaver. It helps to understand master data, navigational attributes, etc. Otherwise, simply model the key figures in the fact table and the characteristics into dimensions and you're good - the application generates the star schema for you - you don't have to specify it.
    See the transaction "LISTSCHEMA" which will show you the relationship between the F fact table and the other tables of the cube's star schema.
    Also follow the link for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/4c/89dc37c7f2d67ae10000009b38f889/content.htm
    Thanks for any points you assign.
    Regards

  • Can AnyOne Explain Parameterized View with Example

    Explain the parameterized view with example

    Cathrin wrote:
    Hi ,
    I have created a view...
    CREATE OR REPLACE VIEW V_UNITS_UNITMOVEMENT_AMTEST(fromdate varchar,todate varchar)
    ... 127 more lines (no kidding)
    Group By A.Code,A.UDate,B.Scheme_Description,A.DividendOption,C.DividendType_Name,A.NAV,A.Units
    when i execute i get this error ...
    ORA-00907: missing right parenthesis
    what should i do?First, indent your code to show the extent of structures that extend over several lines, such as subqueries, CASE expressions, or function calls that have nexted arguments.
    Make parentheses line up so that, if a ) has to be lines away from its matching (, then are indented the same amount, with nothing except white space between them.
    When posting code (or any formatted text) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    Note that "ORA-00907: missing right parenthesis" doesn't always mean you have unbalanced parentheses.  Often, it just means that something (such as an Oracle keyword) appears at a point where it doesn't make sense, but where a ) would make sense.
    Second, develop code in very small increments.  Take baby steps. Start with a very small, simple query, test it, then add one or two more lines.  When you get a mysterious error like "ORA-00907: missing right parenthesis", chances are there was a mistake in the one or two lines you just added.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What are the GAP analysis? could you pls... explain with examples?

    hi everybody.....
    may i know what are the GAP analysis with examples?
    thanks in advance...
    and hope u will get it me that.

    Dear arunteja vasan ,
    GAP Analysis
    A through gap analysis will identify the gaps between how the business operates ad its needs against what the package can can't do.   For each gap there will be one of three outcomes which must be recorded and actioned, GAP must be closed and customised software can be developed close the gap, GAP must be closed but software cannot be written therefore a workaround is required, GAP does not need to be closed.
    In simple terms: Gap means small cracks. In SAP world.  In information technology, gap analysis is the study of the differences between two different information systems or applications( ex; existing system or legacy system with Client and new is SAP), often for the purpose of determining how to get from one state to a new state. A gap is sometimes spoken of as "the space between where we are and where we want to be." Gap analysis is undertaken as a means of bridging that space.
    Actual gap analysis is time consuming and it plays vital role in blue print stage.
    Cut Over Plans
    Detailed plans need to be developed for cutting over from the old system(s) to the new.   Parallel runs of what will happen over the conversion period using test data, convert and watch for a period after wards to ensure nothing unexpected happens.
    Train Users
    Well trained users will support and defend the system on site.  Unsupportive users will continually undermine the system and eventually it will be replaced.   Therefore the more effort you put into helping the users master the system early the better.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • How to use functions(to_char,to_date,trim..etc) in oracle xml table

    Hi I am new to oracle xml.
          In the below scenario how can use the functions like (to_char,To_date,trim..etc) In oracle xmltable."username","password" are inputs to my procedure.
    SELECT *
        INTO l_username,
                  l_password
        FROM xmltable('/InputParameters/ParamSet'
                        passing l_xmldoc
                        COLUMNS
                                l_username  VARCHAR2(28)    path 'username',
                                l_password VARCHAR2(28)     path 'password'
    and please Help how to write above with xmlquery.
    Thanks,

    In the same place you would for any regular SELECT statement
    SELECT TO_CHAR(...),
           TO_NUMBER(...)
      FROM random_table
    WHERE TO_CHAR(...) = col1
       AND TO_NUMBER(...) = col2
    username and password are the results of the SQL statement.  I'm guessing l_xmldoc is the input? There is not need to write something so simple as XQuery so what is your larger goal?  If you provide a clearer example and question, we can help you better.

  • IDOC with example and T.codes ??

    hii
    Some body explain me about the scenario and steps to be followed in configuration and in front process with transaction codes .
    Jus some experts can explain me about over all procedure of IDOC in SAP with transaction code (Full cycle with examples...??
    In MM , exaplin me with some examples and with transaction codes ..
    Thanks

    Check these links
    [IDOC Configuration|http://sapmm.posterous.com/idoc-configuration]
    [Learn SAP u2014 IDOC basic|http://blogs.moovar.com/sap/learn-sap-idoc-basic/]
    1) What is IDOC?
    IDoc means intermediate document is a standard data structure for electronic data interchange (EDI) between application programs written for the popular SAP business system or between an SAP application and an external program. IDocs serve as the vehicle for data transfer in SAP's Application Link Enabling (ALE) system.
    2) Why its is used with SAP?
    IDocs are used for asynchronous transactions: each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. Another SAP mechanism, the Business Application Programming Interface (BAPI) is used for synchronous transactions.
    3) What its advantages & disadvantages?
    a) IDOC - Advantages :
    The target system need not be always online. The IDOC would be created and would send the IDOC once the target
    system is available.
    No additional programming required. Configuration is the only one need to be set up.
    b) IDOC - Disadvantages :
    Receipt/Processing on the target system need not be immediate
    When no standard IDOC is available, then it is very hard to create a custom IDOC when compared to creating a
    standard BAPI
    Unless ALE is used, it is difficult to trace if the IDOC has actually reached the target system
    4) IDOC flow with MM :
    In order to make use of the workflow for IDoc processing, you do not have to go through the cumbersome
    workflow design procedure as it is described in the workflow documentation. For the mentioned purpose, you can
    register the workflow handler from the menu, which says Event Coupling from the BALD transaction.
    Triggering the IDoc from a workflow event has a disadvantage: if the IDoc has to be repeated for some reason, the
    event cannot be repeated easily. This is due to the nature of a workflow event, which is triggered usually from a
    precedent action.
    Edited by: Afshad Irani on Aug 26, 2010 5:48 PM

  • What is activity in SAP CRM  with examples plz?

    Dear All
       What is activity in SAP CRM  with examples plz?
    Thanks
    CRM Newbee

    Activities are explained in CR010 & CR300. It is a transaction type used to record sales activities e.g. telephone call, email or customer visit or a follow up call, request to fill up a questionnaire or request to set the status to complete etc. in customer/partner engagement lifecycle. This has mainly information like: Activity type partner, texts & dates. However it is an order document like opportunity, sales order etc. & extra information can be added by including customer set types like we do in opportunity, quotation, sales order, conttract etc.
    Activities are a central part of SAP CRM & used across application e.g. Interaction Center, Sales, Marketing etc.
    I hope this should be sufficient & helpful.
    If you need to understand more about basic concept of Activities please see the dropdown list for Activity types..this will give you a good idea as to what are the kinds of business transactions which can be activities.
    Regarding Quotation thing...Quotation is not an activity but 'Create Quotation' or 'Create Quotation as follow up to a lead or opportunity' can be an activity.
    Thanks,
    Vivek

  • Clarification regarding burden schedule,cost base,cost type with example

    Hi,
    can you please explain burden schedule,cost base,cost type ,burden cost code with example. how its taking part with oracle costing.

    Hi
    You might want to review Oracle Projects Costing User Guide.
    Chapter 3 there has a good overview, explanations and examples
    Dina

Maybe you are looking for