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

message number??

Former Member
0 Likes
633

Hi all,

How to find what message number we need? Eg if sy-subrc = 2 or 5 etc., I want to give my own OR inbuilt messages.. what are my options???

Thanks,

Charles.

+++++++++++++++++++++++++++++++

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
563

Hi

The return code value is set as follows:

SY-SUBRC = 0 At least one line was read.

SY_SUBRC = 4 No lines were read.

SY-SUBRC = 8 The search key was not fully qualified.

(nur bei SELECT SINGLE ). The returned single record is any line of the solution set.

Regards,

Raj

Hi all,

How to find what message number we need? Eg if sy-subrc = 2 or 5 etc., I want to give my own OR inbuilt messages.. what are my options???

Thanks,

Charles.

+++++++++++++++++++++++++++++++

4 REPLIES 4
Read only

Former Member
0 Likes
564

Hi

The return code value is set as follows:

SY-SUBRC = 0 At least one line was read.

SY_SUBRC = 4 No lines were read.

SY-SUBRC = 8 The search key was not fully qualified.

(nur bei SELECT SINGLE ). The returned single record is any line of the solution set.

Regards,

Raj

Read only

Former Member
0 Likes
563

If you are talking about messages, then

you can create your own message class in se91 transaction.

Then issue messages in your program.

message e001(zz) with 'My Message'.

YOu should have created a message with an &(Place holder which is determined at runtime.in this example it will be the text you pass in the message with statement). in se91.

Regards,

ravi

Read only

0 Likes
563

go to transaction se91 to know about message maintenance

regards

vivek

pls reward points for useful answers

Read only

Former Member
0 Likes
563

Hi,

If you want messages based on subrc's given by using standard function (read, insert, replace etc.)

You must check the help functionality of that function, this will explain to you what kinds of returncodes exist and what the meanings are.

Kind regards, Rob Dielemans