Liquid UI - WS Reference Library

System Variables: _message


Prerequisites


Runs On

  SAP GUI Android iOS WM Web
Direct Connect          
Liquid UI Server Connect        


Purpose

This example shows you a simple procedure to find the id, number and type of a SAP message in any transaction. The three system variables associated with the SAP message are _msgid, _msgno, _msgtype. These variables are useful in error handling scenarios and to conditionalize scripts based on their values.


User Interface

Navigate to the Create Material: Initial screen(MM01) and click enter.


 


Liquid UI Script

//SAPLMGMM.E0060.sjs

onUIEvents["Enter"]= {'fcode':"/0",'process':z_message};
function z_message()  {
enter();
onerror
   if(_message){
      println("Message: "+_message);
      println("Message Type: "+_msgtype);
      println("Message Number: "+_msgno);
      println("Message ID: "+_msgid);
     }      
  }