Transferring the negative sign from Right to Left for a currency field.

Hi All,
I am trying to transfer the negative sign in a currency field from right to left but in doing that i am not getting the comma seperators of the currency field.
For eg : If the value is 12,345,678.00- then after converting it i am getting it as
-12345678.00 and i am loosing the commas.
I am trying to transfer the negative sign by first converting the currency field into character field.
Kindly help for the same.
Thanks,
Sharadendu

Hi,
Use FM CLOI_PUT_SIGN_IN_FRONT.
Try this code as well
data: var(10),
length type i.
var = '300-'.
write var.
length = strlen( var ).
length = length - 1.
replace first occurrence of '-' in var+length(1) with ''.
concatenate '-' var into var.
write:/ var.
Regards,
Satish
Message was edited by:
        Satish Panakala

Similar Messages

  • How to shift Negative sign from Right to left

    Hi friends,
    please tell me How to shift Negative sign from Right to left for quan data type i am getting on right side but i want to display it on left exactly preceding my output number display.

    hi yogesh
    check this function module..
    <u><i><b>CLOI_PUT_SIGN_IN_FRONT</b></i></u>
    this will move the negative sign from the left hand side of a number, to the right hand side of the number. Note that The result will be left justified (like all character fields), not right justifed as numbers normally are.
    chck this example..
    data: a1 type i value 56 ,
    a2 type i value 60,
    res type i.
    res = a1 - a2.
    data: res1(10).
    res1 = res.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
    CHANGING
    VALUE = res1
    write res1.
    I<u><i><b>MPORTANT</b></i></u>
    You can use this FM CLOI_PUT_SIGN_IN_FRONT.
    But you need to declare the amount field as char.
    Or you can code like this
    data int type i.
    data char(10).
    int = -4.
    int = int * -1.
    write int to char.
    concatenate '-' char into char.
    reward if useful..
    Message was edited by:
            navjot sharma

  • Can we remove the negative sign from amounts.

    Hi guys,
    When we run F110 , SAP gives us the list of all payments.
    The payments wil be like 7000 - . There will be a negative symbol in the output generated in the layout.
    Is it possible to remove the - sign from the layout?
    Thanks a lot in advance..
    Regards,
    Srikanth.

    Hi
    SAP will understand the Dr and Cr on the bases of signs, that mewans all -Ve sign refers to credit. you can not remove this sign. however you can remove this sign once you export the same to excel and from with the help of CNTRL+FIND you can remove in the excel sheet.

  • Shifting -ve sign from right side of a value to left side in an alv report

    HI GURUS,
    i'm doing an alv report which displays grand totals of numeric fields as well.
    tab-othercost = itab-netwr - itab-wavwr - itab-kzwi2 - itab-kzwi5.
    when othercost value is -ve, the -ve sign is cuming right to the value.
    i'm using fm 'CLOI_PUT_SIGN_IN_FRONT' and shifting the -ve sign frm right to left of value.
    L_FIELDCAT-FIELDNAME = 'OTHERCOST'.
      L_FIELDCAT-TABNAME = 'TAB'.
      L_FIELDCAT-SELTEXT_M = 'OTHER COST'.
      L_FIELDCAT-COL_POS = 9.
      L_FIELDCAT-DO_SUM = 'X'.
      L_FIELDCAT-DATATYPE = 'CURR'.
      APPEND L_FIELDCAT TO L_FIELDCAT.
      CLEAR L_FIELDCAT.
    but in the grandtotal value i'm getting -ve sign in the right side of value.
    plz let me wht to do to change the sign in grnadtotal value as well...

    Hi,
    do all the calculations in a currency variable...and then finally move it to the character variable..
    Also try commenting this line.
    *L_FIELDCAT-DATATYPE = 'CURR'. "Commented
    Ex..
    DATA: v_netwr TYPE netwr.
    DATA: v_netwr_c TYPE char20.
    v_netwr = 100 - 200.
    WRITE: v_netwr TO v_netwr_c CURRENCY 'USD'.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value = v_netwr_c.
    WRITE: / v_netwr_c.
    Thanks
    Naren

  • I need help for Arabic Typing in Pages and PhotoShop and how can I change the Typing Direction to Be from right to left

    Hi there
    Accualy I have 2 problems with Pages
    1- How can I get more Arabic Fonts with More Decorated style
    2- The typing in Arabic should be from right to left and in Pages it's Happining but the typin marker is not doing this so its hard to fix any mistakes in the middel of the paragraph.
           - how to change the alignment from left to right (Ctrl + Shift in MO Word) to do the hall text from right to left not only the paragraph Icon
    I think this will afect the other application Im using If some one help me with it.

    "Many" is an exageration, you can count R to L languages on one hand.
    Mostly they are used in countries which try not to pay for their software, and seem to have a pretty shoddy printing industry, so not much incentive for developers.
    However Arabic is a major language and Apple should fix the problem.
    As Tom suggests try Mellel, which is the best solution on the Mac.
    Adobe has ME versions of both Indesign and Photoshop, for which you pay extra. They mostly work well.
    MsWord for Windows (not the Mac) does reasonably well, but I have not tried its DTP features with Arabic so can't vouch for how solid they are in Word.
    Peter

  • My documents are written in Arabic language which should be read from right to left, so how can I create a flipbook with flipping pages from right to left?

    We want to make it flipping like Arabic books, from the end to the begin, or from right to left. Is it possible?

    I don't think so.   You can ask Apple to add this feature
    http://www.apple.com/feedback/ibooks-author.html
    Have you actually been composing Arabic in iBooks Author?  It has various bugs with RTL scripts that could make that difficult:
    http://m10lmac.blogspot.com/2012/01/new-ibook-author-app-has-same-rtl-bugs.html

  • I can't click below the toolbar .half inch to 3inch from right to left. all words or letters are not working. please help to resolve this problem. thanks!

    Everytime I open firefox, all words or letters below the toolbar half inch to 3 inch from right to left are not clickable(not working). but they are working or clickable on google crhome or internet explorer. please help to resolve this problem. thanks!

    The '''''Yahoo! Toolbar''''' and the '''''Babylon''''' extension have been reported to cause that problem. They seem to invisibly extend downward over the top of the web page display area. Disable or uninstall those add-ons.
    *See --> http://support.mozilla.com/en-US/kb/Uninstalling+add-ons
    *See --> http://support.mozilla.com/en-US/kb/Cannot%20uninstall%20an%20add-on
    *See --> http://kb.mozillazine.org/Uninstalling_toolbars
    *See --> https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • When I write in hebrew from right to left the periods/quotation marks/question marks at end of sentences jump to the beginning of the sentence. help

    I cannot seem to format a message correctly when I write in hebrew from right to left
    even if I press left margin and the message starts from the left side, all question marks, and end of sentences (periods, etc) jump to the front of the sentence and quotation marks or separation marks (such as dashes) split up the lines and jump words to the front of the sentence.
    how can I change the formatting to solve this so the recipient receives a properly formatted email?

    are you using in bidi add-on?
    https://addons.mozilla.org/en-US/thunderbird/addon/bidi-mail-ui/

  • How to adjust the form design in oracle Jdeveloper 11g from right to left ?

    Dear All,
    I'm new in Oracle ADF , and i want to adjust the form layout to be from right to left alignment in the design .
    so when i put for example text input will be in the right side .

    Thanks Mr.Frank for your replay
    but i don't mean the right alignment for input text .
    I'm working for Arabic interface project , and i changed the language from the control panel and it works fine in the run time for messages and directions from right to left
    but in design it not good it from left to right and want the design form to be from right to left
    Notes : i used trinidad-config and i changed the property <right-to-left>true</right-to-left>
    but i did't work

  • Hi guys. Just a quick question. My wife has a Mac Book Pro and when she is browsing the web she can use a two fingered gesture to go back to her previous page (by swiping from right to left). Is there any way to set that up on my iPad Mini. Many thanks.

    Hi guys. Just a quick question. My wife has a Mac Book Pro and when she is browsing the web she can use a two fingered gesture to go back to her previous page (by swiping from right to left). Is there any way to set that up on my iPad Mini. Many thanks.

    Not in the Safari browser she can't. That is not supported on the iPad. There are other mobile browsers that do have that functionality - one is iCab Mobile.
    https://itunes.apple.com/us/app/icab-mobile-web-browser/id308111628?mt=8

  • Execution from right to left : a=b=c;

    Help!
    I am using a tutorial to study for the certification exam.
    Unfortunately, I do not understand the answer of a very simple question.
    Can you give me a hand on this one?
    ************* This is the Question of the tutorial ************************************
    After the execution of the code-fragment below, what will be the values of i and a?
    1.     public class CalcMe {
    2.     public static void main(String[] args) {
    3.     int [] b = {3,7};
    4.     int i = 2, a = 4;
    5.     b[i] = i = 0;
    6.     a += b;
    7.     }
    8.     }
    Answer 1 i: 0 a: 11
    Answer 2 i: 0 a: 4
    Answer 3 i: 3 a: 4
    Answer 4 An exception is thrown
    Answer 5 None of the above
    ************* This is the Answer to the Question of the tutorial ************************************
    After the execution of the code-fragment below, what will be the values of i and a?
    1. i: 0 a: 11
    2. i: 0 a: 4
    3. i: 3 a: 4
    4. An exception is thrown
    5. None of the above
    Answer 4 is correct, an ArrayIndexOutOfBoundsException is thrown at line 5. The value of i
    evaluated from the right hand side to the left, it is element b[2] that should get a value assigned,
    arrays in Java starts from 0, element 2 is out of scope.
    *************************** This is my answer *********************************************************
    Despite I read the answer (and created and run it) I still do not understand how line 5 is executed because it seems
    that the expression is evaluated from left to right instead of right to left.
    I believe that correct answer should be:
    in line 5. b[i]=i=0 if expression is executed from right to left then
    first i=0 and after that b[0]=0
    which leads to believe that the values for i & a will be : i=0 a=4
    [Copied from Complete Java 2 Certification Study Guide ISBN 0-7821-4077-7 Phillip Heller & Simon Roberts Chapter #2 Operators and Assignments Page 66]
    Given three int varibles a,b,c, the statement a=b=0; is entirely legal. It is executed from right to left,
    so that first 0 is assigned into variable c. After it has been executed, hte expression c=0 takes the value
    that was assigned to the left side - that is 0. Next, the assignment of b takes place, using the value of
    the expression to the right to the equal sign-again, 0. SImilarly, that expression takes the value that was assigned ,
    so finally the variable a is also set to 0.
    I'd appreciate an explanation

    Does this mean that the assignment of indexes in arrays have higher priority than assignment operations?
    in other words,
    b[2]= ...whatever
    will happen before anything else is evaluated in the right side of the expression.
    Is that right?
    Bingo. Section [url
    http://java.sun.com/docs/books/jls/second_edition/html/
    xpressions.doc.html#5295]15.26.1:"If the left-hand operand expression [of a simple
    assignment operator] is an array access expression
    (15.13), then many steps are required:
    # First, the array reference subexpression of the
    left-hand operand array access expression is
    evaluated. If this evaluation completes abruptly, then
    the assignment expression completes abruptly for the
    same reason; the index subexpression (of the left-hand
    operand array access expression) and the right-hand
    operand are not evaluated and no assignment occurs.
    # Otherwise, the index subexpression of the left-hand
    operand array access expression is evaluated. If this
    evaluation completes abruptly, then the assignment
    expression completes abruptly for the same reason and
    the right-hand operand is not evaluated and no
    assignment occurs.
    # Otherwise, the right-hand operand is evaluated. If
    this evaluation completes abruptly, then the
    assignment expression completes abruptly for the same
    reason and no assignment occurs."
    It then goes on to detail null checks on the array
    reference, ArrayIndexOutOfBoundsException checks, etc.

  • Move an animator object from right to left

    How do I move an animator object from right to left?  I tried using the value with a minus sign in front of it. (i.e. -(xcoord) )  Please help.
    Thanks,
    Chris

    After you create the animator, click on it on the panel, you will see a rectangle. You can drag the rectangle to bigger or smaller. The graphic will be moving inside of this rectangle. In this rectangle, bottom left corner is x0 y0.  Top right cornet is x100, y100.
    Ryan Shi
    National Instruments
    Attachments:
    process1.zip ‏1 KB

  • Copying the negative value from 1 base entity to another base entity

    I am trying to copy the negative value from 1 entity to another base entity in rules.
    I am not sure if this can be done
    Example Paris has netinc of 100 dollars I want the other entity ParisNeg to receive the negative value or netinc -100
         If pov_scenario = "Actual" then
              'If pov_entity = "ParisNeg" Then
              If pov_year > "2012" Then
                   If pov_Value = "<Entity Currency>" or pov_Value = "<Entity Curr Adjs>" Then
                        For Each Acc In HS.Account.List("","(Base)")
         HS.EXP "E#Paris" ="E#ParisNeg"
         End If 'default_currency
         End If 'Year
         'End If 'Entity
    End If 'pov_Scenario

    This might work:
    If pov_scenario = "Actual" then
    If pov_year > "2012" Then
    If pov_Value = "<Entity Currency>" or pov_Value = "<Entity Curr Adjs>" Then
    If right(pov_entity, 3) = "Neg" Then
    HS.EXP "A#ALL = -E#" & Left(pov_entity, Len(pov_entity)-3) & ".A#ALL"
    End If 'pov_entity
    End If 'default_currency
    End If 'Year
    End If 'pov_Scenario
    *Did not test this.  You might need a member list or loop to roll through the accounts instead of all.  Another thing to consider would be changing the consolidation percent to -100% or something.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Please, I need help in this,How to make a tree control appear from right to left ??

    i working on Arabic project in which we use a tree control and i  want it to display its branches from right to left .
    i tried to rotate it but it doesn't work because the disclosure triangle still appear on the left .
    i ask if there is any thing to mirror the tree control ,and ask if this mirroing will work or not?

    You'll need to modify the layout logic of your renderer.
    Here's a simple example that extends the default tree renderer and overrides the updateDisplayList method(). It will probably need more work. Set textAlign="right" on your Tree control when you use this renderer. You'll also need to supply a disclosure icon that points in the opposite direction.
    package
        import mx.controls.treeClasses.TreeItemRenderer;
        import mx.controls.treeClasses.TreeListData;
        public class RightToLeftTreeItemRenderer extends TreeItemRenderer
            override protected function updateDisplayList(unscaledWidth:Number,
                                                      unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                var startx : Number = data ? TreeListData( listData ).indent : 0;
                startx = unscaledWidth - startx;
                if ( disclosureIcon )
                    disclosureIcon.x = startx - disclosureIcon.width;
                    startx = disclosureIcon.x;
                if ( icon )
                    icon.x = startx - icon.width;
                if ( label )
                    label.x = 0;

  • Does the iBooks Author support Right-to-Left languages?

    Hi,
    I wish to know if the iBooks Author support languages which are written from Right to Left, such as Arab, and Hebrew.
    Moreover, can it show those foreign letters?
    Does it look okay, or unorganized?
    And another small thing - can you upload a textbook, written by yourself, to your iPad without having a developer account? 

    Alonreg wrote:
    Moreover, can it show those foreign letters?
    Does it look okay, or unorganized?
    iBooks Author can certainly display RTL scripts, but it has various bugs which make it unsuitable for composing them for many users.  There is no setting for text direction and cursor operation is broken, making editing extremely difficult.  Copy/paste may work sometimes, but iBooks has been reported to misplace characters and have other problems.
    https://discussions.apple.com/thread/3718964

Maybe you are looking for