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: 

Set cursor

Former Member
0 Kudos

Hi Experts ,

When I press ' ENTER ' button in Subscreen the cursor is going to Main Screen .... Could you please tell me any way to avoid this n make sure that the cursor stays in the Subscreen itself .. Its a bit urgent ....

\[removed by moderator\]

Thanks in advance

Bhaskar

Edited by: Jan Stallkamp on Jul 25, 2008 11:03 AM

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

In the Main screen PAI module

MODULE USER_COMMAND..

CASE OK_CODE.

*WHEN  'ENTER' .
 
*WHEN OTHERS.
    
ENDCASE.


ENDMODULE.

May be you are doing the mistake in that. can you show that module code.

bpawanchand
Active Contributor
0 Kudos

Hi

regards

Pavan

Former Member
0 Kudos

hiii

when you press 'ENTER' that time use ABAP statement SET CURSOR field...it will set cursor on that field only...for more info just write SET CURSOR in your program and place cursor then and press F1..so you will get that statement for DYNPRO program too.

regards

twinkal

Former Member
0 Kudos

Hi Bhaskar,

If u want to show that screen again after pressing enter then u write

CALL SUBSCREEN <area>. in the PBO of the same subscreen.

i hope this will help u...

Thanks & Regards

Ashu Singh

Former Member
0 Kudos

Hi Bhaskar.

I would like to suggest a few references,

[SDN - Reference for Issue in Cursor position in a sub-screen|;

[SDN - Reference for cursor position for table control in case of subscreen|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave