Application Development 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: 

How to SET CURSOR FIELD my_field in my_REPORT_PROG.?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

5 REPLIES 5

Sm1tje
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Danka Sehr!!

am getting.

but, is it possible to BLINK the CURSOR on that particular field? i mean, COMING & GOING the CURSOR?

Sm1tje
Active Contributor
0 Kudos

No, this is not (yet) possible....sorry.

Former Member
0 Kudos

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.

0 Kudos

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