Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Which version ?

Former Member
0 Kudos

Hi all,

how can i find out (with Abap) which system version (4.6 or 4.7) is on the machine ? Is there a function or a "sy-" Variable for this ? I didn't find anything.

rgds.

Henning

1 ACCEPTED SOLUTION

0 Kudos

Try sy-SAPRL!

3 REPLIES 3

0 Kudos

Try sy-SAPRL!

Lakshmant1
Active Contributor
0 Kudos

Hi Henning,

Try this code,

REPORT ZVERSION.

DATA: BEGIN OF I_VER OCCURS 0,

KEY(21) TYPE C,

DATA(69) TYPE C,

END OF I_VER.

CALL 'SAPCORE' ID 'ID' FIELD 'VERSION'

ID 'TABLE' FIELD I_VER-SYS.

READ TABLE I_VER INDEX 1.

WRITE:/ I_VER-DATA.

Thanks

Lakshman

Former Member
0 Kudos

Yep..SY-SAPRL will do....