What is reject statement? please reply me breifly?

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


Please Help Members By Posting Answers For Below Questions

How would you suppress the display of a parameter on the selection screen?

772


What does the insert statement in extract datasets do?

816


What are the basic functions of database utility? : abap data dictionary

812


What are client dependant objects in abap/sap?

862


Define batch input session?

754






How would you define the exponents for a type ‘f’ field?

816


What are the different kinds of lock modes?

765


Explain the difference between float and packed data type?

995


If I want to execute a program only in background not in foreground is there any option for this? : abap bdc

733


What are the uses of table pool or table cluster.

704


How to call transaction in session method without recording?

1726


What are the types of windows in sap script?

792


Explain the advantage of structures?

724


What is pnp-sw-found ? : abap hr

1122


Did you create secondary index?

893