cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch Messagebox Message

thomas_brutigam2
Active Participant
0 Kudos

Hi there

is there a way to get the Text inside the messagebox (Message)

I dont mean the heading Text ...


If session.findbyId("wnd[1]").Text Like "*"

End if

It's because we have special Transactions where the Heading says "Information" in 3 different meanings (I hate the Programmer gr thats why I have to get the Message ...

Thanks for your response

Edited by: Thomas Br on Feb 1, 2011 7:41 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Thomas,

by using vbs try this:

Row1 = Trim(session.findById("wnd[1]/usr/txtMESSTXT1").text)

Row2 = Trim(session.findById("wnd[1]/usr/txtMESSTXT2").text)

Grettings,

Netkid

thomas_brutigam2
Active Participant
0 Kudos

Hi Netkid ...

sorry for the late reply but that did the job!

Thx

Answers (1)

Answers (1)

script_man
Active Contributor
0 Kudos

Hi Thomas,

If GuiXT is active, the following script could bring a solution.

For example: sapmsdyp.d0010.txt:


if V[_title=Information] 
   set V[MESSTXT1]      "&F[MESSTXT1]"
   set V[MESSTXT2]      "&F[MESSTXT2]"
   if V[MESSTXT1=XYZ]
      // do something
   endif
   if V[MESSTXT2=abc]
      // do something
  endif
endif

However, I suspect that the command "set" requires a non-free option "InputAssistant".

Regards,

ScriptMan

Edited by: ScriptMan on Feb 2, 2011 1:40 PM

thomas_brutigam2
Active Participant
0 Kudos

Hi Scriptman

As i Wrote ---

No InputAssistant avaiable ... grml

Thanx in advance ...

Thomas

Edited by: Thomas Br on Feb 3, 2011 4:04 PM