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

Similar Messages

  • 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

  • To Display Output in Grid ALV with change of some field display total with

    Hi Masters,
    I m working on ALV in which  i have to display output with the following format.
    Header
    "Some String"                                                             date/time                                                                               
    User:XYZ01       page 1 
    Line
    1st field    2nd    3rd     4th       5th   6th    7th   8th   9th  10th field
    x               y       z        A        B     C       D     E      F       G
    BLANK..............................................................................                            
                          "total 3rd+4TH"           P        Q     R      S        T       
    same thing for every change of 4th field .
    So the problem is with inserting the line with string "Total of 3rd+4th" in the output .
    Can Anyone help me out?
    Thanks ,
    Varlani Amit

    Hi,
    Use control-break statement ON-CHANGE for the 4th field, and do the changes.
    regards,
    sri

  • Problem in displaying Total No.of Lines in ALV report header.

    Hi guys,
    my field symbol internal table is having records in which "Compliance" field is having YES or NO values. now requirement is to display
    Total No. of Compliances which are having YES.
    lets say, internal table is having 10 lines. in which compliance field is having 6 YES and 4 No respective values .
    now i want to display header as No. of Compliances :  6
    following is my code to display Total no.of lines in internal tables.
    * total no. of records selected
       DESCRIBE TABLE <table> LINES ld_lines.
       ld_linesc = ld_lines.
       CONCATENATE text-004 ld_linesc
                         INTO t_line SEPARATED BY space.
       wa_header-typ  = 'A'.
       wa_header-info = t_line.
       APPEND wa_header TO t_header.
       CLEAR: wa_header, t_line,ld_lines, ld_linesc .
    My data is there in Field-Symbol table.
    Now i want to display No.of compliances . could anybody please help me out in this.
    Thanks in Advance.
    Regards
    satish

    HI,
    You can use another option like below,
    <Table>[] = <Table1>[]
    delete table1 where compliance = 'NO'.
    DESCRIBE TABLE <Table1> LINES ld_lines. .. follow your logic as above.
    Hope this will helps you,
    Thanks & Regards,
    Suresh M

  • Problem with currency fields in alv while editing

    hi guys,
    while creating the editable fields and saving the data in database i have problem with currency(price fields),
    when iam entering 10000 it is storing as 100.00 in database but
    i want to store it as 10,000.00
    can any one help me ....
    it is urgent
    thanks..

    When populating the fieldcatalog for ur currency amount field then
    populate these additional fields with currency key and table name where this key field belongs.
             cfieldname     type slis_fieldname, " field with currency unit
             ctabname       type slis_tabname,   " and table
    May be then it will solve ur prob.
    Regards,
    Joy.

  • 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

  • PROBLEM WITH CURRENCY CONVERSION IN ALV

    HI..
    When iam trying to convert currency field from one currency to
    another (eg: usd to inr) iam getting error.
    iam using the fm 'convert_to_local_currency'.
    i want to display both the coloumns i.e usd,inr in the same grid.
    help me....
    thanks.

    Rk,
    Pass all these parameters.
    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
          EXPORTING
    *    CLIENT                  = SY-MANDT
            date                    = p_ekko_bedat
            foreign_amount          = p_i_po_info_ntval
            foreign_currency        = p_ekko_waers
            local_currency          = r_buk-waers
    *    RATE                    = 0
            type_of_rate            = 'M'
    *    READ_TCURR              = 'X'
          IMPORTING
    *    EXCHANGE_RATE           =
    *    FOREIGN_FACTOR          =
            local_amount            = p_i_po_info_ntval
    *    LOCAL_FACTOR            =
    *    EXCHANGE_RATEX          =
    *    FIXED_RATE              =
    *    DERIVED_RATE_TYPE       =
      EXCEPTIONS
        no_rate_found           = 1
        overflow                = 2
        no_factors_found        = 3
        no_spread_found         = 4
        derived_2_times         = 5
        OTHERS                  = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.

  • How to display output with 3 levels in ALV

    He experts,
         I have on classical report & it output is with 3 levels, like
               Ex:  material no<Level-1>
                            customer no<Level-2>
                                                date<Level-3>.
             For this i used 2 select staments within select & endselect statmens.
    Now i want to display in ALV. I can't use Hierarchy FM for this bcoz more than 2 levels.
    Plz help on this
    Regards.

    Hi Kumar,
    Thanks for response
      Here i don't need drill down capability....
                   is it possible to diplay <level-1>  <level-2>   <level-3> by using ALV Grid FM. If not alternative solutions
    Regards.

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

  • Wrong Display of Japanese Currency in ALV Report

    Dear Friends,
           I am facing a problem in Displaying a Japanese Currency in the ALV Report Output. I am mentioning the Currency Key field and the Currency field in the Report.
    For example, the amount field should be displaying as 22838 instead of 228.38 where this is correct in case of USD but not correct in case of JPY.
    Code where the i am appending the fieldcatlog:
        ls_fieldcat-fieldname = 'WAERK'.
        ls_fieldcat-datatype  = 'CUKY'.
        ls_fieldcat-outputlen = 8.
        ls_fieldcat-seltext_l  = Text-088.
        ls_fieldcat-seltext_m  = Text-088.
        ls_fieldcat-seltext_s  = Text-088.
        ls_fieldcat-reptext_ddic  = Text-088.
        APPEND ls_fieldcat TO lt_fieldcat.
        CLEAR ls_fieldcat.
        ls_fieldcat-fieldname = 'BUCK0'.
        ls_fieldcat-datatype  = 'CURR'.
        ls_fieldcat-outputlen = 16.
        ls_fieldcat-seltext_l  = Text-017.
        ls_fieldcat-seltext_m  = Text-017.
        ls_fieldcat-seltext_s  = Text-017.
        ls_fieldcat-reptext_ddic  = Text-017.
    Please do suggest if any inputs on the same.
    Thanks in Advance for you reply.
    Thanks and Regards,
    Saritha K

    Hi,
    All the Decimals related to currency fields will be stored in the table tcurx.
    You have to get the currency and respective decimals into internal table.
    Read the internal the table with key equal to currency.
    And calculate the values as below :
    loop at gt_output.
          READ TABLE gt_tcurx WITH KEY currkey = gt_output-zwaers.
          IF sy-subrc EQ 0.
            IF gt_tcurx-currdec = '0'.
              gt_output-dmbtr = gt_output-dmbtr * 100.
            ELSEIF gt_tcurx-currdec = '3'.
              gt_output-dmbtr = gt_output-dmbtr / 10.
            ENDIF.
          ENDIF.
          MODIFY gt_output.
    endloop. Then pass the gt_output to ALV FM.
    In the above code gt_output is my final internal table which i am passing to the ALV FM. And gt_tcurx is the internal table consists of all the currency and their decimals.
    Thanks,
    Sri.

  • How to display the number with negative sign in the front in ALV.

    most important, this ALV is also can totalize.
    can someone give me some suggestion?
    thanks   
       jisuwen

    i hope you want a negative sign before a char but holding some number. then that case
    loop at itab.
    concatenate itab-char '-' into itab-char.
    modify itab.
    endloop.
    and you can display in ALV with negative sign...
    Totalling you need to Specify
    DO_SUM = 'X' while populating fieldcatalog...
    If subtotals then you have to Build sort table and based on that you can proceed./.
    examples are there you can find inn SLIS package..
    vijay.

  • 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 display total in ALV Header

    How to display total in ALV Header?

    Hi Venkey,
    As far as your issue is concerned I would like to quote my perception.
    Create a header internal table with title and number of records.
    At the later part of your program you should have found the total number of records ,now assign it to the header internal table and print it.
    For further clarification you can go check this link:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AddHeadertoALVreport
    Thanks
    P.Srikanth

  • The option 'Display Credit Balance with negative sign" was not activated.

    I've encountered with a huge problem after load opening balance.
    I forgot to tick the  option 'Display Credit Balance with negative sign"
    It makes my client's Chart of Account  uncommon such as credit balance in Cash Account, AR .....
    However, I've search the sap  note to solve it  as follow:
      Description of the bug::     
    When creating the company in the system the option 'Display Credit Balance with negative sign' was not activated.
    Once transactions were created in the system the functionality can not be changed.
    Limits of the query:     
    After running the update query, please restart SBO first and then   run the restore 'GL account and bp balances';
    otherwise, the cashed value of SBO will not be updated and restore function may not take effect.
    1. Meaning of  restart SBO => restart SBO Service Manager right?
    2. Please help me please to find "The restore G/L account and bp balances" form.  Where is it?;
    Thank you

    Hi,
    I would think that you are following the PEQ instructions for note 970813, correct?
    If this is the case and you are using 2007 then you will find the restorev in the top menu; Help -> Support Desk -> Restore. You will find the functions here. Please note that this should only be used on direct instruction from support or a note like in this case. A backup should also be taken before running restore.
    Regards,
    Jesper

  • How to merge rows with similar values in alv grid display in webdynpro

    Hi experts,
                   i want to know about how to merge rows with similar values in alv grid display of webdynpro.grouping rows is possible in table display in webdynpro but i am not able to do row grouping in the alv grid display in webdynpro.
    kindly suggest.
    thanks ,
    Anita.

    Hi Anita,
    did you find a solution for this? I have opened a Thread, if you know the answer maybe you could help me out:
    Is there an ALV function similar to the TABLE Row grouping?
    Thanx in advanced!!!
    Kind Regards,
    Gerardo J

