Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Input field refresh problem in a screen

sridhar_meesala
Active Contributor
0 Likes
1,641

Hi All,

I have a screen which I am refreshing automatically for every 2 secs. I have an i/o field in the screen which is also refreshed every 2 secs and not allowing me to enter the text. Any idea how we can over come this?

I have tried using container instead of i/o field with which i was able to overcome this problem but again poped up with another problem. When I type something in the container and press enter it is taking me to the next line. But I want it to behave like the i/o field where we can handle the click of the enter button. I have searched but could not find any event for enter button.

Please provide your inputs on the above issues.

Thanks,

Sri.

Edited by: Sri on May 13, 2011 10:23 AM

Any Help guys?

Edited by: Sri on May 13, 2011 2:38 PM

5 REPLIES 5
Read only

Former Member
0 Likes
1,046

Hi Sri,

Check the following and try implementing in PBO/AT SELECTION SCREEN OUTPUT

REPORT ZTEST_RAM.  
parameters : maktx type maktx.
 
at selection-screen output.
  data : fields type standard table of sval with header line.
  refresh fields.
  clear fields.
  fields-tabname = 'MARA'. " Just Copy and Execute this
  fields-fieldname = 'MATNR'.
  fields-field_obl = 'X'. " To make this Field mandatory
  append fields.
  call function 'POPUP_GET_VALUES'
    exporting
*   NO_VALUE_CHECK        = ' '
      popup_title           = 'Give your Title'
*   START_COLUMN          = '5'
*   START_ROW             = '5'
* IMPORTING
*   RETURNCODE            = RETURNCODE
    tables
      fields                = fields. " For more info Take Where used List on this FM
* EXCEPTIONS
*   ERROR_IN_FIELDS       = 1
*   OTHERS                = 2. " This will wait till you press enter to get the value in the input field

Cheerz

Ramchander Rao.K

Read only

0 Likes
1,046

Hi Ram,

Thanks for the input.

I have also tried with popup_get_values FM. But the problem here is the screen will not be refreshed untill we type something in the field and press enter. I don't want that to happen. To be more clear I am trying to develop a device to exchage messages instantly. So the screen should refresh every time and the user receives messages and replys to that.

Thanks,

Sri.

Read only

sridhar_meesala
Active Contributor
0 Likes
1,046

Hi All,

For the above mentioned issue I have used a text editor in place of i/0 field and have overcome the refresh problem but could not handle the enter event. For this I have handled F1 event instead of enter.

Now, while refreshing the screen the text in the container is not getting wiped off but the cursor position is not coming to the text edotor.

I have searched for this and found about set_focus method but that isn't working. Can any one provide inputs on this as how to default the cursor position to the last line of the editor?

Thanks,

Sri.

I have tried the method go_to_line. But that isn't working as well. Can somebody tell how to set the cursor position on to the text edior in the custom container.

Edited by: Sri on May 19, 2011 11:14 AM

Read only

0 Likes
1,046

Hi,

use SET CURSOR FIELD <Fieldname>.

Read only

0 Likes
1,046

I had clearly mentioned, I want this in text editor in custom container.