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

About User Exits.

Former Member
0 Likes
492

Hi,

I was a doing a coding in the include of an user exit.In the code I used perform statement.However when I concluded the code with endform,I got an error stating: Incorrect nesting.Before the statement " Form",the structure introduced by Function must be concluded by endfunction.I checked my code thoroughly but I had concluded each form with endform.There were no other errors.Please help.

Hi,

I was a doing a coding in the include of an user exit.In the code I used perform statement.However when I concluded the code with endform,I got an error stating: Incorrect nesting.Before the statement " Form",the structure introduced by Function must be concluded by endfunction.I checked my code thoroughly but I had concluded each form with endform.There were no other errors.Please help.

3 REPLIES 3
Read only

Former Member
0 Likes
465

Hi,

Between Function and ENDFUNCTION you can't write the form...endform.

write the perform here and go to the main program of that Function group and there you can add your FORM..ENDFORM code.

reward if useful

regards,

Anji

Read only

Former Member
0 Likes
465

Hi,

When the error comes just click on the change icon the cursor will automatically go there where the endfunction is missing, also check that u have not written the form - endform between function-endfunction.

Regds

Seema

Read only

Former Member
0 Likes
465

This is because you have deleted the endform. Please check it and if it will not there , insert the code I endform).

Second possibility is that you have not written the endloop and after that .

Check all the syntax of your UE.

Dhiraj