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 text from message Class need to Display

Former Member
0 Likes
7,565

Hi All,

i am getting Message Class and the message Numbers in an Internal Table.

The message Text for that Number in the message class i need to Display in Out Put.

Please let me know the procedure How to Display the message text

Please Suggest the Code if any Function module Exists...

Regards,

Reddy

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,610

Hello,

Why do you need an FM? You can use a single line to achieve this with the INTO addition:

DATA: v_msg TYPE string.
MESSAGE <msg. details> INTO v_msg.

BR,

Suhas

Hi All,

i am getting Message Class and the message Numbers in an Internal Table.

The message Text for that Number in the message class i need to Display in Out Put.

Please let me know the procedure How to Display the message text

Please Suggest the Code if any Function module Exists...

Regards,

Reddy

6 REPLIES 6
Read only

Former Member
0 Likes
3,610

Hi,

Call the FM "BALW_BAPIRETURN_GET2".

The import parameters for this FM are

TYPE - Message Type

CL - Message Class

NUMBER - Message No

PAR1 - Message Place Holder1

PAR2 - Message Place Holder2

PAR3 - Message Place Holder3

PAR4 - Message Place Holder4

You will get the message information from the export parameter RETURN-MESSAGE.

Regards,

Ganga

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,611

Hello,

Why do you need an FM? You can use a single line to achieve this with the INTO addition:

DATA: v_msg TYPE string.
MESSAGE <msg. details> INTO v_msg.

BR,

Suhas

Read only

Former Member
0 Likes
3,610

Hi Suhas,

I am Getting Message Class And Message numbers in My Internal Table.

So, Now This Message Class Numbers Text I need to fetch and Display.

This is the scenario

for this is your code Works

Regards,

Vinod

Read only

0 Likes
3,610

Hi,

You can use the FM MESSAGE_TEXT_BUILD.

Alternatively you can use table T100.

Make sure that you have the place holder values also in your internal table (Like Sy-msgv1/2/3/4).

Thanks,

Vinod.

Read only

Former Member
0 Likes
3,610

Hi,

Are you not able to use the FM "BALW_BAPIRETURN_GET2"?

The import parameters for this FM are

TYPE - Message Type (can be error/success.info etc)

CL - Message Class

NUMBER - Message No

PAR1 - Message Place Holder1, if any exists

PAR2 - Message Place Holder2, if any exists

PAR3 - Message Place Holder3, if any exists

PAR4 - Message Place Holder4, if any exists

You will get the message text information directly from the export parameter RETURN-MESSAGE.

Regards,

Ganga

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
3,610

In abap editor type 'Message into' and hit F1.

or you can use the standard fm's available.