2014 Jan 30 6:45 AM
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.
2014 Jan 30 6:55 AM
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
2014 Jan 30 6:55 AM
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
2014 Jan 30 6:57 AM
2014 Jan 30 6:57 AM
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
2014 Jan 30 6:58 AM
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
2014 Jan 30 6:59 AM
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
2014 Jan 30 7:00 AM
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
2014 Jan 30 7:01 AM
Thanks for all your immediate responses,
I got the logic from Satish reply.
Again thank you all soo much.
Thanks,
Kapoor.