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

cursor

Former Member
0 Likes
521

hi all,

any body know how to place cursor on particular line or field when we generate report???

please help me.

1 ACCEPTED SOLUTION
Read only

rodrigo_paisante3
Active Contributor
0 Likes
492

Hi Abdul,

see this link:

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/frameset.htm

REPORT demo_dynpro_set_cursor.

DATA: field1(14) TYPE c, field2(14) TYPE c, field3(14) TYPE c,

name(10) TYPE c.

SELECTION-SCREEN BEGIN OF BLOCK bloc WITH FRAME.

PARAMETERS: def RADIOBUTTON GROUP rad,

txt RADIOBUTTON GROUP rad,

f1 RADIOBUTTON GROUP rad,

f2 RADIOBUTTON GROUP rad,

f3 RADIOBUTTON GROUP rad.

SELECTION-SCREEN END OF BLOCK bloc.

PARAMETERS pos TYPE i.

IF txt = 'X'.

name = 'TEXT'.

ELSEIF f1 = 'X'.

name = 'FIELD1'.

ELSEIF f2 = 'X'.

name = 'FIELD2'.

ELSEIF f3 = 'X'.

name = 'FIELD3'.

ENDIF.

CALL SCREEN 100.

MODULE cursor OUTPUT.

IF def NE 'X'.

<b>SET CURSOR FIELD name OFFSET pos.</b>

ENDIF.

SET PF-STATUS 'SCREEN_100'.

ENDMODULE.

MODULE back INPUT.

LEAVE SCREEN.

ENDMODULE.

Regards,

Paisante

5 REPLIES 5
Read only

rodrigo_paisante3
Active Contributor
0 Likes
493

Hi Abdul,

see this link:

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbac0b35c111d1829f0000e829fbfe/frameset.htm

REPORT demo_dynpro_set_cursor.

DATA: field1(14) TYPE c, field2(14) TYPE c, field3(14) TYPE c,

name(10) TYPE c.

SELECTION-SCREEN BEGIN OF BLOCK bloc WITH FRAME.

PARAMETERS: def RADIOBUTTON GROUP rad,

txt RADIOBUTTON GROUP rad,

f1 RADIOBUTTON GROUP rad,

f2 RADIOBUTTON GROUP rad,

f3 RADIOBUTTON GROUP rad.

SELECTION-SCREEN END OF BLOCK bloc.

PARAMETERS pos TYPE i.

IF txt = 'X'.

name = 'TEXT'.

ELSEIF f1 = 'X'.

name = 'FIELD1'.

ELSEIF f2 = 'X'.

name = 'FIELD2'.

ELSEIF f3 = 'X'.

name = 'FIELD3'.

ENDIF.

CALL SCREEN 100.

MODULE cursor OUTPUT.

IF def NE 'X'.

<b>SET CURSOR FIELD name OFFSET pos.</b>

ENDIF.

SET PF-STATUS 'SCREEN_100'.

ENDMODULE.

MODULE back INPUT.

LEAVE SCREEN.

ENDMODULE.

Regards,

Paisante

Read only

Former Member
0 Likes
492

Hi,

We can use the SET CURSOR FIELD <FIELD NAME>,

Look at the Demo Program <b>demo_dynpro_set_cursor</b>

Regards

Sudheer

Read only

Former Member
0 Likes
492

hi,

Use SET CURSOR FIELD 'P_MATNR'.

Reward points if it is helpful.

Regards,

Sangeetha.a

Read only

0 Likes
492

hi ,

SET CURSOR FIELD <fieldname>.

Reward points if useful

Regards,

santosh

Read only

hymavathi_oruganti
Active Contributor
0 Likes
492

SET CURSOR FIELD fname.

or if want cursor in screen in static positions u can also use

SET CURSOR 2 3

press f1 on set cursor and see, u can find ur answer.