Application Development and Automation 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: 
Read only

Dynamic coding depending on SAP release

Former Member
0 Likes
486

Hello @ll,

I have a program in a 4.7 release where I have to use the OPEN DATASET statement with the addition ENCODING. Now this programm should be transported to a 4.6c release and I get errors because the addition ENCODING is not allowed because it's unknown.

Is it somehow possible to activate resp. deactivate the ENCODING statement depending on the release version? Is there a system field available containing the SAP release version?

Thanks for any help!

C.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
466

Use this variable.

SY-SAPRL

Thanks

Mahehs

3 REPLIES 3
Read only

Former Member
0 Likes
467

Use this variable.

SY-SAPRL

Thanks

Mahehs

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
466

You will not be able to deactivate the line of source code depending on release. If you know the target release is 46c and it is coming from 4.7, you would need to have the ENCODING entension in 4.7 and transport it. Mostly likely the activation on the 46c will fail at which point you would need to open that system and manually change that line of code to not have the ENCODING extention. These are the kinds of issues that you will face when transporting between to different releasese.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
466

Hello this is not possible, I also had a similar problem.

There is no way out than changing the coding in respective release.

Regards,

Amarjit