04-01-2008 7:02 PM
Hi Experts,
If the user do not enter a value in one field( NOT mandatory field) on the selection screen of my_report_prog. I wanna,
1- To throw message - am getting by throwing as STATUS message
2 - wanna keep CURSOR on that particlar field in order to input the value by the user - am using SET CURSOR FILED my_filed----
> but NOT working????????
So, pls. let me know that How to get it done?
thanq
04-01-2008 8:58 PM
hi,
try the following code.you will get the cursor in the same field if you use status message or information message.
selection-screen:begin of block b with frame title text-001.
parameters:a type i.
selection-screen:end of block b.
at selection-screen.
if a <> 3.
message s000(0) with 'hi this is chaitu'.
endif.
after showing the message the cursor is at a.
please rewards points if useful.
04-01-2008 7:14 PM
You will have to use the AT SELECTION SCREEN variants.
For example: at selection screen on p_field (this is a parameter).
if you now throw a message like message e000(38) with text-t01 then focus will be on this particular field.
04-01-2008 8:11 PM
Danka Sehr!!
am getting.
but, is it possible to BLINK the CURSOR on that particular field? i mean, COMING & GOING the CURSOR?
04-01-2008 8:17 PM
04-01-2008 8:58 PM
hi,
try the following code.you will get the cursor in the same field if you use status message or information message.
selection-screen:begin of block b with frame title text-001.
parameters:a type i.
selection-screen:end of block b.
at selection-screen.
if a <> 3.
message s000(0) with 'hi this is chaitu'.
endif.
after showing the message the cursor is at a.
please rewards points if useful.
04-02-2008 2:40 AM
HI
Check below code:
AT SELECTION-SCREEN .
IF p_sdate2 IS INITIAL.
SET CURSOR FIELD 'P_SDATE2'.
MESSAGE e001(00) WITH text-007.
ENDIF.
The field u want curspr to come should be written in quotes and Capital Letters.
Then it works.
Hope this helps.
Praveen