Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

Hi All,
I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
When user changes these values these values are not changing properly .
For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
Here also it takes last 2 digits after decimal places by default.
Please advice how to get proper values in this case from ALV editable fields.
Thanks and Regards
Harshad
Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

for all the currency field , it will display like that only.
u have to manipulate uin program before displaying.
if they are giving 500, in program multiply with 100 and move it to table.
when u are getting from table, divinde and display.
this is what I am doing.
Reward if helpfull.

Similar Messages

  • How to delete zeros in layout for quantity and currency fields

    Hi All
    Iam getting zeros in place of quantity and currency field records, which i doesnt require in layout SAP-Script.
    Please let me know if any one has an idea.
    Regards
    Bhaskar

    Hi,
    Add NO-ZEROES statement to it.
    or
    U can use CONDENSE statement.
    Cheers,
    SImha.

  • Like SM30 ,table should be display in editable ALV Grid(for Dynamic DB )

    Hi Friends,
    plese help me how to display  ALV grid in editable mode for differnt types of data base tables.
    same as like SM30 transaction.
    Moderator message: please search for available information/documentation/previous discussions before asking.
    Edited by: Thomas Zloch on Nov 11, 2010 6:40 PM

    Hi,
    In SLIS_T_FIELDCAT_ALV you specify the field as edit = X.
    Give it as mentioned, where you assign fieldname and positions etc.
    Thanks&Regards

  • Problems with pay monthly installments for Photoshop and Illustrator

    Every time I open Adobe Illustrator and Phtoshop me that there were problems with the payment of the monthly installments of these two software. But I have checked and everything is in order. So why do these messages? To this day I still have 27 days of time to make the payment otherwise the programs will stop working. I honestly do not understand. Forgive my bad English and if I could have an answer in Italian I'd be grateful! .How do I find the answer? warn me somehow? And 'possible to get the answer to this e mail: angelo.morelli @ live.it Thanks Angelo Morelli

    Adobe contact information - http://helpx.adobe.com/contact.html
    or
    Chat Now button near the bottom for Activation and Deactivation problems may help
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html

  • Enhancing datasource for qty and currency fields gives error

    Hi Everyone
    i need some advice on the following
    i am  enhancing a datasource which contains some currency and quantity fields
    when i check my datasource i get the following error
    specify reference table AND reference field
    below is more detail on it  but i am not sure i know what is means
    Diagnosis
    You must specify reference tables and reference fields for fields containing currency amounts or quantity data. You have specified either only the reference field or the reference table and have not maintained either entry.
    Procedure
    Add the missing entry. You can do this with the single field maintenance function of the table.
    i have tried ua=sing data element instaed of field name but still no luck
    can anyone help?
    Thankyou
    PG

    Hi,
    When you enhace datasource for currency/quantity fields, you have to give reference fields and tables for that.
    Please specify the reference field and reference table for the currency/quantity field.
    Are you enhancing generic DS?
    Thanks,
    Praveen Tati

  • Problem with editable ALV

    Hi All,
    I am using the method set_table_for_first_display for ALV Editable. After entering the values on the alv screen the values are not getting reflected unless press enter or should come out of my last cell to reflect the changes.
    I have used the mc_evt_enter and mc_evt_modified.
    I need to trigger the change data event with out coming out of my last cell and pressing the enter bubtton.
    This should happen atleast while pressing the save button or as soon as we modify the value in the cell.
    Please suggest me the code to trigger this.
    Thanks & Regards,
    Raghuveer Kumar K.

    Hi,
    i HAVE ENCOUNTERED THE SAME PROBLEM BUT I DID WITH THE FOLLOWING SOLUTION.
    Add a Save button on the container and add the save functionality.
    Just add the following class methods
      CLASS-METHODS:
          handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
          IMPORTING
            e_object ,
            handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
          IMPORTING e_ucomm.
    then in implementation of the above methods declared class.
    METHOD handle_toolbar.
        DATA:
          lw_toolbar TYPE stb_button.
        CLEAR lw_toolbar.
        lw_toolbar-function = 'SAVE'.
        lw_toolbar-icon = 'ICON_DETAIL'.
        lw_toolbar-butn_type = '0'.
        lw_toolbar-text = 'SAVE'.
    APPEND lw_toolbar TO e_object->mt_toolbar.
    when user clicks save modify the internal table that contians the data.
    Regards and Best wishes.

  • Problem with Interactive ALV GRID

    Hi Friends,
    I am using CL_GUI_ALV_GRID for my ALV.
    IT is an interactive report.
    On double click of First grid, i am displaying the secondary ALV.
    Problem 1.
    When i come back from Secondary to First List, click a different row and go to Secondary List, the secondary list is still showing the previous records? what could be the problem. I have used
    +CALL METHOD cl_gui_cfw=>flush.
          lgrid_200->refresh_table_display(
                            EXPORTING  is_stable = wa_stable ).
          REFRESH it_bcont_sec. -> Internal table for secondary ALV
          SET SCREEN 0.
          LEAVE SCREEN. +
    Problem 2.
    When i come back from secondary list to primary list, i am still able to see the secondary list in the background. How can i overcome this?
    I wrote
    +      SET SCREEN 0.
          LEAVE SCREEN +
    Any clue or help is highly appreciated.
    Thanks,
    Ajay

    I am using DoubleClick to jump to secondary ALV.
    This is my code in Handle Double Click method:
      READ TABLE it_bcont_count INTO wa_bcont_count INDEX p_e_row-index.
      IF sy-subrc EQ 0.
        populate Internal table for secondary alv in Screen 200
      ENDIF.
      IF NOT it_bcont_sec IS INITIAL.
        CALL SCREEN 200.
      ENDIF.
    Edited by: ajay matam on Feb 25, 2011 4:27 PM

  • Problem with seeing ALV report for others

    Hi,
      I created custom report with  using Submit and calling standard report RTPM_TRL_SHOW_FLOWS,
    I can see the output of the report but other team members can't see any data like what I am seeing.
       Do you know why nobody is able to see the data but only me.
    Thanks a lot.

    Hi,
    just check with authorization of other,
    also check if they are executing it in the same way as you are....
    also check with the client they have logged into... if they are in different client then the data would differ or may be there would be no data in the client which they have logged in....
    if none of the above works,
    try to debug the code and check where exactly it is failing....
    Regards,
    Sid

  • (URGENT) problem with JTable: can't catch ENTER and control focus in JTable

    I hava a JTable and a AbstractTableModel.
    Here is what i want to DO.
    When I press the ENTER or TAB I want to set focus to cell wich is 2 position away from the the sell I am editing
    on the same row in the JTable. How can I do this.
    in fact, that is my real question HOW to ?
    When I press the ENTER or TAB in JTABLE I want to tell to JTable which cell to grab the focus

    In the UI is defined the InputMap/ActionMap pair to respond to keys. There is defined an action for ENTER. I have had the same problem, and the only thing that worked for me was to clear the actionMap, and reassign some keys to their original action, and some (e.g. ENTER, TAB) to my actions. This worked. With TAB is harder beacuse i guess it's deeper in the JVM implemented, but after a while i've managed to overwrite that too.

  • Problems with initial set up for mail and other things

    I am having issues with mail set up and getting printers and other things work with Mac Pro Book, since i am new convert i am feeling really frustrated with these things, anyone out there has experince in mac mail set ups and other instatlations like msn messanger etc.

    Sorry you are having problems but you need to provide more detailed information about the problems such as what type of email account are you trying to set up in Mail - .Mac, IMAP or POP and is this account provided by your ISP used for connecting to the internet or by an email account provider?
    What happens including error messages provided when trying to create the email account in Mail?
    Regarding a printer problem, this is the Mail & Address Book forum. You should post a question about printer issues with detailed information such as the make and model of your printer and what you have tried to this point at the Printer & Faxing forum here.
    http://discussions.apple.com/forum.jspa?forumID=756
    Installing MSN Messenger should be easy. I believe Messenger does not include an installer and is provided as package via a disk image that only requires dragging the application from the mounted disk image to your Applications folder which copies the application package from the mounted disk image to your hard drive.
    What problems are you having with installing Messenger?

  • Problems with Windows Media Player for OSX and IMAC G5 Intel Duo

    I was able to download Windows Media Player 9 for Mac but when I surf on the net and I click on the WMP files, instead of opening automatically, it downloads the content and only then lets me open it.
    Also, with live streaming, when I click for the window to open it will say that: "Some content on this page requires an Internet plug-in that Safari doesn’t support. The application “Windows Media Player” may be able to display this content. Would you like to try?".
    Except that I already downladed WMP... It worked fine with the PowerPc G5 so it must be the Intel chip. Please help.
    GC
    Imac G5 20" INtel Duo 2GHZ   Mac OS X (10.4.6)  
    Imac G5 20" INtel Duo 2GHZ   Mac OS X (10.4.6)  

    Microsoft has abandoned WMP for the Mac and has ceased development. You may wish to consider and alternative!
    WMP 9 for Mac is not a Universal binary, so it does not run natively on Intel iMacs. It runs using Rosetta. If the WMP plugin is installed in HD/Library/Internet Plugins/ for it to run usable by Safari you must be using Safari with Rosetta.
    I have two versions of Safari, Safari - Uni & Safari - Rose, Uni runs natively and Rose uses Rosetta. To make a Rose version;
    1. Right-click Safari and choose Duplicate
    2. Rename the copy whatever you like to tell it from the other; ex: Safari - Rose
    3. Right-click Safari - Rose and choose Get Info
    4. In the top pane of the Info window check the box Run using Rosetta.
    You need to use Safari -Rose for websites with WMP multimedia material to get it to play in the browser.
    There are also WMP replacements that you can use with Safari such as Flip4Mac and others. Here is a Discussion that covers many of the alternatives;
    http://discussions.apple.com/thread.jspa?messageID=2190033&#2190033

  • Urgent: problem with sharing HttpSession  object between Jsp and servlets.

    Hi,
              We are using weblogic 6.0 sp2.
              I m setting a particular object in session in a servlet using
              session.setAttribute() but when i try to retrieve that object using
              session.getAttribute() in a jsp page the value of that object is null. Is
              there any way to configure HttpSession in weblogic so that jsps and servlet
              can share the same session? Or any workaround for this problem.
              Any help in this regard is appreciated.
              Thanks
              -Shree
              

    Just a guess, but it sounds like you have cookies turned off and are not
              using encodeURL. Try enabling cookies and see if that solves the problem.
              Also, it is generally good practice to use encodeURL to protect yourself
              from users who disable session cookies.
              Here's how we use encodeURL in our Servlets:
              gotoPage("/jsp/someJSP.jsp");
              private void gotoPage( String address,
              HttpServletRequest request,
              HttpServletResponse response )
              throws ServletException, IOException
              RequestDispatcher dispatcher =
              etServletContext().getRequestDispatcher( response.encodeURL( address ));
              dispatcher.forward( request, response );
              "Shree Unde" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              > We are using weblogic 6.0 sp2.
              > I m setting a particular object in session in a servlet using
              > session.setAttribute() but when i try to retrieve that object using
              > session.getAttribute() in a jsp page the value of that object is null. Is
              > there any way to configure HttpSession in weblogic so that jsps and
              servlet
              > can share the same session? Or any workaround for this problem.
              > Any help in this regard is appreciated.
              > Thanks
              > -Shree
              >
              >
              

  • Problem with editing the size of artboard and objects in illustrator!

    I was using a custom size of artboard in illustrator, but I now I want to change it to A4 size for printing. However, when I change it to a A4 size artboard, the size of objects on that artboard remain unchange. As a result these objects do not fit the new size of artboard. Are there any way that I can change both the size of artboard and objects at once? Thank you!

    Probably not.  Don't suppose you have a proportion scale handy?  Alright, don't worry about it.  Give me the size of your original ( in inches ) and the size of A4 ( in inches ), I can give you the scale percentage ( you input into the scale dialog box ).  Whatever you do, keep your original file and do the enlargement on a "copy" of the original.  You already have the new artboard, not it is just a simple matter of enlarging the artwork to fit the new size.

  • Background Execution Problem-Docking Container with 2 ALV Grids in one scre

    Hi Friends,
    I have created 2 ALV Grids in one screen - one below another using DOCKING CONTAINER.
    The objects are 'g_dock_cont' and 'g_dock_cont1'.
    I am getting the foreground output as expected with 2 ALV Grids.
    While executing in background (F9), I am getting only output of first ALV grid. Second ALV is not getting displayed in BACKGROUND(F9) mode.
    How to solve this.
    FORM create_objects.
    * Materials with data
      IF   g_dock_cont IS INITIAL.
       IF sy-batch NE 'X'.
    *CREATE THE OBJECT FOR DOCKING CONTAINER
        CREATE OBJECT g_dock_cont
          EXPORTING
            side                  = cl_gui_docking_container=>dock_at_top
            extension             = 300.
        ENDIF.
    *CREATE THE OBJECT FOR ALV GRID
        CREATE OBJECT g_alvgrid
               EXPORTING i_parent = g_dock_cont.
        wa_layout-grid_title =
              'Materials with Data'.
      ENDIF.
    IF NOT I_DETAIL[] IS INITIAL.
    CALL METHOD g_alvgrid->set_table_for_first_display
      EXPORTING
        IS_VARIANT                    = WA_VARIANT_STX
        IS_LAYOUT                     = wa_layout
      CHANGING
        it_outtab                     = I_DETAIL
        IT_FIELDCATALOG               = LIT_FIELDCATALOG[]
      EXCEPTIONS
        INVALID_PARAMETER_COMBINATION = 1
        PROGRAM_ERROR                 = 2
        TOO_MANY_LINES                = 3
        others                        = 4
    IF sy-subrc <> 0.
    ENDIF.
    ENDIF.
    *MATERIALS WITHOUT DATA
      IF   g_dock_cont1 IS INITIAL.
       IF sy-batch NE 'X'.
    *CREATE THE OBJECT FOR DOCKING CONTAINER
        CREATE OBJECT g_dock_cont1
          EXPORTING
            side                  = cl_gui_docking_container=>dock_at_bottom
            extension             = 300.
       ENDIF.
    *CREATE THE OBJECT FOR ALV GRID
        CREATE OBJECT g_alvgrid1
               EXPORTING i_parent = g_dock_cont1.
        wa_layout1-grid_title =
              'Materials without Data'.
      ENDIF.
    IF NOT I_MARA[] IS INITIAL.
    CALL METHOD g_alvgrid1->set_table_for_first_display
      EXPORTING
        IS_LAYOUT                     = wa_layout1
      CHANGING
        it_outtab                     = I_MARA
        IT_FIELDCATALOG               = i_fieldcat[]
      EXCEPTIONS
        INVALID_PARAMETER_COMBINATION = 1
        PROGRAM_ERROR                 = 2
        TOO_MANY_LINES                = 3
        others                        = 4
    IF sy-subrc <> 0.
    ENDIF.
    ENDIF.
    ENDFORM.                    " create_objects
    Regards,
    Viji.

    Hi,
    What i was saying is that you need to code again for background mode of execution.
    AT END OF SELECTION.
    IF SY-BATCH EQ 'X'.
      PERFORM DISPLAY1.
      PERFORM DISPLAY2.
    In DISPLAY1 use REUSE_ALV_LIST_DISPLAY to display data from outtab1.
    In DISPLAY2 use REUSE_ALV_LIST_DISPLAY to display data from outtab2.
    For example : execute this report in background mode.this will not execute in online mode.
    After execution you will get two spools one for KNA1 and one for LFA1 data. Spool can be controlled via IS_PRINT structure.
    report  zrbackground.
    data gt_lfa1 type standard table of lfa1.
    data gt_kna1 type standard table of kna1.
    start-of-selection.
      select * from lfa1 into table gt_lfa1 up to 10 rows.
      select * from kna1 into table gt_kna1 up to 20 rows.
    end-of-selection.
      if sy-batch eq 'X'.
        perform display_lfa1.
        perform display_kna1.
      endif.
    *&      Form  DISPLAY_LFA1
          text
    -->  p1        text
    <--  p2        text
    form display_lfa1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'LFA1'
        tables
          t_outtab           = gt_lfa1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_LFA1
    *&      Form  DISPLAY_KNA1
          text
    -->  p1        text
    <--  p2        text
    form display_kna1 .
      call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          i_callback_program = sy-repid
          i_structure_name   = 'KNA1'
        tables
          t_outtab           = gt_kna1
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " DISPLAY_KNA1
    Please let me know if its not clear or you need more info.
    Thanks,
    Abhishek
    Edited by: abhishek sinha on May 8, 2009 7:42 PM
    Edited by: abhishek sinha on May 8, 2009 8:45 PM

  • Determining Duplicate Entries in Editable ALV Grid

    Hopefully this question is not as obvious as it may seem at first. Thanks for any input or ideas...read carefully, it is not just a simple duplicate check with which I'm having a problem.
    I have an editable ALV grid and I need to ensure that the user doesn't try to enter the same material number twice. I used the program BCALV_EDIT_03 and 04 as a model. I can tell if in my session a user is trying to put in the material number twice. Not a problem. I can also tell if the user is trying to add a material to the ones already on the grid that is a duplicate. That is not a problem either. Here is the catch...and I'd like to point out that BCALV_EDIT_04 has the same problem.
    The user enters line 10 with material 0245 and line 20 with 0345. There is no duplicate. Then they say, 'Oooops, I got them backward' and then move 0345 to line 10 and 0245 to line 20.  When you hit enter, the change handler says that line 10 and 20 were changed and the field MATNR was changed. It then compares the new fields to what is already in the grid...low and behold the grid already has these two entries and the protocol adds the error for both lines.
    I will add the code here, but it is pretty much exactly as in BCALV_EDIT_04. If you want to see the error in that program execute it, put in two new lines with the same airline and two different dates and hit save. Everything is fine. Then swap the dates and hit Save again...it will say these are duplicates, which they are not...this program is not saving to the database. The only difference between mine and bcalv_edit_04 is that mine uses an 'ENTER' event and not a 'SAVE'.
    I'm looking for good ideas on how to compare the two...the mt_good_cells (session active) and the grid itself to know when a user has 'moved' data. The current workaround is for the user to copy the line and then reapply it...but that seems a bit glitchy.
    Thanks in advance, I appreciate any sage advice. : )
    METHOD check_double_entries.
        DATA: lt_good_cells TYPE lvc_t_modi,
              ls_good TYPE lvc_s_modi,
              l_matnr TYPE matnr,
              l_del_row TYPE lvc_s_moce,
              ls_rosi LIKE LINE OF i_rosi,
              l_reentered TYPE c.
        LOOP AT pr_data_changed->mt_good_cells INTO ls_good.
          CASE ls_good-fieldname.
            WHEN 'MATNR'.
              CALL METHOD pr_data_changed->get_cell_value
                EXPORTING
                  i_row_id    = ls_good-row_id
                  i_fieldname = ls_good-fieldname
                IMPORTING
                  e_value     = l_matnr.
              READ TABLE lt_good_cells WITH KEY
                                value = l_matnr
                                TRANSPORTING NO FIELDS.
              IF sy-subrc = 0.
                CALL METHOD pr_data_changed->add_protocol_entry
                  EXPORTING
                    i_msgid     = '0K'
                    i_msgno     = '000'
                    i_msgty     = 'E'
                    i_msgv1     = text-m01
                    i_fieldname = ls_good-fieldname
                    i_row_id    = ls_good-row_id.
                error_in_data = 'X'.
              ELSE.
                ls_good-value = l_matnr.
                APPEND ls_good TO lt_good_cells.
              ENDIF.
          ENDCASE.
        ENDLOOP.
        LOOP AT lt_good_cells INTO ls_good.
          l_matnr = ls_good-value.
          READ TABLE i_rosi WITH KEY matnr = l_matnr
                        TRANSPORTING NO FIELDS.
          IF sy-subrc = 0.
            l_reentered = space.
            LOOP AT pr_data_changed->mt_deleted_rows INTO l_del_row.
              READ TABLE i_rosi INTO ls_rosi INDEX l_del_row-row_id.
              IF sy-subrc NE 0.
                MESSAGE i000(0k) WITH text-e01.
              ELSEIF ls_rosi-matnr EQ ls_good-value.
                l_reentered = 'X'.
              ENDIF.
            ENDLOOP.
            IF l_reentered NE 'X'.
              CALL METHOD pr_data_changed->add_protocol_entry
                EXPORTING
                  i_msgid     = '0K'
                  i_msgno     = '000'
                  i_msgty     = 'E'
                  i_msgv1     = text-m01
                  i_fieldname = ls_good-fieldname
                  i_row_id    = ls_good-row_id.
              error_in_data = 'X'.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "check_double_entries

    Hi Greg,
    please check your posting in the prview tab. If the code is not formatted, you posted too much. Reduce and try again, then somebody may be willing to read.
    Regards,
    Clemens

