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 position

Former Member
0 Kudos

hi,

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

(e.g. field with name NAME)

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

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

Simha_
Employee
Employee
0 Kudos

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.

Former Member
0 Kudos

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

ferry_lianto
Active Contributor
0 Kudos

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.