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 statement is not working?

Former Member
0 Likes
1,774

I would like to place a message in the following method:

It's defined like this:

Position & cannot be delimited because the position is occupied until &

This is in the program:

MESSAGE: s029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8), display like 'E'.

I inserted the (display like 'E' ) in so I can get the RED 'X' error message. If I take out the display like 'E', it works.

I get the following error:

Three-digit error number XXX required in the "MESSAGE EXXX..." statement.

Thanks for any help you can give?

Jeff

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,358

c if u r giving s029 then u cant display like E..

So if u want the RED 'X' error message then write as

MESSAGE: <b>E</b>029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8).

Try dis ..hope dis helps..

Reward if it does

8 REPLIES 8
Read only

Former Member
0 Likes
1,358

Try using like this

st_hrp1001-objid+0(8)

Regards,

Satish

Read only

Former Member
0 Likes
1,358

Hi Jeff,

try like this...

MESSAGE: E029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8).

Read only

Former Member
0 Likes
1,359

c if u r giving s029 then u cant display like E..

So if u want the RED 'X' error message then write as

MESSAGE: <b>E</b>029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8).

Try dis ..hope dis helps..

Reward if it does

Read only

0 Likes
1,358

That will give me the pop-up error message but they want the message on the bottom of the screen with the red x message. If I take of the & parameters then the Display like E works

Read only

0 Likes
1,358

Hi jeff,

then try like this...

MESSAGE: E029(zpom_001) display like 'E' WITH st_hrp1001-objid(8) st_hrp1001-endda(8).

Read only

Former Member
0 Likes
1,358

Satish,

That did not work...

If I remove the part of the message ( Display like 'E' ) it works...... But if I want to get a RED X error message, what would I do?

JeffG

Read only

0 Likes
1,358

Put like this:

message S398(00) <b>DISPLAY LIKE 'E'</b> with sy-msgv1 sy-msgv2 ' ' ' ' .

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,358

Hi,

try this

MESSAGE: E029(zpom_001) WITH st_hrp1001-objid(8) st_hrp1001-endda(8) type 'E'.

Regards,

Satish