cancel
Showing results for 
Search instead for 
Did you mean: 

error in smartform

Former Member
0 Kudos

Hi,

I have used a perform in a smartform.When I try to execute the program it is giving error as ' Incorrect nesting : Before the statement "FORM" ,the structure introduced by "FUNCTION" must be concluded by "ENDFUNCTION".

Can anyone tell me why is this error coming?

Regards,

Hema

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hema,

Have you declred In global data,declare data1 ?

Just see the below theard

https://forums.sdn.sap.com/click.jspa?searchID=11523481&messageID=450138

Regards

Kiran Sure

Former Member
0 Kudos

Hi,

when i try to execute the smartform it is giving error in german language as 'Ziele 0001 sprachelement im Kontext nicht erlaubt'.

Why is it coming in this language?

Regards,

Hema

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1.Check the form ,what u written.Is there any loop or if condition is mismatched.

2.Check the perform also ,where u r called.

3.Mainly,the error is before the form,So check in the form routine option ,where u r declared the Form.

regards,

Shiva.

Former Member
0 Kudos

Hi,

I have declared the form inside the form routine in global definitions and declared the perform statement in program lines.Now I want to declare another perform inside this form statement.Then where can I declare the form statement for this perform?

Regards,

Hema

Former Member
0 Kudos

Hi Hema,

In the Global Defenitions of a smartform you see a Tab on the right called 'Form Routines'.

Here you can make your formroutines with the code.

Since smartforms will generate the FM with performs. so there might be conflict with perform you are using.

Please close if you get the answer

Edited by: aditya on May 7, 2008 11:54 AM