Currency format in the ALV display.

Hi.
Im trying to display values of MBEW-stprs in the ALV report
But the problem is the format is different for different countries, for ex; Korea has no decimal places and us dollar has 2 decimals.
how can i display the currency with respect to the country format.
i tried to display in a Numc field it is working but SUM is not possible with this field..
How can i display with respect to country format and how can i sum the column.
Thanks
SAI

Hi,
as Max recommended: If you have amount field, then define a currency field for that field. The fieldname in field catalog is CFIELDNAME.
See this valuable link:
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/ff/4649b1f17411d2b486006094192fe3/content.htm">Value Display with Currency/Quantity Unit</a>
look at this sample:
*&      Form  alv_fieldcat_enhance
*       Individual Enrichment of field catalog
FORM alv_fieldcat_enhance
  CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
  FIELD-SYMBOLS:
    <alv_fieldcat> TYPE slis_fieldcat_alv.
  LOOP AT pt_alv_fieldcat ASSIGNING <alv_fieldcat>.
* Company code currency for account postings
    IF <alv_fieldcat>-fieldname(5) = 'KBETR' OR
       <alv_fieldcat>-fieldname(5) = 'SKBTR' OR
       <alv_fieldcat>-fieldname(5) = 'DMBTR'.
* Company code currency
      <alv_fieldcat>-cfieldname = 'BWAER'.
* Document Currency for conditions, net value and taxes
    ELSEIF  <alv_fieldcat>-fieldname(5) = 'KWERT' OR
            <alv_fieldcat>-fieldname    = 'NETWR' OR
            <alv_fieldcat>-fieldname    = 'NPAX_MWST_AMNT'.
* Document Currency
      <alv_fieldcat>-cfieldname = 'WAERK'.
    ENDIF." <alv_fieldcat>-fieldname(5) = 'KBETR' or
  ENDLOOP." at pt_alv_fieldcat assigning <fieldcat_alv>.
ENDFORM.                    " alv_fieldcat_enhance
Regards,
Clemens

