Parameter to set the negative sign as prefix

Hi...
     Can anybody tell me if there is any parameter setting to set the negative sign '-' as a prefix in any value??
like generally in abap the negative sign is diaplyed like this 12245- and i need it to be set as -122344..
is there any parameter to set it like this...w/o any programmimg??

Hi Slesha
Use this FM : CLOI_PUT_SIGN_IN_FRONT
DATA: LV_VALUE(6) TYPE C VALUE '12345-'.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
CHANGING
value = LV_VALUE.
WRITE: / LV_VALUE.
HOPE THIS MAY HELP YOU OUT

Similar Messages

  • 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

  • How can I set the default sign in the mail accounts? thank you

    How can I set the default sign in the mail accounts? thank you

    From the Mail menu bar, select
    Mail ▹ Preferences ▹ Signatures
    Drag the signature to each of the desired accounts in the list on the left. If you want it to be the default signature added to all messages sent from that account, select the account, and then select from the Choose Signature menu at the bottom of the dialog.

  • Omitting the negative sign in SAP scripts

    Hi All,
    I have a requirement to print the quantity without the negative sign.
    I have used (S) , &symbol(S)& to compress the sign but that seems to be not working.

    Hi Kiran,
    To Omit the leading sign for the field the syntax &symbol(S)&
    The S option can be used to ensure that the value is formatted without sign
    Regards,
    Sravanthi

  • How to hide the negative sign while displayed in ALV

    Hi,
    I am having a field for 'Price' for which i need the negative sign to do the sum (i.e. futher calculation) but i dont want to display the negative sign which is with 'Price' field in the output screen.
    I tried with the attribute no_sign = 'X' in the field catalogue,but still the negative sign was getting displayed in the output.
    Please help me to not to display the sign in the output.
    Thanks in Advanced.
    Regards,
    Darshana

    Hi Darshana,
    Before displaying the ALV , check what is the value of that particulat field (in a loop ) and if it is less than 0 , make it positive.
    CALACULATION part
    LOOP AT itab into wa.
      IF wa-val1 < 0 .
        wa-val1 = wa-val1 * -1 .
        MODIFY itab from wa INDEX sy-tabix .
      ENDIF.
    ENDLOOP.
    Then build the field catalogue and finally display the ALV .
    Thanks

  • How to remove the negative sign in universe designer?

    hi all,
    have used BEX query designer first to create the query, for the key figures, i have choose 'reverse sign' option and in the BEX analyzer report, it showing correctly with the figure having 'reverse sign'.
    however, the 'reverse sign' was not being carried over to universe designer when i tried to create a universe from the BEX query created earlier on. how do i find the option to 'reverse sign' in universe designer for the key figures?
    pls help.
    thank you.

    Hi,
    i tried creating  new 'measure' object with function 'sum', in the select statement, how should add in the multiply by -1?
    i tried typing this -> @Select(Marginal Profit\Marginal Profit) x -1 in the Select box but it failed during the parse part.
    FYI, the 'marignal pofit' above is the original 'measure' object that i want to have its negative sign reversed.
    pls help.thanks.

  • My Ipad kept telling me that my apple ID is disable, I have re-set the password, sign off and sign by on, and its still there, Please Help!

    Both my iphone and ipad are telling me that my apple ID is disable on the device, and I have already reset the password, sign out the apple id on the device, and sign back on, but I am still unable to update any of my app, because it is still saying that my apple ID is disabled on my devices, please help!

    You have to contact Support
    http://www.apple.com/support/itunes/contact/

  • 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.

  • Negative sign to change to prefix

    dear gurus
    please let me know how to change the negative sign to prefix in alv report. ( i.e transcode GRR2=>formating =>report layout => language dependent => debit/credit sign [+/-] ).
    Regards
    Vijayendran S

    hi,
    You can use <b>edit_mask</b> to serve your purpose.
    You can specify the formatting template as follows:
    'V'only with fields of type P or I:
    output of leading sign
    wa_fieldcat-edit_mask = 'V______'.
    Note:
    1)If the leading sign is to be output with a field of type P or I, you must specify the wildcard character V at the desired place. If this character does not appear in the template, no leading sign will be output if the value of f is negative.
    2)When formatting a field of type P with decimal places, the value is not aligned with a character in the template representing the decimal point (either a period or a comma). If you want to have this character in the output, you must insert it in the correct position in the template and define the formatting from the right. If there is no character for the decimal point in the template, no such character is output.
    Regards,
    Sailaja.

  • How to display NEGATIVE sign on the left side of a number in SMARTFORMS

    Hi,
         In smartforms I'm trying to print some negative values, but the negative sign is displayed on the right hand side of the number.
    How can I display the '-' sign on the left hand side of a number. I tried the logic &value(<), it works well in sap scripts. Why is it not working in smartforms ?
    Eg :   I'm getting  the output  as  126.75 -
             I want :  - 126.75

    see this wiki which gives details for restrictions of formatting options (I guess you didn't declare the variable correctly, i.e. with the right data element): http://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript#SAPscript-WhatarethevarioustextformattingoptionsinSAPscript%3F

  • Negative sign for DMBTR field in ALV output

    Hi Experts,
    Before posting I have searched for more than 3 hours in the forums to get a solution for this.
    I did not get any solution so I am posting this problem which I need to resolve.
    I have to display the DMBTR field in ALV output for which a grand total will have to be displayed.
    Here for all the values in DMBTR which are negative are getting displayed as '-        6673.56','-       289956.23' as I am using the edit mask 'V_____________.__'.
    I have to get the value shown as '-6673.56', '-289956.23'.
    I tried to use convert this DMBTR to String and have successfully displayed the negative sign correctly in front of the value but I am not getting the totals which I need to have
    PLease check and suggest for a solution.
    Regards
    Kishore

    Hi,
      If this is the case, then you can use character field to display the sign on the left. Sum up the total and use the event end of list to display the same. Remember to set the TECH and NO_OUT in the field catalog.
    Hope this helps.
    Regards,
    Siva

  • Printing value fields with negative sign??

    Hello Experts,
    I have developed a interface, which writes the invoice data to application server/unix, this is a notepad. My specifications are as below,
    MWSK1(2)   TaxCode                         65     2     KONV-MWSK1     
    KWERT(13)  Condition Value                  67     13   KONV-KWERT     
    KSTEU(1)  Condition Control                80     1     KONV-KSTE
    I have to print KWERT value from 67th position until 13 positions, meaning until 80 positions, fine. My code is as below,
      MOVE: wa_invoice_price-mwsk1  TO unix_file+64(2).
      WRITE: wa_invoice_price-kwert    TO unix_file+66(13) RIGHT-JUSTIFIED.
      MOVE:  wa_invoice_price-ksteu    TO unix_file+79(1),
    So, it printing like below (pls. note 0.04 minus value in right bottom corner)
    P26701ZCG620101006C          100.00         0.00USD  1    UGL            0.00A A 9
    P60001ZF3520101006C          100.00         0.00USD  1    UGLG          0.04-H B 9
    But, business want to have like below (pls. note the DIFFERENCE for 0.04 minus value in right bottom corner),
    P26701ZCG620101006C         100.00        0.00USD  1    UGL               0.00   A A 9
    P60001ZF3520101006C         100.00         0.00USD  1    UGLG             0.04 - H B 9
    meaning, the 13th position should be negative sign (if at all any value does have a negative sign, else its normal)....so, the negative sign should sit on 13th postion. As am using WRITE statement with RIGHT JUSTIFIED am facing thisissue!! as u know we can not send a 'P' type value to unix/apps server, pls. let me know how to get it done?
    Thank you

    why can't the user live with a leading sign, like '-   0.04'?  If possible, do
    shift <fieldname> circular up to '-'.
    Or, if value is less than zero, set another variable to '-', else set to space, and multiply value with '-1', like:
    if <field> < 0.
       lv_sign = '-'.                " neagtive value
      <field> = <field> * '-1'.  "reverse the sign
    else.
    lv_sign = space.          "positive value
    endif.
    then, adjust your field length and insert a sign column or simply add a column for the sign....

  • Negative Sign displaying as '/' in alv

    HI,
    I am using ALV Display, the field has a negative value in internal table but while displaying the negative sign is converted to '/' sign.
    Can you plz tell me how to correct the same?
    Regards,
    Ashu Arora

    Dear Ashu Arora,
    Method SET_SIGN ofClass CL_SALV_COLUMN is used to set the sign. Method HAS_SIGN is used to check if it is displayed in the output.
    Hope this will help.
    Regards,
    Naveen.

  • Move negative sign (minus) to left side of value in gui_download

    Hi,
    While downloading data using gui_download I want to bring the negative sign to the left side of the value. Is this possible?
    Regrads,
    Madhu

    Hi,
    Use FM
    CALL FUNCTION  'CLOI_PUT_SIGN_IN_FRONT'
    Regards.
    Eshwar.

  • Negative sign display for CURR field in ALV grid report

    I have a field BETRG defined as CURR field of length 15, decimal places 2. The value may be negative or positive. In case of negative values I am using EDIT_MSK option in the field catalog to bring the negative sign to the left of the value as shown below.
    Quote
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'LT_FINAL'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = fieldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    LOOP AT fieldcat.
        CASE fieldcat-fieldname.
            WHEN 'BETRG'.
            fieldcat-ctabname = ' '.
            fieldcat-cfieldname = ' '.
            fieldcat-edit_mask = 'RRV_______________.__'.
        ENDCASE.
        MODIFY fieldcat.
      ENDLOOP.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active    = 'X'
          i_callback_program = sy-repid
          i_grid_title       = 'ABCD'
          is_layout          = gs_layout
          it_fieldcat        = fieldcat[]
          i_save             = 'A'
          is_variant         = gs_save
          it_events          = gs_events
        TABLES
          t_outtab           = lt_final
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    Unquote
    On displaying the report using 'REUSE_ALV_GRID_DISPLAY' as shown above, when the value of BETRG is a smaller number like say 624, then the ALV output appears as '-            624.00' instead of '-624.00'.
    Is there any way that I can remove the space in between the negative sign and the number before displaying the ALV output using 'REUSE_ALV_GRID_DISPLAY'?

    Hi Deepak,
    I tried this and found that this doesn't work in case of currency field. Once you move back the char field (with negative sign to the left and condensed)  to the currency field, the negative sign again moves back to the right.
    I think that the only way a negative sign can be brought to the left of the currenct field is by using edit_mask of field catalog as I have shown above.
    Regards,
    Shayeree.

Maybe you are looking for

  • Adobe Reader 8 and Vista

    Can someone help me figure this out? I am using Reader 8.1 on a vista pc, and my downloads of music are showing as a pdf through my file sharing program. Therefore I cannot play or burn them, as they dl as a read only file. I cannot uninstall reader

  • "back" button does not work correctly in Firefox 4. I have downgraded because of this.

    Our intranet has a page (1) from which user generates a list of links to other items (page2). Follow one of these links to page (3). Press "back" - returns to page (1) not page (2). Works ok in Firefox 3.6.17.

  • Printing to paper larger than A3

    I am using Mac OS X Yosemite and latest version of Aperture printing to a 13 inch wide roll fo canvas on a Canon Pixma Pro 100 printer.  I set the paper size to 27 inches by 13 inches in Aperture and the image size to 11.75 x 25.75 inches in Aperture

  • Need some more scripting help

    [I'll be posting this over on the Google Group forum too.] File is here: https://acrobat.com/#d=m7zuQYiUoFrtz5isD7rErQ Form is a series of tables that can expand and contract their respective rows by clicking a button in the header - tables start out

  • Daemon error with Intego NetBarrier X3

    When trying to launch NetBarrier I get message window with the following: "Waiting for Max OS X initialization to complete..." After some time, an error message appears as follows: "A fatal error occurred. The NetBarrier daemon is not running. It sho