Enter key in jato:textField crashes ViewBean
I have a jato:textField in a very simple JSP/ViewBean which was migrated
from NetDynamics with the iMT tool and then hand-modified to work under the
JATO framework.
If I click Enter in the textField, the page crashes with ServletException
"The request was not handled by the specified handler". It doesn't give a
line number. Using an IDE debugger (JBuilder) I see that a forwardTo()
method has been invoked.
Other pages don't react to the enter key like this. They beep the
client. Exactly what I want. Where do I look for trouble?
Ned Kellogg
Harvard University Development Office
124 Mt Auburn Street, 4th Floor
Cambridge, MA 02138
617-495-4164
[Non-text portions of this message have been removed]
Did you try searching the forum first before posting your questions?
The following keywords, taken directly from your question would be a good place to start: "disable enter jtextarea".
Similar Messages
-
Using Enter key on the TextField
How to complete filling of the text to a TextField after pressing key "Enter"?
pressing enter causes any ActionListener objects to be notified. checkout the java tutorial to see how to do this:
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
(note this actually uses a JTextField but it's pretty much the same with TextField)
jonesy (sun developer support) -
Need help on tips of Enter Key form Default Action!
Hi
In Iplanet-Jato-Tips
Enter Key Form Action Default Command i had a problem.
Is there any way to avoid the Enter action.
I need the same functionality which they specified in the tips,but not while
enter on a text field.
I need that functionality(default command child) ,but that action should
happen only at onclick,onFocus etc.So how to do for that.
My Ultimate question is
I need a default handler method which should handle my request if i submit a
page thru javascript having document.form.submit().
Please help needed,i was exhausted in asking this question in so many ways.
Thanks
Awaiting for reply.
JayaHi,
<a href="/people/sap.user72/blog/2005/05/09/have-you-played-blindfold-chess's</a> how to create a dynamic table, though I think you have already done this.
Do look at the comment that Armin Reichert has put in. Now in the source code that he has provided, the last line should be
table.setOnLeadSelect(wdThis.wdGetLeadSelectAction());
Have you done something similar to this?
Have you set the initializeLeadSelect property of the datasource node to true?
Regards,
Satyajit.
Message was edited by: Satyajit Chakraborty -
Arrow keys and enter key not functioning in Firefox 3.6 when viewing PDF
I'm using Adobe Reader 9.3.0.
I have a web application that displays PDFs (using Adobe Reader) in a browser. The PDF is loaded onto the page inside an IFRAME. In addition to the IFRAME containing a PDF, the page also includes several forms, text fields, etc. For the most part this is working fine. However, I have a glitch when using this in Firefox 3.6. I'm finding that certain keyboard events are being lost and I strongly suspect that they are being swallowed by Adobe Reader. When I place focus on an HTML text field and press enter key or arrow keys, I do not get the appropriate key events. If I run the exact same test without the PDF IFRAME these key events work correctly, but as soon as I load the PDF into the IFRAME they do not. I believe the primary key event that gets lost is the keydown event. I do get the keyup event.
Again, the events work correctly up until I load the PDF onto the page.
I've verified that this error does not occur in Firefox 3.5 and 3.0.
Here is a testcase to reproduce this:
<html>
<head>
<title>JavaScript - Detecting keystrokes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var pdfURL = 'http://samplepdf.com/sample.pdf';
window.onload = function () {
init();
document.defaultAction = true;
function init() {
var x = document.getElementById('testForm').getElementsByTagName('input');
for (var i=0;i<x.length;i++) {
x[i].onclick = setEvents;
if (x[i].checked)
x[i].onclick();
writeroot = document.getElementById('writeroot');
document.getElementById('emptyWriteroot').onclick = function () {
writeroot.innerHTML = '';
return false;
function setEvents() {
if (this.id == 'default') {
document.defaultAction = !this.checked;
return;
var eventHandler = (this.checked) ? detectEvent : empty;
document.getElementById('textfield')['on'+this.id] = eventHandler;
//document['on'+this.id] = eventHandler;
function detectEvent(e) {
var evt = e || window.event;
writeData('<b>'+evt.type+'</b>: keyCode=' + evt.keyCode+' : charCode=' + evt.charCode);
return document.defaultAction;
function empty() {
// nothing
var writeroot;
function writeData(msg) {
writeroot.innerHTML += msg + '<br />';
</script>
<style type="text/css">
body {
font-size: 12px;
#writeroot {
height: 300px;
overflow: auto;
border: 1px solid #2EB2DC;
</style>
</head>
<body>
<form id="testForm">
<input type="checkbox" id="keydown" /> <label for="keydown">keydown</label><br />
<input type="checkbox" id="keypress" /> <label for="keypress">keypress</label><br />
<input type="checkbox" id="keyup" /> <label for="keyup">keyup</label><br />
<input type="checkbox" id="default" /> <label for="default">Suppress default action</label><br />
<input type="text" id="textfield" /><br />
<button id="emptyWriteroot">Remove messages</button>
</form>
<a href="#" onclick="document.getElementById('docviewer-page').src=pdfURL;return false">Now load IFrame</a>
<p id="writeroot"></p>
<div id="container2" style="border:1px solid black;width:400px;height:200px">
<iframe
id='docviewer-page'
name='docviewer-page'
title='document page'
src='http://www.google.com'
align='left'
width='100%'
height='100%'
scrolling='auto'
frameborder=0></iframe>
</div>
</body>
</html>
Paste the above into an HTML document. Open the HTML document in Firefox 3.6. Check the four checkboxes. Move into the text field and press arrow keys and enter key to observe the results when it is working correctly. Then click on the "Now Load PDF" link. Press the arrow keys and enter key again and observe that the behavior has changed.
Anybody have any idea why this is happening or how to work around it?I found a workaround!
By using an object tag instead of an iframe, all the keys seems to work fine and the PDF still renders in the page the same way.
Here's a page that works:
<html>
<head>
<title>JavaScript - Detecting keystrokes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
var pdfURL = 'http://samplepdf.com/sample.pdf';
window.onload = function () {
init();
document.defaultAction = true;
function init() {
var x = document.getElementById('testForm').getElementsByTagName('input');
for (var i=0;i<x.length;i++) {
x[i].onclick = setEvents;
if (x[i].checked)
x[i].onclick();
writeroot = document.getElementById('writeroot');
document.getElementById('emptyWriteroot').onclick = function () {
writeroot.innerHTML = '';
return false;
function setEvents() {
if (this.id == 'default') {
document.defaultAction = !this.checked;
return;
var eventHandler = (this.checked) ? detectEvent : empty;
document.getElementById('textfield')['on'+this.id] = eventHandler;
//document['on'+this.id] = eventHandler;
function detectEvent(e) {
var evt = e || window.event;
writeData('<b>'+evt.type+'</b>: keyCode=' + evt.keyCode+' : charCode=' + evt.charCode);
return document.defaultAction;
function empty() {
// nothing
var writeroot;
function writeData(msg) {
writeroot.innerHTML += msg + '<br />';
</script>
<style type="text/css">
body {
font-size: 12px;
#writeroot {
height: 300px;
overflow: auto;
border: 1px solid #2EB2DC;
</style>
</head>
<body>
<form id="testForm">
<input type="checkbox" id="keydown" /> <label for="keydown">keydown</label><br />
<input type="checkbox" id="keypress" /> <label for="keypress">keypress</label><br />
<input type="checkbox" id="keyup" /> <label for="keyup">keyup</label><br />
<input type="checkbox" id="default" /> <label for="default">Suppress default action</label><br />
<input type="text" id="textfield" /><br />
<button id="emptyWriteroot">Remove messages</button>
</form>
<a href="#" onclick="document.getElementById('docviewer-page').data=pdfURL;return false">Now load IFrame</a>
<p id="writeroot"></p>
<div id="container2" style="border:1px solid black;width:400px;height:200px">
<object
id='docviewer-page'
name='docviewer-page'
title='document page'
data='http://www.google.com'
align='left'
width='100%'
height='100%'
></object>
</div>
</body>
</html> -
Submit a Form in IE with Enter key.
Hi all,
I have a Form with a Get attribute, a textfield and a search
(submit) button.
When I press the Enter key in my keyboard, the form is not
submited in I.E. (i'm using IE 7).
When I click the button with the mouse, it works.
In Firefox, all (keyboard and mouse) works.
How can we workaround this issue?
Thanksoicram wrote:
> Please, I need an answer here. I have deeply search over
the internet and I only found something about .js or hidden fields,
but its all vague...
http://www.webreference.com/programming/java_dhtml/chap8/2/2.html
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Hi all,
I m getting an input from the user in an Inputfield. I also have a table with two columns.
The textfield is used to perform wildcard search (filter) for the table. That is, if i give a character like 'A', then the records which start with the character 'A' must be shown in the table when i press teh ENTER key..
I have got this outptu when i click a button. But i want to get the same output, when i give 'A' and press ENTER key..
How to acheive the same in WD4A?
Regards,
Shanthihi Shanthi,
for the corresponding Enter key , make a action say act in the EventPropery of the element.
in the Onactionact,method in the Methods tab , write the same piece of code , which u r writting in the Button
u wud be able to do it nw
regards,
amit -
Please Try to Help Me on this ............
I Have a Screen where I need to traverse focus (it has textfields, combo boxes and buttons) when I press the Enter Key (like Tab).
I used a Key listener and was able to do it (to a certain point)
The code I have written is below ..
Now The problem is when the focus sets on a JComboBox, it wont go further (tab works). I know that the enter key in a JComboBox is used to select a item.
So what I need is first to be able to select an item using the enter key and when press enter key again, the focus must go to the next component.
Is there a way to do it ???
(JCheckBox and JButton has similar problems)
SymKey aSymKey = new SymKey();
textfield1.addKeyListener(aSymKey);
textfield2.addKeyListener(aSymKey);
combobox1.addKeyListener(aSymKey);
combobox2.addKeyListener(aSymKey);
checkbox1.addKeyListener(aSymKey);
textfield3.addKeyListener(aSymKey);
button1.addKeyListener(aSymKey);
class SymKey extends KeyAdapter {
public void keyPressed(KeyEvent e){
if (e.getKeyCode() == e.VK_ENTER) {
if (e.isShiftDown())
FocusManager.getCurrentManager().focusPreviousComponent((JComponent)e.getSource());
else
FocusManager.getCurrentManager().focusNextComponent((JComponent)e.getSource());Hi,
You need to implement the focusmanager, and set currentfocusmanager with your focusmanger.Then it works out.Because Jcombobox is editable the keyevent of the combobox executes .
Hope it helps.
venkat -
Default button being clicked multiple times when enter key is pressed
Hello,
There seems to be a strange difference in how the default button behaves in JRE 1.4.X versus 1.3.X.
In 1.3.X, when the enter key was pressed, the default button would be "pressed down" when the key was pressed, but wouldn't be fully clicked until the enter key was released. This means that only one event would be fired, even if the enter key was held down for a long time.
In 1.4.X however, if the enter key is pressed and held for more than a second, then the default button is clicked multiple times until the enter key is released.
Consider the following code (which is just a dialog with a button on it):
public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
private JButton jButton1 = new JButton("button");
public SimpleDialog()
this.getContentPane().add(jButton1);
this.getRootPane().setDefaultButton(jButton1);
jButton1.addActionListener(this);
this.pack();
public void actionPerformed(ActionEvent e)
if (e.getSource() == jButton1)
System.out.println("button pressed");
public static void main(String[] args)
new SimpleDialog().show();
When you compile and run this code under 1.3.1, and hold the enter key down for 10 seconds, you will only see one print line statement.
However, if you compile and run this code under 1.4.1, and then hold the enter key down for 10 seconds, you will see about 100 print line statements.
Is this a bug in 1.4.X or was this desired functionality (e.g. was it fixing some other bug)?
Does anyone know how I can make it behave the "old way" (when the default button was only clicked once)?
Thanks in advance if you have any advice.
DaveHello all,
I think I have found a solution. The behaviour of the how the default button is triggered is contained withing the RootPaneUI. So, if I override the default RootPaneUI used by the UIDefaults with my own RootPaneUI, I can define that behaviour for myself.
Here is my simple dialog with a button and a textfield (when the focus is NOT on the button, and the enter key is pressed, I don't want the actionPerformed method to be called until the enter key is released):
package focustests;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
public class SimpleDialog extends JDialog implements java.awt.event.ActionListener
private JButton jButton1 = new JButton("button");
public SimpleDialog()
this.getContentPane().add(new JTextField("a text field"), BorderLayout.NORTH);
this.getContentPane().add(jButton1, BorderLayout.SOUTH);
this.getRootPane().setDefaultButton(jButton1);
jButton1.addActionListener(this);
this.pack();
public void actionPerformed(ActionEvent e)
if (e.getSource() == jButton1)
System.out.println("button pressed");
public static void main(String[] args)
javax.swing.UIManager.getDefaults().put("RootPaneUI", "focustests.MyRootPaneUI");
new SimpleDialog().show();
and the MyRootPaneUI class controls the behaviour for how the default button is handled:
package focustests;
import javax.swing.*;
* Since we are using the Windows look and feel in our product, we should extend from the
* Windows laf RootPaneUI
public class MyRootPaneUI extends com.sun.java.swing.plaf.windows.WindowsRootPaneUI
private final static MyRootPaneUI myRootPaneUI = new MyRootPaneUI();
public static javax.swing.plaf.ComponentUI createUI(JComponent c) {
return myRootPaneUI;
protected void installKeyboardActions(JRootPane root) {
super.installKeyboardActions(root);
InputMap km = SwingUtilities.getUIInputMap(root,
JComponent.WHEN_IN_FOCUSED_WINDOW);
if (km == null) {
km = new javax.swing.plaf.InputMapUIResource();
SwingUtilities.replaceUIInputMap(root,
JComponent.WHEN_IN_FOCUSED_WINDOW, km);
//when the Enter key is pressed (with no modifiers), trigger a "pressed" event
km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
0, false), "pressed");
//when the Enter key is released (with no modifiers), trigger a "release" event
km.put(KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER,
0, true), "released");
ActionMap am = SwingUtilities.getUIActionMap(root);
if (am == null) {
am = new javax.swing.plaf.ActionMapUIResource();
SwingUtilities.replaceUIActionMap(root, am);
am.put("press", new HoldDefaultButtonAction(root, true));
am.put("release", new HoldDefaultButtonAction(root, false));
* This is a copy of the static nested class DefaultAction which was
* contained in the JRootPane class in Java 1.3.1. Since we are
* using Java 1.4.1, and we don't like the way the new JRE handles
* the default button, we will replace it with the old (1.3.1) way of
* doing things.
static class HoldDefaultButtonAction extends AbstractAction {
JRootPane root;
boolean press;
HoldDefaultButtonAction(JRootPane root, boolean press) {
this.root = root;
this.press = press;
public void actionPerformed(java.awt.event.ActionEvent e) {
JButton owner = root.getDefaultButton();
if (owner != null && SwingUtilities.getRootPane(owner) == root) {
ButtonModel model = owner.getModel();
if (press) {
model.setArmed(true);
model.setPressed(true);
} else {
model.setPressed(false);
public boolean isEnabled() {
JButton owner = root.getDefaultButton();
return (owner != null && owner.getModel().isEnabled());
This seems to work. Does anyone have any comments on this solution?
Tjacobs, I still don't see how adding a key listeners or overriding the processKeyEvent method on my button would help. The button won't receive the key event unless the focus is on the button. There is no method "enableEvents(...)" in the AWTEventMulticaster. Perhaps you have some code examples? Thanks anyway for your help.
Dave -
Register Enter KeyboardAction to a TextField
hi,
I am registering enter keyboard action to a textfield as following which is not working
Action done = new KeysAction("done",this);
amountTextField.addActionListener(this);
amountTextField.registerKeyboardAction(done,KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),JComponent.WHEN_IN_FOCUSED_WINDOW);
class KeysAction extends AbstractAction
String ac;
public KeysAction(String name,Component comp)
ac=name;
target = comp;
public void actionPerformed(ActionEvent evt)
if (ac.compareToIgnoreCase("done")==0)
System.out.println("Enter Key Pressed in Amount Field ");
private Component target;
please helpThis thread uses InputMap/ActionMap classes to add an Action to a KeyStroke:
http://forum.java.sun.com/thread.jsp?forum=57&thread=450711 -
Hello
I have a problem with JMenuKeyListener, I have JTextField when I writing there is a popup appear then I have to choose from the Popup Menu by ENTER key, but it dose not work... any Idea?
Note: when you enter text on the JTextField start with 'i' ... :)
this is the Code:
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
public class TestJMenuItemLKeyistener extends JFrame implements KeyListener
private static final long serialVersionUID = 10000L;
private JButton exitButton = new JButton();
private JLabel resultLabel = new JLabel();
private JLabel searchInPopupLabel = new JLabel();
private JMenuItem item1 = new JMenuItem("item1");
private JMenuItem item2 = new JMenuItem("item2");
private JMenuItem item3 = new JMenuItem("item3");
private JPopupMenu popup = new JPopupMenu();
private JTextField textField = new JTextField();
* Launch the application
* @param args
public static void main(String args[])
try
TestJMenuItemLKeyistener frame = new TestJMenuItemLKeyistener();
frame.setVisible(true);
catch (Exception e)
e.printStackTrace();
* Create
public TestJMenuItemLKeyistener()
super();
try
createPopup();
jbInit();
catch (Throwable e)
e.printStackTrace();
private void createPopup()
popup.setPopupSize(new Dimension(200,120));
popup.setPreferredSize(new Dimension(200,120));
popup.add(item1);
popup.add(item2);
popup.add(item3);
private void jbInit() throws Exception
textField.setBounds(10, 10, 200, 40);
textField.addKeyListener(this);
resultLabel.setHorizontalTextPosition(SwingConstants.CENTER);
resultLabel.setHorizontalAlignment(SwingConstants.CENTER);
resultLabel.setText("Result");
resultLabel.setBounds(10, 56, 200, 40);
exitButton.setBounds(10, 216, 200, 40);
exitButton.setText("Exit");
exitButton.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
System.exit(0);
item1.addKeyListener(this);
item2.addKeyListener(this);
item3.addKeyListener(this);
this.setSize(400, 300);
this.setTitle("Test JMenuItem Listener");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.getContentPane().setLayout(null);
this.getContentPane().add(textField);
this.getContentPane().add(resultLabel);
this.getContentPane().add(exitButton);
this.setLocation(Toolkit.getDefaultToolkit().getScreenSize().width-this.getWidth()>>1,
Toolkit.getDefaultToolkit().getScreenSize().height-this.getHeight()>>1);
getContentPane().add(searchInPopupLabel);
searchInPopupLabel.setForeground(Color.RED);
searchInPopupLabel.setHorizontalAlignment(SwingConstants.CENTER);
searchInPopupLabel.setText("Search in Popup");
searchInPopupLabel.setBounds(216, 10, 166, 40);
public void keyPressed(KeyEvent e)
public void keyReleased(KeyEvent e)
if(e.getKeyCode() != KeyEvent.VK_DOWN && e.getKeyCode() != KeyEvent.VK_ENTER)
createPopup();
popup.setVisible(false);
textField.requestFocus(true);
String text = textField.getText();
Component[] its = popup.getComponents();
for(Component it: its)
if(!((JMenuItem)it).getText().startsWith(text))
popup.remove(((JMenuItem)it));
popup.setPreferredSize(new Dimension(textField.getSize().width, popup.getComponents().length*40));
popup.show(textField, 0, textField.getHeight());
textField.requestFocus(true);
if(e.getKeyCode() == KeyEvent.VK_ENTER)
if(e.getSource() instanceof JMenuItem)
resultLabel.setText(((JMenuItem)e.getSource()).getText());
public void keyTyped(KeyEvent e)First of all you should be adding ActionListeners to the MenuItem, not KeyListeners, to handle the selection of a menu item.
Also, focus should remain on the popup:
popup.show(textField, 0, textField.getHeight());
// textField.requestFocus(true); -
Detecting Enter key while textbox has focus....
It seems like in CS5 while using the tlf textfield that when the focus is in the textfield that the keyboard.enter key is not fired. However, outside it is. If I set my tab index to add the "login" button as the third tab index then the enter key works fine. But sometimes when I'm filling out a form when I'm in the last textbox I just hit enter. What's the workaround to have the enter key fired while focus is in the textfield?
Thanks,
CIt seems like in CS5 while using the tlf textfield that when the focus is in the textfield that the keyboard.enter key is not fired. However, outside it is. If I set my tab index to add the "login" button as the third tab index then the enter key works fine. But sometimes when I'm filling out a form when I'm in the last textbox I just hit enter. What's the workaround to have the enter key fired while focus is in the textfield?
Thanks,
C -
I want to take some action when the enter key is pressed in a textbox. I suppose I need to identify the enter key when it is pressed and then call some other method. please advise.
actually, u should use the KeyLIstener
The keycode (you will need this later) is VK_ENTERIf its a TextField, the reply re : ActionListener was correct. -
Hi,
Is there any way we can capture the event when a user presses the enter key inside a text field?Hi andrewquay
you can capture the enter key by adding the following code in the textfield's change event.
if(xfa.event.change == "\u000a")
xfa.host.messageBox("enter key is pressed");
mail: [email protected] -
How to refresh changed data in a plannable template with the Enter Key
Hi,
The situation I face is as follows.
Integrated Planning is being implemented as a tool for budgeting. The user changes a value in a plannable cell on the portal and wishes to see the new updated data by pressing ENTER. Currently we have provided a REFRESH button so that the user gets the desired result.
Is it possible to see the updated value by pressing ' ENTER' and if so , whats the way around to do it.
thanks in advance.
JayaHey guys,
I'm interested too in this solution. In BPS there is an additional function described in the HowTo Paper HowTo run planning functions on save and other events
Now I'm looking for this possibility in IP as well in excel-based IP and web-based IP. For example a copy function should be executed automatically when pushing the enter key.
Thanks a lot!
Clemens -
Table Control[Accept Input Only] - "ENTER" Key
Hi Folks,
I'm reviving this unanswered thread in relation to table control: when the user press enter, all the values entered disappear.
[url]Re: Table control (Enter key)[url]
I have a table control that accepts "ONLY" input, meaning to say, there will be no pre-loading of data in the PBO, so it will loop through the table control itself instead of looping from an internal table.
Issue: Whenever I press "ENTER" in any column/row of my table control, ALL the values I entered disappear.
PBO:
PROCESS BEFORE OUTPUT.
MODULE CLEAR_OKCODE.
MODULE LOAD_TABLECTRL.
LOOP WITH CONTROL TC_DATA.
MODULE READ_DATA.
ENDLOOP.
module READ_DATA output.
READ TABLE T_DATA INTO WA_DATA INDEX TC_DATA-current_line.
data : line_count type i.
"to increase the number of lines in table control dynamically
describe TABLE t_data lines line_count.
TC_DATA-lines = line_count + 10.
endmodule.
PAI:
PROCESS AFTER INPUT.
LOOP WITH CONTROL TC_DATA.
MODULE MODIFY_DATA.
ENDLOOP.
module MODIFY_DATA input.
WHEN 'CREATE'.
"subroutines are here, etc.
WHEN 'DELETE'.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
endmodule.
In my ABAP Debug, the value of SY-UCOMM is BLANK whenever I press Enter.
Thanks.Hi
Your code seems to be rght only the MODIFY statament is useless:
module READ_DATA output.
READ TABLE T_ID_CHECK INTO WA_ID_CHECK INDEX TC_ID-current_line.
IF SY-SUBRC EQ 0.
ZQID_CHECK-WERKS = WA_ID_CHECK-WERKS.
ZQID_CHECK-MATNR = WA_ID_CHECK-MATNR.
ZQID_CHECK-LICHA = WA_ID_CHECK-LICHA.
ZQID_CHECK-LIFNR = WA_ID_CHECK-LIFNR.
ELSE.
CLEAR ZQID_CHECK.
ENDIF.
endmodule.
Now before LOOP of PBO try to set the lines of table control to be display, I've created this report on my system and it works fine:
.CONTROLS T_CTRL TYPE TABLEVIEW USING SCREEN 100.
DATA: BEGIN OF ITAB OCCURS 0,
WERKS LIKE MARC-WERKS,
MATNR LIKE MARC-MATNR,
LIFNR LIKE LFA1-LIFNR,
END OF ITAB.
DATA: WA LIKE ITAB.
START-OF-SELECTION.
DO 4 TIMES.
ITAB-WERKS = '5010'.
ITAB-MATNR = '1234567890'.
ITAB-LIFNR = '0000000001'.
APPEND ITAB.
ENDDO.
CALL SCREEN 100.
PROCESS BEFORE OUTPUT.
MODULE SET_T_CTRL.
LOOP WITH CONTROL T_CTRL.
MODULE READ_DATA.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL T_CTRL.
MODULE MODIFY_DATA.
ENDLOOP.
MODULE SET_T_CTRL OUTPUT.
DESCRIBE TABLE ITAB LINES T_CTRL-LINES.
ENDMODULE. " SET_T_CTRL OUTPUT
MODULE READ_DATA OUTPUT.
READ TABLE ITAB INDEX T_CTRL-CURRENT_LINE.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING ITAB TO WA.
ELSE.
CLEAR WA.
ENDIF.
ENDMODULE. " READ_DATA OUTPUT
MODULE MODIFY_DATA INPUT.
MODIFY ITAB FROM WA INDEX T_CTRL-CURRENT_LINE.
IF SY-SUBRC NE 0.
CHECK NOT WA IS INITIAL.
APPEND WA TO ITAB.
ENDIF.
ENDMODULE. " MODIFY_DATA INPUT
Maybe you are looking for
-
Dear Viewers on 11.5.10 We are creating a new SOB with a change in currency from Feb-11 as this is the requirement For the same, we need to do data conversion. I have a confusion for Purchase Orders and Sales Orders Purchase Orders: Open purchase ord
-
How can I use my Apple TV at a friends house ?? Is it not just a case of connecting to wifi then log on with my apple ID ?!
-
Quick Poll With Anonymous User
Hi All, Does Quick poll of enterprise portal works with anonymous user. Can anybody suggest me a nice approach for quick poll for anonymous users. Thanks Sarang
-
How to set ascential status "not aborted" when no file is present
Hi gurus, Can anyone advise how can i set up the job in ascential to by pass the abort status whenever i have no file in place. Normally what happened is, the job is triggered everyday and when a file has missed to maintain in the defined directory,
-
I can't upload to youtube from the share in imovie
I have uploaded all my movies using the share feature in the lastest version of imovie. I have tryed 5 times and it loads the whole thing taking just over 25mins for a 6 min clip then it quits the upload process and instead of telling me that i have