cancel
Showing results for 
Search instead for 
Did you mean: 

How to get system message by VBA ?

Former Member
0 Kudos

Hi all !

Can I get system message by  vba  ? 

lResult= Application.Run("SAPGetProperty", "LastError", "Number") returns ERRORS only. And what about messages type I and W ?

Regards , Alexander!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi all,

Yes you can provide all types of system messages by VBA

'Types of severity: INFORMATION , WARNING, ERROR or CRITICAL


vResult = Application.Run("SAPAddMessage", "This is a new error message!", "WARNING", "Send by Joerg Boeke")


Just replace my Message stings with your message. Using e.g WARNING or one of teh upper keywords will change the different style of appearance.


Hope that helps


Jörg Böke

Former Member
0 Kudos

Hi Jörg! I know how to add my own message. I want to see standart SAP message and read it from vba  ( it is possible in bex)

Anand71
Active Contributor
0 Kudos

Hi Zlobin,

Please go through the folowing link:

Regards,

Anand Kumar

Former Member
0 Kudos

Exactly! A lot of thanks!

Answers (1)

Answers (1)

0 Kudos

Hi Alexander,

I believe this thread below can help you.

Thanks,
Diego Ferrary

Former Member
0 Kudos

Hi Diego!

Thanks! But I need just message  , not data sourse