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

Error Message in 4.6C

Former Member
0 Likes
1,698

Do you know how to have function like?

Message e047 display like type 'S'.

My version is 4.6 C, so I don't have this function.

Every time , I try display an error message on ALV.

It makes my screen shut down.

Do you know how to have function like?

Message e047 display like type 'S'.

My version is 4.6 C, so I don't have this function.

Every time , I try display an error message on ALV.

It makes my screen shut down.

12 REPLIES 12
Read only

Former Member
0 Likes
1,526

Hi,

I assume that you want to change error message to succes message. It can be done as follows :-

Message s047.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,526

hi,

Throw a message

Message s047 with 'text'.

Use either EXIT or STOP to stop the execution the execution. You need to write some logic to terminate the execution.

Regards,

Sailaja.

Read only

Former Member
0 Likes
1,526

Sorry, I wrote uncorrectly.

it shoulbe be

Message s047 display like type 'E'.

Read only

0 Likes
1,526

Hi Minghan,

In that case, you can throw a succes message followed by a exit statement.

message s047.

exit.

Regards,

Ravi

Read only

Former Member
0 Likes
1,526

Hi,

If you have a message class defined, use the following syntax :

Message e047 display like 'S'.

else say,

message 'hi' type 'E' display like 'S'.

Reward if helpful.

Regards

Read only

0 Likes
1,526

in 4.6 C, it is possible to use "message 'hi' type 'E' display like 'S'".

that is my problem.

Is there any function the same as message 'hi' type 'E' display like 'S'?

Read only

0 Likes
1,526

If you use

MESSAGE E047.

It would send out an error message...would that help ?

Regards

Anurag

Read only

0 Likes
1,526

check this.

Addition 4

... DISPLAY LIKE mtype

Effect

The message display uses the icon of the message type mtype but the message is handled according to its actual type.

Note

This addition cannot be used in conjunction with the addition ... INTO.

Example

MESSAGE I004 DISPLAY LIKE 'E'.

Variant 2

MESSAGE ID id TYPE mtype NUMBER n.

Regards

Prabhu

Read only

0 Likes
1,526

Oh, no. My version is 4.6C.It doesn't support that command.

Read only

0 Likes
1,526

MESSAGE E047.

Did the above not help u ?

Read only

0 Likes
1,526

nooo~:(

because my ALV will be shut down due to this command

Read only

hymavathi_oruganti
Active Contributor
0 Likes
1,526

in 4.6c u can directly use any message statement like below.

MESSAGE 'ABCDFHJK' TYPE 'E'/'S'/'W'/'I'.....