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 in Function Module

Former Member
0 Likes
397

Hi,

When a message statement is placed in the FM along with RAISING exception, is there any way to read the message in the calling program ?

Eg: In FM, there is a statement as

MESSAGE ID 'GR' TYPE 'S' NUMBER '100'

WITH v_name

RAISING name_found.

In the program, i am calling this FM. Is there anyway to read the message 100 ?

Thanks,

Prasad

1 ACCEPTED SOLUTION
Read only

mvoros
Active Contributor
0 Likes
349

Yes, check fields system structure SY with fields like SY-MSGV[1-4], SY-MSGID and so on.

Cheers

1 REPLY 1
Read only

mvoros
Active Contributor
0 Likes
350

Yes, check fields system structure SY with fields like SY-MSGV[1-4], SY-MSGID and so on.

Cheers