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

regarding error flag

Former Member
0 Likes
1,047

suppose condition matches

display the msg in the error file

in that msg class and msg no and msg text wil b there.

there we hav to set the error flag to ON

how do we do this

pls with detail

5 REPLIES 5
Read only

Former Member
0 Likes
852

Hi

the table of the messages is T100, but you can put the message in a string and then transfer it to the file:

MESSAGE EXXX(YY) WITH MS1 MS2 MS3 MS4 INTO STRING.

TRANSFER STRING TO <FILE>.

Max

Read only

Former Member
0 Likes
852

Hi

based on condition

............................

if sy-subrc <> 0.

message E021(ZS).

endif.

here ZS is the message class

and 21 is the message number, against which some text is maintained.

So when the condition fails this error message is displayed in the program.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

0 Likes
852

but what is that mean error flag to ON

Read only

Former Member
0 Likes
852

Hi Ramesh,

T-code:SE91, to create message class.

Use the following code to display message.

MESSAGE I000(ZUY).

ZUY is the message class name,

I000 is unique number for every message

IF USEFULL REWARD

Read only

Former Member
0 Likes
852

hi

in se91 u create a message class. and message text also u can create.

then use as follows:

message text : 0001 - special char are not allowed in screen &1 and &2.

then &1 and &2 will b replaced with 1000 and 2000.

mesage s0001(message class) with '1000' and '2000'.

reward if useful.