cancel
Showing results for 
Search instead for 
Did you mean: 

GUI Scripting Message Box

former_member870569
Discoverer
0 Kudos
1,222

Hi everyone,

I want to read some information about material numbers in SAP using the transaction QI03 and paste them into Excel using GUI scripting and VBA.

With some material numbers, a message box appears in the status bar below, that you have to confirm with Enter.

I want to implement the problem with an if function in VBA. Unfortunately the script recorder doesn't record the message in the status bar. It records only the click on Enter.

Probably I need a findByID for the message.

Can someone help me here?

Many Thanks

Simon

Accepted Solutions (0)

Answers (1)

Answers (1)

cwittrock
Newcomer
0 Kudos

Hi,

the current text is in

session.findById("wnd[0]/sbar").text:

and the type of message is in:

session.findById("wnd[0]/sbar").MessageType

(e.g."E" for error)

Kind regards,

Christian