Maybe you are looking for

  • Help please - iTunes disc burner or software not found... with full troubleshooting details

    In iTunes 11.1.3.8 on my Windows 8 HP Laptop, when trying to "Burn Playlist to Disc", I get the Burn Settings window "E: hp DVD A DS8A9SH", then I select MP3 CD and click "Burn", I unfortunately get the dreaded iTunes "disc burner or software not fou

  • Multi Language support for universes created on SAP BW/BI

    Dear Gurus, When I am going through the document "using SAP BW in Designing OLAP universes" http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_sap_olap_universes_en.pdf in 13 th page under the heading "SAP BW Multilingual universes"

  • Satellite U500 - The volume buttons do not work

    Hello I just bought a Toshiba Satellite U500 two days ago, and already having problems :( It has a touch sensitive control buttons, which includes the eco utility, media buttons, and volume control (+ and -) The volume buttons do not work, and someti

  • Searching within clob columns

    I have two tables client_captions (which contains a varchar2 column called captions) clients (which contains a clob column called client) I'd like to know how many clients have any of the client captions within their clients data (which is a clob col

  • Need help troubleshooting Kernel panics

    Hi, I have had two Kernel Panics in two days just now, and another one a few weeks ago. The logs don't help me as I am not familiar with the wording on the Mac side, and I cannot submit the error reports to Apple as it fails, probably because I run 1