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: 

Functional method call: syntax error in Abap 702

RicardoRomero_1
Active Contributor
0 Kudos

Hi,

I have the same code in different systems; One with abap 702 and the other with 740.

        response = zzmy_class=>my_method(
           EXPORTING
             param1 = lv_var1
             param2 = lv_var2 ).

There is a syntax error in the 702 system:

Unexpected word "EXPORTING" in functional method call

I have not this error in the 740.

If I remove the word "EXPORTING" the code is ok.

Why this difference between versions?

We have to move a lot of objects from one system to the other and is headache to fix all these issues..

Thanks in advance.

1 ACCEPTED SOLUTION

horst_keller
Product and Topic Expert
Product and Topic Expert

"Why this difference between versions?"

Because 7.40 is a higher version than 7.02 and the parameter interface of functional methods was enhanced in 7.40, SP02.

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abennews-740-abap_...

5 REPLIES 5

horst_keller
Product and Topic Expert
Product and Topic Expert

"Why this difference between versions?"

Because 7.40 is a higher version than 7.02 and the parameter interface of functional methods was enhanced in 7.40, SP02.

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abennews-740-abap_...

0 Kudos

Ok, I knew that the inteface was improved but I didn't remember that you cannot use the word EXPORTING, in the end the input parameters are EXPORTING params in the call, for that I didn't understand the problem.

Is there any tool to check if the code is backward compatible?

Thanks

horst_keller
Product and Topic Expert
Product and Topic Expert

"Is there any tool to check if the code is retro compatible?"

There are attempts for that, but I don't know about any released tools yet.

larshp
Active Contributor

if both systems are in your landscape you can try setting up remote syntax check, see https://blogs.sap.com/2014/11/28/remote-syntax-check-for-abap-developers/

0 Kudos

Thank you !!! It's really useful !