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

doubt in message

Former Member
0 Likes
597

Hi Friends,

I dont want to see the message number here it is displaying message number, how to do it.

here is my coding.

AT SELECTION-SCREEN ON so_matnr.

SELECT matnr INTO mara-matnr UP TO 1 ROWS

FROM mara

WHERE matnr IN

so_matnr.

ENDSELECT.

IF SY-SUBRC <> 0.

MESSAGE I909 WITH 'Enter' so_matnr-LOW so_matnr-HIGH.

ENDIF.

Regards,

Venu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
576

Hello,

i don't understand your message.

If you don't want message number, use the popup message with appropriated Function module

regards

Sebastien

4 REPLIES 4
Read only

Former Member
0 Likes
577

Hello,

i don't understand your message.

If you don't want message number, use the popup message with appropriated Function module

regards

Sebastien

Read only

Former Member
0 Likes
576

report sy-repid message id zz.

AT SELECTION-SCREEN ON so_matnr.

SELECT matnr INTO mara-matnr UP TO 1 ROWS

FROM mara

WHERE matnr IN

so_matnr.

ENDSELECT.

IF SY-SUBRC <> 0.

MESSAGE I909 WITH 'Enter' so_matnr-LOW so_matnr-HIGH.

ENDIF.

IN your message class zz (se91 transaction),

create a message with number 909 with three '&'s.

like this

909 & & &

then save it.

Now run your program.

Regards,

Ravi

Read only

Former Member
0 Likes
576

Hi,

Please use the below code for your logic.

IF NOT SO_MATNR[] IS INITIAL.

SELECT SINGLE MATNR

INTO MARA-MATNR

FROM MARA

WHERE MATNR IN SO_MATNR.

IF SY-SUBRC <> 0.

  • Message 'Invalid Material'

MESSAGE E021(ZZ).

ENDIF.

ENDIF.

Create a message 'Invalid Material' in the Message Class (here it is ZZ) and use that number in the Message Statement (here it is 021).

Regards,

sksingh

Read only

Former Member
0 Likes
576

Hello

I send previous code and click on ZMESS and it will take to se91 tcode and give ue message and save and activate.

Then u wont see the message number