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

set cursor position

Former Member
0 Likes
894

hi,

in my screen how to set the cursor position by default?

(e.g. field with name NAME)

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
658

Hi Lana,

Please check this link for sample code.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/content.htm

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

3 REPLIES 3
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
658

Hi,

Try this.

DATA f(5) TYPE C VALUE 'MODUS'.

DATA MODUS(10) TYPE C VALUE '1234567890'.

SET CURSOR FIELD F.

or

SET CURSOR FIELD 'MODUS'.

Regards,

SImha.

Read only

Former Member
0 Likes
658

Hi,

If you are using for Screen, then define a module in the PBO event.

PROCESS BEFORE OUTPUT.
  MODULE CURSOR.
 

MODULE CURSOR OUTPUT.
  IF DEF NE 'X'.
    SET CURSOR FIELD NAME OFFSET POS.
  ENDIF.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.

Cheers

VJ

Read only

ferry_lianto
Active Contributor
0 Likes
659

Hi Lana,

Please check this link for sample code.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/content.htm

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.