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 a Cursor for a desired field in POP UP screen

Former Member
0 Kudos

Hi All,

Iam woking on a report ,there iam using the function module POPUP_GET_VALUES, i need to set the cursor for a selected field,

i tried with SET CURSOR FIELD FIELDNAME. Its not working....

can anyone help me on this

2 REPLIES 2

Former Member
0 Kudos

Hi,

You need to populate the FIELDS table in such a way that the requried field which need to have the cursor will be appended first.

Regards,

Satya

null

Former Member
0 Kudos

hi,

if u look at function POPUP_GET_VALUES and screen <b>300</b> what SAP does is nothing but the same -

<b>MODULE P100_SET_CURSOR OUTPUT.

IF CUR_FIELD <> SPACE.

SET CURSOR FIELD CUR_FIELD

LINE CUR_LINE

OFFSET CUR_OFFSET.

ENDIF.

CUR_FIELD = SPACE.

CUR_LINE = 0.

CUR_OFFSET = 0.

ERROR_TAB = SPACE.

ERROR_FIELD = SPACE.

ENDMODULE.</b>

please check the FM in debug mode and i am sure u can get the requirement done

hope that helps..

pls. reward if useful...