‎2007 Jan 01 4:29 PM
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
‎2007 Jan 01 5:02 PM
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
‎2007 Jan 01 5:15 PM
Hi Rajnish,
You can try this event. AT SELECTION-SCREEN FIELD.
e.g. : AT SELECTION-SCREEN KUNNR.
Ashven
‎2007 Jan 01 6:06 PM
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.
‎2007 Jan 02 3:20 AM
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
‎2007 Jan 02 3:35 AM
Rajnish,
There is no such event , after leaving the focus to another field.Only you have to press enter or press F8(execute)
‎2007 Jan 02 4:01 AM
Hi use
AT SELECTION-SCREEN ON FIELD event This even trigers when user click enter or F8
Regards
Nagendra
‎2007 Jan 02 4:45 AM
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
‎2007 Jan 03 4:41 AM