|
|
|
|
|
IF SY-BATCH EQ SPACE. WRITE: / 'Report was started on-line'. WRITE: / 'Using variant:', SY-SLSET. ELSE. WRITE: / 'Report was started in background'. ENDIF. |
|
|
|
|
|
|
|
|
|
|
|
This field indicates if the transaction was called in a Batch Input session or by an online user. To test it, a batch input session must be created. From Release 3.1g the next procedure can be used.
|
|
|
|
|
|
This field indicates if the transaction was called from another transaction.
|
|
|
|
|
|
|
|
|
|
WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'. |
|
WRITE: / 'SY-CPAGE:', SY-CPAGE LEFT-JUSTIFIED. |
|
WRITE: /5 'Main program:' RIGHT-JUSTIFIED, 40 SY-CPROG. |
|
|
|
|
|
WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED. |
|
WRITE: / 'SY-CUROW:', SY-CUROW LEFT-JUSTIFIED. |
|
In transaction programming this field indicates the change of data on the screen. In the PBO part you may set default values of the input fields of the dynpro. In the PAI part you can check if they were changed. If SY-DATAR is set, then the user has modified or entered new data on the screen. |
|
|
|
|
|
|
|
|
|
WRITE: /12 'Number of selected records:', SY-DBCNT CENTERED. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SEARCH T FOR 're'. READ TABLE T INDEX SY-TABIX. WRITE: / SY-TABIX, T-FIELD. SKIP. WRITE: /9 'At the example of sy-tabix, Row', (3) SY-TABIX, ',' , 'keyword ''re'' found at off-set position:', (3) SY-FDPOS. |
|
|
|
|
|
DO 5 TIMES. WRITE: SY-INDEX. ENDDO. |
|
|
|
|
|
AT LINE-SELECTION.
|
|
WRITE: / SY-LINCT, 'line and', (3) SY-LINSZ, 'column is a page'. |
|
WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'. |
|
WRITE: SY-COLNO, ',', SY-LINNO, 'Cursor position (column, row).'. |
|
* contents of the selected line WRITE: / 'SY-LISEL:', SY-LISEL. |
|
* SY-LISTI is the index of the previous list WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED. |
|
|
|
|
|
|
|
* SY-LSIND is the index of the current list WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SEARCH T FOR 're'. READ TABLE T INDEX SY-TABIX. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|