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

Urgent - ABAP subroutines - Proxy method

Former Member
0 Likes
915

I am coding a proxy method.

I had to code a BDC call transaction. For this I have defined 2 sub-routines. One BDC_DYNPRO (for screen chnage) and BDC_Insert(for inserting the fields).

When compile the code, it is giving an error in the line just above the definition of the first sub-routine. <b>The error message is "ENDMETHOD missing".</b>

But there is an "ENDMETHOD" after the definition of the second sub-routine.

Are there any reservations for the sub-routines in OO-Context.

Can anyone help me with this.

reg

I am coding a proxy method.

I had to code a BDC call transaction. For this I have defined 2 sub-routines. One BDC_DYNPRO (for screen chnage) and BDC_Insert(for inserting the fields).

When compile the code, it is giving an error in the line just above the definition of the first sub-routine. <b>The error message is "ENDMETHOD missing".</b>

But there is an "ENDMETHOD" after the definition of the second sub-routine.

Are there any reservations for the sub-routines in OO-Context.

Can anyone help me with this.

reg

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
870

Hi,

Please check your method declaration in the definition is like this way


methods: " Please make sure that : is available after method

Read only

0 Likes
870

I did not get your point.

My code is:

*******************************

method ZSMDII_MI_FUSION_PRODUCT_MAINT~EXECUTE_ASYNCHRONOUS.

code....

code...

<b>Error is being shown in this line</b>

Code of subroutine1.

code of subroutine2.

endMethod.

*******************************

I can post my code here if this is not clear.

reg

Read only

0 Likes
870

Hi,

Check this :


methods: ZSMDII_MI_FUSION_PRODUCT_MAINT~EXECUTE_ASYNCHRONOUS.

Read only

0 Likes
870

With Methods: and after compilation, it says that

"Methods: can not be used in the current environment."

Read only

Former Member
0 Likes
870

I have used ABAP macros as I can not use "Form EndForm" in the method.