-VE Sign in ALV

Hi Abaper,
I have a currency field in ALV I want to display -Ve Sign of that field in starting of the value..how to do that..??
Thanks,
Rajesh

The example I gave is only for integers of course.
Depending on the type and size of your variable, you need to adjust the edit mask, in your case in to would be something like
V________.___
Every "_" means a digit, so check the lenght of the variable to adjust the edit mask

Similar Messages

  • Display totals with currency sign in ALV

    Hi,
    I have to display totals with currency sign in ALV.
    column1      colums2
    10               USD
    20               USD
    30               USD
    40               USD
    100            USD
    Can anybody help on this.
    Regsrds,
    Zak.

    Hi,
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'. "
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    Thanks
    Vikranth

  • Displaying Dollar sign in ALV

    How to add the dollar sign infront of field with data type currency (CURR) ?
    Need to display the amount field in the ALV report.
    Please suggest any solution.
    Thanks,
    Khush
    Edited by: khush123 on Sep 22, 2011 11:49 AM

    Hi ,
    Take  another  character field  .
    Concatenate  currency field value  and  '$' and move to character field  and display  .
    This is Simple  way  .
    regards
    Deepak.

  • How to change the sign in ALV

    Hi in my ALV output the negative numbers are displayed with sign on the right side of the numbers.
    Need your help to get this sign on the left side.

    Hi,
    This is from SDN thread.
    When you define the fieldcatalog..
    Give the rollname..
    Example..
    DATA: S_FIELDCATALOG TYPE slis_fieldcat_alv.
    s_fieldcatalog-col_pos = '2'.
    s_fieldcatalog-fieldname = 'NETPR'.
    s_fieldcatalog-tabname = 'ITAB1'.
    <b>s_fieldcatalog-rollname = 'WERTV6'.</b>
    APPEND s_fieldcatalog to t_fieldcatalog.

  • Currency with Sign in ALV

    Hi,
      How to display left justified sign with currency field in ALV grid (eg:  - 1,055.25)? The refernce filed or field type (data element type) should be currency field.
    Regards,
    Ramesh.

    I don't find a reference to this in my Controls Technology manual.  Personally, I would put the value into a character field, the do shift circular up to '-'.

  • Totals text and currency sign in alv grid

    Hi!
    How to display totals text and currency sign in the totals part of the alv grid??
    Ex.
                  5    6
                  4    9
                  5    2
    Totals: $14 $17

    Hi,
    For Currency :
    https://forums.sdn.sap.com/click.jspa?searchID=11871008&messageID=3564279
    https://forums.sdn.sap.com/click.jspa?searchID=11871008&messageID=1019294
    For Total_text
    Maybe you will find something in examples SALV_OBJECTS.
    it's a package in the systems above 6.4 with new ALV. There are nice examples. Main package is SALV.
    https://forums.sdn.sap.com/click.jspa?searchID=11871273&messageID=3935361
    Regards,
    Shiva Kumar

  • Negative sign in alv grid

    Hello friends,
    I am using a grid alv to show some data, but when a column has negative number, they are shown without the sign (neither in the front, nor in the back), this is the code where I show the column
      clear gt_fieldcat_data.
      gt_fieldcat_data-fieldname = 'ZQTPRC'.
      gt_fieldcat_data-seltext_m = 'QT disponible'.
      gt_fieldcat_data-inttype = 'P'.
      gt_fieldcat_data-outputlen = 18.
      gt_fieldcat_data-decimals_out = '2'.
      append gt_fieldcat_data.
    what can I do so the negative number appear when it is negative. (it can be negative or positive)
    Thanks for ur help !!!
    Javier

    hi,
    pass "<b>-</b>________________" (thats 16 underscroes) to EDIT_MASK of field catalog for the required field.
    Or
    U can copy the fm CLOI_PUT_SIGN_IN_FRONT to CONVERSION_EXIT_SIGN_OUTPUT and activate it. Then in edit mask use this '==SIGN' or u can create one domain and refer the domain to that field. In that domain u set the convertion routine = SIGN
    Thanks
    Mahesh

  • Issue with Minus sign in ALV

    Hi,
    I have a report program where the prices will be getting displayed. In the out put the last four fields of ALV is having values -235.52; -145.25; -457.25; -417.25. In the foreground execution, the output is proper. But in the background(spool), the same output is getting displayed as 235.52;145.25;-457.25;-417.25.
    The first two values 235.52 and 145.25 are getting displayed with out minus sign.
    Note: All the above fields are of same data type.
    What could be the possible issue here? Please provide your valuable inputs.
    Thanks,
    Viswanath A

    Hi, Below is the fieldcatalog code and is common for all 4 fields.
    WHEN 'CPP_FKBTR'.
            wa_fieldcat-col_pos              = 40.
            wa_fieldcat-seltext_l            = 'Commitment for past period'.
            wa_fieldcat-seltext_m            = 'Com past per'.
            wa_fieldcat-reptext_ddic         = 'Commitment past period'.
            wa_fieldcat-ddictxt   = 'L'.
            wa_fieldcat-no_out   = 'X'.
            MODIFY lv_fieldcat FROM wa_fieldcat.
    Thanks

  • Change position of number sign in ALV (2-) into (-2). I will reward points.

    Hello Gurus, i need to change the position of the sign in a ALV list from the back of the number in the front of the number.
    eg. 2- i need it to be -2.
    Is there some way to do this without having to create a new field that is character type. I know the function CLOI_PUT_SIGN_IN_FRONT but it works only if my field is type char.
    Can anyone help ? I will reward points.

    In edit-mask you can force the position of the minus sign :
    USING EDIT MASK mask
    Effect
    Outputs f according to the formatting template mask.
    Without this addition, f is output in the standard format for that particular type or with a format defined in the ABAP Dictionary. The addition allows you to define a different format.
    You can specify the formatting template as follows:
    '_'represents one character of the field f
    or one digit with type P or I
    'V'only with fields of type P or I:
    output of leading sign
    'LL'at beginning of template:
    left justify (standard)
    'RR'at beginning of template:
    right justify
    '==conv'perform output conversion conv
    ':', ...separator
    (all other characters)
    Regards

  • Alv list display tripple dot behind the character

    Hi everyone,
    when I display my report, I found one colume which is cost center.
    it display like this
         2000020  ...
         2000010  ...
    while another cost center colume display like this
         2000020
         2000020
    so I wonder what is "..." behind the first cost center??
    Is it the standard sign of ALV?, if yes, what is it mean?
    Does anyone has experience about this sign, please kindly advise
    thank you
    Boonsom

    Can you explain more? thank you

  • Display of minus in ALV

    Hi  ..
    How can I avoid displaying sign in ALV . For example    - 12.00 must be displayed 12.00 but as a quantity it is already -12.00

    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN_100'.
      g_repid = sy-repid.
      IF custom_container1 IS INITIAL.
        CREATE OBJECT custom_container1
            EXPORTING
                container_name = container.
        CREATE OBJECT grid1
               EXPORTING i_parent = custom_container1.
        gs_layout-sel_mode = 'A'.
        gs_variant-report   = sy-repid.
        gs_variant-username = sy-uname.
        PERFORM fill_field_cat  CHANGING gt_fieldcat  .
        CALL METHOD grid1->set_table_for_first_display
          EXPORTING
            i_save          = 'A'
            is_variant      = gs_variant
            is_layout       = gs_layout
          CHANGING
            it_fieldcatalog = gt_fieldcat
            it_outtab       = gt_itab_t[].
        SET HANDLER lcl_event_receiver=>handle_double_click FOR grid1.
        CALL METHOD grid1->set_toolbar_interactive.
      ENDIF.
    ENDMODULE .
    FORM fill_field_cat CHANGING gt_fieldcat TYPE lvc_t_fcat .
      DATA gs_fieldcat TYPE lvc_s_fcat .
      DATA : fname(10) TYPE c .
      DATA : fname2(10) TYPE c .
      CLEAR   gs_fieldcat .
      gs_fieldcat-key = 'X' .
      gs_fieldcat-no_sign = 'X' .
      add-fieldcat 'BUKRS' 'GT_ITAB_T' 'BUKRS'  'Sirket Kodu'    .
      add-fieldcat 'KUNNR'  'GT_ITAB_T'       'KUNNR'          'Musteri' .
      add-fieldcat 'NAME1'  'GT_ITAB_T'       'NAME1'          'Musteri Unvani' .
      add-fieldcat 'PROJEKOD'  'GT_ITAB_T'       'PROJEKOD'          'Proje Numaras&#305;' .
      add-fieldcat 'PROJE_TUTARI'   'GT_ITAB_T'       'PROJE_TUTARI'          'Proje Tutar&#305;' .
      add-fieldcat 'PROJE_BAK'   'GT_ITAB_T'       'PROJE_BAK'          'Proje Bakiyesi' .
    ENDFORM.
    Message was edited by:
            yusuf tunay çilesiz

  • Sign in front of numeric/currency field in ALV grid/list

    Dear all,
    We need to display sign in front for numeric/currency values which will
    use the sub-total functionality. Currently there is no option for doing
    this in ALV output options.
    Is this possible?
    regards
    Nitesh

    Hi,
    Please go throw below links ,
    may be it will solve u r problem
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    Regards
    Suresh.d

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

  • User cannot see the "-" signs on amounts in ALV report

    Hi all,
    We have a problem with a user, who cannot see the signs on the amounts in an ALV report:
    <a href="http://img66.imageshack.us/img66/1424/nataliabr9.jpg">Report without signs</a>
    The user has tested this report with his user, and another test user, on his computer and on another computer. It does not change anything, he cannot see the signs "-" on the amounts.
    But when I launch the same report on the same client, I cann see the signs:
    <a href="http://img398.imageshack.us/img398/1203/moigl3.jpg">Report with signs</a>
    So, I think it does not come from his user (he has tested with two different users), or from his computer (he has tested on two different computers).
    Do you have any ideas?
    Thanks for your help.

    Having seen and "played" with an NB100-12a the other day I must agree that the grey letters on black keys
    aren't a clever idea - its bad enough that the keys are so small also.
    I currently own a satellite Pro with which I am very happy ( apart from the inclusion of Windows Vista which I
    don't particularily like ) and found this machine easy to "drive" BUT due to the keyboard size and lettering
    I won't be buying one ( unless they do a redesign - an acer aspire one keyboard and touchpad or NC10 style
    design ) and I think that the price of these machines has recently dropped from approx £300 to approx £270
    due to poor take up by the public mainly for the above reasons.
    Sorry Toshiba looks like i'll be buying an NC10 - unless I hear of a possible redesign.#
    Mike

  • 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

Maybe you are looking for

  • Compare month sales with previous year same month sales

    hi all. we need to compare given month of this year with same month of last year. we need to compare sales quantity and value. the query is on 0RT_C40 multiprovider. We have tried all options using 0Calmon, calday, fiscal year... but whenever we spec

  • 3 Xbox360s On same network

    We have a wrt54gs linksys router and are trying to all play call of duty 4 on xbox live.  But only the host can stay in a game.. the other 2 xboxs get a network iteruption and dropped.. i have been told that this router can only open 1 port for an xb

  • Preview autosaves images to desktop

    Images opened in preview are saved to desktop. How do I stop it?

  • Adobe form opened in separete window

    Hi all We developed an AWD application which contains an Interactive form element. When we execute the application via SAP GUI (Right click -> Test on application) everything is OK and the adobe form appears embedded in the browser. If we copy the pa

  • Save for Web Matte Not Working?

    Hi everyone, I'm having problems with the Matte settings in the Save for Web section to create a smooth transparent .gif image. None of the black matte is showing up in the zoomed preview (picture attached), nor is it saving when I render the file. T