Using Your Liquid UI Products > WS aka Web Scripts (Attended RPA for SAP)

SAP Message system variables in Liquid UI

(1/1)

Rahul Gera:
Purpose:
To identify the message number, message type, and message id of the SAP server message.

The system variables "_msgno", "_msgtype" and "_msgid" can be used to find the details of the SAP message, and further to condition Liquid UI scripts.

For the below example, displayed in VA01 transaction.

Liquid UI Code:
---------------------------------------------------------------------------------
Script File Name: SAPMV45A.E4001.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);
     }      
  }

Navigation

[0] Message Index

Go to full version