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

Issue with message id.

senthil_kumar29
Participant
0 Likes
1,360

Hi Guys,

I define custom message-id for a report.

sy-msgid inside my program is empty and dumbing an error when I use standard one.

Whats the cause of this error.

Cheers

Senthil

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,189

> I define custom message-id for a report.

REPORT ZTEST MESSAGE-ID ZZ "<----this is how you mentioned it

> sy-msgid inside my program is empty and dumbing an error when I use standard one.

where you are getting the error.and what is the error.

5 REPLIES 5
Read only

Former Member
0 Likes
1,190

> I define custom message-id for a report.

REPORT ZTEST MESSAGE-ID ZZ "<----this is how you mentioned it

> sy-msgid inside my program is empty and dumbing an error when I use standard one.

where you are getting the error.and what is the error.

Read only

former_member585060
Active Contributor
0 Likes
1,189

Try using like this

MESSAGE e001(ZZ) with 'U r message'.

Read only

Former Member
0 Likes
1,189

hi

once you define the followiong statement in the report ie.

REPORT zinftcomm_summ_ff MESSAGE-ID yx NO STANDARD PAGE HEADING.

then you hae to write the statement for message as shown below:-

MESSAGE e000 WITH text-101.

you dont need to mention the message id again the message stement.

just check and let me know.

Read only

Former Member
0 Likes
1,189

Hi,

plz try this way :

First put your z message-id in program statement if its module pool or in report statement if it's report.


PROGRAM  zo9u_notify_dp MESSAGE-ID z_lsc.
or
REPORT  ZZDHANU MESSAGE-ID ztest.

Then use the message statement where we need to display message.

e.g

IF sy-subrc <> 0.
      MESSAGE e007.
      LEAVE TO SCREEN 0.
    ENDIF.

hope this helps.

thanx,

dhanashri.

Read only

Former Member
0 Likes
1,189

Hi..

First create a message class and mention that in the start of the program with MESSAGE-ID MESSAGE CLASS.

and inside the program write statement with below syntax.

MessagetypeNo(messageclass).

ex :I000(zid).