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

Similar Messages

  • How to populate date & time when user enter data for custom table in sm30

    Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
      Req is
      i have custom table and using sm30 user can enter data.
    after saving date i want to update date & time in table
    Pls let me know where to write the code?
    Thanks in Advance

    You have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
    FORM update_user_date_time.
      DATA: f_index LIKE sy-tabix.
      DATA: BEGIN OF l_total.
              INCLUDE STRUCTURE zztable.
      INCLUDE  STRUCTURE vimtbflags.
      DATA  END OF l_total.
      DATA: s_record TYPE zztable.
      LOOP AT total INTO l_total.
        IF l_total-vim_action = aendern OR
           l_total-vim_action = neuer_eintrag.
          MOVE-CORRESPONDING l_total TO s_record.
          s_record-zz_user = sy-uname.
          s_record-zz_date = sy-datum.
          s_record-zz_time = sy-uzeit.
          READ TABLE extract WITH KEY l_total.
          IF sy-subrc EQ 0.
            f_index = sy-tabix.
          ELSE.
            CLEAR f_index.
          ENDIF.
          MOVE-CORRESPONDING s_record TO l_total.
          MODIFY total FROM l_total.
          CHECK f_index GT 0.
          MODIFY extract INDEX f_index FROM l_total.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_USER_DATE_TIME
    Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated.

  • How the data is entered  in the customized table

    Hi,
    In implemenation scenario when we create generic extraction ,   how the data is entered
    in the customized table if it is huge data  ( around 5000 records)
    Regards,
    Vivek

    Hi Vivek,
    Follow bellow steps:
    1.Goto RSO2.
    Choose Datasource from bellow of Three
    a). Transaction Data
    b). Master data Attributes
    c). Master data Text
    2.Specify Application component(SD/MM..)
    3.There are three extraction methods to fill datasource.
    4.Select extraction method extracts the data from a transparent table or database view.
    5.Select Extraction from View, then we have to create the View.
    a).Specify the view name.
    b).Choose the view type (Database view) from bellow mentioned views.
    i). Database view.
    ii). Projection view.
    iii).Maintainance view.
    iv). Help view.
    6. Specify Tables and Join Conditions and define view fields.
    7. Assign View to Datasource
    8. Once you specify view in Data source, the extract structure will generate.
    9. you can check the data in RSA3.
    Regards,
    Suman

  • What is the transaction code to enter data into mkpf table

    Hi,
    I want to enter data into mkpf table but through a transaction code.
    What is the transaction code?
    Thanks.
    deniz.

    Hi,
    Go to SE16N transaction code.
    Now you enter the table name ex: u201CMKPF u201C, if u wants to insert the values.
    in Command bar
    you enter the transaction code u201C &SAP_EDIT u201D. 
    Press enter.
    Then click on execute button. 
    Now here I would like to change some data.
    Here we can do any operation in application tool bar.
    Enter values
    And click on save button.  
    Regards,
    Sujit

  • Abap table /alv grid

    Hi Experts,
    I m looking for some abap sample programs to build a program with tabs.
    In any tab you have a table (ALV GRID ) with buttons to move up/down the selected row.

    1.Table maintanence generateor is used to maintain the table .
    If u want to allow others to create new entries u have to maintain the table.Which will have all the changes to the table.so that the users can get the newly activated table to go for further process..
    2.
    To edit the grid value u have to set the fieldcate.
    WA_FIELDCAT-EDIT = ''X'.
    3.
    Table control s used for the changes then and there and user friendly
    ALV is for Sort layoput changes and can download to wordformat etc...

  • Unable to select any row(s) in table/ALV

    Hi ,
    I am having a problem while selecting a row in a table/ALV.
    I am displaying data in a table which is NOT set to 'Initialize lead selection' in the context.When it is displayed and I try to select a row the row does not get selected(highlighted) in the view.
    However,I am able to perform tasks on 'Onselect' event on the rows.Just that its not getting highlighted neither in table nor in ALV.
    What could be the reason for this ? I do not want the context element to be set as 'Initialize lead selection' as that would highlight the first line of the table when the view is rendered first time.
    Thanks for your help,
    Sandip.

    hi sandip,
    Try this method
    lo_table_sett  TYPE REF TO if_salv_wd_table_settings.
    lo_config_tab TYPE REF TO cl_salv_wd_config_table.
    lo_config_tab = lo_ref_interface_controller->get_model( ).
    lo_table_sett   ?= lo_config_tab.
    lo_table_sett ->SET_SELECTION_MODE( value ).
    value- '00' for auto
             '02' for single
             '04' for multi
             '06' for none
             '07'  for singleNolead
             '08' for multi Nolead
    Regards,
    janakiram

  • When entering text into a table letters are very slow to show up.

    When I enter text into a table, the text loads VERY slowly. What's that about?

    Problem 1: In Table A, when adding or updating data, I want to select data from fields in records based on primary key in other tables. Add and update data works. But my popup "X" list is way too long. I want the popup "X" when adding or
    updating record in Table A to only give me the choice of records from Table B that matches the data I entered in a previous field in Table A, not all the records from Table B.
    For this question, you can create SortTable screen to sort the data based on table A and table B. is this what you need?

  • Display/Print the Selection criteria entered by USER on the ALV Report o/p?

    Hi Experts,
    I hv a requirement of to print/display the Selection criteria entered by user in the selection screen.........on the top portion of the ALV report output lay out.
    There is a FM for this purpose, but, I forgot its name!!
    So, let me know the FM or FMs, so that, will choose, which is best one,
    or the piece of code, which covers all select-option entries..........appreciated.
    thanq
    Edited by: SAP ABAPer on Sep 3, 2008 6:35 PM

    Use the Function RS_REFRESH_FROM_SELECTOPTIONS get the selection details, now format the data accordingly in the TOP_OF_PAGE using the calss CL_DD_DOCUMENT.
    Check the below mention code.
    REPORT  ztest_page.
    TABLES: sflight.
    DATA : it_flight TYPE TABLE OF sflight WITH HEADER LINE.
    DATA BEGIN OF it_sel_opt OCCURS 0.
            INCLUDE STRUCTURE rsparams.
    DATA END   OF it_sel_opt.
    SELECT-OPTIONS: s_carrid FOR sflight-carrid.
    START-OF-SELECTION.
      SELECT * FROM sflight INTO TABLE it_flight
       WHERE carrid IN s_carrid.
    END-OF-SELECTION.
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          curr_report     = sy-repid
        TABLES
          selection_table = it_sel_opt
        EXCEPTIONS
          not_found       = 01
          no_report       = 02.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = sy-repid
          i_callback_html_top_of_page = 'TOP_OF_PAGE'
          i_structure_name            = 'SFLIGHT'
        TABLES
          t_outtab                    = it_flight
        EXCEPTIONS
          program_error               = 1
          OTHERS                      = 2.
    *&      Form  top_of_page
    *       text
    *      -->DOCUMENT   text
    FORM top_of_page USING document TYPE REF TO cl_dd_document.
      DATA : dl_text(255) TYPE c.  "Text
    * Add new-line
      CALL METHOD document->new_line.
      CALL METHOD document->new_line.
      CLEAR : dl_text.
    * program ID
      dl_text = 'Program Name :'.
      CALL METHOD document->add_gap.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_heading_int.
      CLEAR dl_text.
      dl_text = sy-repid.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      CLEAR : dl_text.
      dl_text = 'Selection Criteria'.
      CALL METHOD document->add_gap
        EXPORTING
          width = 34.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      CLEAR : dl_text.
      CONCATENATE 'SELECT Option' 'SIGN' 'OPTION' 'LOW' 'HIGH'
      INTO dl_text SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
      CALL METHOD document->add_gap
        EXPORTING
          width = 34.
      CALL METHOD document->add_text
        EXPORTING
          text         = dl_text
          sap_emphasis = cl_dd_area=>heading
          sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
      CALL METHOD document->new_line.
      LOOP AT it_sel_opt.
        CLEAR : dl_text.
        CONCATENATE it_sel_opt-selname  it_sel_opt-sign
         it_sel_opt-option it_sel_opt-low it_sel_opt-high
        INTO dl_text SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
        CALL METHOD document->add_gap
          EXPORTING
            width = 34.
        CALL METHOD document->add_text
          EXPORTING
            text         = dl_text
            sap_emphasis = cl_dd_area=>heading
            sap_color    = cl_dd_area=>list_negative_inv.
    * Add new-line
        CALL METHOD document->new_line.
      ENDLOOP.
    ENDFORM.                    "top_of_page

  • CL_GUI_ALV_GRID Problems when using enter and f4 in one ALV

    Hi guys,
    i have the following problem:
    I Use a ALV, which has a column MATNR. The ALV provides the standard search help for this field automatically. so far so good. BUT i also need to read additional data, such as GLD, Material shortext etc, when the users presses the Enter Key.
    Here is my coding:
          CLASS lcl_events DEFINITION
    CLASS lcl_events_0300 DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_data_changed
                FOR EVENT data_changed OF  cl_gui_alv_grid
                IMPORTING er_data_changed sender.
    ENDCLASS.                    "lcl_events DEFINITION
    The problem that occurs: if i select a material via f4, i just can add one material to the alv. if i place the cursor into the second line, press f4 again, the alv overwrites the MATNR in the first line
    i think the problem has to do with the fact, that the alv runs throug my enter event, when pressing f4.
    thats how i registered my event:
      g_o_alv_grid_bart_0300->register_edit_event(
      EXPORTING
       " i_event_id = g_o_alv_grid->MC_EVT_MODIFIED ).
         i_event_id = g_o_alv_grid->mc_evt_enter ).
    ...und EventHandler zuweisen
      CREATE OBJECT g_o_alv_events_0300.
      SET HANDLER g_o_alv_events_0300->handle_data_changed FOR g_o_alv_grid_bart_0300.
    kind regards, mark
    Edited by: Mark Wagener on Aug 19, 2010 11:39 AM
    Edited by: Mark Wagener on Aug 19, 2010 11:40 AM

    Sorry for forgetting the impl. part of the class!
          CLASS lcl_events_0300 IMPLEMENTATION
    CLASS lcl_events_0300 IMPLEMENTATION.
      METHOD handle_data_changed.
    HandleDataChanged                  ***
        DATA: ls_good                TYPE lvc_s_modi.
         FIELD-SYMBOLS: .
    alle Inhalte der geänderten Zellen in die interne Tabelle schreiben
        LOOP AT er_data_changed->mt_good_cells INTO ls_good.
    Dazu auf die richtige Zeile in der ITAB positionieren:
          READ TABLE  INDEX ls_good-row_id.
          IF sy-subrc = 0.
    Und das geänderte Feld dem Feldsymbol zuweisen
            ASSIGN COMPONENT ls_good-fieldname OF STRUCTURE .
            IF sy-subrc = 0.
    Feldwert zuweisen
              -matnr
            AND bwkey = werks.
      ENDLOOP.
    Und neu ausgeben
        g_o_alv_grid_bart_0300->refresh_table_display( ).
      ENDMETHOD.                    "handle_data_changed

  • On enter event for cells in ALV

    Hi experts,
    In standard table we have an action 'On Enter'  for the cell editor.
    how to create the same in ALV ?
    Thank You.

    Hi,
    In the View where you will be embedding the ALV, create an event handler under the methods tab. Select Event from F4 Help. you will be able to see all the events that are poosible with ALV. Select the Event ON_CELL_ACTION.
    I am assuming that you have created a component usage for SALV_WD_TABLE component.
    FYI. Following Events are possible with ALV:
    ON_AFTER_CONFIG
    ON_CELL_ACTION
    ON_CLICK
    ON_DATA_CHECK
    ON_FUNCTION
    ON_LEAD_SELECT
    ON_STD_FUNCTION_AFTE
    ON_STD_FUNCTION_BEFO
    Check this pdf: [Editing ALV in Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
    Regards,
    Reema.
    Edited by: Reema Shahbazkar on Apr 2, 2008 11:45 AM

  • Remove Enter Sign in External Table

    Dear Gurus,
    I have external table with show 'enter sign'.
    I thought it was blank space but not.
    How to remove it?since function TRIM can't remove it.
    Records delimited by newline -> is that any syntax to prevent enter sign appear?
    Thank you
    Regards
    JOE

    This seems to be a TOAD issue - pl ask in the TOAD forums - http://toadworld.com/Discussions/tabid/824/Default.aspx
    HTH
    Srini

  • 4.0EA1 Entering date values in table editor

    Hello out there,
    I don't know if that has been reported already. So I'm doing it again.
    I have a table containing a date column and set my NLS_DATE_FORMAT to 'DD.MM.YYYY HH24:MI:SS'.
    In version 3.2, I could enter date values just by giving a date without time e.g. 29.08.2013. In the table editor of version 4.0, I'm forced to enter 29.08.2013 00:00:00 otherwise the field is cleared after leving it by pressing TAB.
    Is there some new preference setting for that? I'm having another table where I want to enter date values with time though...
    If that matters, I'm using SQL*Developer 4.0.0.12.27 with JDK 7.0_17 64bit on OpenSuse Linux 12.3 and connecting to Oracle 12.1.0.1.0 on Solaris 10 Sparc64.
    As I'm writing the JDK version, could it be that a newer JDK solves that issue? I'll try that.
    Regards,
    dhale

    I'm thinking that it should assume all zeros for the time portion in this scenario, since that's how sqlplus (and, I believe, previous SQL Developer releases) handles it.  For example:
    SQL> alter session set nls_date_format='YYYY-MM-DD HH24:MI:SS';
    Session altered.
    SQL> select to_date('2013-09-10') from dual;
    TO_DATE('2013-09-10
    2013-09-10 00:00:00

  • Dynamic Columns in table /ALV

    Hi ,
    I need to decide number of columns at run time out of fixed number of coulmn in  table.
    one way of doing it through ALV column hiding  but problem is what ever coloumns I hide programeticaly user can always to go ALV settings and unhide them and that defeats the purpose.
    is there any otherway I can determine my number of columns dynamicaly.
    It can be a  table or ALV table.
    Thanks
    Gaurav

    Hi gaurav,
    In d Do_init method ,
    read the table following table
    data : ls_function            TYPE        salv_wd_s_a_function_ref,
    Disable Setting on ALV
      READ TABLE wd_this->alv_config_table->
    if_salv_wd_function_settings~t_functions
         INTO ls_function
         WITH KEY id = 'SALV_WD_SETTINGS'.
      IF sy-subrc = 0.
        ls_function-r_function->set_visible( cl_wd_uielement=>e_visible-none ).
      ENDIF.
    reward If Usefull

  • Enter Key Event in Editable ALV Grid

    Hi all,
    I am trying to create and editable ALV grid using the REUSE ALV FM.
    On the grid after changing a value, if I press enter key the pai is not triggered. I have tried the various example programs (BCALV*) but could not find anything relevant.
    Basically I need similar functionality to normal module pool programming as in validations on screen done when enter key is pressed after screen entry.
    Is it possible to capture the Enter keypress on the ALV grid?

    Hello Preet
    I can only tell you how I would solve this using the ALV grid control (CL_GUI_ALV_GRID) because I have abandoned using ALV function modules.
    The problem with running through PAI is whether the focus (i.e. the cursor) is still on the control or already on the (surrounding) main program. If the control has the focus, you do not run through PAI.
    I would add a "Refresh" button to the toolbar of the ALV list. Normally, this button is already there or you only have to make it visible.
    When the user pushes this button you catch the corresponding user-command and call the CHECK_DATA_CHANGED method to see if values have been changed on the editable grid. If so, the previous method will fire event DATA_CHANGED.
    Now, in the event handler method (e.g. HANDLE_DATA_CHANGED) you receive as input a data change object (CL_ALV_CHANGED_DATA_PROTOCOL). This object contains all changed values. These values you will need to make your checks.
    I assume that the logic will be similar using ALV function modules.
    Regards
       Uwe

  • I want to enter information in one table and have it update other tables automatically

    I am a very unlearned Numbers user.
    Here is my desire/dilemma.  I run a summer camp and have to record information for our camp.  I use the information in a number of forms from check in and check out to records for each cabin, and more.
    I would like to create a master table that has all of the information for each camper that I will call a master list. I then want to create the tables that will contain the information needed for each specific form.  I want the specific forms to be able to update automatically when new information is entered in the master.  The master record will be sorted by the cabin and bed numbers, so I can tie the subtables to those cells, but I need the row to update as well.
    My question is how can I do this in the shortest and simplest way possible?
    I hope this question is clear.
    Thanks!
    Roy

    Hi Roy,
    Well, the simplest is likely to sort the Master table by Cabin number, then use copy/paste to transfer the information to the separate tables for each cabin. But that's not automatic.
    Before jumping in to this, I'd like a better idea of what your Master table will look like, what one of the sub-tables would look like, and which data you want to transfer from the Master to the Subs. A screen shot would be helpful to anyone trying to help you with this, not just to me.
    One consideration is how you will use the sub-tables. An immediate difficulty that comes to mind if you are goiing to mix retrieved data and directly recorded data on the same table is that data collected from the Master table and data recorded directly on one of the sub tables are independent of each other. Consider the list below:
    1 Bob Baines
    2 Chuck Clay
    2 Dexter Davis
    3 Ed Elmore
    1 Frank Fencepost
    1 Greg Gilson
    3 Harvey Hall
    Bob, Chuck and Frank would appear (in that order) on the Cabin 1 list:
    Bob       x √ √ √
    Frank    √ √ √ √
    Greg     √ x x √
    But if Chuck, for some reason, was transferred to cabin 1:
    1 Bob Baines
    1 Chuck Clay
    2 Dexter Davis
    3 Ed Elmore
    1 Frank Fencepost
    1 Greg Gilson
    3 Harvey Hall
    That transfer would affect only the data collected from the Master table. The data entered directly would remain where it was when entered, with disastrous results to Frank's (so far) perfect attendance record.
    Bob        x √ √ √
    Chuck    √ √ √ √
    Frank     √ x x √
    Greg
    Regards,
    Barry

Maybe you are looking for

  • Firefox will not start at all

    New versions of Firefox will not start and only bring up the crash reporter. I've tried starting in safe mode, I've deleted/created new Profiles and I've uninstalled/installed Firefox over and over. I can still download 28.0 and it has no problem ope

  • AC 10 - Action Usage reports

    Hi I was wondering if anyone knows which SAP tables the GRC system gathers the Action Usage information from. We run the background job GRAC_ACTION_USAGE_SYNC to pull this data into the GRC system, and can then display it in the reports, but what tab

  • About cluster and admin server

    I try to implement cluster like this           admin server           |           |           | |           | mycluster |           server1 server2           (web) (web)           admin server start as Administrator server           server1 and serve

  • Reg:- Multiple Forms Handling(Urgent)

    What are the conventions that we have to follow when calling a form from another form. put your emphasis on how to handle commits in both the forms null

  • Hard disk not recognized on MacBook

    Hi, I have a 2006 MacBook Core Duo. Since yesterday, the machine won't start up. I hear a clicking sound on startup, then the question mark appears in the center of the screen. Can't see the disk in System Profiler or Disk Utility either. My question