About OO ALV

hi, all
  I use the OO ALV to display the data, and edit the currency data.
  But when i save the currency data to internal table, the data is difference with
  the display. Display data = internal table * 100.
  Thanks for your help!

hi,
You use fields <b>CFIELDNAME</b>  to assign value fields to a currency.
Certain values of output fields may refer to currencies (such as Euro). To display these values in the correct unit-specific format (with the correct number of digits after the comma, for example), you must assign these fields to a currency.There are three ways how you can do this in the field catalog:
<b>Assign a value field to an associated currency or unit field
Explicitly specify a currency or unit for the entire column
Format the value field manually</b>
follow this link for brief information regarding your query.
http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649b1f17411d2b486006094192fe3/content.htm
regards,
AshokReddy.

Similar Messages

  • Program about download alv to excel

    i have a program,when run it ,there to be a alv display,in the alv display,the unit is 'PC',but after  download it to the excel,the unit
    'PC' all turn to '*****',does anybody know why?
    thanks for your replay.

    hi,
    first you  try to drag teh column width in the excel sheet, you may get to see the desired output.
    if its not helpful,  then you need to use conversion routine for this.
    regards
    geeta gupta

  • A question about editing ALV fields

    Hello Expert,
    In my project, we need to read data from DB and display in the ALV. In the ALV output, we should be able to edit the records, and after user clicks the "Save" button in the applicaiton toolbar, the program should be able to save the changed data into DB.
    Currently, I can display the data in ALV and all fields are editable. After I change some data and click "Save", the program will go into subroutine 'F_ALV_USER_COMMAND',  but the data in the internal table GT_OUTTAB is not changed.
    I generate the ALV output by the following calling:
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program = wf_pgm
            is_layout          = gs_layout
            it_fieldcat        = gt_fieldcat[]
            i_callback_pf_status_set     = 'F_PF_STATUS_SET'
            i_callback_user_command = 'F_ALV_USER_COMMAND'
            is_variant         = g_variant
          tables
            t_outtab           = gt_outtab
          exceptions
            program_error      = 1
            others             = 2.
    In the subroutine 'F_PF_STATUS_SET', I call a GUI Status defined by myself.
    But if I call as below
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            i_callback_program = wf_pgm
            is_layout          = gs_layout
            it_fieldcat        = gt_fieldcat[]
           i_callback_pf_status_set     = 'F_PF_STATUS_SET'
            i_callback_user_command = 'F_ALV_USER_COMMAND'
            is_variant         = g_variant
          tables
            t_outtab           = gt_outtab
          exceptions
            program_error      = 1
            others             = 2.
    GT_OUTTAB is changed accordingly after clicking the "Save".
    Can any expert tell me why Internal table is not changed in the case I use user-defined GUI Status?
    Thanks & Regards, Johnny
    Edited by: Yongbo Wu on Jun 10, 2011 10:51 AM

    Hi Yongbo;
    Unfortunately REUSE_ALV_GRID_DISPLAY has update problem.
    REUSE_ALV_LIST_DISPLAY FM is making automatic update/change itab.
    You can change REUSE_ALV_GRID_DISPLAY FM with REUSE_ALV_LIST_DISPLAY FM.
    Best Regards.
    call function 'REUSE_ALV_LIST_DISPLAY' "'REUSE_ALV_GRID_DISPLAY'

  • About SE16N ALV type?

    In the SE16N, Is it using custom_control to create ALV as same as this code?
    If it is this type, how to display full screen ALV?
    DATA: GT_OUTPUT TYPE TABLE OF VBAK,
          GRID1  TYPE REF TO CL_GUI_ALV_GRID,
          CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER
    SET SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE STATUS_0100 OUTPUT.
    IF custom_container IS INITIAL.
        SELECT *
        INTO TABLE gt_output
        UP TO 100 ROWS
        FROM VBAK.
        CREATE OBJECT custom_container
          EXPORTING
            container_name              = 'CONTAINER'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5.
        CREATE OBJECT grid1
          EXPORTING
            i_parent = custom_container.
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
         I_STRUCTURE_NAME              = 'VBAK'
      CHANGING
        IT_OUTTAB                     = gt_output
        IT_FIELDCATALOG               = GT_FIELDCAT
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT

    use docking container where you can set the screen ratio.
    Search in SCN for more details.

  • About OO ALV Event

    hi, all
      how can i get the event for "Enter"?
      Thank you!

    hi, all
      how can i get the event for "Enter"?
      Thank you!

  • About the ALV field

    Hi all:
    form frm_set_fieldcat .
      clear: it_fieldcat[],wa_fieldcat,it_events[],wa_layout.
    field_cat 'WERKS' 'Plant'(030).
      field_cat 'VBELN' 'Invoice'(001).
      field_cat 'POSNR' 'Item'(002).
      field_cat 'FKSTO' 'Cancellation'(003).
      field_cat 'FKDAT' 'Billing Date'(004).
      field_cat 'FKLMG' 'Quantity'(005).
    define field_cat.
      add 1 to wa_fieldcat-col_pos.
      wa_fieldcat-tabname   = 'IT_OUT'.
      wa_fieldcat-fieldname     = &1.
      wa_fieldcat-seltext_l     = &2.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat." add by cc
    end-of-definition.
    what's the (030)/(001)/(002)... meaning?
    thanksss.

    The number in the () means the number in "Text Symbols" in your program. The text hard coding in the programing is default displayed text. While if you create a text symbol, the text according to language setting will replace the default text on the screen.

  • What's it all about ALV?

    Dear All
    This fine day I have had a fair few questions about the ALV land on my
    doorstep, asking what articles were around. I have never found any good
    ones. The online help ranges from patchy and confusing to non-existant, and
    keeps bursting into German. I started off with the example in the "reporting
    made easy" book which scratches the surface, and then have progressed by
    trial and error.
    The chances of there being any meaningful documentation for an SAP function
    module tend to be inversely proportional to how useful it is. One trick I
    have found is that when it tells you "Documentation not available in
    language EN", log off and log back on in German. Go back to the function
    module and look again. Sometimes the documentation appears - in English. But
    more often than not it's not there at all.
    Anyway, back to the ALV:-
    The things I have discovered were how to
    change the name of fields
    add extra buttons to the toolbar at the top
    get a box with the users selections to appear when the report is
    printed
    have traffic lights say if a record is OK or not
    allow the user to enter the initial display variant on the front
    screen
    have the user name and date appear at the top of the report
    Here is a "Frankenstien's Monster" containing extracts of code from several
    reports, and re-arranged into a logical order. this doesn't do anything, but
    contains examples of how to do all sorts.
    report z-alv_a_sixpence.
    include z_alv_include.
    Internal Tables
    Selection Screen
    Parameter for the user to choose how the initial screen will be (vital
    for running big reports in background)
    SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME TITLE text-003.
    PARAMETERS: p_vari LIKE disvariant-variant.
    SELECTION-SCREEN END OF BLOCK blk3.
    At Selection-Screen have a word with the display variant
    AT SELECTION-SCREEN.
    PERFORM check_variant.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
    PERFORM f4_for_variant.
    START-OF-SELECTION.
    END-OF-SELECTION.
    Build Field Catalogs (Begin)**************************
    PERFORM resetvalues.
    fieldcat_ln-key = 'X'.
    fieldcat_ln-hotspot = 'X'.
    PERFORM addfield USING '2' 'LIKP' 'WERKS'. "Plant
    PERFORM build_sortcat.
    ******Build Field Catalogs (End)*****************************
    ******Build Event Catalog (Begin)****************************
    PERFORM build_eventcat.
    PERFORM build_layout.
    ********Add a header at the top of the report *******
    PERFORM set_report_header USING w_list_top_of_page[].
    ********Start List Viewer
    PERFORM start_list_viewer.
    ******Start List Viewer (End)********************************
    *******Process Call Back Events (Begin)**************************
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
    CASE ucomm.
    WHEN '&IC1'.
    READ TABLE irepo INDEX selfield-tabindex.
    CHECK sy-subrc = 0.

    1. your listed programm below has an include (z_alv_include) which you
    didn't supply.
    2. have a look at the developement class 'SLIS' which contains manyexamples
    for ALV-programs.
    3. In BC405 one chapter is about reports with ALV.

  • Value in ALV report

    Hi experts,
    I have an ALV report.
    In the ALV report one of the field is Currency conversion rate to USD.
    For this i am fetching value from TCURR-UKURS.
    The value is taken into an internal table.
    I have seen in the internal table the value is coming correctly. like: suppose the value is 1,114.10000- in that perticulat field. then the same value is coming in my final internal table.
    But in the report display it is coming as /1,114.10000
    Please help me out
    regards,
    charles

    Check the field-reference what is your ALV-field pointing at. Maybe this reference is pointing at a field, which enables only positive numbers.
    And if you just modified it, don't forget about the ALV-cache, which stores a lot of setting about ALV grids while you are logged in.
    To clear ALV cache you can use a transaction (but I forgot it ), or you can log off and relogin to SAP.
    Happy developing
    Tamá

  • ABAP Custom Report (ALV Format) in Background Processing

    Hi
    I am not the hardcore ABAP Person. But want to know about the detail fact of the ABAP Custome Reports. The question is can we do the background processing for the ABAP Custome Report in ALV Format.
    If Yes ..do we require to have any additional Function/code to get the spool in ALV Format. I saw the comments that the output will look like the mess.
    Please share your comment or any useful documenation on this. We are in ECC 6.0
    Thanks in advance..and yes it will be rewared by points.
    Navin

    You can use alv's in background using docking containers, but the display wont be interactive. If you search the forum you will see tons of threads which talk about running ALV's in background.
    For the output to be interactive, you can run the report in foreground and do the data processing in background.
    Refer this link:
    Displaying ALV Grid in Background Job

  • Printing ALV list with ADS (pdf printer) in non-english charset

    Hello!
    I have an issue about printing alv list with pdf printer in non-english charset. We have two printers. One for alv lists (SWINCF: Casc.Fonts SAPWIN Unicode) and one for pdf forms(adobe document service). I want to use one printer for any documents. But PDF printer prints non-english charset like ########.
    What can I do ?

    Hi, Roman!
    I want to use PDF printer for both types of output. I have a dedicated java instance for ADS.
    There is a device type for our Kyocera Printer. My pdf printer prints ALV list good exept russian charset.
    It prints like #####

  • ALV table in Web dynpro java

    Hello Experts,
    I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
    I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
    Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
    Thanks in Advance,
    Regards,
    Harish

    Hello,
    I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
    SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
    Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
    I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
    at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
    If it is not yet released for use then I wonder why it is already part of the documentation ?
    Take care
       Ingo

  • Entering barcodes in a table/ALV of a WD

    Hi all,
    Here's my need. In every line of a table/ALV, and in one given column, we want to enter a barcode, by the help of a scanner. To be clearer, in each line, we enter one barcode. And we would like after entering one barcode in a line, that the cursor automatically jumps to the next line. You will answer that we simply may configure the scanner, so that it calls ENTER after entering the barcode. This supposes first that it exists an EVENT that can be raised when ENTER is pressed (or called in our case), in which we would program the field in which the cursor will be. I'm not sure of this, because I don't know very much the table element, neither the ALV. Can you confirm it ?
    But anyway, the client does not want to configure his scanners so they call enter after reading the barcode...
    So, is there an event that can be raised when the field is entirely filled ? In the same way as for instance when we fill our windows licence key : when we have filled 4 digits, the cursor automatically goes to the next digits group.
    So finally, what should I use to implement my need ? Table element or ALV ?
    Maybe you would answer too to a more general question : what is the difference between the TABLE element and an ALV, in terms of events ? Do both provide the same events, or one provides more event than the other ?
    Thanks a lot.
    Julien.

    >So, is there an event that can be raised when the field is entirely filled ? In the same way as for instance when we fill our >windows licence key : when we have filled 4 digits, the cursor automatically goes to the next digits group.
    No. There is only the onEnter event for inputFields in Web Dynpro ABAP.
    >Table element or ALV ?
    With the table you can place the inputField as a cell editor and directly have access to the onEnter event.  The events of the ALV are more "abstracted" because the ALV is a component usage instead of a native UI element. You can read more about the ALV events in the online help:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/42/fb6b4046a21bc8e10000000a11466f/frameset.htm

  • ALV guide! Urgent!!!

    Does anybody has material/docs/link on ALV? How to create a report using ALV and about the ALV function modules?
    Please send it at: [email protected]

    Hi,
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
    http://www.henrikfrank.dk/abapuk.html

  • ALV-User defined Toolbars

    Hi Friends,
    How to add a user defined toolbar for ALV programs. Please help me. I need very urgent.
    Regards
    Praveen

    Hi Praveen,
    The following document gives you almost everything that you need to know about an ALV -
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an easy reference for alv grid control.pdf
    Regards,
    Anand Mandalika.

  • Detect rows selection in ALV using oops

    Hi ALL,
    I HAVE An ALV OUTPUT OF RECORDS USING OOPS.
    NOW I CAN SELECT ONE OR MULTIPLE ROWS OF THE OUTPUT AND I HAVE ADDED A DELETE ICON TO MY TOOL BAR.
    I HAVE BACK AND EXIT BUTTON AND I HAVE CODE FOR THE SAME IN PAI.
    FOR DELETE ICON SY-UCOMM IS DELE AND CONTROL COMES TO PAI
    MY QUESTION IS HOW DO YOU KNOW WHICH ROW OR ROWS ARE SELETEd , IN NORMAL ABAP , a field BOX type c has a value X , but what about in ALV using OOPS.
    I have no idea whether my approach is correct or wrong or do i need to something else.
    Thanks

    Hi Darren,
    This is what i have . Iam new oops so i want to just make sure
    method handle_user_command.
    § 3.In event handler method for event USER_COMMAND: Query your
      function codes defined in step 2 and react accordingly.
        data: lt_rows type lvc_t_row.
        case e_ucomm.
          when 'DELETE'.
            call method g_grid->get_selected_rows
                     importing et_index_rows = lt_rows.
    DATA : WA_LT_ROWS LIKE LINE OF LT_ROWS.
    LOOP AT LT_ROWS INTO WA_LT_ROWS.
    DELETE I_ZFINAL INDEX WA_LT_ROWS-INDEX.
    ENDLOOP.
    ENDCASE.
    call method g_grid->set_table_for_first_display
    exporting
       I_BYPASSING_BUFFER            =
       I_BUFFER_ACTIVE               =
       I_CONSISTENCY_CHECK           =
       I_STRUCTURE_NAME              =
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
         is_layout                     = g_layout
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
        it_toolbar_excluding          = pt_exclude
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
      changing
        it_outtab                     =  i_zFINAL
        it_fieldcatalog               = fieldcat
       IT_SORT                       =
       IT_FILTER                     =
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4
    LET ME KNOW THANKS

Maybe you are looking for

  • I cannot download one podcast. Tried resubscribing but no luck.

    This only happens with one of my podcasts others update ok. It has the ! symbol by the title in my podcast library. The error message reads> "There was a problem downloading "Best of Today" "http://downloads.bbc.co.uk/podcast/radio4/today/rss.xml" "C

  • File-FTP command before message processing

    Hi experts, my requirement is as follow : i have 5 files on my FTP server. All are named FILE_hhssmm.xml In the configuration of my CC out, i have put as specific file name to get picked 1*.xml I need a command line in the 'run operating system comma

  • Open a form from Find Form

    Hi, I am developing a new form using 6i Forms. The requirement is to first have a Find form and then when we click on 'Find', it should open the main form. I have developed both the forms. But my question is, where do we explicitly define that it sho

  • Import PSD or PNG into Flash?

    Hi, I am trying to find out if there is a "correct" kind of image to import into Flash. Is there a quality difference between using a Photoshop file or a png image?

  • Need new I/O Front panel Cable

    Hey all, I was sleeving my I/O Front Panel cable and when managed to mess it up. So bassically what I need is a new cable. Do you guys no any way I can go about getting me a new one? I believe the cable is called AD_Link cable.