Copyright 2024 - BV TallVision IT

Would you like to make your software platform independant ? The Abap language doesn't have many platform dependent actions, however where file interfacing is concerned, alternative approaches may be required. Check out what platform you are working on (server-side and frontend).

Presentation server (PC)

Check out cl_gui_frontend_services=>get_platform if you need to know what presentation server you are working with. It can return (constants on class cl_gui_frontend_services)

PLATFORM_UNKNOWN
PLATFORM_WINDOWS95
PLATFORM_WINDOWS98
PLATFORM_NT351
PLATFORM_NT40
PLATFORM_NT50
PLATFORM_MAC
PLATFORM_OS2
PLATFORM_LINUX
PLATFORM_HPUX
PLATFORM_TRU64
PLATFORM_AIX
PLATFORM_SOLARIS
PLATFORM_MACOSX

Server

And what about the server side ? There is a system variabele SY-OPSYS that will reveal whether it's a Windows server or Unix. There's no possible values defined for this variabele, so here's the most common values:

Windows NT Windows server system
AIX Unix server system
Linux Unix server system