Maybe you are looking for

  • How to disable the Search option in UWL header?

    Hello, I am trying to removed the search option in the standard UWL iView by setting the "Allow Search" property of the standard iView to "No". However this doesn't remove the search option in the UWL header. Is this right property to configure? If a

  • Flex Hero (: release that dared to pretend that it was real :)

    I have installed the Hero sdk 4.5.0.19786 (from 03/Feb) and yet in Flash Builder 4 (not the Buritto but straight 4) there are no style options when working with the Form control and as such, all I get is side labels and I need the vertical ones. Plea

  • Setting up iViews from Cognos business Pagkabe

    Hi, Has anyone successfully set up the iView "Cognos Viewer" from the Cognos Business Package. I need the iView to display a specific Cognos Report in ReportNet. So far I have not been able to locate any documentation on how to set the properties to

  • Smartforms only writes '#'

    Hello! I have a System with SAP ERP Central Component 5.0 running on it... Since we upgraded to pack 10, our Smartforms only print lots of '#'-characters... Has anyone heard about this? Or does anybody have an idea how to solve this mess? Tank you!!

  • Delivery quantity less than PO quantity

    Hi I have created an inter-company Purchase Order (NB type PO) which has a delivery quantity of 100 (example). Now I am creating an Outbound Delivery through VL10B. The delivery (NLCC type delivery) but the issue I am facing is that the delivery quan