Resets the internal table
<itab> to its initial value, that is, deletes all of its lines.
REFRESH CONTROL
Initializes a control.
Syntax
REFRESH CONTROL <ctrl>
FROM SCREEN <scr>.
The control <ctrl> defined
in the CONTROLS statement is reset with the initial values specified for screen
<scr>.
REJECT
Leaves an GET processing
block.
Syntax
REJECT [<dbtab>].
Terminates the processing
of the current line of the node of the logical database. If you use the optional
<dbtab>, the logical database reads the next line of the node <dbtab>.
REPLACE by Pattern
Replaces strings in fields
with other strings using a pattern.
Syntax
REPLACE [ FIRST OCCURENCE
OF | ALL OCCURENCES OF ] <old>
IN [ SECTION OFFSET <off> LENGTH <len> OF ] <text> WITH <new>
[IGNORING CASE|RESPECTING CASE]
[IN BYTE MODE|IN CHARACTER MODE]
[REPLACEMENT COUNT <c>]
[REPLACEMENT OFFSET <r>]
[REPLACEMENT LENGTH <l>].
In the string <text>, the
search pattern <old> is replaced by the content of <new>. By default, the first
occurrence of <old> is replaced. ALL OCCURENCES specifies that all occurrences
be replaced. In the fields <old> and <new>, trailing spaces in C fields are
ignored, but included in <text>. The SECTION OFFSET <off> LENGTH <len> OF
addition tells the system to search and replace only from the <off> position in
the length <len>. IGNORING CASE or RESPECTING CASE (default) specifies whether
the search is to be case-sensitive. In Unicode programs, you must specify
whether the statement is a character or byte operation, using the IN BYTE MODE
or IN CHARACTER MODE (default) additions. The REPLACEMENT additions write the
number of replacements, the offset of the last replacement, and the length of
the last replaced string <new> to the fields <c>, <r>, and <l>.
REPLACE by Position
Replaces strings in fields
with other strings by position.
Syntax
REPLACE <str1> WITH <str2>
INTO <c> [LENGTH <l>].
[IN BYTE MODE|IN CHARACTER MODE].
ABAP searches the field
<c> for the first occurrence of the first <l> characters in the pattern <str1>
and replaces them with the string <str2>. In Unicode programs, you must specify
whether the statement is a character or byte operation, using the IN BYTE MODE
or IN CHARACTER MODE (default) additions.
The first statement in
executable ABAP programs. <rep> can be any name you choose. The addition
MESSAGE-ID specifies a message class to be used in the program. The DEFINING
DATABASE addition defines the program as the database program of the logical
database <ldb>. The other additions are formatting specifications for the
default list of the program.
RESERVE
Inserts a conditional page
break in a list.
Syntax
RESERVE <n> LINES.
Executes a page break on
the current page if less than <n> lines are free between the current line and
the page footer.
RETURN
Leaves a processing block.
Syntax
RETURN.
Leaves the current
processing block. In a reporting event: Jumps directly to the output list.
ROLLBACK
Undoes the changes in a
SAP LUW.
Syntax
ROLLBACK WORK.
ROLLBACK WORK always
undoes all changes back to the start of the database LUW. The update modules are
not called, and the log entry is deleted from table VBLOG.