Minus sign infront of number

Hi,
  I need the negative sign in front of a number of data type p.
i tried with this function module
'CLOI_PUT_SIGN_IN_FRONT'
  But it supports only char data type.
  I want the final answer in packed data type only because iam using the statement:
  write : ( p datatype field) currency  'JPY'.
above statement works only for p datatypes.
Please suggest me any method which satisfies my both requirement.

hi,
Check out in these ways .... after converting it in to character ..
data: string type string value '1100.00-'.
data: d type i.
d = strlen( string ).
d = d - 1.
SHIFT string BY d PLACES CIRCULAR.
write:/ string.
or
DATA: TEXT1(1) TYPE C,
VALUE(5) type c.
value = '90-'.
SEARCH VALUE FOR '-'.
IF SY-SUBRC = 0 AND SY-FDPOS 0.
SPLIT VALUE AT '-' INTO VALUE TEXT1.
CONDENSE VALUE.
CONCATENATE '-' VALUE INTO VALUE.
ELSE.
CONDENSE VALUE.
ENDIF.

Similar Messages

  • Concatenating '-' sign to an number field in bw start routine

    Hi Friends,
    is there any chance to add a minus sign infront of the quantity field in the start routine.
    if anyone have ideas please let me know.
    Regards,
    Ala.

    Ala,
    the code should work. don't assign length for type i.
    data: qty1 type i,
    qty2 type i,
    quantity type i,
    goodsreceipt(1) type c.
    if goodsreceipt = 'S'.
    qty1 = quantity.
    qty2 = qty1 * -1.
    quantity = qty2.
    endif.
    write qty2.
    Message was edited by: ravi raj
    Message was edited by: ravi raj

  • Regarding minus sign in scripts

    Hi Friends,
    This is very very urgent.. plz plz help..
    I want to put minus symbol infront of the vaue. but when multiply it with -1 its giving the minus symbol after the value.
    i need for ex: -1234.
    when i am trying to concatanate with minus, its saying concatenate is not possible with type P fields.
    but i need this in type P field only.
    Regards,
    venkata reddy.

    Leading Sign to the Left
    The leading sign is normally displayed to the right of a numeric value, except in the case of a floating point number. This option enables you to specify that the leading sign should be placed to the left of the number.
    Syntax
    &symbol(<)&
    &ITCDP-TDULPOS& -> 100.00-
    &ITCDP-TDULPOS(<)& -> -100.00
    The SET SIGN LEFT control command specifies that all subsequent symbols with a numeric value should have a left-justified leading sign. If you use this control command, you must no longer repeat the < option for each individual symbol.

  • Minus Sign in front

    Hello all,
    I have a requirement where in I need to bring the minus sign in front for the amount field in ALV Grid Display.
    I used the FM CLOI_PUT_SIGN_IN_FRONT, but after I pass back the values, the sign gets set at the end. Moreover, I cannot create a character filed because the business might want to do sum on it.
    Please advice.
    Regards,
    Salil
    P.S. the below piece of code
    DATA : gv_bill_rev  TYPE string,
             gv_balance   TYPE string.
      LOOP AT gt_master INTO gs_master.
        gv_bill_rev = gs_master-bill_rev.
        gv_balance  = gs_master-balance.
        CLEAR : gs_master-bill_rev,gs_master-balance.
        CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
          CHANGING
            value = gv_bill_rev.
        CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
          CHANGING
            value = gv_balance.
        MOVE : gv_bill_rev TO gs_master-bill_rev,
               gv_balance  TO gs_master-balance.
        MODIFY gt_master FROM gs_master INDEX sy-tabix
                                        TRANSPORTING bill_rev balance.

    You can directly specify an edit mask for output.
    Field EDIT_MASK in the field catalog is a 60 character field in which you can specify an edit mask.
    fieldcat-edit_mask = 'V___.__'
    The V at the left indicates that you want the sign to appear at the left.  The _ will be replaced by the values of the number.  Put as many underscores as required.  You may also want to specify commas (,), if desired, for thousand's separators and a period (.) for the decimal point, if needed.
    Alterntively, if an appropriate conversion exit exists to put the sign in front, you can assign the conversion exit in the field catalog table.
    Field CONVEXIT in the field catalog can be used to specify the name of the conversion exit.
    Brian
    Edited by: Brian Sammond on Jan 27, 2009 8:08 PM
    Simplfy example edit mask because forum was displaying it funny

  • '-' minus sign on the left side of the value

    Hi all,
    My requirement is to put the minus sign appearing the amount field
    on the left hand side instead of right as it appears in the database fields.
    Is there any direct functionality for the same instaed of using concatenation .

    use an edit mask
    edit: Didn't read well. Where are you trying to put the sign? a database table? ALV? others?
    TYPE-POOLS: SLIS.
    types: begin of this_Type,
    one type p,
    two type p,
    end of this_Type.
    data itab type table of this_type with header line.
    data: field_cat type sLIS_T_FIELDCAT_ALV,
         wa_fcat like line of field_cat.
    itab-one = '-1'.
    itab-two = '-2'.
    append itab.
    wa_fcat-fieldname = 'ONE'.
    wa_fcat-edit_mask = 'V_______'.
    append wa_fcat to field_cat.
    wa_fcat-fieldname = 'TWO'.
    wa_fcat-edit_mask = 'V_______'.
    append wa_fcat to field_cat.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
    *   I_CALLBACK_PROGRAM             = ' '
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   I_STRUCTURE_NAME               =
    *   IS_LAYOUT                      =
       IT_FIELDCAT                    = field_cat
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = itab
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    IF sy-subrc  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Edited by: Ramiro Escamilla on Jan 8, 2009 11:49 AM

  • When to export a numbers file to csv the minus signs don't work with R

    Friends,
    I have trouble getting the statistic program R to read my exported CSV-files from Numbers.
    The minus sign doesn't work, R reads it as a factoric input rather than numeric.
    Does anyone have a tip how to reformat this?
    Jocke

    Wayne, actually, I'm not sure but I think that factoric - or factorial is the denomination that R uses to say that somthing is rather a text than a numeric number - I'm pretty new to R.
    But, anyway, we solved the problem but in a lillte bit of an awkward way.
    The problem is that the minus sugns in numbers is percieved as dashes in R
    (http://www.R-project.org, a free-ware statistical analysis program)
    So where there is a numeric input with a minus sign R thinks it is a letter rather than a number.
    We solved it by exporting the numbers file to CSV, opened it in text editor, copied the suspisios minus sign and pasted it into the search field to find all dashes/minus sign that didn't work and replaced them with a minus sign. After this operation, nothing different could be seen in the text but R saw the difference.
    So this makes it difficult to explain by posting a screenshot - it looks the same but it isn't.
    The funny thing is that the dashes that numbers use when to express a date are percieved as minus signs by R.
    Can anyone understand what I tried to explain? And if so, is there a simpler way to do this? We have a lot of minus signs to export to R.....
    best regard
    Joachim

  • HFM 9.3 - FR Studio - can't format negative numbers with minus sign prefix?

    How can negative numbers on an account balance report be made to appear with a leading minus sign??
    This is a necessary requirement for generating an export file for loading to our new Tax software, but does not appear to be a format option.

    Have you tried going into Format Cells - Number - Negative Number Symbols - and typing a minus sign in the prefix box?

  • - minus signs appearing in Query

    Hi
    Certain key figures get minus signs in front of them in one of our queries. When the data is browsed in the Infocube / ODS, there is no minus sign.
    We have checked the +/- symbol in 'sign change' for the key figures in Bex but no matter what setting I choose, I still get the minus sign displayed.
    Anyone have any ideas?
    Thanks
    Conor

    Hi,
    edit the query properties. Goto Tab Page: Value Display.
    Display of +/- Signs
    Here you specify how the minus sign is displayed. The following display options are available for negative values:
    &#9679; Before the Number -123.45: The minus sign is positioned before the value (default setting).
    &#9679; After the Number 123.45-: The minus sign is positioned after the value.
    &#9679; In Parentheses (123.45): Negative values are displayed in parentheses.
    http://help.sap.com/saphelp_nw70/helpdata/EN/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
    Hope this helps.
    Regards
    Andreas

  • How to convert trailing minus sign into the leading minus sign

    Hi
    Can any plz tell me How to convert trailing minus sign into the leading minus sign? I mean in PI the amount filed shows like 150.00- i want to convert that into -150.00.
    Thanks
    Govinda

    Hi Shabarish,
    The code works but what if the input is something like [   10.000-] i.e. with some spaces before 10.000- and the output as per your code comes as [-     10.000]. How do we tackle such cases if there is inconsistency in data i.e. some values come as [    10.000-] i.e. spaces before the number and some values as [12.000-].
    The output of this will come as
    [-    10.000]
    [-12.000]
    How to make it as
    [-10.000]
    [-12.000]
    Regards,
    Shaibayan

  • Can't enter minus sign in Google Docs spreadsheet

    In a Google Docs spreadsheet, I can't enter a minus sign (hyphen) in a cell until I've typed in a number, then I can go back and enter the minus sign. I think this started with Firefox 15.0, and I have replicated it on another Mac, both running OS 10.7.4.

    This is not just Mozilla problem, but same for all browsers. You can use the minus key on the numpad of your keyboard, but not the dash key. Unfortunately, if you are not using full-size keyboard, you can't easily access the numpad minus.
    I have been using this method myself on my laptop: hit any number/letter, then quickly hit backspace and then dash. This for some reason lets the dash key to enter as a minus sign.
    Graendal's way is much better, but still, I don't understand why Google decided not to allow the dash sign to be used as a minus sign.

  • I transferred data from my external hard drive to my restored Mac Book Pro via migration assistant and now my external hard drive in time capsule has red minus signs. How do I get rid of that without getting rid of any of my data?

    I used Migration Assistant to transfer my data from my external hard drive via Time Capsule to my restored Mac Book Pro. When I now go into Time Capsule I there are red minus signs in the corner of all the folders that are contained in my back up. How do I get rid of this and access my previous back-ups?

    Select the drive and Finder > Get info and at the bottom "ignore permissions on this volume"
    You can copy the files, but the ownership on the files still belongs to the other user account, once your done copying, then perform a #6 Reset Users Permissions and that will set all the ownership to that account.
    ..Step by Step to fix your Mac
    Another method is to copy the entire folder, then change it's permissions.

  • I increased my font with zoom for the first time & got it too large. It will not decrease using Control & minus sign.

    I use Firefox 4. Windows XP. I have tremors & must have accidentally clicked on something that made it open up with weird colors like it was in safe mode. It was in 8-bit so put it back on 32-bit and 1280 x 1024 pixels. Then the font was so small it is almost unreadable. Tried to change it in Firefox Tools, Options, & Content. This did not work. I then used Zoom after checking in Help but got the font so large I can't view my email right. It will not decrease when trying Control with the minus sign as suggested.

    Did you change the resolution in Control Panel > Display ?
    What is the native resolution of your video display (monitor)?

  • HT5137 I updated to ios7.0.2, when I double click on home button it brings up an app list but when I hold my finger on an icon it won't show any with a minus sign, is it no longer necessary to close apps?

    In ios 7.0.2, when you double click the home button it brings up the icons but won't allow you to show them with minus signs, is it no longer necessary to do this?

    jim96776 wrote:
    is it no longer necessary to do this?
    It was never necessary except in certain unusual circumstances.

  • Iphone 5 - can't delete albums in the albums no minus sign when in edit

    I need to free up storage on my Iphone 5...when I am in ALBUMS ...I chose EDIT and NO MINUS sign appears to the left.  I have old photo albums from a blackberry torch and photos from various camers got loaded up I am guessing through Itunes on a PC that no longer works.  I do not want these photos on my phone I have them stored on a external drive.  I love my phone I just don't want all these darn photos taking up so much room.  What the heck can I do??? ahhh! HELP

    You need a 3rd party iPhone file browser such as TouchCopy. See: https://discussions.apple.com/docs/DOC-3141. This covers more than photos, but it should still be useful.
    Note, however, that if the photos were taken with a higher resolution camera than the iPhones the images that you copy back to your computer will be lower quality than the originals, as images in the Photo app are optimized for the iPhone's screen.

  • Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps wit

    Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps with ios7

    Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past.  With the new operating system you also swipe downward to get the search bar to find an app

Maybe you are looking for

  • Plasma TV and iMac query

    Hi guys. I'm the proud new owner of a sixth generation Pioneer 43" Plasma Screen (http://www.pioneeraus.com.au/home_entertainment/plasmadisplaypanel/pdp436hd/inde x.html). I was wondering if there was ANY way in ALL **** to hook my iMac G5 (Rev A) to

  • Datagrid itemRenderer dynamic values

    While working on an application I came across the following problem. I've got a view with a datagrid, where I have several columns. Each column needs 2 values displayed beneath each other in one cell. You make an itemRenderer with 2 labels inside a V

  • To remove check marks from the polist

    i am using 'BAPI_PO_CREATE1' to create a Purchase Order.The purchase order gets created but the problem is that when the purchse order list is displayed the "Goods Reciept" and "GR non-valuated" check boxes int the delivery tab are clicked which is n

  • How  to find tables in Lo that  were extracted from R/3 to BW?

    Hi Experts, pls tell me How  to find tables in Lo that  were extracted from R/3 to BW? Thanks in advance. Regards, Hari Reddy

  • Re: File sync across servers different domains and forests

    I don't see why that would be an issue however I have only ever used it in exchange 2013