ISP. / NSP. - If SAP® State

<< Click to Display Table of Contents >>

Navigation:  4. AddOn Components > MR Connect for use with SAP® >

ISP. / NSP. - If SAP® State

ISP. / NSP. - If SAP®-State

Previous Top Next


MiniRobotLanguage (MRL)

 

ISP. Conditional Statement

If SAP®- State

 

 

Intention

 

Conditional Statement.

 

Use this statement to test for several states around the SAP®- System.

 

ISP.connection exists

ISP.sapgui exists

ISP.SAPGUIInstalled

ISP.version>700.32

ISP.version=700.32

ISP.version!700.32

ISP.version=700.32  

 

NSP. - is the negative form of this statement.

 

 

 

Syntax

 

ISP.Subcommand[|P1...|Px]

 

 

Parameter Explanation

 

These general Rules apply:

 

1. If you omit the Variable for the Result of the command, the result will be stored on the stack.

 

2. Session numbers are counted from 1 to 6 as usual.

 

3. If you omit the connection number, a 1 is used as default number.

 

4. If there was a problem a session number of zero may be returned and the timeout flag will be set. Otherwise the timeout flag will be cleared.

 

5. All Subcommands have a long name that is better readable, and a short abbreviation that saves you typing. You can choose which one you prefer.

 

 

The following subcommands are currently supported:

 

"Connection","Connection Exists","ce."

Checks if a connection to an SAP® system exists.

Example:

 

ISP.ce.

     DBP.Connection exists!

ELS.

     DBP.No Connection exists!

EIF.

 

NSP.Connection Exists

MBX.Please open an SAP connection

EIF.

 

 

 

"Sapgui","Sapgui Exists","se."

Checks if SAP® Logon is loaded.Example:

 

NSP.SAPGUI Exists

     GSP.SAPGUILaunch

     $$PID=#pid#

     MBX.PID of SAP Logon is $$PID

ELS.

    DBP.SAPGUI is not loaded!

EIF.

 

"SapguiInstalled","si."

Checks if SAP® GUI for Windows® is installed.

Example:

 

ISP.SAPGUIInstalled

     MBX.SAP GUI is installed

ELS.

     MBX.SAP GUI is not installed

EIF.

 

 

"Version","Ve."

Test the SAP® GUI Scripting version against a given value. You can use the Operators:

= - Test for Equality (Version=)

! - Test for NOT Equal (Version NOT Equal to)

> - Test for Version higher then

< - Test for Version lower then

 

Example:

 

ISP.ve.>7300.248

    DBP.SAPGUI is loaded!

ELS.

    DBP.SAPGUI is not loaded!

EIF.

 

 

 

 

 

Example

 

'***********************************

' ISP.-Sample

'***********************************

'

ISP.

'...

ELS.

'...

EIF.

ENR.

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

If a session is busy, it can't executes SAP® GUI Scripting. Each procedure inside MCFS discovers the status of a session. If a session is busy, "Connect to SAP® " jumps over the command and will does nothing. In some cases you may get the timeout flag set.

 

 

 

 

 

See also:

 

 

    ! Smart Package Robot 's Addon for use with SAP® (Connect to SAP®)

    GSP. - Get SAP® Data

    WSP. - Wait for SAP® State

    SSP. - Set SAP® Data