Similar Messages

  • When importing Raw into A3, in what format is the picture displayed? Jpeg or tiff.

    When importing Raw into A3, in what format is the picture displayed on the screen? Jpeg or Tiff ?

    None of the comments you have gotten are particularly useful.  The display is independent of format of the file.  It's rendering is of the full pixels in the image file that you have imported, modified by any adjustments you have made, or not if you ask to see the Master.
    Even if your Master was imported as a JPEG, as seen on the screen it would have been decompressed, and you would see all the pixels (that the screen is capable of).  However, a JPEG may have lost some detail in the compression, but when decompressed has the same number of pixels as the equivalent uncompressed photo format -- but some of them may result from interpolation, and not be the original. 
    Ernie

  • Re: Display format in the ALV report output

    Hi Expert,
    In the alv report how to display below format in the output.
    Example:       Jan 2011                      feb 2011                        march 2011  .......................
                        no     amount                 no  amount                     no   amount
    As you seen in the above  output i need Below jan 2011 NO and AMOUNT similar for other months.
    Can any one throw some light...............
    Regards,
    Am.
    Edited by: anitha.mava on Nov 5, 2011 12:37 PM
    Moderator message : Spec dumping is not allowed, search for available information.  Thread locked.
    Edited by: Vinod Kumar on Nov 7, 2011 9:31 AM

    Hi,
    Are you able to populate NO ? If yes i don't see why u can't populate No Amount.
    If you are not able to populate No.. just pass the same based on the condition to the (string) field that column is referring to ..
    Or are u not able to align the columns ? If yes, you will have to do some hit and trial with write statement ..or better why not use grid display ..
    Please provide more details ..
    Regards,
    Pranav.

  • How to add an extra field in the alv display(Scope of List:ALV) for me55.

    Hello..
    I've to display 2 fields- (wbs element description) and (network description) along with the standard ALV display, for the Account Assignment type 'Q'  and 'N' of all purchase requisitions being displayed.
    I was suggested to modify the standard program RM06BF00.
    Can you please let me know where and how should I modify the program RM06BF00. Is there any userexit or badi to add my fields??
    Thanks in advance.
    With Regards,
    Him

    Hello,
    If we create a Z report for this program, can anyone please tell me where can I find the function "REUSE_ALV_GRID_DISPLAY" in the given program so that I can add my fields along with the default filelds displayed...
    Thanks
    ~Him

  • Documentaion for the report in the ALV display

    Hi
    I am using the function module 'REUSE_ALV_LIST_DISPLAY
    ' to display the list. I want some options which can display the documentation of the report after ALV displays the list.
    Now i  am using the documentation (se38) for the report which we can see pressing a button 'i' on the selection screen.
    Ramesh

    Hi Ramesh,
    i use it like this:
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM       = PROGNAME
    I_CALLBACK_PF_STATUS_SET = 'MAIN'
                I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
                IS_VARIANT               = VARIANT
                IS_LAYOUT                = LAYOUT
                IT_FIELDCAT              = FIELDCAT
                IT_SORT                  = SORT
                IT_FILTER                = FILTER
                I_SAVE                   = 'A'
                IT_EVENTS                = EVENTS
                IT_EVENT_EXIT            = EVENT_EXIT
                IS_PRINT                 = PRINT
                I_TABNAME_HEADER         = 'HEADER'
                I_TABNAME_ITEM           = 'BESTAND'
                IS_KEYINFO               = KEYINFO
           TABLES
                T_OUTTAB_HEADER          = HEADER
                T_OUTTAB_ITEM            = BESTAND
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    And this:
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
    aktueller Satz beider Tabellen lesen, da hierarchisch
      READ TABLE HEADER  INDEX RS_SELFIELD-TABINDEX.
      READ TABLE BESTAND INDEX RS_SELFIELD-TABINDEX.
      IF  R_UCOMM EQ '&IC1'  AND RS_SELFIELD-TABNAME =  'HEADER'.
        IF RS_SELFIELD-FIELDNAME = 'QMNUM'.
          PERFORM IW53    USING HEADER-QMNUM.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'AUFNR' AND HEADER-AUFNR <> SPACE.
          PERFORM CS_AUFTRAG USING HEADER-AUFNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'EQUNR'.
          PERFORM PM_HIER USING HEADER-EQUNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'MATNR'.
          PERFORM MM03 USING HEADER-MATNR.
        ENDIF.
        IF RS_SELFIELD-FIELDNAME = 'SERIALNR'.
          PERFORM IQ03 USING HEADER-MATNR HEADER-SERIALNR.
        ENDIF.
      ELSEIF R_UCOMM = '&IC1' AND RS_SELFIELD-TABNAME = 'BESTAND'.
        IF RS_SELFIELD-FIELDNAME = 'OTGRP'.
          PERFORM EXCEL_OBJEKT.
        ENDIF.
      ELSEIF R_UCOMM = 'REFR'.
    Ausgabe neu einlesen
        RS_SELFIELD-REFRESH = 'X'.
        PERFORM DATEN_EINLESEN.
    Programmdokumentation.
    ELSEIF R_UCOMM = 'DOKU'.
    CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
    EXPORTING
    DOKCLASS = 'RE'
    DOKNAME = PROGNAME
    SHORT_TEXT = 'X'
    EXCEPTIONS
    CLASS_UNKNOWN = 1
    OBJECT_NOT_FOUND = 2
    OTHERS = 3.
    IF SY-SUBRC <> 0.
    MESSAGE I010 WITH 'Keine Dokumentation vorhanden!'.
    ENDIF.
      ELSEIF R_UCOMM = 'GRAPH'.
        PERFORM GRAPHIK.
      ELSE.
        MESSAGE I010 WITH 'Bitte markieren sie eine gültige Tabellenzeile!'.
      ENDIF.
    ENDFORM.
    And it works in the Output-List correct.
    Regards, Dieter

  • Restrict the F4 help at the ALV Display

    Hi,
    In my alv report display all firleds are not editable. But the company code field is printed with f4 help. I dont want that f4 help for that field. How do deactivate the f4 help at the avl display?
    I searched in sdn, but i didnt get the ouput.
    Please help me on this,
    Thanks,
    Helps will be appreciated.

    Hi,
    You mean you are passing the structure name instead of fieldcat? If yes you can't control this.
    What you need to do is build the fieldcat using FM REUSE_ALV_FIELDCATALOG_MERGE by passing your structure. Now modify the fieldcat table as i told earler and pass this fieldcat to ALV FM instead of passing the structure name(You can commentout the structure parameter).
    Ref_fieldname and table name are fieldcatelog fields, not your structure fields.
    Thanks,
    Vinod.

  • ICS 2: Can I change the format of the date displayed by Calendar Server from M/D/Y to D/M/Y using JavaScript?

    Can I change the order in which the month and day are displayed in Calendar
    Server using JavaScript? Specifically, I would like the date to be displayed
    in the format D/M/Y instead of M/D/Y.
    <P>
    Yes. You can change the format of the date by editing the JavaScript variable
    in the file <I>
    loadpoint</I>/CalendarServer/cal/uicust/en/main.html
    . The variable is located in the
    "Misc" section in the
    following line:<BR>
    <P>
    i18n['def date order'] = 'M/D/Y';
    <P>
    Edit the line as follows:<BR>
    <P>
    i18n['def date order'] = 'D/M/Y';

    Hello Mark,
    yes, it is possible. In Calendar Express under
    "Options | Settings -> Date"
    "Show brief dates in the following order: Date, Month, Year".
    BTW.: iCS 5.0 P4 is out since August, 2001. It's worth upgrading!
    Regards,
    Jakob.

  • To get fieldcatalog from the ALV display layout

    Hi Experts,
    Requirement: To have a field in the selection screen for selecting display layout of the ALV grid and the corresponding output
                          should automatically be saved in a text filel on local network .
    So the output data should be downloaded into file even before the outptut is displayed. So what ever columns that are going to be displayed for a particular display layout have to be recognised and a dynamic internal table should be there for varying the fields depending on the display layout.
    Now, I have clear solutions for varient selecting varient in selection screen and after that the entire logic to use a dynamic internal table from a fieldcatalog.
    But i am stuck with the issue of getting the fieldcatalog from the corresponding display varient selected.
    Could anybody have a solution for this.
    Regards,
    Praveen.

    This can may help as well,
    key-report  = sy-repid.
    key-variant = i_variant.
    key-type = 'F'.
    call function 'LT_DBDATA_READ_FROM_LTDX'
          exporting
            is_varkey          = key
          tables
            t_dbfieldcat       = tab
         exceptions
           not_found          = 1
           wrong_relid        = 2
           others             = 3.
        delete tab where param <> 'NO_OUT'.
        delete tab where value = 'X'.
    michal

  • How to exclude certain rows in the ALV display from the total?

    Hi,
    May I know is there a way to exclude certain rows that are shown in the ALV control from the calculation of grand total?
    Thanks much.

    See, if
    function module REUSE_ALV_TRANSFER_DATA 's
    IT_EXCLUDING   .... param
    works for you.

  • How can the ALV display more than 100 chars?

    Hi,
    I'm developing a ALV using ABAP Object, my problem is that I need that the ALV shows unless 1024 chars but it only shows 100.
    I have the followind code to create the container and the ALV grid:
        CREATE OBJECT v_o_container
          EXPORTING
             container_name              = c_container
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            OTHERS                      = 6.
        CREATE OBJECT v_o_alvgrid
          EXPORTING
            i_parent          = v_o_container
          EXCEPTIONS
            error_cntl_create = 1
            error_cntl_init   = 2
            error_cntl_link   = 3
            error_dp_create   = 4
            OTHERS            = 5.
        CALL METHOD v_o_alvgrid->set_table_for_first_display
          EXPORTING
            i_structure_name              = c_structure
            is_layout                     = x_layout
          CHANGING
            it_outtab                     = i_alv_data
            it_fieldcatalog               = i_catalog
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
    Could anyone, please, tell me if I need anymore to show more char?
    Thank you very much.

    DATA: BEGIN OF i_alv_data OCCURS 0,
        pernr         LIKE p0001-pernr,   "personnel number
        icnum         LIKE p0185-icnum,   "personal ID
        vorna         LIKE p0002-vorna,   "First name
        nachn         LIKE p0002-nachn,   "Last name
        sachn         LIKE t526-sachn,    "PersAdmin
        sachn2        LIKE t526-sachn,    "Business Partner G
        text_persg    LIKE t501t-ptext,   "Employee group
        text_persk    LIKE t503t-ptext,   "Employee subgroup
        stext2        LIKE hrp1000-stext, "position
        stext1        LIKE hrp1000-stext, "department
        text_werks    LIKE t500p-name1,   "Location
        text_trfgb    LIKE t510g-tgbtx,   "PS type
        trfgr         LIKE p0008-trfgr,   "diageo band
        trfst         LIKE p0008-trfst,   "Local grade
        lm_name       LIKE p0001-ename,   "line manager name
        datfr         LIKE sy-datum,      "Validity from
        datto         LIKE sy-datum,      "Validity to
        comp_stat     LIKE dd07t-ddtext,  "Completion Status
        mobilitx      TYPE string,        "mobility text
        cab_continue  TYPE string,        "My Capab.and
        cab_start     TYPE string,        "My Capab.and Be
        nco1          TYPE string,        "Posib next car op
        nco2          TYPE string,        "Posi next car opt
        nco3          TYPE string,        "Pos next carop
        timing3       LIKE i_hap_t_body_cells-value_text,
        epcm          TYPE string,        "Employee Commitme
        mpcm          TYPE string,        "Manager commitmen
       END OF i_alv_data.

  • In Thunderbird, how do I change the date format for the column display?

    I want the date to show as DD-MM-YYYY HH:MM AM/PM. Although this should be really obvious (and I know I've done it in the past), I can't find where to do this and can't find anything in Thunderbird Help on this, not even when I search "Thunderbird, change date format".

    Thunderbird usually uses the computer date and time and settings.
    I'm using Windows and notice that TB is using the short date format which I set up under Regional & Language Options.
    Are you using the International settings or Date/Time settings?
    It should pick up the settings from the 'International' or maybe its called now called 'Language & Text' setting.
    not sure which of these suits your macbook:
    http://www.macyourself.com/2008/08/31/modify-the-default-clock-in-os-xs-menu-bar-to-show-the-full-date/
    http://www.dummies.com/how-to/content/language-text-preferences-on-your-macbook.html
    http://www.dummies.com/how-to/content/how-to-change-your-macs-date-and-time.html
    http://www.youtube.com/watch?v=2zBMl8Vb3wc
    http://support.apple.com/kb/TS3579

  • Problem with the ALV display

    hi guys,
    while executing my ALV report i had got this error message.
    You attempted to access an unassigned field symbol
    (data segment "-1").
    This error may occur if
    - You address a typed field symbol before it has been set with
       ASSIGN
    - You address a field symbol that pointed to the line of an
       internal table that was deleted
    - You address a field symbol that was previously reset using
       UNASSIGN or that pointed to a local field that no
       longer exists
    - You address a global function interface, although the
       respective function module is not active - that is, is
       not in the list of active calls. The list of active calls
       can be taken from this short dump.
    Reg,
    Hariharan

    Hi Sunitha,
    In ALV Filter problem , Please refer below SAP Note 381360.
    SAP Note 381360 : For Filter issues
    check this link
    https://service.sap.com/sap/support/notes/381360
    Regards,
    GJ
    Edited by: Shankar GJ on Apr 26, 2010 6:23 PM

  • How to display the ALV output in a Group format

    Hello Experts,
    I have my current ALV report output like this:
    GROUP DESCRIPTION
    group1 adsfadsfadsfa
    group1 lkjadsfjlajdsfla
    group1 adsfadsfadsf
    group1 adsfadsfadfa
    group2 adsfadsfafaa
    group2 oiueworuowe
    group2 zxvzcxvzvcsd
    group2 oiuqoewruqw
    And I need to display the output of my ALV report in a group format like this:
    GROUP DESCRIPTION
    group1 adsfadsfadsfa
           lkjadsfjlajdsfla
           adsfadsfadsf
           adsfadsfadfa
    group2 adsfadsfafaa
           oiueworuowe
           zxvzcxvzvcsd
           oiuqoewruqw
    Can anybody please let me know if there is any sample program/thread/help etc.
    I grealty appreciate your help.
    Thanks.

    Hi Rainer,
    Thanks for the reply. I am using container for the ALV Display.
    So I wrote my code lie this:
    sort t_data by zgroup zdesc  ( t_data is my output internal table) .
    I have my ALV layout delcared like this:
    data: alv_layout type lvc_s_layo.
    So I have modified my code like this:
    alv_layout-NO_MERGING  = 'X'.
    But it did'nt work. Please let me know if I need make any other changes.
    Thanks again.

  • Allowing a User to choose the ALV layout format on selection-screen

    Hi all,
    I would like to know how i can add a parameter to my selection-screen which would allow the User to choose a saved ALV layout format before pressing F8 rather than after. As used in CO15 or MB51.
    Thanks  femi.

    yes , You can check the program BCALV_TEST_FULLSCREEN_LAYOUT  to check how F4 help is to be used .
    to check existene of variant is pretty simple.
    Pass the variant name in the ALV display FM .

  • Need to display texts on to the ALV grid using SALV

    Hi evryone,
                   There is a requirement to print an ALV grid containing the row titles and their subsequent values. The display shouild look like as below
    Summary                                     ItemsA cost                                                             111111
                                                        ItemsB cost                                                              222222
                                                        ItemC cost                                                                333333
                                                        New items
                                                        ItemD cost                                                                                111111
                                                        ItemE cost                                                                                222222
                                                        ItemF cost                                                                                333333
                                                                 Total                                                                 666666        666666
    The headings pertaining to ItemA to itemB should come in a single column and their subsequent values as shown above. The total should be displayed below the corresponding block of items. Can anyone please suggest me the way we can acheive this using SALV and container concept.

    Sorry my earlier did not get displayed as expected. Please find below the format  how the ALV should get displayed.
    Summary  -
    ITEMA----
    1111
    ITEMB----
    2222
    ITEMC----
    3333
    ITEMD----
    1111
    ITEME----
    2222
    ITEMF -
    3333
    Total--6666--
    6666
    Please ignore the dots here they are just written to indicate spaces between the texts. The text summary and the texts "ItemA, B, C etc" should have 1 coulmn gap and the prices for the first item block should have 1 column block from the texts and the prices for second Item block should have a 2 coulumn block from the texts and total value should be displayed below each block.
    Edited by: Phaniacumen on May 8, 2010 1:59 PM

Maybe you are looking for