How to use FM format element in number format model

Dear all,
Could anybody explain what is FM format element for in number format model? I read the documentation, it doesn't show a clear description as it those in Datetime Format Model section.
regards,
Valerie

It works mopre or less the same for numbers as for dates:
SQL> -- generating some numbers:
SQL> with t as (
  2  select level n
  3  from   dual
  4  connect by level <= 10
  5  )
  6  --
  7  -- actual query:
  8  --
  9  select n
10  ,      '*'||to_char(n, '09')||'*' nofm
11  ,      '*'||to_char(n, 'fm09')||'*' fm
12  ,      length(to_char(n, '09')) lnofm
13  ,      length(to_char(n, 'fm09')) lfm
14  from   t;
         N NOFM            FM                   LNOFM        LFM
         1 * 01*           *01*                     3          2
         2 * 02*           *02*                     3          2
         3 * 03*           *03*                     3          2
         4 * 04*           *04*                     3          2
         5 * 05*           *05*                     3          2
         6 * 06*           *06*                     3          2
         7 * 07*           *07*                     3          2
         8 * 08*           *08*                     3          2
         9 * 09*           *09*                     3          2
        10 * 10*           *10*                     3          2
10 rows selected.As you can see, the leading spaces are trimmed.

Similar Messages

  • Can any budy tell me how i use FileDownload UI elements.

    Hi,
    Can any budy tell me how i use FileDownload UI elements.
    I need to Download pdf file to my local drive . If possible please provide me code for that also.
    Regards,
    Gurprit Bhatia

    Klaus,
    If you download from http://www.ilivid.com/ then you get a dmg file with the iLivid application and, oddly enough, VLC.
    I'm not about to open the application on my machine, however!
    To the OP: just download the disk image file, double-click it and it will mount like a disk and drag the iLivid application to your application folder. Do so at your own risk - it just looks fishy to me.
    Clinton

  • How to use Cross Company Code document  number as Reffrence.

    Hi
    Actually user wants to post the same debit credit line items with Editing the amounts which he has posted last month
    So i suggested him to use post refference of the previous month document number.
    Since that is Cross company document number. There is no source to give  in T.Code FBR2. There is a fecility to give only document number of a company code not cross company code.
    Assume that there are 3 company's involved in that document.
    company  X --- 25 line items
    company  Y -- 75 line items
    Company  Z -- 100 line items
    Since he given in header data X Co code it has generated the Cross company code document number 1000X 08 ( which means 1000 is doc.number X is company code 08 is year. This is sap standard cross company code doc number format)
    and individual document number is
    X - 1000
    Y-  2000
    Y-  3000
    If he post with the reffrence of X company only 25 lines will come remaining 175 line he as to post manually.
    If he take Y Doc number  only 75 lines will come
    If he take Z Doc number  only 100 lines will come
    To bring all lines there is no provision to give Cross company Doc number.
    Please advice how to use cross company doc number as refference.
    Tks
    Shivaji

    Hi guru
    This is answered
    Thanks
    shivaji

  • How to use '*' as data Element in the NTE(Edi 850) Segment

    Hi All,
    I am facing a field level error while using '*' in EDI 850 (NTE segment). '*' is also used as Data Element.
    For Eg: NTE*GEN*My Text *goes here
    Here, NTE02 should be My Text *goes here. So, how can I use "*" here without changing anything in the EDI message?
    I have asked this question before
    http://social.msdn.microsoft.com/Forums/en-US/1668e8d8-ee99-4d79-961b-8d26f3a496f8/error-while-using-in-the-nte-edi-850-segment-where-is-also-used-as-data-element?forum=biztalkediandas2
    The answer in the above forum was to ask client modify the EDI message.
    Previously, our client was using a different technology (other than BizTalk) which was working fine with this format. So, they are insisting on this format only.
    Thanks,

    Sorry, the answer is the same.
    It doesn't matter what EDI platform either side is using, the '*' in the field content conflicts with the '*' that is the element delimiter. That is invalid EDI, there is no way around that short of writing a custom EDI parser.
    It's not clear if you're sending or receiving this message.  But again, it's really doesn't matter.
    1. Change the Element Delimiter to something other than '*'.  < or > are not uncommon.
    2. If you are receiving the EDI, create a custom Pipeline Component that "handles" NTE02 either by replacing the '*' with a substitute char or deleting it.
    3. If you are receiving, you could add extra elements to NTE to accommodate extra fields (since that's how the parser will see them).  Then you can join them again in a Map.

  • How to use "&Total physical pages" in the format trigger?

    Hi all:
    How should I to use the system variable "&Physical page number" and "&Total physical pages" in the format
    trigger?
    I can not use these 2 variables in the format trigger directly or i will reveive an error message.
    Thank You!

    It may help you to know how I add JARs
    1. I open my Project (myProject)
    2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
    3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
    3.1 I add the File to my Project
    4. I select File | New -> Classes | Main
    4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
    4.2 I called some of the public methods
    thats it
    Andreas

  • How define a pattern for having a number formatted

    Hello,
    anybody knows how to define a pattern for having an input number formatted in this way:
    150.000.000,88
    I've tried to use the following pattern( pattern="#.#00,00") ...but - of course - It does not work.....
    I'm using Jdeveloper 11.1.1.7
    <af:inputText value="#{pageFlowScope.contractBean.localTot}"
                          label="#{contractBundle.BASE_TOTALE}"
                          columns="12"
                          maximumLength="#{bindings.baseTot.hints.precision}"
                          id="it2"
                          valueChangeListener="#{pageFlowScope.contractBean.baseTotChangeList}"
                          autoSubmit="true"
                          required="true">
                    <f:validator binding="#{bindings.baseTot.validator}"/>
                <af:convertNumber type="number" minFractionDigits="2" maxFractionDigits="2" pattern="#.#00,00"/>
              </af:inputText>  

    Guessing you tried this, but have you tried:
         <af:convertNumber locale="de"  ...
    or
         <af:convertNumber locale="#{requestContext.formattingLocale} ...
    Hope this helps.

  • How to use the same element in different photoshop files?

    It occurs to me often that I use the same element in different photoshop files, a header or footer shown in the example below. So when the footer changes in one document, I need to change this footer in every other single document.
    Is there a possibility to use some kind of template, one single document,  that can be placed in different files , which is still editable afterwards?
    Thanks in advance.
    I'm using Photoshop CS6

    In a single document you can have several pages and these pages may have headers and footers that share smart objects.  If you replace the contents of the an embedded smart object on one page page that is shared on an other page the pages you will see both pages contents are changed. For they share the common object.   It is also possibly to have independent smart object layers. It depends how you create the layers in the single document.
    Example one sharing a smart object hi-light a smart object layer and use menu layer>Duplicate Layer... This will create a second smart object layer that share a common smart object. Each layer has is own associated transform. Do it again and you will have three layers the share a common smart object. So you can use each layer associated transform to position and size the layers contents. Make a picture package for example. When you hi-light any of the three smart layers and you use menu Layer>Smart Objects>Replace Contents... all three layers contents will be replace with the new smart object.  Care must be taken to replace the smart object with an identical size object for only the object is replaced the three associated transform for the three layers are not replaced or changed.
    Example two independent smart objects  hi-light a smart object layer and use menu layer>Smart Objects>New Smart Object via Copy.  This will  create a second smart object layer that has it own embedded smart object copy.  Do it again and you will have three all have independent embedded smart object that are identical.  However they do not have to remain identical.  For example if the first smart object layer was created by using ACR to open a RAW file as a smart object layer the embedded object is a copy of the raw file and its associated RAW conversion settings.  Double clicking on one of the smart object layers and you will see ACR open on its embedded RAW file with the embedded RAW conversion setting.  Changing these settings will update the layer smart object content with new ACR setting and pixel when you click OK in ACR. Repeat for the third and you will find you have three different raw conversions in Photoshop you can mask and blend together to bring out detail.
    I think what your missing is that a smart object contains a copy of the original object.  Changing the original after creating a smart object layer in document will not effect the smart object layer at all. Its independant from the original having a copy of the original. Only changes to the smart object layer and its embedded smart object effect smart object layers.

  • How to use SNRO to create daily number range?

    Dear all,
    I would like to know how to use SNRO to create a daily number range.
    We would like to have the following sequence. The first 8 digits are date and the last 2 digits are number sequence. Each day, the last 2 digits will start from 01 again. i.e. <8-digits date><2-digit sequence>
    For example, today is 22 May 2006,
    2006052201
    2006052202
    2006052203
    Tomorrow will have sequence like this:
    2006052301
    2006052302
    2006052303
    Thanks!

    Thomas,
    I don't there is a automated way of doing as the dates do NOT follow a numbering sequence. What you can do is to create a number range for getting the last two digits every day and manually concatenate the date with the serial number.
    However, as you have to reset the counter every day that might be a issue.
    Regards,
    Ravi

  • How to use the canvas element?

    hi guys,can anyone help on how to use the mx:canvas on the flex mobile project cause they only allow spark components to be used?just want to have a signaturepad using the canvas element..please guys..:(

    Hi All,
    I have  been  able  to  get  the  value  of  a container  element by  using  the  macro  'swc_get_element'   .I  have  used  it  in  the  method  of  my  task   and  saved  the  value  in  a  z-table. For  this  I  have  set  the  'Export' property of that  particular container elemnt .Now  my  problem  is  I  want  a  second  container  element  to  be  stored in  the  database , I  have  set  its  'Export'  property ,  but  inspite  of  that  it  is  not  visible  in  the  task  container.  As  a  result  I  am  not  able  to  access  it  from  inside  my  method  and  unable  to  save  it  in  the  z-table.  So  please  give  me  some  solution.
    Thanks  &  Regards ,
    Samrat Dutta.

  • How to use SQL loader with DBF fixed format record

    Hi everybody!
    My situation is that: I want to use SQL loader with Foxpro DBF format, it similar to case 2 study (Fixed format record) but DBF file has header, how can I tell SQL loader skip header.
    Thank you in advance

    Another option is to apply SQL operators to fields
    LOAD DATA
       INFILE *
       APPEND
    INTO TABLE emp
    FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"' (
       empno,
       ename,
       job,
       mgr,
       hiredate DATE(20) "DD-Month-YYYY",
       sal,
       comm,
       deptno CHAR TERMINATED BY ':',
       projno,
    loadseq "my_seq.nextval")This is a modified control file of Case Study 3 which originally demonstrated the use of the Sequence parameter

  • How to convert amount data element to number data element

    Dear Gurus,
    I have a requirement to get the data by calling BRF+ and then pass them to BAPI 'BAPI_ASSET_ACQUISITION_POST', in the BRF+ export structure, there is a field 'AMOUNT', I bind it to DDIC element 'BF_ANBTR', the type is Number.
    In BRF+, I call another global function to calculate the value, I define a local variant LV_VALUE to get export value from this function, this local variant's type is Amount, now I need to move this local variant value to the export field 'AMOUNT'.
    But BRF+ doesn't allow to convert amount data element to number data element directly, and I find there is no formula function available. Only there is a function 'TO_AMOUNT' to convert number data element to amount data element.
    Please help to get a solution for above solution.
    Thanks.

    Hi,
    within the formula expression within the category "Mathematical functions" you will find the function "TONUMBER". This converts a data element of type currency to a number. According to the help of this function:
    "The following conversion rules apply:
    <Amount>: The number part is returned. The currency unit is omitted."
    This is what you are looking for.
    For the other way round you already mentioned the correct function "TO_AMOUNT"
    BR
    Christian

  • How to use '*' character in element names ?

    Hi,
    I have to use '*' character in element names. But, it throws DOMException. is there a workaround to use such illegal characters ?
    thanks in advance...

    No, there is no work around as such. The '*' character is not a legal character in a tag name (it means zero or more in DTD content specifications).
    http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Name
    What does the star mean? Replace it with something more meaningful. The closest thing to a work around is using "-star-", but then you have to replace dash with "-dash-" and it all gets a bit silly, and won't really add meaning to the tagname.
    Pete

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • Convert sysdate to  a julian date 'YYDDD' format    to a number format

    Hi
    I need to be able to convert sysdate to a julian date 'YYDDD' and update the julian as a number data type. Thanks for your help.

    Hi,
    Use TO_CHAR to get a string representation of a date, such as '110008'.
    Use TO_NUMBER to get a NUMBER represnetation of that string.
    SELECT     TO_NUMBER ( TO_CHAR (SYSDATE, 'YYDDD'))
    FROM     dual
    ;Edited by: Frank Kulash on Jan 8, 2011 1:32 PM
    It looks like you accidentally posted 3 copies of the same question, and then, after you realized the msitake, marked them as "Answered". That's very considerate of you. It would be even better if you changed the subject line of all but one of them to "Duplicate - Sorry!"; the remaining one you can leave as "Unanswered" until it really is.

  • How to use the same element in different Web-Services?

    I have defined a web-services in two WSDL files.
    I want to use the same type in this two services. Because if one service call the other one, it could pass the class it just got. Otherwise, the classes can't be casted.
    Web-Service1:
    public com.package1.State inputValue (com.package1.State state) {
    return state;
    Web-Service2:
    public com.package2.State inputValue (com.package2.State state) {
    return state;
    }And now, If I call from the Service2, the Service1 and put
    Service1.inputValue(com.package2.State state) ;
    I can't do this, can't cast and so on. But I want my tool WSDL2Java, will create the same State.class for two Web-Services, like:
    Web-Service1:
    public com.package3.State inputValue (com.package3.State state) {
    return state;
    Web-Service2:
    public com.package3.State inputValue (com.package3.State state) {
    return state;
    }Is it possible? How to define it in wsdl?
    Thanks in advance.

    You can certainly do this in WSDL, simply put your
    common element in a schema file and "include" it into
    each of your WSDL files. Obviously your element will
    have to use the same namespace in all places.
    I'm not sure whether wsdl2java can cope with
    "include" statements in WSDL. I know plenty of other
    similar tools, e.g. Axis and .Net tools, didn't
    support this however they may have moved on since I
    used them.
    To get around this you have to "manually" include the
    schema in each wsdl for code generation purposes.Thanks for the answer. I did as you said and it works fine.

Maybe you are looking for