How to combine format number and if statement?

Hi,
I'm using XDO 5.6.1 under apps.
My issue is to display a number only if it is not equal to zero.
Otherwise, i need to display it in european mask using format_number function.
I tried all the condition statements (if, choose) and they work perfectly.
<?xdofx:if MAR_SUM=0 then '' else MAR_SUM end if?>
format number works fine too.
format-number(MAR_SUM,"### ###.00", "Euro")
But i did not succeeded to combine if and format number
<?xdofx:if MAR_SUM=0 then '' else format-number(MAR_SUM,"### ###.00", "Euro") end if?>
The result is always a blank field, even MAR_SUM is not nul.
I can not use Word format number bacause it do not work with my mask.
Please help me, .
Thanks.
Pierre.

Thanks a lot Tim,
It helped me a lot. I'll simplify my tags using those tags.
I have another issue concerning cell highlight.
I have two loops in a table and when I insert <?if@row:position() mod 2=1 ?> <xsl:attribute name="background-color" xdofo:ctx="incontext">#DDDDDD</xsl:attribute>, in order to use cells highlight, my subtotals disappear at the end of my loop.
Could I send you a email with an example, (and how to contact you)?
Thank again for your response again.
Regards.
Pierre

Similar Messages

  • I had a second hard drive added to my Mac Pro.  How do I format it and not effect my orginal hard drive?

    I had a second hard drive added to my Mac Pro.  How do I format it and not effect my orginal hard drive?

    Just format it with Disk Utility as mentioned above.  Select the new disk on the list at the left.  Click the erase tab.  Specify Mac OS Extended (Journaled) if not already specified and give the disk a name of your choice.  Then click the erase button.
    That's the simplest way to format a disk with a single partition (volum). If you want to create multiple volume (partitions) then click the Partition tab instead of Erase.  You can then use then specify a number of volumes and size each volume by specifying its size or just dragging the slider in the bootm right of each partition.  Give each a name as before and again Mac OS Extended (Journaled).  Click Apply button to create the partitions.
    Since you appear to be new at this just "play" with the erase and partition settings so you can become comfortable with them.  So long as you have the new disk selected on the left you can't really hurt anything since it's a new disk and no data to loose.  You can always go back and erase it back to a single partition.

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • How to combine Area chart and Line chart?

    Hi,
    I have to display Area chart with the Line chart in one graph.
    How can i do that,
    Please suggest.

    Pretty easy, just add series to your chart
    http://forums.arcgis.com/threads/73636-How-to-combine-line-chart-and-stacked-column-chart
    Dany

  • How to combine both values and subquery in the insert statement

    Hi everybody,
    This is a case of inserting rows into a final results table from a temporary one. Actually, one of the fields is not always given in the temporary table. Thus, when inserting the rows into the final results table, an error message comes up to.
    More clarification:
    final results table(F_RESULT): field1, field2, field3 ( they are also primary keys with not null constraint)
    temporary table(TEMP): field2, filed3
    Is it possible to combine both values and subquery branchs of the insert statement:
    Insert into F_RESULT (field2,field3) select field2,field3 from TEMP;
    Insert into F_RESULT (field1) values (0);
    into only one like this:
    Insert into F_RESULT (field1,field2,field3) values (0, select field2 form Temp, select field3 from Temp);
    Or there is another more effective solution. The main problem for me is the message that doesn't accept the null value. From the data integrity point of view, it is accepted to set field1 to zero.
    Any hints?
    Thanks for your reply.

    That's easy, you can select any value from a table:
    Insert into F_RESULT (field1,field2,field3)
    select 0, field2, field3 from Temp;

  • How to combine Sales orders and Billing

    Can you help?
    I have located extractors 2LIS_13_VDITM and 2LIS_13_VDHDR for Billing. I have located extractors 2LIS_11_VAITM and 2LIS_11_VAHDR for Sales Orders.
    I need to combine the data for these 2 extractors for my reporting requirements.
    My problem is:
    In 2LIS_13_VDITM, we have the Sales Order number and Billing number.
    2LIS_13_VDHDR  has only Billing number.
    2LIS_11_VAITM and 2LIS_11_VAHDR has only the Order number.
    Can you advise how they can be combined so I have a DSO that contains all this data?
    Any help would be appreciated and points assigned accordingly.

    Hi,
    I would suggest you to have a separate data targets for each of them and then combine everything using a MultiProvider.
    Hope this helps.
    PB

  • Dataretrieval in hr abap  (how to combine both pa and om in hr abap)

    Hi Experts?
        My requirement is i wants to retrieve the data from HRP1000 table i.e get the long text from the field sc_text ,for this they have provided me some field values like PLVAR='01'  ,  OTYPE='O'  , OBJID -
    (not given)  ,ENDDA =9999.12.31. and also they have mentioned table PA0001-BUKRS(field).
          how to get objid field?
       Please provide me query ,how to combine Organizational data(hrp1000)  with Personnel administration data(pa0001-bukrs)
    Thanks in advance,
    mohan

    Hi mohan,
    1. Its very impractical,
       especially in SAP HR Tables,
       to directly get data from tables using joins.
    2. In your case,
       first read from infotype 0001
       using direct select statement,
       (or u can use HR_READ_INFOTYPE)
    3. After wards, LOOP / FOR ALL ENTRIES IN
       and then read from the other required tables HRP1000.
    regards,
    amit m.

  • How to put both number and char in values?

    Hi ,
    Cud anyone tell me how can i put both number and char value in one colun. Such as i want to put ..(A121)..in REFNo column . so it includes both number and char .how can i do this?

    Hi,
    If you will ever want to treat the numeric part of refno as a NUMBER, then I suggest you store the values in two separate columns, refno_alpha and refo_num. For example, if "ORDER BY refno" should produce:
    A1
    A1.1
    A2
    A10
    A11
    A100
    A121
    B1then it will be easier to have two columns.
    When necessary, you can always combine the two columns (using "refno_alpha || refno_num"). You can create a function-based index and/or a view with that expression if it helps you.
    Also, as William said, validation is easier if the numbers are separate.

  • How to get PO number and line item in he check item method of MB_MIGO_BADI

    Hi All,
    First time I am using BADI and I am stuck in one issue.
    I am using CHECK_ITEM method of MB_MIGO_BADI.
    While pressing CHECK button MIGO for a GR(wrt to a PO),a warning message has to displayed.This warning message has to displayed according to the line item in the purchase order.
    In the CHECK_ITEM method, how I will get the PO number and the line item imported into that method.?
    Thanks.

    HI  ,
    in Check_item method 
    DATA: ls_extdata TYPE zqsscrap_screen_field .
    LOOP AT gt_extdata INTO ls_extdata .
    endloop.
    Check what you are getting  .
    regards
    Deepak.

  • How to combine a JFormattedTextField and a button in a cell editor

    Outside of a table we have a JFormattedTextField into which the user types an amount. Next to the field is a calculator button. If the user clicks the calculator button, we open a calculator, enable the user to type his calculations, and when he presses OK, we copy the result to the field.
    Now we want the field to be a cell editor and to display the button next to the field (in the table cell). How can we do this? Do I have to make the button a separate column, or can I combine the field and button in 1 column?
    Thanks,
    Eli

    Hi,
    Try like this:
    DATA: BEGIN OF line,
          col1 TYPE i,
          col2 TYPE i,
          END OF line.
    DATA itab LIKE STANDARD TABLE OF line.
    data ch(1) type c.
    PERFORM fill CHANGING itab.
    PERFORM out USING itab.
    FORM fill CHANGING f_itab LIKE itab.
      DATA f_fill LIKE LINE OF f_itab.
      DO 3 TIMES.
        f_fill-col1 = sy-index.
        f_fill-col2 = sy-index ** 2.
        APPEND f_fill TO f_itab.
      ENDDO.
    ENDFORM.                    "FILL
    FORM out USING value(f_itab) LIKE itab.
      DATA f_fill LIKE LINE OF f_itab.
    write ch as checkbox.
      LOOP AT f_itab INTO f_fill.
        WRITE:/ f_fill-col1, f_fill-col2.
      ENDLOOP.
    Regards,
    Bhaskar
    ENDFORM.                    "OUT

  • How to combine a doSubmit and a f?p call ?

    Hello,
    I've got an updateable report with a link column. That column is defined in my SQL query (select '<a href="f?p=&APP_ID.:4:' ||:APP_SESSION || ' ...) . That link is an image.
    When the user click on that image, I'd like to simulate the doSubmit('MyButton') function, but I can't manage to combine the doSubmit and the f?p call.
    If I write <a href=javascript:doSubmit('MyButton');f?p=...
    => it only executes the doSubmit.
    If I write <a href=f?p=.... ;javascript:doSubmit('MyButton');
    =>It only executes the f?p.
    Have you got an idea to combine both f?p and doSubmit ?
    Thanks
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Cyril,
    You can either submit a page, or you can go to another page by clicking on a link. In HTML DB those links start with f?p. Your after-submit computations, validations and processes are only executed if you actually submit a page. If you want to submit a page by clicking on a report link, you need to use some Java Script that submits the page and a branch to specify where to go next, e.g. return to the same page. The following thread contains more detailed information about how to do this, and how to keep track of which column link the user actually clicked on:
    Submit page before launching report link
    Regards,
    Marc

  • How to get equipment number and type for given PM order

    hello all,
    i know the PM order number and corresponding object number (like OR9100000175),
    now using these how do i get equipment number and equipment type..
    do i need to use any function module...
    thanks in advance...

    From VBAK table with order number AUFNR, get notification no - QMNUM.
    From QMIH table with this notification no QMNUM, get equipment no - EQUNR.
    And then from equipment master EQUI, you can get the equipment categeory EQTYP from EQUNR

  • How to calculate circle number and distinguish the two kinds of circle

    Hello everyone,
    Now, there is a problem to find the calculate circle number and distinguish the two kinds of circle in the following picture. You will find that there is two kinds of hole in the following picture, one is blind hole(3 holes), the another is through hole(19 holes).
    That is to say, the first task is to calculate circle number, the second task is to distinguish the two kinds of circle in the following picture.
    Can you give me some advice how to deal with this problem in the NI Vision Development Module or  NI Vision Assistant. 
    Thank you.
    Kindly Regards
    kevin.wang
    Attachments:
    instruction.png ‏106 KB
    Original.png ‏35 KB

    Yes, you are right. The  through holes is overlay by the  the green square point, and tge blind holes is marked by red circle. Please find the original picture and analyzed picture in the attached files.
    Attachments:
    original f.png ‏346 KB
    Analyzed f.png ‏482 KB

  • How to change phone number and service provider

    Assuming you kept the same Blackberry device and changed your number and service provider.
    How one can update this information on Blackberry ID.
    Solved!
    Go to Solution.

    Hello aasalem
    Please refer to this Knowledge Base :
    KB03889 : Changing the service provider or network
    Go through it and let us know if you have any questions.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • How to design sequence number and sub sequence number

    Hi
    I am creating DMEE for bank file, there is sequence number and sub sequence numbers in the file.
    File structure
    Aaa name 0001 tax id amount
    Bbb name 00010001 dnum amt
    Bbb name 00010002
    Bbb name 00010003
    Aaa name 0001 tax id amount
    Bbb name 00020001
    Bbb name 00020002
    Could you please help me on how to design sequence and sub sequence number in DMEE structure.
    Regards,
    Guna

    Hi,
    please find seqence number and sub sequence number in below file structure.
    Aaa name 0001(Seq. num) tax id amount   -------------------------------------header
    Bbb name 0001(Seq.num)0001(sub seq num) dnum amt---------------- item
    Bbb name 0001(Seq.num)0002 (sub seq num) ---------------- item
    Bbb name 0001(Seq. num) 0003(sub seq num) ---------------- item
    Aaa name 0001(Seq. num) tax id amount                  --header
    Bbb name 0002(Seq. num)0001(sub seq num)---------------- item
    Bbb name 0002(Seq. num)0002(sub seq num)---------------- item
    TRL
    Please help me to design sub sequence number and sequnce number again in the item details.
    Best regards,
    Anji

Maybe you are looking for