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

Former Member
0 Likes
660

Hi,

Is it possible that any event[SELECTION SCREEN] can be fire on particular field immediate after leaving the focus to another field.

<b>If yes then pls let me know the complete steps.</b>

rajnish

8 REPLIES 8
Read only

Former Member
0 Likes
636

Hi,

In the selection-screen, there is no event after leaving the focus to another field..

The user has to press enter or F8 to trigger event the AT SELECTION-SCREEN & AT SELECTION-SCREEN OUTPUT event..

Thanks,

Naren

Read only

Former Member
0 Likes
636

Hi Rajnish,

You can try this event. AT SELECTION-SCREEN FIELD.

e.g. : AT SELECTION-SCREEN KUNNR.

Ashven

Read only

Former Member
0 Likes
636

use event at selection screen on field.

AT SELECTION-SCREEN ON <field>

is triggered when the contents of each individual input field are passed from the selection screen

to the ABAP program. The input field <field> can be checked in the corresponding event block.

If an error message occurs within this event block, the corresponding field is made ready for input

again on the selection screen.

SELECTION-SCREEN BEGIN OF BLOCK PART1 WITH FRAME.

PARAMETERS: NUMBER1 TYPE I,

NUMBER2 TYPE I,

NUMBER3 TYPE I.

SELECTION-SCREEN END OF BLOCK PART1.

SELECTION-SCREEN BEGIN OF BLOCK PART2 WITH FRAME.

PARAMETERS: NUMBER4 TYPE I,

NUMBER5 TYPE I,

NUMBER6 TYPE I.

SELECTION-SCREEN END OF BLOCK PART2.

AT SELECTION-SCREEN ON BLOCK PART1.

IF NUMBER3 LT NUMBER2 OR

NUMBER3 LT NUMBER1 OR

NUMBER2 LT NUMBER1.

MESSAGE E020(HB).

ENDIF.

AT SELECTION-SCREEN ON BLOCK PART2.

IF NUMBER6 LT NUMBER5 OR

NUMBER6 LT NUMBER4 OR

NUMBER5 LT NUMBER4.

MESSAGE E030(HB).

ENDIF.

Read only

Former Member
0 Likes
636

try with this

AT SELECTION-SCREEN.

additions :

1. ... ON psel

2. ... ON END OF sel

3. ... ON VALUE-REQUEST FOR psel_low_high

4. ... ON HELP-REQUEST FOR psel_low_high

5. ... ON RADIOBUTTON GROUP radi

6. ... ON BLOCK block

7. ... OUTPUT

regards

shiba dutta

Read only

Former Member
0 Likes
636

Rajnish,

There is no such event , after leaving the focus to another field.Only you have to press enter or press F8(execute)

Read only

Former Member
0 Likes
636

Hi use

AT SELECTION-SCREEN ON FIELD event This even trigers when user click enter or F8

Regards

Nagendra

Read only

Former Member
0 Likes
636

Hi,

some of the operation which u can do on selection screen given in sap help file.

AT SELECTION-SCREEN.

additions :

1. ... ON psel

2. ... ON END OF sel

3. ... ON VALUE-REQUEST FOR psel_low_high

4. ... ON HELP-REQUEST FOR psel_low_high

5. ... ON RADIOBUTTON GROUP radi

6. ... ON BLOCK block

7. ... OUTPUT

else if u want to do operations of the check boxes and radio buttons then u can use

just declare a variable

cursorfield(20) type c.

And a temporary variable to set the flag P_1.

at selection-screen.

get cursor field cursorfield.

if cursorfield = 'P_CHECK1'." p_check is the name of the checkbox on my screen.

P_1 = 'X'.

after this u can manipulate the screen contents as u want

I think it will resolve ur problem

Regards

vamsi

Read only

Former Member
0 Likes
636

Thanks To All Of You....