Answer Posted / malli.gontla
1. REJECT.
2. REJECT dbtab.
Variant 1
REJECT.
Effect
Stops processing the current database table line and resumes
with the next line of the table on the same hierarchy level.
Unlike the CHECK statement, you can also use REJECT within a
subroutine or loop for table selection.
Variant 2
REJECT dbtab.
Effect
Similar to variation 1. In this case, however, dbtab is a
table from the database hierarchy on a level no deeper than
the current database table. Processing continues by reading
the next record of the table dbtab .
Example
Logical database F1S
Hierarchy: SPFLI -> SFLIGHT -> SBOOK
TABLES: SFLIGHT,
SBOOK.
GET SFLIGHT.
...
GET SBOOK.
...
REJECT 'SFLIGHT'.
...
REJECT cancels processing of the event 'GET SBOOK' and
resumes with the processing of the event 'GET SFLIGHT' .
Note
The name of the subroutine containing the "PUT dbtab"
statement must begin with PUT_dbtab .
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the role of ‘refresh’ in internal table?
How to create a button in selection screen ?
Did you create help views?
How do you do bdc for a table control? : abap bdc
What is the syntax of packed number?
What are the different buffering methods?
What are the modes in which any update tasks work?
Which table stores the programs created?
Can a domain, assigned to a data element be changed? : abap data dictionary
What are the different window types in sapscript?
What is your current client number?
What is payroll driver ? : abap hr
Setting up a BDC program where you find information from?
what will happen if called program is not executable ?
What are the difference between tables and structures?