Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

exeption class for tables

Former Member
0 Likes
492

HI,

there is exception class @ method that i can use for table select

with messages like no_entry_found and so on

Best regards

Nina

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
459

Hello Nina

I do not think that such a class exists because the interface would need to look different for every table (or you have a fully dynamic selection with will make the interface quite complex on the other hand).

The SELECT statement does not raise any exception in case nothing is found but just sets

SY-SUBRC = 4
SY-DBCNT = 0

Regards

Uwe

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
460

Hello Nina

I do not think that such a class exists because the interface would need to look different for every table (or you have a fully dynamic selection with will make the interface quite complex on the other hand).

The SELECT statement does not raise any exception in case nothing is found but just sets

SY-SUBRC = 4
SY-DBCNT = 0

Regards

Uwe

Read only

Former Member
0 Likes
459

hai nina,

based on sy-subrc value after select statment u can write ur own messages

regards

afzal