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: 

Positioning the cursor in the list while using INPUT ON

Former Member
0 Kudos

Hi all,

I am using INPUT ON command in write statement for quantity field(BDMNG).

My question is how to posiotion the cursor towards right side for the field.

Thanks,

Vijay.

7 REPLIES 7

LeonardoAraujo
Active Contributor
0 Kudos

When you write the field, did you try to play with its alignment?

Try this:

DATA: l_bdmng TYPE bdmng.

WRITE l_bdmng left-JUSTIFIED INPUT ON.

It is not going to give your cursor the last position, but at least you will have a different behaviour.

Leonardo De Araujo

Former Member
0 Kudos

I don't think you can place the cursor at the right end. Because, if you write the data in the list, that is treated as character. So the cursor is always placed at the left end. If you write a number, even then you can write characters in that number and take input.

Regards,

Sankar.

0 Kudos

Hi Leonardo,

If we write like below:

WRITE l_bdmng left-JUSTIFIED INPUT ON.

the data that we write will be justified but not the cursor.

Thanks,

Sankar.

0 Kudos

I know, but that is the point.

Since the input on sets the cursor on the left (so you can write on the field starting from the left), one option would be to change the alignment of the field so the data is now left justfied and the cursor would be on it.

It is just a workaround

Leonardo De Araujo

Former Member
0 Kudos

did u tried with

set cursor position X .

regards,

vijay.

former_member181962
Active Contributor
0 Kudos

Hi Vijay,

You have to use the syntax:

SET CURSOR FIELD 'V_BDMNG' LINE 1 OFFSET 4.

Refer the program demo_list_set_cursor_2 for further help.

Regards,

Ravi

Former Member
0 Kudos

Hello,

Check this:

REPORT ZV_TEST44 .

DATA: L_BDMNG TYPE BDMNG.

WRITE: L_BDMNG RIGHT-JUSTIFIED INPUT ON.

<b>SET CURSOR FIELD 'L_BDMNG' LINE 3 OFFSET 10.</b>

Vasanth