Archived discussions are read-only. Learn more about SAP Q&A

system filed SY-SYSID in sapscript

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

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question