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 Creation Dynamically.

Former Member
0 Likes
1,240


Hello Experts,

I have the following requirement, I need to catch a exception message in a variable and display this message dynamically as a pop up in my report under certain condition.

Should i use message classes for it or how this can be acheived.

Am very thankful to your immediate response

Thanks,

kapoor.

1 ACCEPTED SOLUTION
Read only

former_member1716
Active Contributor
0 Likes
1,198

Hi Prakrita,

Its Pretty Simple. You can use your message class,

Declare as below,

Message Ixx(message class)  with p_vbl.

Now declare this Number xx(Your choice) in message class and just give '&' in Message short text.

You should also declare the variable P_VBL.

Thanks,

Satish

7 REPLIES 7
Read only

former_member1716
Active Contributor
0 Likes
1,199

Hi Prakrita,

Its Pretty Simple. You can use your message class,

Declare as below,

Message Ixx(message class)  with p_vbl.

Now declare this Number xx(Your choice) in message class and just give '&' in Message short text.

You should also declare the variable P_VBL.

Thanks,

Satish

Read only

0 Likes
1,198

Got It Thanks Satish for your immediate response.

Read only

former_member226419
Contributor
0 Likes
1,198

Hi,


CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'

      TABLES

        i_message_tab = itab_messages.


Here the internal table ‘itab_messages’ should be populated with the messages for display.

BR

Sumeet

Read only

Former Member
0 Likes
1,198

HI Prakrita,

you can try the below logic.

V1 -> have ur message

   MESSAGE V1 TYPE 'I'.

Message ll be displayed in information popup message.

if its not solving your issue, can you please elaborate.

thanks and Regards,

S.Anandabalan

Read only

arivazhagan_sivasamy
Active Contributor
0 Likes
1,198

Hi Prakrita,

Using below function module you can pop up your exception messages.


CALL FUNCTION 'C14Z_MESSAGES_SHOW_AS_POPUP'
             TABLES
               I_MESSAGE_TAB = I_MESSAGE_TAB.


Arivazhagan S

Read only

sivaganesh_krishnan
Contributor
0 Likes
1,198

Hi Prakrita,

Create a text element inside the report with "&&&&" sign . add as much as & which displays the data at runtime.

While coding write the message as below.

MESSAGE i006 WITH text-000.

                    In the text symbols 003 we have to write the corresponding message.


here text-000 will have &&& in text element



Regards,

Sivaganesh

Read only

Former Member
0 Likes
1,198

Thanks for all your immediate responses,

I got the logic from Satish reply.

Again thank you all soo much.

Thanks,

Kapoor.