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

selection screen: at selection-screen output

Former Member
0 Likes
952

Hello,

I create a parameter of material number on a selection screen. I code under 'AT SELECTION-SCREEN OUTPUT' to select old material number from the DB Table and output the old number on the selection screen. To inquire the old number, the user should first input a material number and press 'Enter'. The old number shows then. How can I replacing 'Enter' with 'Tab' to process the 'AT SELECTION-SCREEN OUTPUT' module. Because there are many other fields should be input by the user, when the cursor is set on the second field, the select statement is processed.

Thanx.

Hello,

I create a parameter of material number on a selection screen. I code under 'AT SELECTION-SCREEN OUTPUT' to select old material number from the DB Table and output the old number on the selection screen. To inquire the old number, the user should first input a material number and press 'Enter'. The old number shows then. How can I replacing 'Enter' with 'Tab' to process the 'AT SELECTION-SCREEN OUTPUT' module. Because there are many other fields should be input by the user, when the cursor is set on the second field, the select statement is processed.

Thanx.

3 REPLIES 3
Read only

Former Member
0 Likes
625

hi pls clarifty one point , in the selection screen first you will enter a value in material number(paramter) if you press enter what should happen?

What and why old number is?

Do you want to suppress the field or do you want to enable facility to reenter the data in that field ?

Reagrds,

Praveen Chitturi

Read only

0 Likes
625

Hello Praveen Chitturi,

If I press 'Enter', a select statement is triggered and an old material number SHOWS as 'SELECTION-SCREEN OPTION COMMENT... '. The old number is just a piece of material information which I select from DB Table.

I wanna trigger the select statement using 'Tab' instead of 'Enter' to facilitate user input.

Thanx very much.

Read only

Former Member
0 Likes
625

I would look at the F1 ABAP help for AT SELECTION-SCREEN.

For instance AT Selection-screen ON <fieldname> (2nd field)....  see your help, along with program DEMO_SELECTION_SCREEN_EVENTS that demonstrates the events and how to code for these.  You would essentially read the necessary table at this point to get the 2nd value.  Of course, you could do this multiple times, and you probably would want to allow that, since the user could change either value at any time up to execution.