02-12-2007 1:42 PM
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.
02-12-2007 1:58 PM
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
02-12-2007 2:00 PM
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.
02-12-2007 2:03 PM
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.
02-12-2007 2:08 PM
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
02-12-2007 2:01 PM
02-12-2007 2:05 PM
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
02-12-2007 2:13 PM
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