2 Replies Latest reply: Apr 17, 2012 1:04 PM by piyush sakharkar RSS

system filed SY-SYSID in sapscript

Shrinivas Joshi
Currently Being Moderated

Hi all,

 

I am checking system(developmen/sandbox/production) in sapscrpit and depending on sysytem I want to display a message in script.

 

Problem here is In script I use below code, For example: I dont want to print a message in development system.

 

In Development system: 

IF &SY-SYSID& NE 'Development sys'

 

 

 

 

 

 

 

 

 

THIS IS TEST PRINOUT, PLEASE IGNORE IT !

ENDIF.

 

In this case the message gets printed, as IF condition is 'NE' message should not be printed. But message get printed.

 

when I debus the script sy-sysid doesnot get any value init.

Can we use sysytem filed directely in SAPSCRIPT or is there any other way to use system field in script.

 

thanks,

Shrinivas

 

Actions