ABAP/4   ОКМ   ДМ   экономическая информатика   4GL   Теория и практика обработки информации

Компьютерный язык ABAP/4 - ключевые слова

SET CURSOR

Variants

1. SET CURSOR FIELD f.
2. SET CURSOR LINE lin.
3. SET CURSOR col lin.

Effect

Sets the cursor dynamically in display (screen program or list).

Variant 1

SET CURSOR FIELD f.

Additions



1. ... OFFSET off
2. ... LINE lin

Effect

Places the cursor dynamically at the start of the field g which is specified in the field f .

Note

With step loops and in list processing, you also need the addition ... LINE lin .

Addition 1

... OFFSET off

Effect

Offsets the cursor position by off columns from the start of the field g which is specified in the field f (1st column = 0).

Addition 2

... LINE lin

Effect

Places the cursor in the field g (specified in the field f ) of the loop line lin with step loops, or of the absolute list line lin ( SY-LILLI ) in the case of list processing.

Notes

Specifying LINE lin is possible only with step loops and in list processing. In these cases, it is necessary. The name specified in the field f must be a global field. For field symbols and reference parameters, you must use the name of the global field which is assigned to the field symbol or parameter at the time of output (i.e. with " WRITE ").

Examples

1. Place the cursor on a screen field.
DATA F(5) VALUE 'MODUS'. DATA MODUS(10) VALUE '1234567890'. ... MODULE set_cursor OUTPUT. ... SET CURSOR FIELD F.
or
SET CURSOR FIELD 'MODUS'.
Both statements place the cursor at the beginning of the field MODUS .

SET CURSOR FIELD F OFFSET 2.
or
SET CURSOR FIELD 'MODUS' OFFSET 2.
Both statements place the cursor on the third character (in this case the digit "3") of the field MODUS .

...
ENDMODULE.
2. Place the cursor at the beginning of a field when selecting a line in list processing.
MOVE 'MODUS' TO F. MOVE '1234567890' TO MODUS. DO 10 TIMES. NEW-LINE. POSITION SY-INDEX WRITE MODUS. ENDDO. AT LINE-SELECTION. SET CURSOR FIELD F LINE SY-LILLI.
or
SET CURSOR FIELD 'MODUS' LINE SY-LILLI.
Both statements place the cursor at the beginning of the field MODUS on this line when the user double-clicks.

SET CURSOR FIELD F LINE SY-LILLI OFFSET 2.
or
SET CURSOR FIELD 'MODUS' LINE SY-LILLI OFFSET 2.
Both statements place the cursor on the third character (in this case the digit "3") of the field MODUS on this line when the user double-clicks.

Variant 2

SET CURSOR LINE lin.

Additions



1. ... OFFSET off

Effect

Places the cursor dynamically in the loop line lin with step loops or in the absolute list line lin ( SY-LILLI ) in list processing. This variant is only possible with step loops and in list processing.

Addition 1

... OFFSET off

Effect

Places the cursor off columns from the beginning of the line.

Example

Place the cursor at the beginning of the line when selecting a line in list processing.
DATA MODUS(10) VALUE '1234567890'. DO 10 TIMES. NEW-LINE. WRITE MODUS. ENDDO. AT LINE-SELECTION. SET CURSOR LINE SY-LILLI.
This statement sets the cursor at the beginning of the line when the user double-clicks.
SET CURSOR LINE SY-LILLI OFFSET 2.
This statement sets the cursor on the third column (in this case the digit "3" of the field MODUS ) on this line when the user double-clicks.

Variant 3

SET CURSOR col lin.

Effect

Places the cursor dynamically on the column col and the line lin of the current screen .

Example

SET CURSOR 60 5. Positions the cursor on line 5, column 60.
Related GET CURSOR

Index
© SAP AG 1996
ABAP/4   ОКМ   ДМ   экономическая информатика   4GL   Теория и практика обработки информации

НОВОСТИ ФОРУМА

Форум Рыцари теории эфира


Рыцари теории эфира
 10.11.2021 - 12:37: ПЕРСОНАЛИИ - Personalias -> WHO IS WHO - КТО ЕСТЬ КТО - Карим_Хайдаров.
10.11.2021 - 12:36: СОВЕСТЬ - Conscience -> РАСЧЕЛОВЕЧИВАНИЕ ЧЕЛОВЕКА. КОМУ ЭТО НАДО? - Карим_Хайдаров.
10.11.2021 - 12:36: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от д.м.н. Александра Алексеевича Редько - Карим_Хайдаров.
10.11.2021 - 12:35: ЭКОЛОГИЯ - Ecology -> Биологическая безопасность населения - Карим_Хайдаров.
10.11.2021 - 12:34: ВОЙНА, ПОЛИТИКА И НАУКА - War, Politics and Science -> Проблема государственного терроризма - Карим_Хайдаров.
10.11.2021 - 12:34: ВОЙНА, ПОЛИТИКА И НАУКА - War, Politics and Science -> ПРАВОСУДИЯ.НЕТ - Карим_Хайдаров.
10.11.2021 - 12:34: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Вадима Глогера, США - Карим_Хайдаров.
10.11.2021 - 09:18: НОВЫЕ ТЕХНОЛОГИИ - New Technologies -> Волновая генетика Петра Гаряева, 5G-контроль и управление - Карим_Хайдаров.
10.11.2021 - 09:18: ЭКОЛОГИЯ - Ecology -> ЭКОЛОГИЯ ДЛЯ ВСЕХ - Карим_Хайдаров.
10.11.2021 - 09:16: ЭКОЛОГИЯ - Ecology -> ПРОБЛЕМЫ МЕДИЦИНЫ - Карим_Хайдаров.
10.11.2021 - 09:15: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Екатерины Коваленко - Карим_Хайдаров.
10.11.2021 - 09:13: ВОСПИТАНИЕ, ПРОСВЕЩЕНИЕ, ОБРАЗОВАНИЕ - Upbringing, Inlightening, Education -> Просвещение от Вильгельма Варкентина - Карим_Хайдаров.
Bourabai Research - Технологии XXI века Bourabai Research Institution