REJECT (ABAP Keyword)

REJECT is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.

REJECT


Variants


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 .

Most readed SAP Tutorials

Latest Added SAP documents

Custom Search
ABAP Tutorials ABAP Syntax BAPI SAP Jobs SAP Glossary SAP Netweaver SAP XI SAP Download SAP Interview questions

Complete SAP Study materials | SAP JOBS | PDF Tutorials   List of SAP Companies India

Google-Translate-Chinese (Simplified) BETA Google-Translate-English to French Google-Translate-English to German Google-Translate-English to Italian Google-Translate-English to Japanese BETA Google-Translate-English to Korean BETA Google-Translate-English to Russian BETA Google-Translate-English to Spanish

All of the product names here are trademarks of their respective companies. The site sapbrainsonline.com no way affiliated with SAP AG. Use information on this site at your own risk. Information furnished in the site is collected from various sites and posts from users. This site does not host any files on its server. If any compliants about the posts please contact us at sapbrain.support@gmail.com

Sitemap
web counter